Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Vis hur + lux + gran vis+ vis spell shooter with turner

  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

    Vis hur + lux + gran vis+ vis spell shooter with turner

    can anyone test it??
    Lua Code:
     
    --------Action by Felipepiva--------
    local Creaturestohur = {"Terramite", "Monster 2", "monster 3"}
     
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
     
     
    if target.name == unpack(Creaturestohur) then
        if target.posx ~= posx and target.posy ~= posy then
        if target.posx < posx and target.posy < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then  move("w") 
                    elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
            elseif target.posx > posx and target.posy < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then move("e")
                    elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
            elseif target.posx > posx and target.posy > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("s")
                end
            elseif target.posx < posx and target.posy < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("w") 
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
            end
        end
    else   
        if target.name == unpack(Creaturestohur) then
        turn(target.direction) wait(50,55)
            if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
            elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
            elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
            else cast("exori vis") wait(550)
            end
        end
    end


    made a few changes and still does not know why it does not work
    Last edited by felipepiva; 06-02-2014 at 06:54 PM.

  2. #2
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    I will tomorow and post you the result nice action's and gj helping ppl m8

  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 Marijuana View Post
    I will tomorow and post you the result nice action's and gj helping ppl m8
    bug dettected on first IF --> targer. had to be target ill edit in a second

  4. #4
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    ok i couldnt test it yesterday but when you post the new version i will test it for sure

  5. #5
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    This is the code I pasted in my action list is there something wrong in it? because it didnt do nothing I tried aiming it manually to see if at least he casted the spells but nothing :/ I had the action enabled and everything do I need a knight to group monsters or someting? :# whats up?






    Code:
    --------Action by Felipepiva--------
    local Creaturestohur = {"Vampire", "Demon Skeleton","Elder Bonelord", "Crypt Shambler"}
    
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
    
    if target.name == unpack(Creaturestohur) then
        if target.x ~= posx and target.y ~= posy then
            if target.x < posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                else move("e") 
                end 
                if (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
                end
           if   
               target.x < posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                else move("w") 
                end
                    if (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
                end
                if
                target.x > posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                else move("e") end
                    if (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                    else move("s")
                end
                end
                if
                target.x > posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                else move("w")
                  end 
                  if (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
                end 
        end
    if (target.x == posx) or (target.y == posy) then turn(target.direction) wait(50,55)
        if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
        elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
        elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
        else cast("exori vis") wait(550)
        end
    end
    end

  6. #6
    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 Marijuana View Post
    This is the code I pasted in my action list is there something wrong in it? because it didnt do nothing I tried aiming it manually to see if at least he casted the spells but nothing :/ I had the action enabled and everything do I need a knight to group monsters or someting? :# whats up?





    Code:
    --------Action by Felipepiva--------
    local Creaturestohur = {"Vampire", "Demon Skeleton","Elder Bonelord", "Crypt Shambler"}
    
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
    
    if target.name == unpack(Creaturestohur) then
        if target.x ~= posx and target.y ~= posy then
            if target.x < posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                else move("e") 
                end 
                if (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
                end
           if   
               target.x < posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                else move("w") 
                end
                    if (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
                end
                if
                target.x > posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                else move("e") end
                    if (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                    else move("s")
                end
                end
                if
                target.x > posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                else move("w")
                  end 
                  if (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
                end 
        end
    if (target.x == posx) or (target.y == posy) then turn(target.direction) wait(50,55)
        if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
        elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
        elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
        else cast("exori vis") wait(550)
        end
    end
    end
    im working on this action, it appears to have a bug that i cant find

  7. #7
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    Its ok keep it up I can test later if you find bug just let me know

  8. #8
    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

    try this one

    Lua Code:
    --------Action by Felipepiva--------
    local Creaturestohur = {"Monster 1", "Monster 2", "monster 3"}
     
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
     
    if target.name == unpack(Creaturestohur) then
        if target.x ~= posx and target.y ~= posy then
            if target.x < posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
                end
            if target.x < posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then move("w")
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
                end
                if target.x > posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("s")
                end
                end
                if target.x > posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("w") 
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
                end 
        end
    if (target.x == posx) or (target.y == posy) then turn(target.direction) wait(50,55)
        if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
        elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
        elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
        else cast("exori vis") wait(550)
        end
    end
    end
    Last edited by felipepiva; 05-26-2014 at 06:22 PM.

  9. #9
    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

    other to try

    Lua Code:
    --------Action by Felipepiva--------
    local Creaturestohur = {"Monster 1", "Monster 2", "monster 3"}
     
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
     
    if target.name == unpack(Creaturestohur) then
        if target.x ~= posx and target.y ~= posy then
            if target.x < posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
            elseif target.x < posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then move("w")
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
            elseif target.x > posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("s")
                end
            elseif target.x > posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("w") 
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
            end
        end
    end
    if target.name == unpack(Creaturestohur) then
        if (target.x == posx) or (target.y == posy) then turn(target.direction) wait(50,55)
            if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
            elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
            elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
            else cast("exori vis") wait(550)
            end
        end
    end


    if this one doesnt work, then i dont know how to make it work
    Last edited by felipepiva; 05-26-2014 at 06:21 PM.

  10. #10
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    @felipepiva use [luas][/luas] tags to highlight LUA code.


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

Posting Permissions

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