Hi! I got this addoner NPC. When a player buys "first nobleman addon" and then "yes" he gets the addon.
And right after the player writes "second nobleman addon" and the NPC answers "Not interested? Maybe other addon?" and if a player says "yes" he will buy first nobleman addon again.
"Easy example":
player - Hi
Addoner - Greetings blablabla.
player - first nobleman addon
Addoner - Did you bring me and 150000 gp for second nobleman addon?
Player - yes
Addoner - Here you are.
and if a player writes Yes again the player will be 150000 gps less rich. And again, and again...
If a player says bye after buying the first addon he cant buy it again. (storage id). Is there any way that make the npc says goodbye after buying a addon? It will fix the problem.
I'm using 0.3.6 rev 5969 client 8.6
Thanks!
here is the addon.lua:
http://pastebin.com/ReipeNSn (to big for this thread)
And right after the player writes "second nobleman addon" and the NPC answers "Not interested? Maybe other addon?" and if a player says "yes" he will buy first nobleman addon again.
"Easy example":
player - Hi
Addoner - Greetings blablabla.
player - first nobleman addon
Addoner - Did you bring me and 150000 gp for second nobleman addon?
Player - yes
Addoner - Here you are.
and if a player writes Yes again the player will be 150000 gps less rich. And again, and again...
If a player says bye after buying the first addon he cant buy it again. (storage id). Is there any way that make the npc says goodbye after buying a addon? It will fix the problem.
I'm using 0.3.6 rev 5969 client 8.6
Thanks!
here is the addon.lua:
http://pastebin.com/ReipeNSn (to big for this thread)