• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Movements bug on TFS.

Galgula

New Member
Joined
Nov 15, 2007
Messages
28
Reaction score
0
hello iv'e made a tp scirpt and i dont get what's wrong :/

In movements:
Code:
<movevent event="StepIn" uniqueid="3233" script="telefi.lua" />

Script:
Code:
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=2241, y=2027, z=8} 

if item.uid == 3233 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10)
end 
end

And when im trying to walk on it in game instead of tp i get that white miss (when u miss someone) and in the restarted i see:

Code:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/telefi.lua:onStepIn

Someone knows whats wrong? :blink:
 
Change:
doTeleportThing(cid,novapos)
to:
doTeleportThing(cid,novapos,0)
 
Back
Top Bottom