OldschoolTibia
Member
- Joined
- Sep 4, 2015
- Messages
- 22
- Reaction score
- 5
need lvl 2+ rook bridge
script
help
script
help
function onStepIn(cid, item, position)
local newposition = {x = position.x, y = position.y+1, z = position.z}
local Player = Actor.create(cid)
if Player:GetLevel() < 2 then
Player:Teleport(newposition)
Player:MagicEffect(newposition, 12)
end
return TRUE
end
<movevent event="StepIn" actionid="1200" script="rookbridge.lua" />
I think this is the one
rookbridge.lua
Code:function onStepIn(cid, item, position) local newposition = {x = position.x, y = position.y+1, z = position.z} local Player = Actor.create(cid) if Player:GetLevel() < 2 then Player:Teleport(newposition) Player:MagicEffect(newposition, 12) end return TRUE end
movements.xml
Code:<movevent event="StepIn" actionid="1200" script="rookbridge.lua" />
Also add action id: 1200 to the tile/tiles you gona step on
Can U help me to fix doublet quest? I have tried many scripts for it but nothing works. I have tried with actionid, uniqueid. You can press on the floor but you dont get no item and there comes no error. Post me a doublet script that should workHahaha, using my code
If nothing happens and you get no error it means the script isn't added correct.Can U help me to fix doublet quest? I have tried many scripts for it but nothing works. I have tried with actionid, uniqueid. You can press on the floor but you dont get no item and there comes no error. Post me a doublet script that should work
How should I add the double quest correctly?If nothing happens and you get no error it means the script isn't added correct.
Show how it's added in the map, the item you click use on, post screenshot of the properties.
Post the line you added in actions.xml, post the script and explain exactly what happens, so a white message with "You cannot use this object." is also something worth mentioning.
Yes we have done that. Still not working.Saved the map and restarted the server after you edited the uniqueID at the floor tile?
Did you add line to actions.xml?Yes we have done that. Still not working.
YesDid you add line to actions.xml?
Nothing saying in console. Im not sure if its not reading the tile correctly or something.. But what can be the issue?When loading the map, are you getting 'double uniqueID 1099' or 'UniqueID used 1099'... something like that?
Is it located in the rook folder? xD
Add print(1), on the line after the function.. Do you see the print in console, when you use the floorboard?
Are you editing the correct map? Maybe you accidentally loaded a back-up?