• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

getThingfromPos ERROR

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


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
 
Back
Top