Help making NPC's sell items

02/04/2008 04:05 TheNum1AlterEgo#1
After decoding most of the the NPC's i found there are allot of useless event NPC's just standing around and i would like to make use of them by making them sell items so if someone has an idea on how to do this please help.

Thanks.
02/04/2008 07:04 forcer#2
see eudemonseller as an example for a sample shop
02/04/2008 09:38 TheNum1AlterEgo#3
Quote:
Originally Posted by forcer View Post
see eudemonseller as an example for a sample shop
I tried and for some reason im just not getting it LOL.

i understand the Id/id_next/id_nextfail but i know type plays a role in it and for selling items im not sure what that number should be i know 101 is normal text and 102 is to follow the number in the param. I also see that the Item number in in the data portion

and i understand the whole

e_money < selling amount
e_money += -selling amount



but i dont know what
1 0 50
gmlog/action_log 300,%user_name[%user_id],635,1207,Itemnumber,0,0,0,0,0
means

i know they are there but i also want know how they work cause if i am ganna be editing and maintaining a server i need to know what i am doing not just coping and pasting my way through it .

but the way it is organized it all over the place they and the ending section of the chain is in gibberish so i dont know what it says or does.
I understand most of it i just need a little guidance.
02/05/2008 04:19 jackyyll#4
If you mean making the NPC just charge for certain items, such as the Merchant does with buying Redstones for 10mil each you'd do something like:

Code:
id    id_next    id_nextfail        type         data         param
1     2            0                 0101         0         "Hi,~i'll~sell~you~a~godstone~for~100mil~gold!"
2     3            0                 0101         0         "Do~you~want~to~buy~it?"
3     4            0                 0102         0         "Yes! 5"
4     0            0                 0102         0         "No~way! 0"
5     6            7                 1001         0         "money < 100000000"
6     0            0                 0101         0         "Hey!~You~must~have~100mil~moron!"
7     8            0                 0508         0         "1 0 50"
8     9            0                 1001         0         "money += -100000000"
10    0            0                 0501        724024     ""
02/05/2008 04:37 theeuguy#5
thanks for example :)
02/05/2008 06:27 TheNum1AlterEgo#6
Quote:
Originally Posted by jackyyll View Post
If you mean making the NPC just charge for certain items, such as the Merchant does with buying Redstones for 10mil each you'd do something like:
no i mean taking a npc that has no purpose. Like taking an NPC that just states some stupid fact and make them apart of the game by selling items

Example: Purchaser-Lucky by the grocery in Cronus his job is to spit useless info about the mines. I want to take those useless scum of NPC's and make them a functioning part of the game.

I understand most of it i can build the chain but ending it seems to be the issue.
02/05/2008 11:26 nooneatall#7
umm see jackyls example.. i couldnt explain it much better than he did..

just edit the cq_npc and find the column called task0

in that column u put in the cq_action id.. in jackylls example the cq_action id stars with 1.. so you put in 1 in task0 :D
02/05/2008 19:50 forcer#8
Quote:
Originally Posted by nooneatall View Post
umm see jackyls example.. i couldnt explain it much better than he did..

just edit the cq_npc and find the column called task0

in that column u put in the cq_action id.. in jackylls example the cq_action id stars with 1.. so you put in 1 in task0 :D
you need also add task0=5 to cq_task to make it work.
05/04/2008 11:09 TrImAn#9
Well after reading the posts in here I tried to change Purchaser Lucky to sell a 1380ep card. At first when I talked to him it would execute everything before I clicked the option. I then fixed that but now when I click it, it does nothing.

I have been looking at how the Eudemon Seller Alice works and copied the code from her as the base then made the codes different. I have added the file to this post that has everything I added into the databases.

Well does anyone know what I forgot to do or did wrong ?

Help would be gladly appreciated,
TrImAn
05/06/2008 13:59 Hellcryer#10
hey how i want change SpecialExpBall in NPC like 10k eps to 6k eps and also how
i want NPC sell paladin gear??