-
Posts
410 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
100%
Everything posted by dreameo
-
no it doesn't make any sense lol.
-
Yeah your gonna have to ask someone. I tried a couple of stuff, no luck.
-
Get the ID of the script and then type in the following into your browser: 503 = ID of the script you want to remove https://osbot.org/mvc/sdn2/scripts/0?action=rmv&scriptID=503
-
Don't learn how to make a script. Learn java and then come write scripts. There are a million tutorials, any suitable. Find one that is best for you.
-
Hmm You might not want to block execution. You could create a global variable which keeps track of the current XP. Then you can make your check to see if your new XP is greater the the current. If it is, then just set your current XP to your new XP. Also: while(test() == true) // is equivalent to while(test())
-
Nice. Osrs is fun for me if you don't include all the manual work (quests, grinding, etc). Things like going into multi pvp with a group of friends always brings back some good memories.
-
Interacting with 2 of Same Item in Inv w/o Slots
dreameo replied to DylanSRT's topic in Scripting Help
You can use Pattern.quote to avoid having to worry about escape characters. -
Seems like your sleeps are being interrupted. Why, idk.
-
This is my mostly finished fm script. This is something you need to edit and compile yourself. If you can't do that, then this isn't for you. How it works: You can go to any location on the map and define that to be your area. An area gets defined from when you START the bot. So wherever you're standing, this is the beginning of your FM area. (Make sure that the area to your WEST is not cluttered) How large the area is, is defined by you. Check the Utils.java script. numberOfRows = how many rows consists of the area minAvailable = the minumum available slots to which a row should have in order for you to FM. So if a row had 25 free locations and your minAvailable was 20, then that row is one of the possible rows you can FM on and which the bot will use. maxRowLength = how far a row should extend. All the properties are in the Utils.java which you can play with and figure more out about the bot. I feel like it's easily modifiable so go at it. Ask away if you have any issues or questions. src.rar
-
Seems like other snippets of getting item data didn't work so I just made one myself. Who knows how long this might last. If you're interested in storing values you wish to lookup instead of having to parse the json data stored, please implement it yourself (hashmap). I left it out on purpose. How it works: Usage: Code:
-
I'm not sure if you have created threads but that's one way of the program 'carrying on' once you've stopped the bot. Don't think you can get much help without posting some source. In any case, I can only imagine the your source is a bit of a mess if you can't debug it yourself.
-
details
-
Code: So I just tried that and it seems to work fine. You just fill in whatever break condition you want. (You need to keep a temporary path so that as you traverse to each node, you delete it and then continue to next -> really depends on how you write your logic to START the walker)
-
... -.- You can look at Chris's example or literally do what I said.. For each Position.. use the WalkingEvent until there are no more positions..
-
You could try creating a path: ArrayList<Position> path and then use WalkingEvent to traverse to each point.
-
Thanks
-
haha banned from botting? no way
-
Open Source Oak woodcutter with semi-auto muling
dreameo replied to Zor's topic in Resource Collection
Hi, I didn't fully look at your code but I see so many people doing this recently so I had to say something (bad open source code hurts the community because bad practices are being learned, not saying your code is bad or anything, just in general). 'This' keyword is used mainly for ambiguity. Example: public Class Test(){ private String name; public Test(String name){ this.name = name; } } People lately have been doing 'this.add()' where add() is a function that exists in the class that you're writing in. Don't do this.- 5 replies
-
- 2
-
-
- open source
- woodcutter
-
(and 2 more)
Tagged with:
-
Just look in the API to see if message listener is available: https://imgur.com/a/Zzyv8rX
-
Once you open a feather pack, yes the condition is no longer true that inventory is full, however you are still inside the code block. The code block will execute everything inside of it (that should be executed), it wont just exit because the condition changed. If you have it written so that it opens everything (example: iterate through all items and open), then you wouldn't be facing this problem.
-
Need help keeping bot in specified area
dreameo replied to AdhesiveBandage's topic in Scripting Help
Here's how you go about doing it: If you're confused about how it looks, search up anonymous classes. -
Need help keeping bot in specified area
dreameo replied to AdhesiveBandage's topic in Scripting Help
yea, just use a filter when doing closest and return ground items pos is within x area -
I'm guessing each event was distinct? Event 1 - attempt: fail Event 2 - attempt: fail Event 3 - attempt: pass instead of Event 1 - attempt: fail Event 1 - attempt: fail Event 1 - attempt: pass Never tried interactevent befoh
-
There's a lot of things wrong lol but here's something I see a lot of people doing: interact method() // boolean New Conditional sleep... Your conditional sleep should only execute if the interact method is true. The way you have it written, the conditional sleep always runs regardless if the interact actually happened. It should always be like this: if (druid.interact("attack")){ insert conditiona sleep here... } It might be hard to get your head to wrap around it. You would think interacts should be a void right(void methods are usually actions and return nothing). Well if you interact, you want to know if it was successful. So that's why the action returns a boolean.
-
Why does my script attempt to attack a new npc
dreameo replied to Beenrange's topic in Scripting Help
hmm.. I don't think the return condition is right, should be without the '!'. If you click eat, there's probably atleast 300 ms of no action which means your player isn't animating and it will immediately continue execution. If it loops fast enough in time (nothing else blocking execution) which it probably will, then it will double click or triple click until you do animate.