Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold

dudeinbanff

Registered
  • Content Count

    5
  • Joined

  • Last visited

  • Feedback

    N/A

Community Reputation

1 Neutral

About dudeinbanff

  • Rank
    New Botter
  1. @Red_Spark @Netami Getting the right JDK fixed it - Im sure you're not surprised. Thanks for the help.
  2. Ok, so I think this is probably a version issue. Forgive me, I'm a Java noob and I'm more of a c# guy ?. The IDE's and project layouts are very unfamiliar to me. So I the screenshot above of my Java versions is my version of Java (version 8) and my JDK is version 12.0.1. I think its possible that I'm using JDK version 12 and then trying to run it with Tribot which is using version 8? When I set my project up in Intellij the Project SDK is 12.0.1. My only problem is that IntelliJ doesnt give me any other options. Do i need to download SDK version 8?
  3. Hey thanks for helping, I just realized this is in the Bot Debug output [16:49:21] java.lang.ClassNotFoundException: scripts/runeShopper [16:49:21] at java.lang.Class.forName0(Native Method) [16:49:21] at java.lang.Class.forName(Unknown Source) [16:49:21] at obf.dg.EH(mk:473) [16:49:21] at obf.dg.Zh(mk:89) [16:49:21] at obf.Se.<init>(tm:200) [16:49:21] at obf.Se.<init>(tm:157) [16:49:21] at obf.Cj.BO(qi:468) [16:49:21] at obf.Cf.xj(nn:1361) [16:49:21] at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [16:49:21] at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) [16:49:21] at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) [16:49:21] at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [16:49:21] at javax.swing.AbstractButton.doClick(Unknown Source) [16:49:21] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) [16:49:21] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) [16:49:21] at java.awt.Component.processMouseEvent(Unknown Source) [16:49:21] at javax.swing.JComponent.processMouseEvent(Unknown Source) [16:49:21] at java.awt.Component.processEvent(Unknown Source) [16:49:21] at java.awt.Container.processEvent(Unknown Source) [16:49:21] at java.awt.Component.dispatchEventImpl(Unknown Source) [16:49:21] at java.awt.Container.dispatchEventImpl(Unknown Source) [16:49:21] at java.awt.Component.dispatchEvent(Unknown Source) [16:49:21] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [16:49:21] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [16:49:21] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [16:49:21] at java.awt.Container.dispatchEventImpl(Unknown Source) [16:49:21] at java.awt.Window.dispatchEventImpl(Unknown Source) [16:49:21] at java.awt.Component.dispatchEvent(Unknown Source) [16:49:21] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [16:49:21] at java.awt.EventQueue.access$500(Unknown Source) [16:49:21] at java.awt.EventQueue$3.run(Unknown Source) [16:49:21] at java.awt.EventQueue$3.run(Unknown Source) [16:49:21] at java.security.AccessController.doPrivileged(Native Method) [16:49:21] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:21] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:21] at java.awt.EventQueue$4.run(Unknown Source) [16:49:21] at java.awt.EventQueue$4.run(Unknown Source) [16:49:21] at java.security.AccessController.doPrivileged(Native Method) [16:49:21] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:21] at java.awt.EventQueue.dispatchEvent(Unknown Source) [16:49:21] at obf.HD.CI(yh:387) [16:49:21] at obf.HD.dispatchEvent(yh:371) [16:49:21] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [16:49:21] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [16:49:21] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [16:49:21] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [16:49:21] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [16:49:21] at java.awt.EventDispatchThread.run(Unknown Source) [16:49:22] java.lang.ArrayIndexOutOfBoundsException: -1 [16:49:22] at obf.Xe.tj(ff:31) [16:49:22] at obf.Xe.vL(ff:125) [16:49:22] at obf.nf.xd(cg:186) [16:49:22] at obf.dg.Zh(mk:466) [16:49:22] at obf.Se.<init>(tm:200) [16:49:22] at obf.Se.<init>(tm:157) [16:49:22] at obf.Cj.BO(qi:468) [16:49:22] at obf.Cf.xj(nn:1361) [16:49:22] at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [16:49:22] at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) [16:49:22] at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) [16:49:22] at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [16:49:22] at javax.swing.AbstractButton.doClick(Unknown Source) [16:49:22] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) [16:49:22] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) [16:49:22] at java.awt.Component.processMouseEvent(Unknown Source) [16:49:22] at javax.swing.JComponent.processMouseEvent(Unknown Source) [16:49:22] at java.awt.Component.processEvent(Unknown Source) [16:49:22] at java.awt.Container.processEvent(Unknown Source) [16:49:22] at java.awt.Component.dispatchEventImpl(Unknown Source) [16:49:22] at java.awt.Container.dispatchEventImpl(Unknown Source) [16:49:22] at java.awt.Component.dispatchEvent(Unknown Source) [16:49:22] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [16:49:22] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [16:49:22] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [16:49:22] at java.awt.Container.dispatchEventImpl(Unknown Source) [16:49:22] at java.awt.Window.dispatchEventImpl(Unknown Source) [16:49:22] at java.awt.Component.dispatchEvent(Unknown Source) [16:49:22] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [16:49:22] at java.awt.EventQueue.access$500(Unknown Source) [16:49:22] at java.awt.EventQueue$3.run(Unknown Source) [16:49:22] at java.awt.EventQueue$3.run(Unknown Source) [16:49:22] at java.security.AccessController.doPrivileged(Native Method) [16:49:22] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:22] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:22] at java.awt.EventQueue$4.run(Unknown Source) [16:49:22] at java.awt.EventQueue$4.run(Unknown Source) [16:49:22] at java.security.AccessController.doPrivileged(Native Method) [16:49:22] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [16:49:22] at java.awt.EventQueue.dispatchEvent(Unknown Source) [16:49:22] at obf.HD.CI(yh:387) [16:49:22] at obf.HD.dispatchEvent(yh:371) [16:49:22] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [16:49:22] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [16:49:22] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [16:49:22] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [16:49:22] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [16:49:22] at java.awt.EventDispatchThread.run(Unknown Source) I've found a similar forum post that seems to think this is caused by different Java versions (see here). I'm not sure if that makes sense as I believe I only have one version installed: Is it possible that Tribot isn't the newest version of Java?
  4. Hey everyone, I'm having trouble getting my local script to show. A couple things to note: I am vip I have added a script manifest as one forum post suggested not having this would make the script not appear I added package scripts; into my class I'm getting an Error in the Client Debugger - "Error loading local script: runeShopper!" - something must be wrong with my code Heres what I am doing Below is the class that I am trying to have appear. It doesn't do much as you can see, but I'm just trying to get my dev environment set up so I can test/debug. I compiled the code below to generate the .class file and I placed the class file in my "C:\Users\[user]\AppData\Roaming\.tribot\bin\scripts" folder. I run TriBot_loader.Jar (worth noting - i run it from command line because it doesnt start properly for me by just launching the jar via double click). In TriBot I go to File -> View Local Scripts Folder and an Explorer window opens C:\Users\[user]\AppData\Roaming\.tribot\bin\scripts and I can see my .class file. In TriBot I hit start script and a window appears with no scripts in it. I'm really trying to make sure I do things correctly and I'm attempting to research as best I can. Any help is appreciated. package scripts; import org.tribot.api.DynamicClicking; import org.tribot.api2007.Camera; import org.tribot.api2007.NPCs; import org.tribot.api2007.Player; import org.tribot.api2007.Walking; import org.tribot.api2007.types.RSNPC; import org.tribot.script.Script; import org.tribot.script.ScriptManifest; @ScriptManifest(authors = { "DudeInBanff" }, category = "Money Making", name = "iRuneBuyer") public class runeShopper extends Script { @Override public void run() { while(moneyLeft()){ tradeShopKeeper(); } } private boolean moneyLeft(){ return true; } private void tradeShopKeeper() { RSNPC[] jim = NPCs.findNearest(2886); //look for NPC if(!jim[0].isOnScreen()){ //check if he or she is on screen, if not RSNPC target = jim[0]; Camera.turnToTile(target.getPosition()); //turn camera to jim Walking.walkTo(jim[0].getPosition()); //walk to where jim is sleeps(); //wait until the character is not moving } DynamicClicking.clickRSNPC(jim[0], "Trade"); //trade or what ever the npc } private void sleeps() { sleep(500); while(Player.getAnimation() != -1){ sleep(50); } } }
  5. this might be a dumb question, but is the Tribot.jar file that is attached in his Referenced Libraries the same Jar you download on the home page? When I download the Jar on the homepage I get TriBot_loader.jar. If I use that as an external library I dont seem to be able to reference org.tribot.scripts.*.
×
×
  • Create New...