Recalling that: backpackCheck = getPlayerSlotItem(cid, 3)
Appears this error:
Appears this error:
luaGetPlayerSlotItem(). Player not found
Code:
function onStepIn(cid, item, position, fromPosition)
if item.uid == 36202 then
if isPlayer(cid) == TRUE then
if backpackCheck.itemid == amulet then
doSummonCreature("Demon", demonPos)
else
doTeleportThing(cid, entrancePos, FALSE)
doPlayerSendTextMessage(cid, 25, 'You need the amulet to enter.')
end
end
end
end
Last edited: