Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
OSRS Gambling

Interested in advertising your business? Reach out today!

Download the DreamBot client today!

hoke2012

Members
  • Content Count

    117
  • Joined

  • Last visited

About hoke2012

  • Rank
    Member
  • Birthday 05/12/1993

Profile Information

  • Gender
    Male

Recent Profile Visitors

2431 profile views
  1. hoke2012

    onPaint() help

    Thanks for your input but i already figured it out by passing it through the method. Originally i couldnt pass it through the method like youre saying because it interferred with one of my other classes. just so you know, my script works and has worked, the difference is i am writing java like it should be written by partioning into different classes and not just writing it in script from top to bottom. Global static g isnt even needed. Again thanks for your input although it wasnt useful. Again, script is working so obviously i know enough java to write a bot
  2. hoke2012

    onPaint() help

    it's delcared at the top of the FishingHelper class. private static Graphics g;
  3. hoke2012

    onPaint() help

    Long story short im working on a bot that contains multiple scripts. Because of this i am making paint for each bot, in this case fishing. im currently ironing everything out, that includes the paint. since there will be different paint for 7 different skills i have decided to make a method for the g.drawstrings for each paint. my problem occurs when the paint isnt being drawn. the variable turns true but it isnt recognized and paint. any help would be appreciated ______________________this snippet is from my main class______________________ @Override public void onPaint(Graphics g) { if (GuiHelper.getisFishing()) { FishingHelper.FishingPaint(); } } ____________________this is the method i am calling on for the paint________________________________________ public static void FishingPaint() { if (context.image != null) { g.drawImage(context.image, 0, 340, null); } { if (!context.hide) { g.drawImage(context.closeIcon, 500, 350, null); } if (context.hide) { g.drawImage(context.closeIcon, 500, 350, null); }} if (!context.hide) { g.drawImage(context.background, 20, 340, null); g.setColor(Color.white); g.drawImage(context.closeIcon, 500, 350, null); g.drawString("" + context.getSkillTracker().getGainedExperiencePerHour(Skill.FISHING), 385, 445); g.drawString("" + context.getSkillTracker().getGainedExperience(Skill.FISHING), 462, 432); g.drawString("" + formatTime(context.getSkillTracker().getTimeToLevel(Skill.FISHING)), 340, 393); g.drawString("" + GuiHelper.timeRan.formatTime(), 350, 465); g.drawString(BotState.getStartLevel() + " / " + BotState.getCurrentLevel() + " ( +" + BotState.getLevelsGained() + " )", 438, 390); g.drawString("" + (BotState.getCounter()), 409, 415); } if (context.hide) { g.drawImage(context.closeIcon, 500, 350, null); } } _________________________below is the action that sets the variable true when called on_____________________________________ public static boolean isFishing = false; isFishing = fishingCheckBox.isSelected(); if (fishingCheckBox.isSelected()) { GuiHelper.setisFishing(true); log("fishing set true"); GuiHelper.createFishingGUI(client, context); }
  4. Hey guys, i wrote this for practice with dreambots api and im trying to test it. i have it in the correct folder "svripts" in dreambot but it is appearing. any ideas on what i need to fix? import org.dreambot.api.methods.Calculations; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.Category; import org.dreambot.api.wrappers.interactive.NPC; @ScriptManifest(author = "Hoke2012", name = "FreeFlyFisher", version = 1.0, description = "Flyfish Anywhere!", category = Category.FISHING ) public class test extends AbstractScript { public void onStart() { log("Welcome to FreeFlyFisher by Hoke2012."); log("If you experience any issues while running this script please report them to me on the forums."); log("Enjoy the script, gain some fishing levels!."); } private enum State { FISH, DROP, WAIT }; private State getState() { NPC Fishing_spot = getNpcs().closest(fis -> fis != null && fis.getName().equals("Rod Fishing Spot")); if (getInventory().isFull()) { return State.DROP; } if (Fishing_spot != null) { return State.FISH; } return State.WAIT; } public void onExit() { } @Override public int onLoop() { switch (getState()) { case FISH: NPC Fishing_spot = getNpcs().closest(fis -> fis != null && fis.getName().equals("Rod Fishing Spot")); if (Fishing_spot != null) { Fishing_spot.interact("Lure"); } break; case DROP: getInventory().dropAll("Trout", "Salmon"); break; case WAIT: sleep(Calculations.random(500, 600)); break; } return Calculations.random(500, 600); } }
  5. 25mil osrs gp each. inbox me if interested no emails attached, unregistered, hand trained
  6. The bot isnt worked on progression with tropical wingtails. i am level 19 standing in feldip hills and it does nothing but stand there. [INFO]13:00:41: Stopping script: Manly Hunter [INFO]13:00:46: Starting game state listener! [INFO]13:00:46: Starting experience listener... [INFO]13:00:46: Started experience listener! [INFO]13:00:46: Script set to running! [ERROR]13:00:46: Exception has occurred while running! Please report error to developer if problem persists: java.lang.NullPointerException at ManlyHunter.onLoop(Unknown Source) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:256) at java.lang.Thread.run(Unknown Source)
  7. i think you misunderstood... im talking about banned on dreambot, not runescape.
  8. Aye so my roommate wants to star playing osrs again and wants to use dreambot. he would be on the same IP as me but with a different client and username. he will have his own bots on his account and wont be using mine. Will this be an issue? i dont request very many trials so im not too worried. i know in the past we had a lot of issues with people abusing multiple accounts for extra free trials. i just want it to be known ahead of time what is happening when the devs see multi logged ip's for multiple accounts
  9. i have over 4,000 points on my main from this bot and have yet to recieve a ban. i only run pc for 2-3hrs though. 8-10hrs is probably what got you busted, not the bot itself
×
×
  • Create New...