Results 1 to 7 of 7

Thread: GROUNDSHAKER ,exori mas

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    15
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5

    GROUNDSHAKER ,exori mas

    fixed if anyone want this action priv msg me so i can give you :]


    local Mobs = 0
    for CREATURE in Creature.GetAll("ms") do
    if (CREATURE:isValid() and ((CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Young Sea Serpent") or (CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Medusa") or (CREATURE:HealthPercent() <= 6 and CREATURE:Name() == "Serpent Spawn")) and table.find(GroundSheaker, CREATURE:Name()) and Spell.isOnSpellArea(CREATURE, "3x3", DIRECTION_ANY, nil, nil, false) and CREATUREistanceFromSelf(CREATURE:PositionX(), CREATURE:PositionY(), posz) > 1) then
    Mobs = Mobs + 1
    end
    end

    local isAdjacent = 0
    for CREATURE in Creature.GetAll("ms") do
    if table.find(MonstersToConsider, CREATURE:Name()) and CREATURE:isAdjacent() then
    isAdjacent = isAdjacent + 1
    end
    end

    if Self.CoolDown(SPELL_GROUP_ATTACK) <= 1 then
    if Mobs > 0 and cancast("exori mas") and target.dist <= 3 then
    cast("exori mas")
    wait(100,200)
    elseif ((standtime >= 2200 or target.id ~= 0) and targeting) or standtime > 15000 then
    if isAdjacent <= 1 and standtime > 1000 and ((target.name == "Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Young Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Hydra" and target.hppc <= 25 and target.hppc > 7) or (target.name == "Behemoth" and target.hppc <= 17 and target.hppc > 5)) and cancast("exori ico") and target.dist <= 1 then
    cast("exori ico")
    wait(500)
    updateworld()
    end
    Last edited by Kauczukowy; 01-01-2015 at 03:06 PM.

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Try:

    Lua Code:
     
    local Mobs = 0
    for CREATURE in Creature.GetAll("ms") do
        if (CREATURE:isValid() and ((CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Young Sea Serpent") or (CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Medusa") or (CREATURE:HealthPercent() <= 6 and CREATURE:Name() == "Serpent Spawn")) and table.find(GroundSheaker, CREATURE:Name()) and Spell.isOnSpellArea(CREATURE, "3x3", DIRECTION_ANY, nil, nil, false) and CREATUREistanceFromSelf(CREATURE:PositionX(), CREATURE:PositionY(), posz) > 1) then
            Mobs = Mobs + 1
        end
    end
     
    local isAdjacent = 0
    for CREATURE in Creature.GetAll("ms") do
        if table.find(MonstersToConsider, CREATURE:Name()) and CREATURE:isAdjacent() then
            isAdjacent = isAdjacent + 1
        end
    end
     
    if Self.CoolDown(SPELL_GROUP_ATTACK) <= 1 then
        if Mobs > 0 and cancast("exori mas") and target.dist <= 3 and paround(5, false) == 0 then
            cast("exori mas")
            wait(100,200)
        elseif ((standtime >= 2200 or target.id ~= 0) and targeting) or standtime > 15000 then
            if isAdjacent <= 1 and standtime > 1000 and ((target.name == "Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Young Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Hydra" and target.hppc <= 25 and target.hppc > 7) or (target.name == "Behemoth" and target.hppc <= 17 and target.hppc > 5)) and cancast("exori ico") and target.dist <= 1 then
                cast("exori ico")
                wait(500)
                updateworld()
            end
        end
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    15
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5
    well maybe i ll write whole action becouse only part with exori mas dont have player security

    PHP Code:
    local MonstersToConsider = {"Young Sea Serpent""Sea Serpent"}
    local GroundSheaker = {"Young Sea Serpent"}

    local function Min()
    local HIGHEST_AMOUNTBEST_DIRECTION 0Self.LookDirection()
                               
        for 
    DIRECTIONCREATURES_AMOUNT in pairs({[DIRECTION_NORTH] = 0, [DIRECTION_EAST] = 0, [DIRECTION_SOUTH] = 0, [DIRECTION_WEST] = 0}) do
            
    CREATURES_AMOUNT Self.MonstersAroundSpell("FRONT"DIRECTIONunpack(MonstersToConsider))
                           
            if (
    CREATURES_AMOUNT HIGHEST_AMOUNT or (CREATURES_AMOUNT >= HIGHEST_AMOUNT and DIRECTION == Self.LookDirection())) then
                HIGHEST_AMOUNT
    BEST_DIRECTION CREATURES_AMOUNTDIRECTION
            end
        end         
        
    if (HIGHEST_AMOUNT >= 3) and cancast("exori min") and maround(1unpack(MonstersToConsider)) >= Exori_min_count then
            
    while (Self.LookDirection() ~= BEST_DIRECTION) do
                
    Self.Turn(BEST_DIRECTION)
                
    updateworld()
            
    end
            cast
    ("exori min")
        elseif (
    HIGHEST_AMOUNT == 2) and cancast("exori min") and maround(1unpack(MonstersToConsider)) >= Exori_min_count then
            
    while (Self.LookDirection() ~= BEST_DIRECTION) do
                
    Self.Turn(BEST_DIRECTION)
                
    updateworld()
            
    end
            cast
    ('exori min')
        
    end
    end

    function TILESHOOTABLE()
        for 
    POSXPOSYPOSZ in Tile.ScreenArea() do
            if 
    Tile.GetByPosition(target.POSXtarget.POSYtarget.POSZ):isShootable() then
                
    return true
            end
        end
        
    return false
    end

    local Mobs 
    0
    for CREATURE in Creature.GetAll("ms") do
        if (
    CREATURE:isValid() and ((CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Young Sea Serpent") or (CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Medusa") or (CREATURE:HealthPercent() <= and CREATURE:Name() == "Serpent Spawn")) and table.find(GroundSheakerCREATURE:Name()) and Spell.isOnSpellArea(CREATURE"3x3"DIRECTION_ANYnilnilfalse) and CREATURE:DistanceFromSelf(CREATURE:PositionX(), CREATURE:PositionY(), posz) > 1then
            Mobs 
    Mobs 1
        end
    end

    local isAdjacent 
    0
    for CREATURE in Creature.GetAll("ms") do
        if 
    table.find(MonstersToConsiderCREATURE:Name()) and CREATURE:isAdjacent() then
            isAdjacent 
    isAdjacent 1
        end
    end

    if Self.CoolDown(SPELL_GROUP_ATTACK) <= 1 then
        
    if Mobs and cancast("exori mas") and target.dist <= 3 then
            cast
    ("exori mas")
            
    wait(100,200)
        elseif ((
    standtime >= 2200 or target.id ~= 0) and targeting) or standtime 15000 then
            
    if isAdjacent <= and standtime 1000 and ((target.name == "Sea Serpent" and target.hppc <= 50 and target.hppc 25) or (target.name == "Young Sea Serpent" and target.hppc <= 50 and target.hppc 25) or (target.name == "Hydra" and target.hppc <= 25 and target.hppc 7) or (target.name == "Behemoth" and target.hppc <= 17 and target.hppc 5)) and cancast("exori ico") and target.dist <= 1 then
                cast
    ("exori ico")
                
    wait(500)
                
    updateworld()
            
    end
            
    if standtime 100 and isAdjacent >= Exori_gran_count and cancast("exori gran") and ((paround(10true) == 0) or not PvP_Server) and Exori_gran and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
                cast
    ("exori gran")
                
    wait(50,100)
                
    updateworld()
            
    end
            
    if standtime 100 and isAdjacent >= Exori_count and cancast("exori") and ((paround(10true) == 0) or not PvP_Server) and Exori and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
                cast
    ("exori")
                
    wait(50,100)
                
    updateworld()
            
    end
            
    if standtime 100 and isAdjacent >= Exori_min_count and cancast("exori min") and ((paround(10true) == ) or not PvP_Server) and Exori_min and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
                Min
    ()
                
    wait(50,100)
                
    updateworld()
            
    end
            
    if isAdjacent >= Exori_ico_count and cancast("exori ico") and target.id ~= and target.dist <= and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast
    ("exori ico")
                
    wait(50,100)
            
    end
            
    if (maround(4unpack(MonstersToConsider)) >= Exori_hur_count) and cancast("exori hur") and target.id ~= and TILESHOOTABLE() and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
                cast
    ("exori hur")
                
    wait(50,100)
            
    end
        end
    end 

    i hope you can help me :P

  4. #4
    iBot User
    Join Date
    May 2012
    Posts
    15
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5
    anyone? its important for me :P

  5. #5
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    389 Post(s)
    Reputation
    366
    Rep Power
    10
    Quote Originally Posted by Kauczukowy View Post
    anyone? its important for me :P
    Think this should work

    Lua Code:
     
    local MonstersToConsider = {"Young Sea Serpent", "Sea Serpent"} 
    local GroundSheaker = {"Young Sea Serpent"} 
     
    local function Min() 
    local HIGHEST_AMOUNT, BEST_DIRECTION = 0, Self.LookDirection() 
     
        for DIRECTION, CREATURES_AMOUNT in pairs({[DIRECTION_NORTH] = 0, [DIRECTION_EAST] = 0, [DIRECTION_SOUTH] = 0, [DIRECTION_WEST] = 0}) do 
            CREATURES_AMOUNT = Self.MonstersAroundSpell("FRONT", DIRECTION, unpack(MonstersToConsider)) 
     
            if (CREATURES_AMOUNT > HIGHEST_AMOUNT or (CREATURES_AMOUNT >= HIGHEST_AMOUNT and DIRECTION == Self.LookDirection())) then 
                HIGHEST_AMOUNT, BEST_DIRECTION = CREATURES_AMOUNT, DIRECTION 
            end 
        end          
        if (HIGHEST_AMOUNT >= 3) and cancast("exori min") and maround(1, unpack(MonstersToConsider)) >= Exori_min_count then 
            while (Self.LookDirection() ~= BEST_DIRECTION) do 
                Self.Turn(BEST_DIRECTION) 
                updateworld() 
            end 
            cast("exori min") 
        elseif (HIGHEST_AMOUNT == 2) and cancast("exori min") and maround(1, unpack(MonstersToConsider)) >= Exori_min_count then 
            while (Self.LookDirection() ~= BEST_DIRECTION) do 
                Self.Turn(BEST_DIRECTION) 
                updateworld() 
            end 
            cast('exori min') 
        end 
    end 
     
    function TILESHOOTABLE() 
        for POSX, POSY, POSZ in Tile.ScreenArea() do 
            if Tile.GetByPosition(target.POSX, target.POSY, target.POSZ):isShootable() then 
                return true 
            end 
        end 
        return false 
    end 
     
    local Mobs = 0 
    for CREATURE in Creature.GetAll("ms") do 
        if (CREATURE:isValid() and ((CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Young Sea Serpent") or (CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Medusa") or (CREATURE:HealthPercent() <= 6 and CREATURE:Name() == "Serpent Spawn")) and table.find(GroundSheaker, CREATURE:Name()) and Spell.isOnSpellArea(CREATURE, "3x3", DIRECTION_ANY, nil, nil, false) and CREATURE<img src="images/smilies/biggrin.png" border="0" alt="" title="Big Grin" class="inlineimg" />istanceFromSelf(CREATURE:PositionX(), CREATURE:PositionY(), posz) > 1) then 
            Mobs = Mobs + 1 
        end 
    end 
     
    local isAdjacent = 0 
    for CREATURE in Creature.GetAll("ms") do 
        if table.find(MonstersToConsider, CREATURE:Name()) and CREATURE:isAdjacent() then 
            isAdjacent = isAdjacent + 1 
        end 
    end 
     
    if Self.CoolDown(SPELL_GROUP_ATTACK) <= 1 then 
        if Mobs > 0 and cancast("exori mas") and (paround(10, true) == 0) or not PvP_Server) and target.dist <= 3 then 
            cast("exori mas") 
            wait(100,200) 
        elseif ((standtime >= 2200 or target.id ~= 0) and targeting) or standtime > 15000 then 
            if isAdjacent <= 1 and standtime > 1000 and ((target.name == "Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Young Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Hydra" and target.hppc <= 25 and target.hppc > 7) or (target.name == "Behemoth" and target.hppc <= 17 and target.hppc > 5)) and cancast("exori ico") and target.dist <= 1 then 
                cast("exori ico") 
                wait(500) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_gran_count and cancast("exori gran") and ((paround(10, true) == 0) or not PvP_Server) and Exori_gran and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori gran") 
                wait(50,100) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_count and cancast("exori") and ((paround(10, true) == 0) or not PvP_Server) and Exori and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori") 
                wait(50,100) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_min_count and cancast("exori min") and ((paround(10, true) == 0 ) or not PvP_Server) and Exori_min and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                Min() 
                wait(50,100) 
                updateworld() 
            end 
            if isAdjacent >= Exori_ico_count and cancast("exori ico") and target.id ~= 0 and target.dist <= 1 and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then  
                cast("exori ico") 
                wait(50,100) 
            end 
            if (maround(4, unpack(MonstersToConsider)) >= Exori_hur_count) and cancast("exori hur") and target.id ~= 0 and TILESHOOTABLE() and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori hur") 
                wait(50,100) 
            end 
        end 
    end

  6. #6
    iBot User
    Join Date
    May 2012
    Posts
    15
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Drakke View Post
    Think this should work

    Lua Code:
     
    local MonstersToConsider = {"Young Sea Serpent", "Sea Serpent"} 
    local GroundSheaker = {"Young Sea Serpent"} 
     
    local function Min() 
    local HIGHEST_AMOUNT, BEST_DIRECTION = 0, Self.LookDirection() 
     
        for DIRECTION, CREATURES_AMOUNT in pairs({[DIRECTION_NORTH] = 0, [DIRECTION_EAST] = 0, [DIRECTION_SOUTH] = 0, [DIRECTION_WEST] = 0}) do 
            CREATURES_AMOUNT = Self.MonstersAroundSpell("FRONT", DIRECTION, unpack(MonstersToConsider)) 
     
            if (CREATURES_AMOUNT > HIGHEST_AMOUNT or (CREATURES_AMOUNT >= HIGHEST_AMOUNT and DIRECTION == Self.LookDirection())) then 
                HIGHEST_AMOUNT, BEST_DIRECTION = CREATURES_AMOUNT, DIRECTION 
            end 
        end          
        if (HIGHEST_AMOUNT >= 3) and cancast("exori min") and maround(1, unpack(MonstersToConsider)) >= Exori_min_count then 
            while (Self.LookDirection() ~= BEST_DIRECTION) do 
                Self.Turn(BEST_DIRECTION) 
                updateworld() 
            end 
            cast("exori min") 
        elseif (HIGHEST_AMOUNT == 2) and cancast("exori min") and maround(1, unpack(MonstersToConsider)) >= Exori_min_count then 
            while (Self.LookDirection() ~= BEST_DIRECTION) do 
                Self.Turn(BEST_DIRECTION) 
                updateworld() 
            end 
            cast('exori min') 
        end 
    end 
     
    function TILESHOOTABLE() 
        for POSX, POSY, POSZ in Tile.ScreenArea() do 
            if Tile.GetByPosition(target.POSX, target.POSY, target.POSZ):isShootable() then 
                return true 
            end 
        end 
        return false 
    end 
     
    local Mobs = 0 
    for CREATURE in Creature.GetAll("ms") do 
        if (CREATURE:isValid() and ((CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Young Sea Serpent") or (CREATURE:HealthPercent() <= 25 and CREATURE:Name() == "Medusa") or (CREATURE:HealthPercent() <= 6 and CREATURE:Name() == "Serpent Spawn")) and table.find(GroundSheaker, CREATURE:Name()) and Spell.isOnSpellArea(CREATURE, "3x3", DIRECTION_ANY, nil, nil, false) and CREATURE<img src="images/smilies/biggrin.png" border="0" alt="" title="Big Grin" class="inlineimg" />istanceFromSelf(CREATURE:PositionX(), CREATURE:PositionY(), posz) > 1) then 
            Mobs = Mobs + 1 
        end 
    end 
     
    local isAdjacent = 0 
    for CREATURE in Creature.GetAll("ms") do 
        if table.find(MonstersToConsider, CREATURE:Name()) and CREATURE:isAdjacent() then 
            isAdjacent = isAdjacent + 1 
        end 
    end 
     
    if Self.CoolDown(SPELL_GROUP_ATTACK) <= 1 then 
        if Mobs > 0 and cancast("exori mas") and (paround(10, true) == 0) or not PvP_Server) and target.dist <= 3 then 
            cast("exori mas") 
            wait(100,200) 
        elseif ((standtime >= 2200 or target.id ~= 0) and targeting) or standtime > 15000 then 
            if isAdjacent <= 1 and standtime > 1000 and ((target.name == "Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Young Sea Serpent" and target.hppc <= 50 and target.hppc > 25) or (target.name == "Hydra" and target.hppc <= 25 and target.hppc > 7) or (target.name == "Behemoth" and target.hppc <= 17 and target.hppc > 5)) and cancast("exori ico") and target.dist <= 1 then 
                cast("exori ico") 
                wait(500) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_gran_count and cancast("exori gran") and ((paround(10, true) == 0) or not PvP_Server) and Exori_gran and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori gran") 
                wait(50,100) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_count and cancast("exori") and ((paround(10, true) == 0) or not PvP_Server) and Exori and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori") 
                wait(50,100) 
                updateworld() 
            end 
            if standtime > 100 and isAdjacent >= Exori_min_count and cancast("exori min") and ((paround(10, true) == 0 ) or not PvP_Server) and Exori_min and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                Min() 
                wait(50,100) 
                updateworld() 
            end 
            if isAdjacent >= Exori_ico_count and cancast("exori ico") and target.id ~= 0 and target.dist <= 1 and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then  
                cast("exori ico") 
                wait(50,100) 
            end 
            if (maround(4, unpack(MonstersToConsider)) >= Exori_hur_count) and cancast("exori hur") and target.id ~= 0 and TILESHOOTABLE() and Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then 
                cast("exori hur") 
                wait(50,100) 
            end 
        end 
    end


    it doesnt work and whats that ? and CREATURE<img src="images/smilies/biggrin.png" border="0" alt="" title="Big Grin" class="inlineimg" />istanceFromSelf

  7. #7
    iBot User
    Join Date
    May 2012
    Posts
    15
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5
    oh well i dont need wholy action i just need one action that will shot exori mas on 25 % monster with safemode

Posting Permissions

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