Creaturescripts (registre no login.lua e adicione a tag de kill no .xml):
function onKill(cid, target)
if isPlayer(cid) and isCreature(target) then
if getCreatureName(target) == "Ferumbras" then
setPlayerStorageValue(cid, 666, 1)
doPlayerSendTextMessage(cid, 22, "Voce liberou o acesso, jogador!")
doSendMagicEffect(getPlayerPosition(cid), 6)
end
end
return true
end
Actions (crie uma tag de actionid no .xml):
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 666) == 1 then
if getPlayerPosition(cid).x < getThingPosition(item.uid).x then
doTeleportThing(cid, {x = getThingPosition(item.uid).x + 1, y = getThingPosition(item.uid).y, z = getThingPosition(item.uid).z})
doSendMagicEffect(getPlayerPosition(cid), 12)
elseif getPlayerPosition(cid).x > getThingPosition(item.uid).x then
doTeleportThing(cid, {x = getThingPosition(item.uid).x - 1, y = getThingPosition(item.uid).y, z = getThingPosition(item.uid).z})
doSendMagicEffect(getPlayerPosition(cid), 12)
end
end
return true
end






info
Grupo: Campones
Registrado: 23/12/08
Posts: 41
Reputação: +4
Gênero: Masculino
Char no Tibia: Aura mage naruto
Action da porta
Editado Abril 13 por gusinhi