Code:
[@main]
#if
checkitem OLDSCROLL1
#act
addnamelist CellarQuestPeopleCompleted.txt
mapmove 5_0011 30 40
#elseact
goto @main2
[@main2]
#if
checkmonmap CELLAR 1
#act
goto @tomany
#elseact
goto @main3
[@tomany]
#act
close
[@main3]
#say
Thank you for saving me. No doubt my father has\
offered you a reward for saving me.\
<Yes he did, he offered his Treasure Chest/@next>\
[@next]
#say
It's in the house, i'll transport you there.\
And thanks again for saving me.\
<Was my pleasure/@chest>\
[@chest]
#act
param1 CELLAR
param2 10
param3 11
mongen TREASUREBOX5 1 0
close
Well thats the script, which leads onto a very large and difficult quest. However like i said the trouble comes when it checks the items. The script itself has no errors that pop up in the EIserver.exe and the script has worked properly on our mir 2 server.
Basically what its doing is checking for the item which its supposed to do, however this item is given after the treasurebox spawn. So if you click the npc during the spawn from another npc it basically reckons you've got the item and teleports you out, when in fact if you click the npc without this item its supposed to goto @main and @tomany, thus closing an annoying loophole, lol.
Then once spawn is killed and you get the item then it ports you out.
Just need to know why the hell it finds the item even tho the item isn't in my bag.