Results 1 to 5 of 5

Thread: ue action

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

    ue action

    Well basically what i need is that my characters to ue when 5 or more monsters on screen within a 6 sqm and if player on screen to continue regular targeting. Thanks in advance for anyone that can answer.

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Bump, anyone please help?

  3. #3
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    Code:
    --[[ CONFIG START ]]--
    RULES = RULES or {
        {
            CREATURES = CREATURES or {
                    "Frost Dragon",
                    "Frost dragon hatchling"
                },
            SPELLS = SPELLS or {
                {
                    ATTACK = "exori vis",
                    ENABLED = true, 
                    HPPC = 0, 
                    MIN_MOB = 1, 
                    DIST = 3,
                    CONSIDER_PLAYERS = false,
                },
                {
                    ATTACK = "exori gran vis",
                    ENABLED = true, 
                    HPPC = 3, 
                    MIN_MOB = 1, 
                    DIST = 3,
                    CONSIDER_PLAYERS = false,
                },
                {
                    ATTACK = "thunderstorm rune",
                    ENABLED = true, 
                    HPPC = 10, 
                    MIN_MOB = 2, 
                    DIST = 5,
                    CONSIDER_PLAYERS = true,
                },
                {
                    ATTACK = "exevo gran mas vis",
                    ENABLED = true, 
                    HPPC = 0, 
                    MIN_MOB = 6, 
                    DIST = 4,
                    CONSIDER_PLAYERS = true,
                },
            },
        },
        { 
            CREATURES = CREATURES or {
                    "Giant Spider"
                },
            SPELLS = SPELLS or {
                {
                    ATTACK = "exori flam",
                    ENABLED = true, 
                    HPPC = 0, 
                    MIN_MOB = 0, 
                    DIST = 3,
                    CONSIDER_PLAYERS = false,
                },
            },
        },
    }
    --[[ CONFIG END ]]--
    
    SCRIPT = SCRIPT or {
        AUTHOR = "soder",
        VERSION = "1.0",
        NAME = "Spell/Rune shooter",
    }
    
    -- DO NOT TOUCH BELOW UNLESS YOU KNOW WHAT YOURE ACTUALLY DOING --
    AREA_RUNES = AREA_RUNES or {"great fireball rune","stoneshower rune","avalanche rune","thunderstorm rune"}
    
    if target.id > 0 then
        for i = #RULES, 1, -1 do
            for j = #RULES[i].SPELLS, 1, -1 do
                if (RULES[i].SPELLS[j].ENABLED) and (table.find(RULES[i].CREATURES,target.name)) and (target.isshootable) then
                    if (target.dist <= RULES[i].SPELLS[j].DIST) and (itemcount(RULES[i].SPELLS[j].ATTACK) > 0) and (table.find(AREA_RUNES,RULES[i].SPELLS[j].ATTACK)) and (target.hppc >= RULES[i].SPELLS[j].HPPC) and (maround(5, false, unpack(RULES[i].CREATURES)) >= RULES[i].SPELLS[j].MIN_MOB) and (not(RULES[i].SPELLS[j].CONSIDER_PLAYERS) or ((paround(10,true) == 0) and (lasttimeplayeronscreen >= 10000))) then 
                        while (Self.CoolDown(SPELL_GROUP_ATTACK) == 0) and (itemcount(RULES[i].SPELLS[j].ATTACK) > 0) and (shootarearune(RULES[i].SPELLS[j].ATTACK, RULES[i].SPELLS[j].MIN_MOB,unpack(RULES[i].CREATURES))) do
                            shootarearune(RULES[i].SPELLS[j].ATTACK, RULES[i].SPELLS[j].MIN_MOB,unpack(RULES[i].CREATURES)) System.Wait(150, 200)
                            updateworld()
                        end
                        break
                    elseif (target.dist <= RULES[i].SPELLS[j].DIST) and not (table.find(AREA_RUNES,RULES[i].SPELLS[j].ATTACK)) and (target.hppc >= RULES[i].SPELLS[j].HPPC) and (maround(5, false, unpack(RULES[i].CREATURES)) >= RULES[i].SPELLS[j].MIN_MOB) and (not(RULES[i].SPELLS[j].CONSIDER_PLAYERS) or ((paround(10,true) == 0) and (lasttimeplayeronscreen >= 10000))) and (cancast(RULES[i].SPELLS[j].ATTACK)) then 
                        cast(RULES[i].SPELLS[j].ATTACK)
                        System.Wait(Self.CoolDown(SPELL_GROUP_ATTACK))
                        break
                    end
                end
            end
        end
    end
    try this action, credits to soder
    u need only change ammount of monster etc
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    ok thanks for replying, i will give it a try

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Is not working for me idk but thanks anyways, does anyone has any other suggestion?
    SOlVED
    Last edited by tiomin; 04-19-2013 at 12:45 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
  •