-
Posts
8 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by Lucas_Larson
-
-
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.
-
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?
-
I was trying to hop worlds if they were on a specific tile but it just constantly hops. I think I'm missing a check or something possibly.
is there also a way to check an area for players as well to determine if it should hop?
code:
-
3 hours ago, Nbacon said:
When I tried out the first script for the looping bot he got stuck in the bank menu and wouldn't walk away. Do I have to use bank.close(); or should it just run away from the bank? Or did I just do something wrong
-
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:
- 1
-
When I start it up from tutorial island the bot doesn't do anything at all. It says completing tutorial island task but doesn't move
Can't see local script
in Tutorials
Posted
It's set to my osbot scripts folder. I can see one of my scripts