Results 1 to 6 of 6

Thread: is it stil impassibal to stand ifront monsters and do vis hur

  1. #1
    iBot User
    Join Date
    Nov 2012
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5

    is it stil impassibal to stand ifront monsters and do vis hur

    like the titel says

  2. #2
    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
    no it isnt, ill make an action and test, then i post here

  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

    test it

    test by yourself: it uses energy strike spells not flam or ice


    --------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 targer.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")
    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")
    else 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")
    else 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")
    else move("w")
    elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
    else move("s")
    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)
    elseif cast("exori vis") wait(550)
    end
    end

  4. #4
    iBot User
    Join Date
    Nov 2012
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    it dosent work

  5. #5
    iBot User
    Join Date
    Nov 2012
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    l need some action that moves the face all time infront of Creature

  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

    test again, bug fixxed

    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")
    else 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")
    else 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")
    else 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")
    else move("w") 
    elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
    else move("s")
    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)
    elseif cast("exori vis") wait(550)
    end
    end

Posting Permissions

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