• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Help.one problem

god nacke

New Member
Joined
Sep 7, 2008
Messages
46
Reaction score
0
Hello.im have problem and teleport the poi,what is solution please.im use tfs.0.3.2 crimdamson

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=411, y=435, z=7} 

if item.uid == 9034 then

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

thz for all
 
PHP:
local config = {
     newPosition = { x = 411 , y = 435 , z = 7 }
}

function onStepIn(cid, item, position)
     doSendMagicEffect(getPlayerPosition(cid), 2)
     doTeleportThing(cid, config.newPosition)
     doSendMagicEffect(getPlayerPosition(cid), 10)
     return TRUE
end
 
Hello

Hello No work. now teleport player sorry

PHP:
local config = {
     newPosition = {x=32361, y=32539, z=7}
}

function onStepIn(cid, item, position)
     doSendMagicEffect(getPlayerPosition(cid), 2)
     doTeleportThing(cid, config.newPosition)
     doSendMagicEffect(getPlayerPosition(cid), 10)
     return TRUE
end
 
Last edited:
Remove the questionmark (" ? ").
PHP:
local config = {?
 
PHP:
function onStepIn(cid, item, position)

local  newPosition = {x=32361, y=32539, z=7}

     doSendMagicEffect(getPlayerPosition(cid), 2)
     doTeleportThing(cid, newPosition)
     doSendMagicEffect(getPlayerPosition(cid), 10)
     return TRUE
end

Anyway, that Macroman gave you should work too :eek:
 
Hello

Hello.is that correct? TFS before 0.2 worked perfectly and now of crimson TFS 0.3.2 not working

PHP:
<movevent event="StepIn" uniqueid="8047" script="xxxx.lua" />

thanks for answering
 
PHP:
<movevent type="StepIn" uniqueid="8047" event="script" value="xxxx.lua" />
 
Hello.is that correct? TFS before 0.2 worked perfectly and now of crimson TFS 0.3.2 not working

PHP:
<movevent event="StepIn" uniqueid="8047" script="xxxx.lua" />

thanks for answering

Because Elf has totally broke so called 'standards'.

You need to change event="StepIn" to type="StepIn" o_0
And
script="xxxx.lua"
to
event="script" value="xxxx.lua" o_0

stupid eh? Yeah, Welcome in TFS 0.3 world!


#Edit ah maCrOMaNgo first :mad:
 
Congratulation

Hello,thank you very much and SLAWKENS,MAKROMANGO,ZONET AND COLANDUS Thanks for solving the problem. NOW WORKS PERFECT.:thumbup:
 
Back
Top