PDA

View Full Version : Need help about making shops


Stef
04.12.2005, 09:15
Hiya,

First of all, my english is not so good, sorry about that.

I thank you all for the great package of the c2 project.

Now, I have some problems with this package. Everything runs smooth. But there are some things that are weird and I need to fix those. Im kinda new with this so I need your help!

Ok, here we go;

First I'd like to have an custom shop in gludin. Where you can buy every recepy you need. In that shop quest items need to be putten there too, for an price ( The class change ones ). Some potions need to be added too, like greater healing pots.
Also Id like to know how to change rates. And to remove some skills ( Like the water seeds, and blizzard etc ).
And some animations are missing, the one of berzerker spirit.
Could you guys help me out an little? ( You don't have to make me all, maybe just an beginning and explain me how to do it. Then I can make the rest myself, cause afterall, I need to learn ^^ )

Thanks in advance.

Truffe
04.12.2005, 09:54
Open AI.obj and look at it.
Format for shops is {itemid; taxrate }

If you're smart enough you should easily figure it out by yourself.

Stef
04.12.2005, 10:29
I have opened AI.obj in wordpad.

Im trying to search for what you said, but i cant seem to find any.

bwgreen
04.12.2005, 11:14
Don't use wordpad. Find and download an advanced text editor which will allow you to save as unicode.

Try searching for the NPC's name in the ai.obj, then you will see what you need. :)

Stef
04.12.2005, 11:41
Which text editor do you suggest?

[edit]

Also, what to do when I edit the AI.obj

do i need to save it as unicode?
How do I change the coordinates?
Do i gotta edit the htm file of the merchant which I would like to edit?

Mirror
04.12.2005, 12:00
fyi, wordpad and notepad save in unicode

Stef
04.12.2005, 15:47
Ok, but where do I change the coordinates?

I have the file npcpos.txt
:

territory_begin [24_18_NPC_031201_04] {{146764;28908;-2356;-2156};{146964;28908;-2356;-2156};{146964;29108;-2356;-2156};{146764;29108;-2356;-2156}} territory_end
npcmaker_begin [24_18_NPC_031201_04] initial_spawn = all maximum_npc = 1
npc_begin [trader_alexis] pos = {146893;28982;-2250;32768} total = 1 respawn = 1min npc_end
npcmaker_end

Im going to use Alexis,
But the old alexis still needs to stay, how do I create it?
Do I also gotta change the trader_alexis.htm files for the new trader?
In AI.obj how do I gotta do that with the code? Can i add another trader alexis?


class trader_alexis : merchant
property_define_begin
buyselllist_begin SellList0
{907; 20 }
{908; 20 }
{114; 20 }
{115; 20 }
{845; 20 }
{876; 20 }
{877; 20 }
buyselllist_end
property_define_end
class_end


class trader_alexis : merchant
property_define_begin
buyselllist_begin SellList0
{907; 20 }
{908; 20 }
{114; 20 }
{115; 20 }
{845; 20 }
{876; 20 }
{877; 20 }
buyselllist_end
property_define_end
class_end

like this?
Please help me, thank you ^^

toolpunk
04.12.2005, 19:51
make a copy of the npcdata and ai entry and replace the name alexis with uhm Stef :D
to change the position you should edit the "pos" entry in npcdata ;)
alternatively to ai you can use multiselllist.txt as far as i know.
however you can find ALL needed info using the search...
there was a pretty good tutorial on how to create a custom trader i think...