Signup Now
Page 18 of 18 FirstFirst ... 8161718
Results 171 to 180 of 180

Thread: Spells Attacker

  1. #171
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,167
    Reputation
    25
    Rep Power
    23
    Quote Originally Posted by timmay View Post
    my character using utito tempo even if only 1 monster that i put in hotkey is on me but 4 other monsters that should not be considered
    True, it uses utito tempo if there is other monsters even if the monsters listed is not even close from screen
    Old 'n Proud Neobot-Elfbot and blackd user

  2. #172
    Free User
    Join Date
    Oct 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0
    Not running for me.

    Any advice?

    error in Persistent script NewPersistentScript:
    ["local Players = {"]:NewPersistentScript:5: '}' expected (to close '{' at line 3) near 'local'

  3. #173
    Free User
    Join Date
    Feb 2014
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Is it possible to somehow add party to safelist, instead of names? As me and a friend is botting in a party, I don't want to get skull if someone would get kicked and the party disbanded.

  4. #174
    Free User Talendar's Avatar
    Join Date
    Nov 2014
    Location
    Brazil
    Posts
    134
    Reputation
    20
    Rep Power
    19
    Thanks! That's what I needed.

  5. #175
    Free User
    Join Date
    Mar 2016
    Posts
    183
    Reputation
    10
    Rep Power
    17
    init start

    local Monsters = {"Hero", "Vicious Squire", "Renegade Knight", "Vile Grandmaster", "Giant Spider", "Brimstone Bug", "Wailling Widow"}

    local Players = {
    Consider = true,
    Distance = 10,
    FloorDifference = 1,
    SafeList = {"Bubble", "Eternal Oblivion"},
    }

    local Spells = {
    {Name = "exori gran", Amount = 3},
    {Name = "exori", Amount = 2},
    {Name = "exori min", Amount = 3},
    {Name = "exori ico", Hppc = 10},
    {Name = "exori hur", Hppc = 10},
    {Name = "utito tempo", Amount = 20},
    }

    local SpecialAreas = {
    -- {min x, max x, min y, max y, z}
    }

    local UseTargetState = true

    -- DO NOT CHANGE ANYTHING BELOW THIS LINE

    local i, LastFloor, Exhaust = 1, $posz, $timems

    while Spells[i] ~= nil do
    Spells[i].Info = spellinfo(Spells[i].Name)

    if Spells[i].Info.words == 0 then
    table.remove(Spells, i)
    else
    Spells[i].Monsters = Spells[i].Monsters or Monsters
    Spells[i].NeedDirection = table.find({"WaveSmall", "WaveMedium", "WaveVerySmall", "WaveBig", "BeamSmall", "BeamBig", "Front", "Strike"}, Spells[i].Info.castarea) ~= nil
    Spells[i].AttackSupport = Spells[i].Info.group:match("Support") ~= nil

    table.lower(Spells[i].Monsters)
    i = i + 1
    end
    end

    init end

    auto(200, 400)

    if $posz ~= LastFloor then
    LastFloor, Exhaust = $posz, $timems + 2000
    return
    end

    if $timems >= Exhaust and ($targeting or not UseTargetState) then
    for _, Spell in ipairs(Spells) do
    if cancast(Spell.Info) and not isinsidearea(SpecialAreas) then
    if Spell.Amount and (not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0) then
    local BestAmount, BestDir = 0, $self.dir

    if Spell.NeedDirection then
    for Dir, Amount in pairs({n = 0, e = 0, s = 0, w = 0}) do
    Amount = maroundspell(Spell.Name, Dir, unpack(Spell.Monsters))

    if Amount > BestAmount or (Amount >= BestAmount and Dir == $self.dir) then
    BestAmount, BestDir = Amount, Dir
    end
    end
    else
    BestAmount = not Spell.AttackSupport and maroundspell(Spell.Name, BestDir, unpack(Spell.Monsters)) or maround(1, false, unpack(Spell.Monsters))
    end

    if BestAmount >= math.max(Spell.Amount, 1) then
    while $self.dir ~= BestDir do
    turn(BestDir) waitping()
    end
    cast(Spell.Name) waitping()
    end
    elseif Spell.Hppc and $attacked.hppc >= math.max(Spell.Hppc, 1) and table.find(Spell.Monsters, $attacked.name:lower()) and cancast(Spell.Info, $attacked) then
    cast(Spell.Name) waitping()
    end
    end
    end
    end


    don't work what is wrong olny use exori hur/ico

  6. #176
    Free User
    Join Date
    Feb 2015
    Posts
    12
    Reputation
    10
    Rep Power
    0
    @Leonardo would you be able to explain me how can I add special area to the script? I am hunting hive and I dont want it to shoot round stairs but I havnt got a clue how to do it, cheers!

  7. #177
    Free User
    Join Date
    Dec 2016
    Posts
    4
    Reputation
    10
    Rep Power
    0
    where i must put this scripts? on scripter/persistent?

  8. #178
    Banned
    Join Date
    Dec 2016
    Location
    Jams
    Posts
    153
    Reputation
    26
    Rep Power
    0
    Quote Originally Posted by tyrn View Post
    where i must put this scripts? on scripter/persistent?
    yes, persistent

  9. #179
    Free User
    Join Date
    Mar 2017
    Posts
    2
    Reputation
    10
    Rep Power
    0
    could someone help me with the special areas please? idk how to config that

  10. #180
    Free User kirro's Avatar
    Join Date
    Jul 2015
    Posts
    336
    Reputation
    121
    Rep Power
    19
    Quote Originally Posted by wiecznie skuty View Post
    @Leonardo would you be able to explain me how can I add special area to the script? I am hunting hive and I dont want it to shoot round stairs but I havnt got a clue how to do it, cheers!
    Quote Originally Posted by JorgeGalvan View Post
    could someone help me with the special areas please? idk how to config that
    Hello,

    to add a Special area in which you wouldn't want to cast a spell, you would first check for the Position data of the area.
    if you dont want to cast it 1 sqm around a stair which is located on:

    posx: 32123
    posy: 32223
    posz: 7

    and for 2 sqm around a stair which is located on:

    posx: 33145
    posy: 31248
    posz: 6

    then you would edit the script like this:

    init start

    local Monsters = {"Swampling", "Snake", "Marsh Stalker", "Water Buffalo", "Salamander", "Emerald Damselfly"}

    local Players = {
    Consider = true,
    Distance = 10,
    FloorDifference = 1,
    SafeList = {"Bubble", "Eternal Oblivion"},
    }

    local Spells = {
    {Name = "exori gran", Amount = 4},
    {Name = "exori", Amount = 3},
    {Name = "exori min", Amount = 2},
    {Name = "exori ico", Hppc = 10},
    {Name = "exori hur", Hppc = 10},
    {Name = "utito tempo", Amount = 5},
    }

    local SpecialAreas = {
    {32122, 32124, 32222, 32224, 7},
    {33143, 33147, 31246, 31250, 6}
    }

    local UseTargetState = false

    -- DO NOT CHANGE ANYTHING BELOW THIS LINE

    local i, LastFloor, Exhaust = 1, $posz, $timems

    while Spells[i] ~= nil do
    Spells[i].Info = spellinfo(Spells[i].Name)

    if Spells[i].Info.words == 0 then
    table.remove(Spells, i)
    else
    Spells[i].Monsters = Spells[i].Monsters or Monsters
    Spells[i].NeedDirection = table.find({"WaveSmall", "WaveMedium", "WaveVerySmall", "WaveBig", "BeamSmall", "BeamBig", "Front", "Strike"}, Spells[i].Info.castarea) ~= nil
    Spells[i].AttackSupport = Spells[i].Info.group:match("Support") ~= nil

    table.lower(Spells[i].Monsters)
    i = i + 1
    end
    end

    init end

    auto(200, 400)

    if $posz ~= LastFloor then
    LastFloor, Exhaust = $posz, $timems + 2000
    return
    end

    if $timems >= Exhaust and ($targeting or not UseTargetState) then
    for _, Spell in ipairs(Spells) do
    if cancast(Spell.Info) and not isinsidearea(SpecialAreas) then
    if Spell.Amount and (not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0) then
    local BestAmount, BestDir = 0, $self.dir

    if Spell.NeedDirection then
    for Dir, Amount in pairs({n = 0, e = 0, s = 0, w = 0}) do
    Amount = maroundspell(Spell.Name, Dir, unpack(Spell.Monsters))

    if Amount > BestAmount or (Amount >= BestAmount and Dir == $self.dir) then
    BestAmount, BestDir = Amount, Dir
    end
    end
    else
    BestAmount = not Spell.AttackSupport and maroundspell(Spell.Name, BestDir, unpack(Spell.Monsters)) or maround(1, false, unpack(Spell.Monsters))
    end

    if BestAmount >= math.max(Spell.Amount, 1) then
    while $self.dir ~= BestDir do
    turn(BestDir) waitping()
    end
    cast(Spell.Name) waitping()
    end
    elseif Spell.Hppc and $attacked.hppc >= math.max(Spell.Hppc, 1) and table.find(Spell.Monsters, $attacked.name:lower()) and cancast(Spell.Info, $attacked) then
    cast(Spell.Name) waitping()
    end
    end
    end
    end





    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

 

 

Posting Permissions

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