Signup Now
Results 1 to 2 of 2

Thread: Help Action

  1. #1
    Free User
    Join Date
    Oct 2014
    Posts
    9
    Reputation
    10
    Rep Power
    0

    Smile Help Action

    Anybody can help me with a action for RP hunt grim reaper with GFB and mas san ? I play in Retro PVP, so, area spell take dmg on player =p


    I use that

    init start

    local Monsters = {"Grim Reaper", "Gravedigger", "Spectre", "Banshee", "Shadow Pupil", "Ghost"}

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

    local Spells = {
    {Name = "exori gran", Amount = 40},
    {Name = "exori", Amount = 30},
    {Name = "exevo mas san", Amount = 2},
    {Name = "exori gran con", Hppc = 10},
    {Name = "exori san", Hppc = 5},
    {Name = "utito tempo", Amount = 50},
    }

    local AreaRunes = {
    {Name = "great fireball rune", Amount = 3},
    }


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

    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



    But, dont work the GFB rune =S
    Last edited by ninodreads; 04-19-2016 at 11:56 PM.

  2. #2
    Free User
    Join Date
    Aug 2014
    Posts
    22
    Reputation
    10
    Rep Power
    0
    Do you have 3 grim reapers on screen?

 

 

Posting Permissions

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