Results 1 to 4 of 4

Thread: Exori Action not working? please help

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

    Exori Action not working? please help

    I'm coming back to tibia after about 6 months of retirement. I wanted to use one of my old scripts, which still works well, except for this exori Action.
    No spells are being cast at all and i can't figure out why! :/ it worked perfectly last time i used it. Has there been any changes within iBot since iv been away that might cause it not to work?

    i'd appreciate any help with this it's frustrating me

    Code:
    local Exori_min = true
    local Exori_min_count = 2
    local Exori_gran_count = 2
    local Exori_count = 2
    local Exori = true
    local Exori_gran = true
    local Exori_ico_count = 1
    local Exori_hur_count = 1
    local MonstersToConsider = {"Worker Golem"}
    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 >= Exori_min_count) then
        while (Self.LookDirection() ~= BEST_DIRECTION) do
            Self.Turn(BEST_DIRECTION)
        end
                       
        if cancast('exori min') and Self.LookDirection() == BEST_DIRECTION then
            cast('exori min')
        end
    end
    end
    
    
    if Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
        if standtime >= 2100 then
            while maround(1, unpack(MonstersToConsider)) >= Exori_gran_count and cancast('exori gran') and ((paround(10, true) == 0) or not PvP_Server) and Exori_gran do
                cast('exori gran')
                updateworld()
                break
            end
            while maround(1, unpack(MonstersToConsider)) >= Exori_count and cancast('exori') and ((paround(10, true) == 0) or not PvP_Server) and Exori do
                cast('exori')
                updateworld()
                break
            end
            while maround(1, unpack(MonstersToConsider)) >= Exori_min_count and cancast('exori min') and ((paround(10, true) == 0 ) or not PvP_Server) and Exori_min do
                Min()
                updateworld()
                break
            end
        end
        if (maround(1, unpack(MonstersToConsider)) >= Exori_ico_count)  and cancast('exori ico') and target.id ~= 0 then 
            cast('exori ico')
        end
        if ((maround(5, unpack(MonstersToConsider)) >= Exori_hur_count)) and cancast('exori hur') and target.id ~= 0 then
            cast('exori hur')
        end
    end
    Last edited by Eli; 01-03-2014 at 10:09 PM.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Are you using sirmates library?

    Check your debug log for errors.

    looks like an overly complicated script anyway. If al you need is an Exori/Exori Gran action I'd suggest finding another one here: http://www.tibiaibot.com/forum/showt...-HUDS-AND-MORE

  3. #3
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by Cheesy Nipples View Post
    I'm coming back to tibia after about 6 months of retirement. I wanted to use one of my old scripts, which still works well, except for this exori Action.
    No spells are being cast at all and i can't figure out why! :/ it worked perfectly last time i used it. Has there been any changes within iBot since iv been away that might cause it not to work?

    i'd appreciate any help with this it's frustrating me

    Code:
    local Exori_min = true
    local Exori_min_count = 2
    local Exori_gran_count = 2
    local Exori_count = 2
    local Exori = true
    local Exori_gran = true
    local Exori_ico_count = 1
    local Exori_hur_count = 1
    local MonstersToConsider = {"Worker Golem"}
    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 >= Exori_min_count) then
        while (Self.LookDirection() ~= BEST_DIRECTION) do
            Self.Turn(BEST_DIRECTION)
        end
                       
        if cancast('exori min') and Self.LookDirection() == BEST_DIRECTION then
            cast('exori min')
        end
    end
    end
    
    
    if Self.CoolDown(SPELL_GROUP_ATTACK) == 0 then
        if standtime >= 2100 then
            while maround(1, unpack(MonstersToConsider)) >= Exori_gran_count and cancast('exori gran') and ((paround(10, true) == 0) or not PvP_Server) and Exori_gran do
                cast('exori gran')
                updateworld()
                break
            end
            while maround(1, unpack(MonstersToConsider)) >= Exori_count and cancast('exori') and ((paround(10, true) == 0) or not PvP_Server) and Exori do
                cast('exori')
                updateworld()
                break
            end
            while maround(1, unpack(MonstersToConsider)) >= Exori_min_count and cancast('exori min') and ((paround(10, true) == 0 ) or not PvP_Server) and Exori_min do
                Min()
                updateworld()
                break
            end
        end
        if (maround(1, unpack(MonstersToConsider)) >= Exori_ico_count)  and cancast('exori ico') and target.id ~= 0 then 
            cast('exori ico')
        end
        if ((maround(5, unpack(MonstersToConsider)) >= Exori_hur_count)) and cancast('exori hur') and target.id ~= 0 then
            cast('exori hur')
        end
    end

    That's my old exori action, it require sirmate's library, make sure you got it.

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks for the replies guys! you were right it turns out i didnt have sirmates library installed. (DOH!) yeah Eli, its from ur war golems script i purchased some time ago, which by the way is awesome!

Posting Permissions

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