This script is working just the removeitem funcion not, after steping on a tile im getting teleported and a stone appears but its not getting removed after 10 seconds...
Code:
function onStepIn(cid, item, frompos, item2, topos)
local stone_pos = {x=32826, y=32274, z= 11}
playerpos = getPlayerPosition(cid)
novapos = {x=32826, y=32273, z=12}
if item.uid == 14550 and isPlayer(cid) == TRUE then
doTeleportThing(cid, novapos)
doCreateItem(1285,1,stone_pos)
addEvent(reCreate, 10*1000)
end
return true
end
function reCreate()
doRemoveItem(1285,1,stone_pos)
return TRUE
end
Code:
[27/06/2009 14:42:12] in a timer event called from:
[27/06/2009 14:42:12] data/movements/scripts/pitsofinferno/poi_glowny.lua:onStepIn
[27/06/2009 14:42:12] luaDoRemoveItem(). Item not found