Jump to content

Lucas_Larson

Members
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Lucas_Larson

  1. So I have a mining and woodcutting script and the mining one shows up but the woodcutting one does not show up. They both have the script manifest. I'm positive that it isn't something in the script. I sent my friend the code for the mining script and it didn't show up for him. I tried deleting the scripts folder and the scripts then relaunching osbot but it didn't work. I also tried refreshing multiple times

    If anyone has and ideas or would like to go through it with me on discord please let me know. 

  2. 44 minutes ago, Nbacon said:

    Hello,

    (I don't see logic that would get the player to that spot or out of that spot. so thats why it will forever loop)

    Your logic goes like this.

    You are in the spot -> you are a player -> will hop...

    Try this 

    
       if (getPlayers().getAll().stream().anyMatch(s -> s != myPlayer())){
           
           hop
       }

    So I wanted my player to hop worlds if someone was on a certain tile or area because the people in this area steal all the ore. Is that what this is doing?

     

     

     

     

  3. I am learning how to script and have started with a mining script. I have some previous programming knowledge but I'm learning the api.

     

    The bot walks to the mining spot then banks when he is done and walks back. When he is getting attacked by a mugger he just keeps trying to mine. It shows in the logs when I am under attack. Not sure how to make him run.

    (I would appreciate any tips on how to make my code more efficient as I know it's pretty messy)

     

    LINK TO CODE:

    https://pastebin.com/1imvcf7D

    • Like 1
×
×
  • Create New...