Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
i am trying to see if an item place on the tile "itempos1"
is equal to the item "6520"
but when i place the right item there is says that it fails
is equal to the item "6520"
but when i place the right item there is says that it fails
Code:
function onUse(cid, item, frompos, item2, topos)
itempos1 = {x= 864, y=627, z=6, stackpos=1}
deadbody1 = 6520
item1 = getThingfromPos(itempos1)
if (item1 == deadbody1 ) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Success." )
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Fail.")
end
return 1
end