Kubakos
Well-Known Member
- Joined
- Mar 3, 2010
- Messages
- 964
- Solutions
- 2
- Reaction score
- 56
Hello, I am using tfs 1.2 on tibia 10.99 and i have a problem with level doors.
The door is set for level 500 and if someone with that lvl stay on the door, an player with lowwer level than 500 can walk through the door.
I have this script to provide that, but its not working on all doors..
For exemple its working on level door for lvl 50:
14:08 You see a gate of expertise for level 50.
Item ID: 9181, Action ID: 1050.
And the same door but for lvl 500 its not working :
14:08 You see a gate of expertise for level 500.
Item ID: 9181, Action ID: 1500.
Does any1 has got an idea what can be the problem ?
The door is set for level 500 and if someone with that lvl stay on the door, an player with lowwer level than 500 can walk through the door.
I have this script to provide that, but its not working on all doors..
Code:
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if player == nil then
return false
end
if player:getLevel() < item.actionid - 1000 then
player:sendTextMessage(MESSAGE_INFO_DESCR, "Only the worthy may pass.")
player:teleportTo(fromPosition, true)
return false
end
return true
end
For exemple its working on level door for lvl 50:
14:08 You see a gate of expertise for level 50.
Item ID: 9181, Action ID: 1050.
And the same door but for lvl 500 its not working :
14:08 You see a gate of expertise for level 500.
Item ID: 9181, Action ID: 1500.
Does any1 has got an idea what can be the problem ?