Hello. I have a problem with the levelbridge.lua script. the script doesn't work at all. do i need to configure any more scripts for this?
tfs 1.5 12.81
tfs 1.5 12.81
Lua:
local failPosition = Position(31704, 32279, 6)
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
if player:getLevel() >= 2 then
return true
end
player:teleportTo(failPosition)
failPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need to be at least Level 2 in order to pass.')
return true
end