Npc

Merlin

LOMCN Veteran
Veteran
Aug 7, 2003
430
0
93
[@ss]
#IF
checklevel 43
#SAY
You will need a Soul Sabre, 2 million gold and the\
SoulSabre stone. Do you have these items ?\
<Yes/@ye>\
<No,Sorry/@exit>\ \
#ELSESAY
You do not liar\
<Go away/@exit>\ \

[@ye]
#IF
#ACT
take SoulSabre
take SoulStone
take gold 2000000
give ZenSabre
#SAY
Ok i will trade this item for you. If you dont have\
the ingrediants dont bother trying.\ \
<Exit/@exit>
#ELSESAY
You do not have what is needed\
<Go away/@exit>\ \


Well i made this npc script but when testing ingame it just gives a ZenSabre without even checking if u have items in bag. What is wrong with it?
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
[@ss]
#IF
checklevel 43
#SAY
You will need a Soul Sabre, 2 million gold and the\
SoulSabre stone. Do you have these items ?\
<Yes/@ye>\
<No,Sorry/@exit>\ \
#ELSESAY
You do not liar\
<Go away/@exit>\ \

[@ye]
#IF
checkitem SoulSabre 1
checkitem SoulStone 1
#ACT
take SoulSabre 1
take SoulStone 1
take gold 2000000
give ZenSabre
#SAY
Ok i will trade this item for you. If you dont have\
the ingrediants dont bother trying.\ \
<Exit/@exit>
#ELSESAY
You do not have what is needed\
<Go away/@exit>\ \
 

Miles

LOMCN VIP
VIP
Mar 27, 2003
1,195
0
213
You also need to make it check for the gold other wise it will just do what it did before so

[@ye]
#IF
checkitem SoulSabre 1
checkitem SoulStone 1
checkitem gold 2000000
#ACT
take SoulSabre 1
take SoulStone 1
take gold 2000000
give ZenSabre


should work i think

/Miles