Thorn
Spriting since 2013
Hello guys, i have these vocation doors wich aparently dont work for players, but i have seen with my own eyes that for some players they work, these are 2 vocation doors, 1 for paladin and mages and other for knights and paladins.
If possible i would like this to work with teleporting the player to the other side of the door, check the scripts!
knight paladin
sorcerer, druid and paladins
plz help :C
If possible i would like this to work with teleporting the player to the other side of the door, check the scripts!
knight paladin
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if not table.contains({3, 4, 7, 8}, player:getVocation():getId()) then
player:teleportTo(fromPosition, true)
return true
end
player:teleportTo(Position(x, y, z))
return true
end
sorcerer, druid and paladins
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if not table.contains({1, 2, 5, 6, 3, 7}, player:getVocation():getId()) then
player:teleportTo(fromPosition, true)
return true
end
player:teleportTo(Position(x, y, z))
return true
end
plz help :C