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.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    22
    Posts
    3,465
    Thanks given
    618
    Thanks received
    2,151
    Rep Power
    3547
    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 penis too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    Reply With Quote  
     

  3. #3  
    Motion artist

    Guardian's Avatar
    Join Date
    May 2017
    Age
    24
    Posts
    1,555
    Thanks given
    946
    Thanks received
    1,393
    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. ]
    [Only registered and activated users can see links. ]
    Post deleted
    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
    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 :/
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    22
    Posts
    3,465
    Thanks given
    618
    Thanks received
    2,151
    Rep Power
    3547
    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 penis too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    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
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,286
    Thanks given
    529
    Thanks received
    1,104
    Rep Power
    1695
    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
  •