-
Posts
1096 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by HeyImJamie
-
I'd suggest stopping the other script from walking away? The only checks I can see you doing from this end are making sure the players animation is -1 and that they're within 1 tile at the time of accepting the trade. If your player moves, just walk back?
-
Just grab a String like Apaec's done and split at ","'s for example, then just iterate the values and add them to an ArrayList
-
You're not null checking. Also, you can simplify your methods by just returning the boolean value of widget.getAmount > 0
-
Just wondering if it never actually updates. What exactly are you using this for? Possibly a workaround.
-
How often are you updating your variable?
-
No one truly knows.
-
I got excited for @Explv for a second. Gz Project.
-
Print the value of guiOptionChose and make sure it's being set correctly.
-
Why level 16 and not 15? ?
-
I doubt it, I can't see there being a relation with closing the JVM and onExit being called. onExit is for when the script code exits 'naturally', i.e via use of the stop button.
-
There's literally a fuck off warning and you're questioning why things aren't running fine?
-
Na bro do what I did when I was learning and release all your private scripts in one jar
-
I mean it's on the same screen but... ?
-
Just write as you would normally.
-
Inconstancies with Entity getHeight()
HeyImJamie replied to Ragnar Lothbrok's topic in Scripting Help
Are you reassigning the RSObject? -
Just check you're not in combat while trying to hop
-
It'd be slightly useful if any part of it was correct. As mentioned above, your walking call will be made no matter the outcome of your if statement, and your if statement as it stands currently checks if you're in the bank and your inventory contains rune essence OR your inventory contains pure essence, with no bank check. The correct code would be: if (Banks.FALADOR_EAST.contains(myPlayer()) && (getInventory().contains("Rune essence") || getInventory().contains("Pure essence"))) { // walk } although, you could just simplify it to: if (Banks.FALADOR_EAST.contains(myPlayer()) && getInventory().contains("Rune essence", "Pure essence")) { // walk }
-
JDBC / External libraries are blocked by OSBot.
-
Are you planning on showing us some code or?
-
I wouldn't do something like this via a text file. If you were going to use .txt, I'd probably just output the username and then have the mule script remain logged in and only accept trades from usernames found within the .txt file. If you wanted something like you've mentioned, Sockets are likely the best way. They're fairly simple to use, and you can send a request from your slave to your mule, i.e -> NAME/LOCATION. The mule will then receive the request and you can handle that accordingly, by either returning a confirmed message or doing nothing at all. Here's some information: https://www.tutorialspoint.com/java/java_networking.htm
-
You'll probably need to do something like Java -> Php -> Sql as Osbot's security features block a fair amount.
-
Why would you need to set w to 0 in your onStart when you can just initialise it as 0?
-
Can I ask why you'd force people to download a sample rather than just making the text area editable?