-
Posts
410 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
100%
Posts posted by dreameo
-
-
2 minutes ago, IDontEB said:
The examples not wrong.
boolean expressions are expressed as 0s or 1s and in the example they had
int x =55; if (x<50 & x>0)
so it'd be if (0 & 1) which (0 & 1) evaluate to 0 which is false.
you're right about it not being appropriate though.zz read it as the author saying the first expression is false and second is true.
-
35 minutes ago, TheWind said:
Looks like you are using the wrong operators in your if statements
https://www.quora.com/What-is-difference-between-and-in-Java
RIP.
The example is wrong.
The "bitwise and" is not appropriate in the way that it's used but it still works here.
-
On 1/1/2019 at 4:38 PM, camaro 09 said:
Are there any advantages to using this option instead of multithreading?
They are both multi-threading. Explv response is osbot specific and defeats the purpose of the tutorial.
-
-
1 minute ago, jca said:
That’s still defining an area... it’s not an issue. Just if there was an option with regions it feels better to use. But maybe it’s not possible.
You made it sound like it's an issue when you said the area is large. Which I said, you don't need to actually define an area.. you just need 2 coordinates.
You're doing the same with with a region that you would with an area. Idk why you're hard stuck on regions.
-
5 minutes ago, jca said:
Yeah... well that’s one option.
The area I need to check is huge (the size of the region, basically 104x104). My logic is if it’s already defined as a region and I could check that then it makes more sense then defining a massive area.
But if there’s not really a better way then areas will have to do.
You don't need to define the area. Since it's big just get the bottom left and top right coordinates and that's all you need to check and see if you're within an area.
-
3 hours ago, Zummy said:
Could you tell me how? I'm using Intellij.
Just have the class files in the script folder
-
-
After all my work.. I see how it is.
-
9 hours ago, its zealous said:
i always use this for 50 fm (never banned)
Yeah, takes prob very little time to get to 50 fm.
-
18 minutes ago, Seyton said:
Thanks for posting, this is pretty nice
Yeah it's okay.
-
20 minutes ago, HexMurder said:
I'm not talking about a source for an anti-ban. Just a source. Any good one.
You can look in the 'unofficial' section, tends to be some open source stuff:
https://osbot.org/forum/forum/288-unofficial-scripts-applications/
Here's my unfinished (lol) open source:
-
5 minutes ago, HexMurder said:
I appreciate all the comments, and thanks for the information about anti-ban. But, I'm still looking for a well written source to study here
tldr, there really isn't any.
-
The general consensus here is that anti-ban is dumb and it shoudn't be implemented.
Conventional thinking should always be challenged though. I don't really agree with the consensus but the majority do have a point in the sense that anti-ban has not been effective. It's very possible to create something to counteract the bans. It just not has been done right so far.
When it comes down to it, all bot interacts generalize to a certain behavior. Regardless of what strategy you may do to make the bot perform like a human, it still does human things in a bot like way. GL coming up with some idea.
- 1
-
Try writing a file to that resource folder onExit and see. Ima say no though?
-
3 hours ago, m3pk said:
2 day ban... its ok son
worst scipt on this website... aids
Spoiler- 1
-
3 hours ago, m3pk said:
Banned after 15 min, great script!
lmao get rekt
- 1
-
16 hours ago, FrostBug said:
Use == for primitives and constants
Use .equals() for everything elseGrandExchange.Status is an enum, and enum values are always constant (even if they for some reason are mutable), so here you should use '=='
Those strings are literals actually; which are constant. '==' is valid
I think the main reason why what Alek wrote is valid is because both those string objects point to the same object. Compiler is smart enough to see that "abc" is being used twice and instead of making 2 separate objects, it makes both variables point to one "abc" object.
(90%)
-
8 minutes ago, Dot said:
Thanks a lot guys. I can definitely work that into my script.
Yeah lol was in game and had to rush but what @feggit posted is about right.
-
tldr: you have to write your code to loot and to bury when you have met those conditions ELSE you fight the goblins
- 1
-
28 minutes ago, sorag13 said:
Cmon! Finish and release it
Anyways this works great. Good xp rates, I dont know how safe to use it is, but I think people use it for 50 Firemaking.
Yeah lol... I never play but whenever I do and i'm at GE, I see someone using the bot. Obvious to me, idk if obvious to others.
-
1 hour ago, sorag13 said:
Working great!
lol, I have a much better unfinished FM in the 'other' section for non sdn scripts. Just was lazy to finish but you can pretty much FM anywhere you want.
-
Are you using a custom script or sdn script?
-
5 minutes ago, Glaciation96 said:
I'm not intentionally looking for old posts, just digging through all the resources that I can find, then commenting to test my own understanding of java/botting lol. Also does my code not make sense or not work? So long as it's not the latter I'm happy
He also asked for "any items" which I guess could translate to all or just some of the items, to me anyway. Nice Explv's Map btw, been using that loads.
no it doesn't make any sense lol.
How to create an Inventory Listener
in Tutorials
Posted · Edited by dreameo
Here's a guide on how to make an inventory listener. I don't think the bot offers it in the API, but you will see how simple it can be. The architecture of the following classes can be made better but this is how I've done it on my first try.
(There wont be much explanation)
Main Class:
-Implements Observer -> Interface we made
-Exchanges context since we extend MethodProvider
-Sets the observer as the Main class
InventoryListener Class
Note: I think the code would break if you try running it while logged off. An easy fix would be to set the run state once we are logged in.
-Implements runnable, this is a seperate thread that runs to check the status of our inventory
-Really simple strategy, we check our current items with a cached set of items. If there are any differences, we know that we either gained/lost an item. Whenever those cases occur, we notify our observer.
-The thread runs ever 50 ms = checks for new items 20 times per second.
Observer - Interface