Results 1 to 3 of 3

Thread: Doubt about a check position action.

  1. #1
    iBot User AkumaIgneel's Avatar
    Join Date
    Apr 2013
    Location
    USA
    Posts
    47
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    12
    Rep Power
    4

    Doubt about a check position action.

    Hi guys,

    I have a doubt about how a check position action works.
    I have this one from a Script i bought, it works just great... so i want to put in some of my scripts, but i dont understand how it works.
    For example i have a waypoint that is close to a ladder, but i dont want to go down the ladder, if by accident i do go down ... how do i make that action make me go up and continue with the waypoints?

    Thanks.


    Code:
    if not islocation() then
        gotolabel("Aldo")
    end

  2. #2
    Focus Group bofing's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    664
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    52 Post(s)
    Reputation
    95
    Rep Power
    6
    there is few ways to do it, follow steps bellow which in my opinion is the easiest way:

    1. make ladder waypoint down floor to go up and label it "GoLadderUp"
    2. make stand waypoint up floor to check if you are still up
    3. make action waypoint in the same place where you previous made stand waypoint, this action is to check your possition if your possition is wrong it will go to waypoint "GoLadderUp" so your character click on ladder to go up
    4. put this action to your action waypoint:

    if not islocation() then
    gotolabel("GoLadderUp")
    end


    5. done, now if you get down floor and your bot check possition and see that you are no longer up floor, it will move your waypoints to waypoint called "GoLadderUp" and continue from there

  3. #3
    iBot User AkumaIgneel's Avatar
    Join Date
    Apr 2013
    Location
    USA
    Posts
    47
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    12
    Rep Power
    4
    Quote Originally Posted by bofing View Post
    there is few ways to do it, follow steps bellow which in my opinion is the easiest way:

    1. make ladder waypoint down floor to go up and label it "GoLadderUp"
    2. make stand waypoint up floor to check if you are still up
    3. make action waypoint in the same place where you previous made stand waypoint, this action is to check your possition if your possition is wrong it will go to waypoint "GoLadderUp" so your character click on ladder to go up
    4. put this action to your action waypoint:

    if not islocation() then
    gotolabel("GoLadderUp")
    end


    5. done, now if you get down floor and your bot check possition and see that you are no longer up floor, it will move your waypoints to waypoint called "GoLadderUp" and continue from there

    Great man, thanks a lot.
    +rep

Posting Permissions

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