Thread: Clipped movement for bots

Results 1 to 7 of 7
  1. #1 Clipped movement for bots 
    Owner of OmniScape
    OmniPS's Avatar
    Join Date
    Jul 2013
    Posts
    311
    Thanks given
    80
    Thanks received
    49
    Rep Power
    48
    close.
    Last edited by OmniPS; 01-08-2018 at 12:25 AM.
    Reply With Quote  
     

  2. #2  
    Contributor
    Kris's Avatar
    Join Date
    Jun 2016
    Age
    23
    Posts
    3,560
    Thanks given
    723
    Thanks received
    2,460
    Discord
    View profile
    Rep Power
    5000
    Copy the method that's ran upon receiving movement decode packet and implement it properly, with real pathfinding.
    PS You made a typo on Rimmington twice.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    May 2017
    Age
    25
    Posts
    1,555
    Thanks given
    948
    Thanks received
    1,395
    Rep Power
    0
    Quote Originally Posted by World 325 View Post
    Hey rune-server, i'm having an issue with my bots movement to locations blocked by obstacles. The bot will walk in a strait line and noclip right through walls, ect. Real players on the other can clip fine and are unable to walk through walls. Here is the method for movement im using:
    Code:
    case MOVE_TO_TASK: //initiated by the owner of the bot changing the workernode.
                                    switch(node.name){
                                        case "Rimmington":
                                            if(!walking) {
                                                bot.getMovement().walkTo(rimmingtion);
                                                walking = true;
                                            }else{
                                                if(bot.getLocation() == rimmingtion){
                                                    workerState = WorkerState.DO_TASK;
                                                    walking = false;
                                                }
                                            }
                                            break;
    might help this tut:
    https://www.rune-server.ee/runescape...-clipping.html
    Reply With Quote  
     

  4. #4  
    Owner of OmniScape
    OmniPS's Avatar
    Join Date
    Jul 2013
    Posts
    311
    Thanks given
    80
    Thanks received
    49
    Rep Power
    48
    Quote Originally Posted by Kris View Post
    Copy the method that's ran upon receiving movement decode packet and implement it properly, with real pathfinding.
    PS You made a typo on Rimmington twice.
    Thankyou, im a dumbass and would I not be able to use the pathfinding already in place for the player?
    ill take a look at that method though and see if I can make it work.

    Quote Originally Posted by Caelum. View Post
    I don't think this would work because the bot extends the player class not an npc :/
    Reply With Quote  
     

  5. #5  
    Contributor
    Kris's Avatar
    Join Date
    Jun 2016
    Age
    23
    Posts
    3,560
    Thanks given
    723
    Thanks received
    2,460
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by World 325 View Post
    Thankyou, im a dumbass and would I not be able to use the pathfinding already in place for the player?
    ill take a look at that method though and see if I can make it work.
    Since your bot extends player, you can make it do everything that a player can do, including the same pathfinding.
    Reply With Quote  
     

  6. #6  
    Owner of OmniScape
    OmniPS's Avatar
    Join Date
    Jul 2013
    Posts
    311
    Thanks given
    80
    Thanks received
    49
    Rep Power
    48
    Quote Originally Posted by Kris View Post
    Since your bot extends player, you can make it do everything that a player can do, including the same pathfinding.
    Thanks so much when i figure it out ill post the fix for others.

    Fixed. Showed in OP
    Reply With Quote  
     

  7. #7  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,318
    Thanks given
    550
    Thanks received
    1,132
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by World 325 View Post
    Thanks so much when i figure it out ill post the fix for others.

    Fixed. Showed in OP
    Nice didnt know there was an online tool like that.
    ...
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 02-05-2011, 02:50 AM
  2. VPS's For Botting + RSPS
    By Intel! in forum Hosting
    Replies: 8
    Last Post: 12-27-2010, 06:48 PM
  3. Replies: 25
    Last Post: 08-17-2010, 05:11 AM
  4. BS - clipped follow for npcs?
    By xi o 0 o ix in forum Help
    Replies: 1
    Last Post: 03-16-2010, 11:40 PM
  5. Replies: 1
    Last Post: 02-24-2010, 07:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •