kermit
™Kermit™
- Joined
- Oct 6, 2008
- Messages
- 73
- Reaction score
- 12
I have a problem look:
Here is the script:
I'm using the latest tfs 0.2 i need it to send a player to a certain location after click use on the grave. POI DUH! thx hopefully someone will help me !
[23/12/2008 12:34:39] Lua Script Error: [MoveEvents Interface]
[23/12/2008 12:34:39] data/movements/scripts/entrancepoii.luanStepIn
[23/12/2008 12:34:39] attempt to index a number value
[23/12/2008 12:34:39] stack traceback:
[23/12/2008 12:34:39] [C]: in function 'getThingfromPos'
[23/12/2008 12:34:39] data/movements/scripts/entrancepoii.lua:9: in function <data/movements/scripts/entrancepoii.lua:2>
Here is the script:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
novapos = {x=348, y=441, z=8}
if item.uid == 3232 then
getThingfromPos(playerpos)
doSendMagicEffect(playerpos,2)
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,10)
end
end
I'm using the latest tfs 0.2 i need it to send a player to a certain location after click use on the grave. POI DUH! thx hopefully someone will help me !