Results 1 to 9 of 9

Thread: Use 'Rage of the skies' when 4 or more water elementals are in range ?

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5

    Use 'Rage of the skies' when 4 or more water elementals are in range ?

    Is it possible to get an action that does 'Rage of the skies' when 4 or more water elementals are in range ?

    I also need it to not collide with this macro;



    local SPELLS = {


    SPELL1 = {cast = "exori gran vis", mp = 60, hppc = 40},
    SPELL2 = {cast = "exori vis", mp = 20, hppc = 0},

    }


    local CREATURES = {"Water Elemental", "Quara Mantassin Scout"}



    for i = 1, #CREATURES do
    if UseGranVis then
    if (cancast(SPELLS.SPELL1.cast)) and (mp >= SPELLS.SPELL1.mp) then
    if (target.name == CREATURES[i]) and (target.dist <= 3) and (target.hppc >= SPELLS.SPELL1.hppc) then
    cast(SPELLS.SPELL1.cast)
    wait(300,600)
    end
    else
    if (cancast(SPELLS.SPELL2.cast)) and (mp >= SPELLS.SPELL2.mp) then
    if (target.name == CREATURES[i]) and (target.dist <= 3) and (target.hppc >= SPELLS.SPELL2.hppc) then
    cast(SPELLS.SPELL2.cast)
    wait(300,600)
    end
    end
    end
    else
    if (cancast(SPELLS.SPELL2.cast)) and (mp >= SPELLS.SPELL2.mp) then
    if (target.name == CREATURES[i]) and (target.dist <= 3) and (target.hppc >= SPELLS.SPELL2.hppc) then
    cast(SPELLS.SPELL2.cast)
    wait(300,600)
    end
    end
    end
    end
    Last edited by Xudam; 12-24-2013 at 07:59 AM.

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Lua Code:
    local MassSpell = "exevo gran mas vis"
    local MiddleSpell = "exori gran vis"
    local LovSpell = "exori vis"
    local Monsters = {"Water Elemental", "Quara Mantassin Scout"}
    local Monsters_To_MassSpell = 4
     
    if maround(4, table.unpack(Monsters)) >= Monsters_To_MassSpell and cancast(MassSpell) then cast(MassSpell)
    elseif target.id > 0 and target.isshootable and target.dist <= 3 and target.hppc >= 40 and cancast(MiddleSpell) then cast(MiddleSpell)
    elseif target.id > 0 and target.isshootable and target.dist <= 3 and cancast(LovSpell) then cast(LovSpell)
    end


    Also delete that "macro" with exories, here is all

    check if it works because didn't tested it
    Last edited by RafiXWPT; 12-24-2013 at 08:25 AM.

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Can i just delete

    local MiddleSpell = "exori gran vis" ?

    Im not 80 yet so i cant use that spell.


    Also,

    local LovSpell = "exori vis"

    I dont know nothing about scripting but is it suppose to say 'lov' and now 'low' ?
    I assume its just a spelling error but since i dont understand scripting 'lov' may mean something els ^^


    Thanks for the action, ill test it as soon as i get an answer for these questions by someone =)


    EDIT: Tested it but it didnt work!
    Last edited by Xudam; 12-25-2013 at 08:11 AM.

  4. #4
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Still need a macro, the one you made didnt shoot any exoris atall

  5. #5
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    no mater if there is LovSpell or LowSpell, its just name of local variable what contain spell name "exori vis"

    tested and:
    Lua Code:
    local MassSpell = "exevo gran mas vis"
    local MiddleSpell = "exori gran vis"
    local LovSpell = "exori vis"
    local Monsters = {"Water Elemental", "Quara Mantassin Scout"}
    local Monsters_To_MassSpell = 4
     
    if maround(4, unpack(Monsters)) >= Monsters_To_MassSpell and cancast(MassSpell) then cast(MassSpell)
    elseif target.id > 0 and target.isshootable and target.dist <= 3 and target.hppc >= 40 and cancast(MiddleSpell) then cast(MiddleSpell)
    elseif target.id > 0 and target.isshootable and target.dist <= 3 and cancast(LovSpell) then cast(LovSpell)
    end


    Work here, there was error in "table.unpack()" there should be just "unpack()"
    Also don't worry about your level, function cancast() will check if you can use that spell or no so if you use that action everything will be ok

  6. #6
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Cheers mate, appreciate it!

    Rep+
    Last edited by Xudam; 12-26-2013 at 11:59 AM.

  7. #7
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Btw does it do UE when they are in range or just when they are on the screen ?

    And im not so sure about that 'Cancast', it just tried to do exori gran vis even tho i dont have the spell yet.
    I deleted those 2 lines, but what if i UE them and they dont die, will it try to UE again then or will it properly start using Vis strikes to finish them off ?
    Last edited by Xudam; 12-26-2013 at 02:11 PM.

  8. #8
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Quote Originally Posted by Xudam View Post
    Btw does it do UE when they are in range or just when they are on the screen ?

    And im not so sure about that 'Cancast', it just tried to do exori gran vis even tho i dont have the spell yet.
    I deleted those 2 lines, but what if i UE them and they dont die, will it try to UE again then or will it properly start using Vis strikes to finish them off ?
    It will use UE when monsters are 4 sqm from your character, also when you use UE and monsters won't die bot won't try to use UE again so don't worry, about that exori gran vis, strange but delete that line and add it when ull have that spell

  9. #9
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Works like a charm, used it for 20h now ;D

Posting Permissions

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