Results 1 to 5 of 5

Thread: Need help with this shooting bug

  1. #1
    iBot User
    Join Date
    Jan 2013
    Posts
    303
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    19
    Rep Power
    4

    Need help with this shooting bug

    Hi guys, i need some help with this action made by Soder: rune/spell shooter

    the deal is: when my character get in middle of 2 monsters like in the pic, it doesnt cast spells nor throw avalanches.
    i hope you guys can help me.
    ty


    --[[ CONFIG START ]]--
    RULES = RULES or {
    {
    CREATURES = CREATURES or {
    "Lizard Legionnaire",
    "Lizard High Guard",
    "Lizard Dragon Priest",
    "Dragon Hatchling"
    },
    SPELLS = SPELLS or {
    {
    ATTACK = "exori frigo",
    ENABLED = true,
    HPPC = 0,
    MIN_MOB = 1,
    DIST = 3,
    CONSIDER_PLAYERS = false,
    },
    {
    ATTACK = "exori gran vis",
    ENABLED = true,
    HPPC = 10,
    MIN_MOB = 1,
    DIST = 3,
    CONSIDER_PLAYERS = false,
    },
    {
    ATTACK = "avalanche rune",
    ENABLED = true,
    HPPC = 0,
    MIN_MOB = 2,
    DIST = 5,
    CONSIDER_PLAYERS = false,
    },
    {
    ATTACK = "exevo gran mas vis",
    ENABLED = true,
    HPPC = 2,
    MIN_MOB = 5,
    DIST = 3,
    CONSIDER_PLAYERS = false,
    },
    },
    },
    {
    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

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Do you have any special areas near this place? Add new HUD
    Lua Code:
    drawspecialareas()

  3. #3
    iBot User
    Join Date
    Jan 2013
    Posts
    303
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    19
    Rep Power
    4
    Quote Originally Posted by Eli View Post
    Do you have any special areas near this place? Add new HUD
    Lua Code:
    drawspecialareas()
    i dont have any special areas eli

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by felipepiva View Post
    i dont have any special areas eli
    then make sure you've got marked mustbeshotable and mushbereachable in targeting settings

  5. #5
    iBot User
    Join Date
    Jan 2013
    Posts
    303
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    19
    Rep Power
    4
    Quote Originally Posted by Eli View Post
    then make sure you've got marked mustbeshotable and mushbereachable in targeting settings
    both marked, i think he's not shooting due to first spell "contradiction" which is avalanche, it has 2 monsters on screen but, betwin creatures, ava cant hit both, so it doesnt shoot

Posting Permissions

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