Results 1 to 2 of 2

Thread: Energy Beam and Energy Wave

  1. #1
    iBot User
    Join Date
    Aug 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Energy Beam and Energy Wave

    It's just a Sketch but looks promising

    Energy Beam

    Lua Code:
     
       --------- PH ----------
        ---- Energy Beam ----
     
     
    local qntsWave = 3 --Number of monsters to wave
    local names = {"dog", "rotworm", "cave rat"} -- Monster to Wave
     
     
    local monstros = getcreatures("ms")
    local quant = monstros.count -1
     
     
    if cancast("exevo gran vis lux") == true then
     
    if maround(5, unpack(names)) >= qntsWave then
        local N = 0
        local S = 0
        local W = 0
        local E = 0
     
        for i = 0,quant do
            local mons = monstros[i]
     
            if mons.x - posx == 0 and mons.y < posy then
                N = N + 1
            elseif mons.x - posx == 0 and mons.y > posy then
                S = S + 1
            elseif mons.y - posy == 0 and mons.x < posx then
                W = W + 1
            elseif mons.y - posy == 0 and mons.x > posx then
                E = E + 1
            end
     
            if N >= qntsWave and N >= S and N >= E and N >= W then
                turn("n")
                wait(50, 100)
                cast("exevo gran vis lux")
            elseif S >= qntsWave and S >= N and S >= E and S >= W then
                turn("S")
                wait(50, 100)
                cast("exevo gran vis lux")
            elseif W >= qntsWave and W >= N and W >= S and W >= E then
                turn("w")
                wait(50, 100)
                cast("exevo gran vis lux")
            elseif E >= qntsWave and E >= N and E >= S and E >= W then
                turn("E")
                wait(50, 100)
                cast("exevo gran vis lux")
            end
         end
    end
    end
    end


    Energy Wave

    Lua Code:
     
     
       --------- PH ----------
        ---- Energy Wave ----
     
    local qntsWave = 3 --Number of monsters to wave
    local names = {"dog", "rotworm", "cave rat"} -- Monster to Wave
     
    local monstros = getcreatures("ms")
    local quant = monstros.count -1
     
    if cancast("exevo vis hur") == true then
     
    if maround(5, unpack(names)) >=3 then
        local N = 0
        local S = 0
        local W = 0
        local E = 0
     
        for i = 0,quant do
            local mons = monstros[i]
     
            if mons.x - posx == 0 and mons.y < posy then
                N = N + 1
            elseif mons.x - posx == -1 and mons.y + 3 <= posy then
                N = N + 1
            elseif mons.x - posx == 1 and mons.y + 3 <= posy then
                N = N + 1
            elseif mons.x - posx == 0 and mons.y > posy then
                S = S + 1
            elseif mons.x - posx == -1 and mons.y - 3 >= posy then
                S = S + 1
            elseif mons.x - posx == 1 and mons.y - 3 >= posy then
                S = S + 1
            elseif mons.y - posy == 0 and mons.x < posx then
                W = W + 1
            elseif mons.y - posy == -1 and mons.x + 3 <= posx then
                W = W + 1
            elseif mons.y - posy == 1 and mons.x + 3 <= posx then
                W = W + 1
            elseif mons.y - posy == 0 and mons.x > posx then
                E = E + 1
            elseif mons.y - posy == -1 and mons.x - 3 >= posx then
                E = E + 1
            elseif mons.y - posy == 1 and mons.x - 3 >= posx then
                E = E + 1
            end
     
            if N >= qntsWave and N >= S and N >= E and N >= W then
                stopattack()
                turn("n")
                wait(30, 80)
                cast("exevo vis hur")
            elseif S >= qntsWave and S >= N and S >= E and S >= W then
                stopattack()
                turn("S")
                wait(30, 80)
                cast("exevo vis hur")
            elseif W >= qntsWave and W >= N and W >= S and W >= E then
                stopattack()
                turn("w")
                wait(30, 80)
                cast("exevo vis hur")
            elseif E >= qntsWave and E >= N and E >= S and E >= W then
                stopattack()
                turn("E")
                wait(30, 80)
                cast("exevo vis hur")
            end
         end
    end
    end


    Try an tell me what you think.

  2. #2
    iBot User dracondeluxe's Avatar
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Energy wave does not work corretly

Posting Permissions

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