checkitem problem

Join Discord

Adamsy

LOMCN Veteran
Veteran
Oct 2, 2004
345
0
63
Peterlee, CountyDurham (UK)
Made an npc, and everytime it checks for an item it always finds it, even when you don't have it, lol. Was wondering if anyone knew how to fix this? as it shouldn't find an item you don't have.

This is with the JOB server files.
 

Adamsy

LOMCN Veteran
Veteran
Oct 2, 2004
345
0
63
Peterlee, CountyDurham (UK)
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.
 
Upvote 0

TritoN

LOMCN Veteran
Veteran
Aug 21, 2003
474
1
114
change this:
checkitem OLDSCROLL1
to this:
checkitem OLDSCROLL 1

it should work a thret then..if there is no number after any item u check for it will always 'check' the item ;)
 
Upvote 0

Adamsy

LOMCN Veteran
Veteran
Oct 2, 2004
345
0
63
Peterlee, CountyDurham (UK)
TritoN said:
change this:
checkitem OLDSCROLL1
to this:
checkitem OLDSCROLL 1

it should work a thret then..if there is no number after any item u check for it will always 'check' the item ;)

cheers triton that worked.

Found another problem tho, and that is the Ctrl+A to rest tao pets don't work, lol.
 
Last edited:
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
185
Adamsy said:
cheers triton that worked.

Found another problem tho, and that is the Ctrl+A to rest tao pets don't work, lol.

cmdlist + strres HAS to match for it to work !!
 
Upvote 0