Thorn
Spriting since 2013
Hello guys, i have 2 vocations doors, one for knights and paladins, and the other for sorcerer and druid (and ofc the promotion versions)
this one of them:
this doesn't work, but it doens't give me any console error :/
can someone help me fix this door or provide me a new one? i have door vocations that work, but none thats useful for 2 vocations at the same time
this one of them:
Code:
-- Sorcerer Vocation Door by Vagox edited by Streamside (iam not scripter) --
function onUse(cid, item, frompos, item2, topos)
pvoc = getPlayerVocation(cid)
if item.aid == 5001 then
if pvoc == 3 or pvoc == 4 or pvoc == 7 or pvoc == 8 then
doPlayerSendTextMessage(cid, 22, "You can pass, you are a paladin or knight.")
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Please stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'You cant pass, you arent paladin or knight.')
end
return 1
else
return 0
end
end
this doesn't work, but it doens't give me any console error :/
can someone help me fix this door or provide me a new one? i have door vocations that work, but none thats useful for 2 vocations at the same time