Ozo
New Member
- Joined
- Jun 30, 2008
- Messages
- 58
- Reaction score
- 0
hello, i want my script to teleport me when i'm at a certain position:
Error:
Any ideas?
PHP:
function onUse(cid, item, frompos, item2, topos)
player1Pos = {x=581, y=581, z=13, stackpos=255}
player1 = getThingfromPos(player1Pos)
telPos = {x=581, y=581, z=14, stackpos=255}
if item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
doTeleportThing(player1,telPos)
elseif item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
end
return TRUE
end
Error:
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/quests/minianni.lua:onUse
luaDoTeleportThing(). Thing not found
Any ideas?