Ir para conteúdo

Featured Replies

Postado
local config = {


        healHP = 2000,
healMP = 2000,
        healPlayers = "yes",
        healMonsters = "no",
}


local healthArea = {


        fromX = 603,
        fromY = 177,
        fromZ = 7,
        toX = 605,
        toY = 179,
        toZ = 7,


}


function onThink(cid, interval, lastExecution)
        for x = healthArea.fromX, healthArea.toX do
                for y = healthArea.fromY, healthArea.toY do
                        for z = healthArea.fromZ, healthArea.toZ do
                                local pos = {x=x, y=y, z=z, stackpos = 253}
                                local thing = getThingfromPos(pos)
                                if thing.itemid > 0 then
                                        if(isPlayer(thing.uid) == TRUE and string.lower(config.healPlayers) == "yes") then
                                                doCreatureAddHealth(thing.uid, config.healHP)
                                doCreatureAddMana(thing.uid, config.healMP)
                                             if string.lower(getConfigValue("showHealingDamage")) == "no" then
                                             end
                                        elseif(isMonster(thing.uid) == TRUE and string.lower(config.healMonsters) == "yes") then
                                                doCreatureAddHealth(thing.uid, config.healHP)
                                                if string.lower(getConfigValue("showHealingDamageForMonsters")) == "no" then
                                               
                                                end
                                        end
                                end
                        end
                end
        end
 return true
end 
  • Respostas 5
  • Visualizações 345
  • Created
  • Última resposta

Top Posters In This Topic

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