Results 1 to 2 of 2

Thread: Auto sio

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Auto sio

    Is there any way to make auto sio? i mean like a whole guild, do i need to put all the names on the list and make it one by one or how does it work?

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    By sirmate, requires his library.
    -- [[ INIT START ]] --
    local CONFIG = {
    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
    Spell.GetByWordsOrName("heal friend"):CastSpell(CREATURE_TO_HEAL, CREATURE_TO_HEAL:Name())
    System.Wait(200)
    end

Posting Permissions

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