Signup Now
Page 7 of 18 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 180

Thread: Spells Attacker

  1. #61
    Free User L!p3's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    52
    Reputation
    21
    Rep Power
    22
    Quote Originally Posted by Leonardo View Post
    Script updated again:

    Fixed bugs with maroundspell

    Checks the special areas all the time
    Performs cancast with a cache of spell duration (to avoid spamming support spells if they are in the duration period)
    Added UseTargetState, set it to true to use only if the targeting engine is on, false will use the script everytime.
    Script will adjust Amount to 1 if you set it to 0, to avoid spelling when no monsters around.
    You can use user options on the Amount for example:

    	{Name = "exori", Amount = tonumber(getuseroption("AmountExori"))},


    If it's 0 it'll not cast spell, if it's higher or equal than 1 it'll cast.
    The action is casting 'exori ico' if the creature is visible, doesn't matter if you are 7 sqms or 1 sqms away from the creature.

  2. #62
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    23
    Quote Originally Posted by L!p3 View Post
    The action is casting 'exori ico' if the creature is visible, doesn't matter if you are 7 sqms or 1 sqms away from the creature.
    Hm, I'll fix that from the library itself, then you'll be prompted to donwload v1.2.1 when it's ready.

  3. #63
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    so we can use Script and when you update Library all will be ok without changing script ye?

  4. #64
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    23
    Quote Originally Posted by Dworak View Post
    so we can use Script and when you update Library all will be ok without changing script ye?
    Yeah.

  5. #65
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    Ok, Great Thanks !

  6. #66
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    @Leonardo
    There is still problem with spamming utito tempo when 1 less swarmer or lady bug?
    Regards

  7. #67
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    23
    Quote Originally Posted by Dworak View Post
    @Leonardo
    There is still problem with spamming utito tempo when 1 less swarmer or lady bug?
    Regards
    Shouldn't, are you asking or reporting it does ?

  8. #68
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    23
    Quote Originally Posted by Dworak View Post
    Leonardo
    There is still problem with spamming utito tempo when 1 less swarmer or lady bug?
    Regards
    Can you test and see it by yourself ?

  9. #69
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    @Leonardo
    this is my code

    --Area Attack    
    auto(100)
    init start

    filteruseroptions(true) -- don't disable this

    local Monsters = {"Insectoid Worker", "Waspoid", "Crawler", "Spitter"}

    local Players = {
    Consider = getuseroption("SafeExori"),
    Distance = 10,
    FloorDifference = 1,
    SafeList = {"Bubble", "Eternal Oblivion"},
    }

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

    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", "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


    i checked and its problem with this utito tempo but only utito rest is great
    Last edited by Dworak; 01-23-2014 at 01:48 PM.

  10. #70
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    23
    Quote Originally Posted by Dworak View Post
    @Leonardo
    this is my code

    i checked and its problem with this utito tempo but only utito rest is great
    Because you are fucking my code, don't add another auto(100), if you want to to use useroptions, just remove "init start" and "init end". It should work fine, but don't add stuff on the code if you don't know how it works. I'm 100% sure my final script on the first post will work.

 

 

Posting Permissions

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