[HELP] Text Based Shop

05/03/2008 16:21 TrImAn#1
I think this might have been posted before but I can't find it again. I was wondering how I can make a text based npc seller like EudemonSeller Alice.

I was looking at the actions but I couldn't find where it actually gives the user the item.

Any help would be gladly appreciated.
TrImAn
05/04/2008 23:24 DarkBebi#2
502 is take away the item and 501 is to give
05/05/2008 06:05 TrImAn#3
Quote:
Originally Posted by DarkBebi View Post
502 is take away the item and 501 is to give
Im having a problem with my npc. When the option is clicked to buy an ep card nothing happens.

Can you look at the codes in the file attached to this post. They are the ones I added for the npc to sell an ep card.

Could you tell me what I did wrong or left out in there ?

Thanks,
TrImAn
05/06/2008 12:27 funhacker#4
INSERT INTO cq_action
(`id`, `id_next`, `id_nextfail`, `type`, `data`, `param`)
VALUES
(50000001, 50000002, 0000, 0102, 0, 'I~would~like~a~1380ep~card. 50000005');

when you have a choice for an npc you have to add this to cq_task

I am going off memory so exact details could be off a little.

every task has values like 999 or numbers that repeat each time so I suggest you copy these I dont know if it makes any difference but best be safe then sorry

just add the ID of cq_task as 50000005 and put its cq_id as the same this means when you click it, it will regonise that it jumps to action 50000005

do this for any choices you make for npcs

dont forget cq_task has to reload so after editing reboot your server



---side--note----
as for your ID that contains the gmlog entry no need to put that in as its only for those that want to keep track to see if someone is cheating or how much ep is flowing through the server
05/07/2008 06:59 TrImAn#5
Quote:
Originally Posted by funhacker View Post
INSERT INTO cq_action
(`id`, `id_next`, `id_nextfail`, `type`, `data`, `param`)
VALUES
(50000001, 50000002, 0000, 0102, 0, 'I~would~like~a~1380ep~card. 50000005');

when you have a choice for an npc you have to add this to cq_task

I am going off memory so exact details could be off a little.

every task has values like 999 or numbers that repeat each time so I suggest you copy these I dont know if it makes any difference but best be safe then sorry

just add the ID of cq_task as 50000005 and put its cq_id as the same this means when you click it, it will regonise that it jumps to action 50000005

do this for any choices you make for npcs

dont forget cq_task has to reload so after editing reboot your server



---side--note----
as for your ID that contains the gmlog entry no need to put that in as its only for those that want to keep track to see if someone is cheating or how much ep is flowing through the server
Thanks for that but a little bit late. I've fixed it allready.
05/07/2008 09:31 funhacker#6
oh wow sorry I rarely check epvp didnt check the dates :(