• 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!

Check tile, is there any monster? No working script.

pioncz

New Member
Joined
Dec 3, 2008
Messages
149
Reaction score
1
Hello,
Maybe function is wrong and i have to do it other way? Here is mine sript:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local pos = {x = 1517, y = 1037, z = 7}
local monster = getThingfromPos(pos)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, monster)  
return true
end

Ofc i will rep.
 
Lua:
local pos = {x = 1517, y = 1037, z = 7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local monster = getTopCreature(pos).uid
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, tostring(monster > 0))
	return true
end
 
PHP:
function isMonsterInPos(pos)
	return isMonster(getTopCreature(pos).uid) 
end
local pos = {x = 1517, y = 1037, z = 7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isMonsterInPos(pos) then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, " XD")
        end
	return true
end
 
Back
Top