X
Xikini
Guest
Server version 0.3.7
I'm trying to determine if an Npc is on a tile or not.
I've tried multiple variations of finding the Npc on a tile however they either come back as
"attempt to index a number value" or Player not Found, or simply no error at all.
Going with a simple movement script, how do I check if it's an Npc, a creature, or a player without declaring the specific location of the tile?
I'm trying to determine if an Npc is on a tile or not.
I've tried multiple variations of finding the Npc on a tile however they either come back as
"attempt to index a number value" or Player not Found, or simply no error at all.
Going with a simple movement script, how do I check if it's an Npc, a creature, or a player without declaring the specific location of the tile?
Code:
function onStepIn(cid, item, fromPos, item2, toPos)
if isNpc(cid) then
doTeleportThing(cid, fromPos)
end
return true
end