xardas33
New Member
- Joined
- Jan 28, 2010
- Messages
- 83
- Reaction score
- 0
Hello guys. I have problem with my scripts...
Look at them first:
Movements.xml
tiles/PremiumBridge.lua
tiles/EntranceBridges.lua
So, the problem is when I step on scripted tile, it's pushing me back and send text "The tile seems to be protected against unwanted intruders."
How to fix that?
On TFS 0.3.6 V8.2 all scripts worked good.
Look at them first:
Movements.xml
Code:
<!-- Tiles with Req -->
<movement type="StepIn" actionid="61000" script="tiles/PremiumBridge.lua"/>
<movement type="StepIn" actionid="61001" script="tiles/EntranceBridges.lua"/>
tiles/PremiumBridge.lua
Code:
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 61000 then
if isPlayer(cid) then
if isPremium(cid) == true then
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need premium account to pass this bridge.")
end
end
end
return true
end
tiles/EntranceBridges.lua
Code:
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 61001 then
if isPlayer(cid) then
if getPlayerLevel(cid) < 4 then
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 4 level to pass this bridge.")
end
end
end
return true
end
So, the problem is when I step on scripted tile, it's pushing me back and send text "The tile seems to be protected against unwanted intruders."
How to fix that?
On TFS 0.3.6 V8.2 all scripts worked good.
Last edited: