I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
I've been working on this script that changes a certain island into snow/ice and turns it back to normal after a while.
But now that I finnaly gotten to configurating my grass into snow I'm running into a new problem
The problem is that once a player walks over the new snow tiles and the footprints are still there at the moment of the change back the script doesn't turn the tiles back but just gives an error and leaves then as they are or even worse they start to bugg. (as shown in the picture)
Used code (in action script)
Error (in console)
Thanks in advance.
I've been working on this script that changes a certain island into snow/ice and turns it back to normal after a while.
But now that I finnaly gotten to configurating my grass into snow I'm running into a new problem
The problem is that once a player walks over the new snow tiles and the footprints are still there at the moment of the change back the script doesn't turn the tiles back but just gives an error and leaves then as they are or even worse they start to bugg. (as shown in the picture)

Used code (in action script)
Code:
addEvent(doTransformBack, 2*6*1000, {x = 747, y = 1008, z = 7}, getTileThingByPos({x = 747, y = 1008, z = 7, stackpos = 0}).itemid, 670)
doSendMagicEffect({x = 747, y = 1008, z = 7 },CONST_ME_ICEAREA)
doTransformItem(getTileItemById({x = 747, y = 1008, z = 7}, getTileThingByPos({x = 747, y = 1008, z = 7, stackpos = 0}).itemid).uid, 670)
Error (in console)
Code:
[11/07/2015 17:15:32] Lua Script Error: [Action Interface]
[11/07/2015 17:15:32] in a timer event called from:
[11/07/2015 17:15:32] data/actions/scripts/quests/Ice Change.lua:onUse
[11/07/2015 17:15:32] luaDoTransformItem(). Item not found
Thanks in advance.