Everything posted by PwneRL33T
-
Interacting with inventory items
ah thanks so much, you dont know how long i was searching the api for just that little bit of code XD
-
Interacting with inventory items
title says it all really, ive been searching the API for about an hour now but cant figure out how to put the code together... can anyone tell me what the code is for interacting with an inventory item? i was hoping it would be as simple as this... but its not if (inventory.contains("Bird's Nest")){ item.interact("Search"); }
-
getFacing() mathod
could some one please explain to me how the getFacing() method works? its going to be used for a WC Script but it seems the 'old' way to do this no longer works, i have tried to search the API for this, but had no avail... this is the code i have its for avoiding an ENT if ((getFacing() != null) && (getFacing().getName().equals("Oak"))) { if (getFacing().nounColour().equals("<col=ffff00>")) { map.walk(this.SAFE_AREA); this.entAvoid += 1; } } Fixed
-
Getting this error upon loading local script
thanks anyway but got running on 6 just changed the environment system
-
Getting this error upon loading local script
should i use 6 or 7? EDIT: just used 6 and got same error
-
Getting this error upon loading local script
[ERROR][08/23 05:25:31 AM]: Failed to load jar file : SeersOaks.jar [ERROR][08/23 05:25:31 AM]: Failed to load local scripts! java.lang.NullPointerException at org.osbot.cOm2.iIiIiiIIii(kb:163) at org.osbot.pRn.IiiIIIIiii(vb:223) at org.osbot.core.gui.ScriptSelector.iiIiiIiiii(lc:293) at org.osbot.core.gui.ScriptSelector.iiIiiIiiii(lc:269) at org.osbot.CoM7.actionPerformed(lc:15) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:124) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) [INFO][08/23 05:25:31 AM]: Loaded 0 local scripts and 0 custom random solvers! [INFO][08/23 05:25:32 AM]: Loaded 1 remote SDN scripts! after following this tut... it seems not as easy as stated http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/
-
Some Errors
thanks but no i am using the 'proper' API
-
Some Errors
yup works a treat told me axactly how to fix it... not code it... but simply cover up the error in other words i ahd already fixed all the ones from methodprovider before you posted... im just stuck on running and getfacing, these i could not find anywhere even in this magical MethodProvider that you speak of, i hear it tells you everything that i need to know?
-
Some Errors
ok fixed the ones you listed and a couple more, but just can't find these
-
Some Errors
ok now i've tried to implement the actually loop of the script and now i'm just riddled with problems. i've searched the API for many of these but no avail... i have tried to search all these in the API but no avail
- Some Errors
-
Some Errors
ahahah omfg i did not even realize that lol, thanks man
-
Some Errors
i do know the basics of java, well i did about a year ago, example http://osbot.org/forum/topic/12893-seers-willow-cutter/
-
Some Errors
ah thanks very much would you know about the getElapsed error? the only suggestion i get from eclipse is "add cast to 'runTime'" and this is what i have in my timer class that has anything to do with getElapsed
-
Some Errors
ok removed legacy but still getting errors fixed Skill.WOODCUTTING but still stuck on getSkills()
-
Some Errors
what can i do about these errors? add skype: defectiversps if need be fixed and now running... good to see my (nearly) 2 year paint coming back to life.... sort of... nothing works atm haha in saying that... how can i get ingame messages to work, cant seem to figure it out from the API public void onMessage(Message message) { if (message.equals("You get some oak logs.")) { this.logsChopped += 1; this.expGained += 37; } if (message.equals("A bird's nest falls out of the tree.")) { this.foundNest += 1; log("Nest Found"); } } this is what i have but doesnt work...
-
OSBot2 Wood Cutting Skeleton
even so, that'd be great, can you link me to the script skele?
-
OSBot2 Wood Cutting Skeleton
Hey guys... back after a long while and i found all my old scripts, but unfortunately they do not work on OSBot2.... so i was wondering if anyone had a OSBot 2 wc skele i can use to convert my old scripts to the new version? this would be great!
-
Getting this Error While Compiling Scripts
how do i import osbots library? *EDIT* into eclipse i mean
-
Getting this Error While Compiling Scripts
If anyone could help that would be great! cheers
-
Compiling .Java Files to .Jar Files?
JarMaker.jar*********** Problem solved
-
Compiling .Java Files to .Jar Files?
someone please help
-
Compiling .Java Files to .Jar Files?
okay so i have eclipse now, but the only select able build thing is build javadoc what do i do?
-
Compiling .Java Files to .Jar Files?
C:\Program Files\Java\jdk1.8.0_05 eclipse is nearly done now, but i dont understan what a map is, im in the path where my 2 .java files are located but it just cant find JDK or javac is not reconoized
-
Compiling .Java Files to .Jar Files?
http://gyazo.com/d5ff1275c582e92c6d5d7f9c7d7c1c0b