Hi, I have a little problem, I have TFS 0.2.15 and I wanna make a pacc bridge with this script:
rookpacc.lua
rookpacc1.lua
data\movements\movements.xml
but everyone can go through, have someone a script specially for TFS 0.2.15/0.2.20?? Thank for help.
rookpacc.lua
function onStepIn(cid, item, pos)
local npos = {x=106, y=44, z=7} - tp no pacc
local ypos = {x=106, y=48, z=7} - tp pacc
if isPlayer(cid) == TRUE then
if isPremium(cid) then
doTeleportThing(cid,ypos)
doSendMagicEffect(ypos,10)
else
doTeleportThing(cid,npos)
doSendMagicEffect(npos,10)
end
end
end
rookpacc1.lua
function onStepIn(cid, item, pos)
local ypos = {x=106, y=44, z=7} -- back tp
if isPlayer(cid) == TRUE then
if isPremium(cid) then
doTeleportThing(cid,ypos)
doSendMagicEffect(ypos,10)
else
doTeleportThing(cid,ypos)
doSendMagicEffect(ypos,10)
end
end
end
data\movements\movements.xml
<movevent event="StepIn" uniqueid="5454" script="rookpacc.lua" />
<movevent event="StepIn" uniqueid="5455" script="rookpacc1.lua" />
but everyone can go through, have someone a script specially for TFS 0.2.15/0.2.20?? Thank for help.