Usar UH nos player da lista com X % de life
Página 1 de 1
Usar UH nos player da lista com X % de life
- Código:
-- [[ INIT START ]] --
local CONFIG = {
RUNE_NAME = "ultimate healing rune",
PLAYERS = {
{NAME = "NAME 1", HPPC = 40},
{NAME = "NAME 2", HPPC = 50},
},
}
-- [[ INIT END ]] --
local CREATURE_TO_HEAL, HPPC_TO_HEAL = nil, 101
for CREATURE in Creature.GetAll("ps") do
local PLAYER_FOUND = table.find(CONFIG.PLAYERS, CREATURE:Name(), "NAME")
if (CREATURE:isValid() and CREATURE:isAlive() and PLAYER_FOUND and CREATURE:HealthPercent() < CONFIG.PLAYERS[PLAYER_FOUND].HPPC and CREATURE:HealthPercent() < HPPC_TO_HEAL) then
CREATURE_TO_HEAL, HPPC_TO_HEAL = CREATURE, CREATURE:HealthPercent()
end
end
if (Creature.isInstance(CREATURE_TO_HEAL)) then
Self.UseItemOnCreature(CONFIG.RUNE_NAME, CREATURE_TO_HEAL:ID())
System.Wait(1000)
end
Sir. Felipe- Admin
- Mensagens : 193
Data de inscrição : 10/06/2013
Tópicos semelhantes
» Se tomar Paralyze, usar Utani gran hur, se a life estiver menor que 60% usar exura
» Sio nos players da Lista com Life menor que X%
» Atacar com exori san, se aparecer player usar exori con
» Auto SSA por Mana ou Life
» Equipar e Retira Life Ring com X Mana
» Sio nos players da Lista com Life menor que X%
» Atacar com exori san, se aparecer player usar exori con
» Auto SSA por Mana ou Life
» Equipar e Retira Life Ring com X Mana
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Sáb Nov 28, 2015 5:38 pm por mchamer
» [PEDIDO] Treino com slimes (knight)
Qua Jun 03, 2015 8:18 pm por Fish3r
» Tibia DICEBOT/ Xenobot / IBot / RedBot / WindBot / 10.78
Ter Jun 02, 2015 10:09 am por dawtom22
» Elite Knight - Sea Serpent + Soft Refiller
Sex Mar 13, 2015 8:46 am por Daniel Morais
» TibiaIBot 10.75 WAYPOINTS PACK 1-250!
Qua Mar 04, 2015 5:56 am por dawtom22
» Elite Knight - Port Hope Corym
Dom Mar 01, 2015 4:50 pm por aguinaldo02
» Tibia Xenobot / IBot / RedBot / WindBot / 10.75 CRACKED!
Dom Mar 01, 2015 3:27 pm por dawtom22
» DUVIDA - TARGETTING
Dom Mar 01, 2015 2:08 pm por andreeysz
» TibiaIBot 10.75 WAYPOINTS PACK 1-250!
Seg Fev 23, 2015 8:39 am por dawtom22