Help With NPC

smoochy boys on tour

Cocaj

Dedicated Member
Dedicated Member
Mar 12, 2006
128
4
65
Spain
Hello,Need someone what help me with this NPC

[@Main]
#SAY

Hello,I can sell One QuestItem for you.\

<Buy@buuy>\
<Exit@Exit>\

[@Buuy]
#IF
Take gold 1000000000
#ACT
Give QuestItem(S)
#SAY

I Need that when buy the item,this NPC don't sell more QuestItems..

Any ideas?¿ :S
 

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
[@Buuy]
#IF
check [123] 0
checkgold 1000000000
#ACT
Take gold 1000000000
Give QuestItem(S)
set [123] 1
#SAY




checks flag number 123 has not been used, check has enough gold, takes gold, gives item, sets flag to used.

you'll have to make sue the flag number is already not being used for something else.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
If I understand you correctly, you wish them to pick one of two quest items and then never to have that option again, the above will do this per character.
 
Upvote 0

Abyss!

Dedicated Member
Dedicated Member
Jul 26, 2009
12
0
27
Could be that when anyone buy the questitem, it never be sold again?
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
You would write a whole script for a one-off item? what if it was dropped and lost or broken? Yes it could be done but to my knowledge it would mean an sql table entry and not a flag.
 
Upvote 0