[Help] Adding NPC to sell things

10/08/2008 07:38 DiobloSlayeR#1
Hey, I have searched the forum and found a post my nooneatall about making an npc, but it wasn't clear enough for me, I want to add an NPC to sell 29*unixo and +255 element gears, I have done the way nooneatall said and it didn't work other than messing one of my NPCs. So if any1 know pls post on how to put an NPC with +255 gears + 29*unixo step by step guide..

Thanks,
DiobloSlayeR
10/08/2008 13:16 Spy520#2
i edit the script of the x3 potion only but idk how to make it sell above 2 items
10/08/2008 13:25 funhacker#3
@diobolo it is because you seriously fail at following directions in guides, having an npc sell an item is childs play
10/08/2008 15:00 DiobloSlayeR#4
Eh.. lol, don't defend because it's nooneatall's post.. It didn't even explain how to add 2things so the Npc sells it :/ If you know, post it, don't just say you fail and increase your post count >.>
10/08/2008 16:06 funhacker#5
Quote:
Originally Posted by DiobloSlayeR View Post
Eh.. lol, don't defend because it's nooneatall's post.. It didn't even explain how to add 2things so the Npc sells it :/ If you know, post it, don't just say you fail and increase your post count >.>
well I know nooneatall and he wouldnt write a useless guide, you shouldnt even need a guide to know how to do that

Type - Data - Param

101 - 0 - Hi~I~am~a~NPC~that~sells~stuff!
102 - 0 - I~want~item~[Cost-200ep]. xxxxx
102 - 0 - I~want~1milgold~for~1kep! xxxxxx
102 - 0 - I~dont~want~anything. 0

1001 - 0 - e_money > 199
501 - itemid -
126 - 0 - Congrats~you~just~bought~an~item!

1001 - 0 - e_money > 999
1001 - 0 - gold += 1000000
126 - 0 - Congrats~you~just~bought~1mil~gold!


'I~want~item~[Cost-200ep]. xxxxx' this is an npc choice, xxxxx is what cq_action id you want to use, make sure to also add this to the cq_task

Code:
1001 - 0 - e_money > 199
501 - itemid - 
126 - 0 - Congrats~you~just~bought~an~item!
this is for the first choice it first checks to see if they have 200ep or more
then you replace itemid with the item you wish to sell
the last part is just a message box that pops up
10/08/2008 17:41 DiobloSlayeR#6
Thanks a dozen! One more thing, I just checked how you would think when I say that, on the Hex editing thread, lol! :P ty :)