Results 1 to 2 of 2

Thread: Action Sio

  1. #1
    iBot User lavoisier's Avatar
    Join Date
    Jun 2012
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    9
    Rep Power
    0

    Action Sio

    Alguem me arruma uma acction para dar sio em um player preciso disso para ir hunt com meu outro char =D
    VENDO EK 270 REFUGIA (DELETED 14/11)
    VENDO RP 254 MENERA - DELETED 18/10
    EK 257 ALDORA - DELETED - 15/10

    COMPRO CHARACTER EM AURERA.

    SOU FELIZ PQ TENHO VOCê (8)

  2. #2
    Normal User Slodki123's Avatar
    Join Date
    Mar 2013
    Location
    Poland-KRK
    Posts
    113
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    40
    Rep Power
    4
    Made By Sirmate

    -- [[ INIT START ]] --
    local CONFIG = {
    PLAYERS = {
    {NAME = "name1", HPPC = 80},
    {NAME = "name2", HPPC = 75},
    },
    }
    -- [[ 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
    Spell.GetByWordsOrName("heal friend"):CastSpell(CREATURE_TO_HEAL, CREATURE_TO_HEAL:Name())
    System.Wait(200)
    end
    Last edited by Slodki123; 04-28-2014 at 01:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •