vá em data/actions/scripts, cria um arquivo com o nome de portas depois cola isso :
function onUse(cid, item, frompos, item2, topos) local Vocid = 8 -- Id da vocação local LEVEL = 10000 -- LEVEL do player if item.uid == 22554 then status1 = getPlayerVocation(cid) if status1 == Vocid and getPlayerLevel(cid) >= LEVEL then 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 doPlayerSendCancel(cid,'Stand in front of the door.') return 1 end doTeleportThing(cid,pos) doSendMagicEffect(topos,12) else doPlayerSendCancel(cid,'You are not a knight or level 10000.') end return 1 else return 0 end end
depois em actionsxml se coloka :
<action uniqueid="22554" script="portas" />
malz ae spoiler saiu errado ;S
eh isso akeee
function onUse(cid, item, frompos, item2, topos)
local Vocid = 8 -- Id da vocação
local LEVEL = 10000 -- LEVEL do player
if item.uid == 22554 then
status1 = getPlayerVocation(cid)
if status1 == Vocid and getPlayerLevel(cid) >= LEVEL then
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
doPlayerSendCancel(cid,'Stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendCancel(cid,'You are not a knight or level 10000.')
end
return 1
else
return 0
end
end






info
Grupo: Campones
Registrado: 17/04/11
Posts: 10
Reputação: -1
eu quero uma script que tipo 4 portas 1 de cada clase uma para Knight,paly,sorc,druid
cada porta só uma clase entrasse 1 so para Knight outra para paly e assim em diante
ii e isto ae se alguen pode me ajudar
valendo +rep