Drs1705
Member
- Joined
- Dec 26, 2011
- Messages
- 69
- Reaction score
- 14
I get this error when using a spell
He can not find the tile that role when player is in a high place
Code:
[12/05/2013 21:18:20] [Error - Spell Interface]
[12/05/2013 21:18:20] In a timer event called from:
[12/05/2013 21:18:20] data/spells/scripts/ar/soprar.lua:onCastSpell
[12/05/2013 21:18:20] Description:
[12/05/2013 21:18:20] (luaGetThingFromPos) Tile not found
He can not find the tile that role when player is in a high place
Code:
local function UM(cid)
pos = getPosfromArea (cid, arr1)
n = 0
while n <# of pos
n = n +1
thing = {pos = x [n]. x, y = pos [n]. y, z = pos [n]. z = 253} stackpos
*** if isPlayer (getThingfromPos (thing). uid) == TRUE then
*** doPushCreature (getThingfromPos (thing). uid, getPlayerLookDir (cid))
*** elseif isMonster (getThingfromPos (thing). uid) == TRUE then
**** doPushCreature (getThingfromPos (thing). uid, getPlayerLookDir (cid))
**** end
end
How do I include "getTileInfo" function to check if you have tile?
Last edited: