Hello!
I need script which open the door only when get X vocation and X lvl.
I have that
But it dont work with action id of the door (ex. action 1200 - 200lvl).
Can anyone help me with that ? I would be very pleased
I need script which open the door only when get X vocation and X lvl.
I have that
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 10093 then
if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
doPlayerSendTextMessage(cid, 22, "You can pass, you are a Druid.")
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 can\'t pass, you aren\'t a Druid.')
end
return 1
else
return 0
end
end
Can anyone help me with that ? I would be very pleased