Thread: Clipped movement for bots

Results 1 to 7 of 7
  1. #1 Clipped movement for bots 
    Owner of OwnXile
    Azia's Avatar
    Join Date
    Jul 2013
    Posts
    293
    Thanks given
    73
    Thanks received
    43
    Rep Power
    23
    close.
    Last edited by Azia; 01-08-2018 at 12:25 AM.
    Reply With Quote  
     

  2. #2  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    21
    Posts
    3,435
    Thanks given
    582
    Thanks received
    2,089
    Discord
    Kris#1337
    Rep Power
    3080
    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.
    Spoiler for sig too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    Reply With Quote  
     

  3. #3  
    BDP#Guardian

    Guardian's Avatar
    Join Date
    May 2017
    Age
    23
    Posts
    1,425
    Thanks given
    891
    Thanks received
    1,318
    Discord
    Stuart#6969
    Rep Power
    5000
    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:
    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  4. #4  
    Owner of OwnXile
    Azia's Avatar
    Join Date
    Jul 2013
    Posts
    293
    Thanks given
    73
    Thanks received
    43
    Rep Power
    23
    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
    might help this tut:
    [Only registered and activated users can see links. ]
    I don't think this would work because the bot extends the player class not an npc :/
    Reply With Quote  
     

  5. #5  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    21
    Posts
    3,435
    Thanks given
    582
    Thanks received
    2,089
    Discord
    Kris#1337
    Rep Power
    3080
    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.
    Spoiler for sig too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    Reply With Quote  
     

  6. #6  
    Owner of OwnXile
    Azia's Avatar
    Join Date
    Jul 2013
    Posts
    293
    Thanks given
    73
    Thanks received
    43
    Rep Power
    23
    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  
    Registered Member
    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,230
    Thanks given
    523
    Thanks received
    1,091
    Rep Power
    1666
    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
  •