Ir para conteúdo

Featured Replies

  • Respostas 11
  • Visualizações 589
  • Created
  • Última resposta

Top Posters In This Topic

Posted Images

Postado

Copie e cole um arquivo LUA qualquer dentro da pasta data/movements/scripts/ e renomeie ele para tilemana.

E, dentro deste arquivo cole:

 -- < Script by Frenesy > --
function onStepIn(cid, item, position, fromPosition)
-- Nao sei quantas vocations tem em seu OT. Configurei as principais abaixo.--
local v = {
Knight = {lookType = 268, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3},
Sorcerer = {lookType = 130, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3},
Druid = {lookType = 144, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3},
Paladin = {lookType = 129, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3}
}


if isPlayer(cid) then
if getPlayerVocation(cid) == 1 then -- Knight
doSetCreatureOutfit(cid, v.Knight, -1)
addEvent(AddHp, 2000, cid)
elseif getPlayerVocation(cid) == 2 then -- Sorcerer
doSetCreatureOutfit(cid, v.Sorcerer, -1)
addEvent(AddHp, 2000, cid)
elseif getPlayerVocation(cid) == 3 then -- Druid
doSetCreatureOutfit(cid, v.Druid, -1)
addEvent(AddHp, 2000, cid)
elseif getPlayerVocation(cid) == 4 then -- Paladin
doSetCreatureOutfit(cid, v.Paladin, -1)
addEvent(AddHp, 2000, cid)
end
end
return TRUE
end


function onStepOut(cid, item, position, fromPosition)
doRemoveCondition(cid, CONDITION_OUTFIT)
return true
end


function AddHp(cid)


local pos = {x=500, y=501, z=5} -- Posição do Tile
local player = getTopCreature(pos).uid


if isPlayer(player) then
if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) < 50 then
addEvent(doCreatureAddMana, 500, cid, 500)
doSendMagicEffect(getPlayerPosition(cid), 12)
addEvent(AddHp, 2000, cid)
elseif getPlayerLevel(cid) >= 51 and getPlayerLevel(cid) < 100 then
addEvent(doCreatureAddMana, 500, cid, 1000)
doSendMagicEffect(getPlayerPosition(cid), 12)
addEvent(AddHp, 2000, cid)
elseif getPlayerLevel(cid) >= 101 then
addEvent(doCreatureAddMana, 500, cid, 1500)
doSendMagicEffect(getPlayerPosition(cid), 12)
addEvent(AddHp, 2000, cid)
end
end
return true
end


 

                                                                     Ajudei? De nada \o/                                            Att Rusherzin

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo