Everything posted by Swizzbeat
-
Prayer
Use a bitmask to check if the bit which represents Piety is turned on. You should be able to get it easy checking for config changes (pretty sure the config is 83).
-
APUSH Exam Today
Yeah I took that last year. I forget the exact DBQ question but it was something extremely easy.
-
client.blahblah
Work on your naming conventions.
-
Creating wrapper?
I'm creating wrapper classes for some stuff, however it seems that for this one at least I'm getting an NPE when I check for whether it exists or not. Here's the (unfinished) wrapper class: package core.utils.wrappers; import org.osbot.accessor.XGroundItem; import org.osbot.script.Script; import org.osbot.script.rs2.model.GroundItem; /** * Created with IntelliJ IDEA * User: Anthony * Date: 5/13/2014 */ public class Loot extends GroundItem { private XGroundItem instance; private Script sI; public Loot(XGroundItem instance, Script sI) { super(instance); this.instance = instance; this.sI = sI; } public void pickUp(boolean loopUntilPickedUp) throws InterruptedException { do { interact("Take"); } while (loopUntilPickedUp && exists()); } public XGroundItem getInstance() { return instance; } } The part where I am getting the NPE is when I declare an object of type Loot and call the #exists() method (could be an issue for other methods but I haven't got past this one yet). I declare the object in a similar fashion to this: Loot loot = new Loot(closestGroundItemForName("whatever").instance, sI); The error message is then logged to the console: [ERROR][05/14/14 08:10:52 AM]: Error on executing script worker! java.lang.NullPointerException at org.osbot.script.rs2.model.GroundItem.getZ(zf:147) at org.osbot.script.rs2.map.Region.contains(dg:154) at org.osbot.script.rs2.model.GroundItem.exists(zf:84) at core.tasks.Looter.execute(Looter.java:41) at core.task_framework.TaskManager.findAndExecuteTaskInCategory(TaskManager.java:22) at core.Main.onLoop(Main.java:133) at org.osbot.hc.run(um:136) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Any help would be appreciated. I feel like I'm doing something incredibly stupid O_o FYI my other wrapper classes work fine.
-
Proof of Occazn in trouble
What did he do?
-
Mod Edit: [Script Working] Purples [Motherlode] bot
That's a client, not script, bug.
-
source codes?
http://jd.benow.ca/ And you decompile the .java files. If it's obfuscated you'll see random bytecode everywhere as well as weirdly named methods/variables.
-
source codes?
Even if a script is broken, it should be helpful just to look at it based on a learning perspective.
-
Learning to script
Learn the Java programming language. No matter what client you're scripting for you're going to need to know it.
-
GUI Issues
Based on the fact that he said he's new to Java, I doubt hes going to care about what thread his GUI is running on. @OP this would be the correct way to run the GUI though.
-
Women need this bra
That's why I would keep this picture in my pocket at all times to show them:
-
Women need this bra
Imagine just casually talking to some girl and all of a sudden her bra just pops off.
-
[OSBot 2] BitterAIOFarmer -In Development-
Maybe once I can write a simple script without it throwing errors for now reason, actually have all the classes included in the jar and know that they won't change the API up randomly.... I'll consider it.
-
[OSBot 2] BitterAIOFarmer -In Development-
Pretty sure this is why SDN upload requests are now closed as well.
-
Give Scripters Name Changing Permissions
No I 100% meant name changes, but while were discussing additional features for us to have that would be a nice one. ily
-
Give Scripters Name Changing Permissions
Guess employers aren't required to pay their workers if they don't feel like it since it's just a benefit. Also, who cares who's going to even use it or not. We have unlimited tabs and I've used at max two, but that doesn't mean it's suddenly going to be removed. Your arguments are completely pointless and make no logical sense.
-
Give Scripters Name Changing Permissions
No OSBot takes it all.
-
Give Scripters Name Changing Permissions
Maybe because one of the only reason people are even at this site to give money is because of our scripts so cheap wtf
- Give Scripters Name Changing Permissions
-
[News] Massive Script Sweep + More
Awesome job
-
Happy Mother's Day Maldesto and Smart
I heard their kids got them a spa day
-
Mod Edit: [Scripts Removed] Moore Scripts
http://osbot.org/forum/topic/49421-farewell-friends/ Should be removed?
-
Getting the closest NPC for name and action (OSBot 2)
Wait what? for (NPC currentNPC : getNpcs()) { //iterate over each npc } I'm assuming #getNpcs() would return an implementation of List or at the very minimal an Array...
-
Getting the closest NPC for name and action (OSBot 2)
Why do you create an iterator object? The enhanced for loop creates an implicit Iterator by default.
- Blue meth candy