Jump to content

Heiz

Scripter II
  • Posts

    55
  • Joined

  • Last visited

  • Feedback

    0%

About Heiz

Profile Information

  • Gender
    Male

Recent Profile Visitors

483 profile views

Heiz's Achievements

Steel Poster

Steel Poster (4/10)

14

Reputation

  1. I loved it, it made me think a lot about the society we live in.
  2. How would you make that same cannon code then?
  3. Did not know this feature, thanks!
  4. Hi guys, I have a script that works perfectly locally, however, when trying to run your same version of SDN, the script doesn't even open the GUI, returning weird things in the log that don't make sense to me. Could anyone say what it could be? Error in script onStart(): Heiz Script java.lang.NullPointerException at org.osbot.utility.Logger.log(fp:154) at org.osbot.utility.Logger.log(fp:136) at org.osbot.utility.Logger.log(fp:271) at org.osbot.utility.Logger.info(fp:20) at org.osbot.rs07.script.MethodProvider.log(ei:858) at HeyzScript.onStart(o:863) at org.osbot.rs07.event.ScriptExecutor.iIIIIiiiiIIi(rm:32) at org.osbot.rs07.event.ScriptExecutor.start(rm:228) at org.osbot.hb.iIIIIiiiiIIi(bx:241) at org.osbot.e.iIIIIiiiiIIi(yp:183) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
  5. I need to create a new thread to keep watching the player's hitpoints. I looked for some tutorials here on the forum, but none worked, could someone help me please?. I tried this: Event customEvent = new Event() { @Override public int execute() throws InterruptedException { return 0; } }; customEvent.setAsync(); execute(customEvent); But it returns a lot of errors: "Method does not override method from its superclass" "Cannot resolve method 'setAsync' in 'Event'"
  6. Heiz

    Heiz Shopper

    Thanks! At the moment I have little time available to tinker with this script, but I will consider your suggestion.
  7. Maybe you can store current xp in a global variable, and then check if your variable is different from current xp public class MyAwesomeBot extends Script { private int currentExp; @Override public void onStart() { currentExp = getExperienceTracker().getGainedXP(Skill.STRENGTH); } @Override public int onLoop() { if(currentExp != getExperienceTracker().getGainedXP(Skill.STRENGTH)){ log("Exp changed!"); currentExp = getExperienceTracker().getGainedXP(Skill.STRENGTH); } return 500; } }
  8. Heiz

    Heiz Shopper

    Heiz Shopper 1.2 is on! More two stores are now available: Edgeville Cape Store and Port Sarim Fishing Shop!
  9. In my git status I get a big error message complaining about several external libraries, but all imports are being done correctly, and locally the script runs normal. Does anyone have any idea what I can do to fix this? [javac] Compiling 6 source files to bin/compile2/heiz/HeyzShopper [javac] warning: [options] bootstrap class path not set in conjunction with -source 8 [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:37: error: cannot find symbol [javac] Map itemsSellPrice = new HashMap(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:38: error: cannot find symbol [javac] Map itemsBoughtPrice = new HashMap(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:103: error: cannot find symbol [javac] Item[] items = getInventory().getItems(); [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:105: error: cannot find symbol [javac] for(Item item : items){ [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:551: error: cannot find symbol [javac] List packs = inventory.filter(item -> item.getName().contains("pack") ); [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:823: error: cannot find symbol [javac] if(!Arrays.asList(oneCost).contains(selectedItem)) [javac] ^ [javac] symbol: variable Arrays [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:884: error: cannot find symbol [javac] URL url = new URL("https://secure.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id); [javac] ^ [javac] symbol: class URL [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:884: error: cannot find symbol [javac] URL url = new URL("https://secure.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id); [javac] ^ [javac] symbol: class URL [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:885: error: cannot find symbol [javac] HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection(); [javac] ^ [javac] symbol: class HttpURLConnection [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:885: error: cannot find symbol [javac] HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection(); [javac] ^ [javac] symbol: class HttpURLConnection [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:893: error: cannot find symbol [javac] InputStreamReader inputStreamReader=new InputStreamReader(httpURLConnection.getInputStream()); [javac] ^ [javac] symbol: class InputStreamReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:893: error: cannot find symbol [javac] InputStreamReader inputStreamReader=new InputStreamReader(httpURLConnection.getInputStream()); [javac] ^ [javac] symbol: class InputStreamReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:894: error: cannot find symbol [javac] BufferedReader bufferedReader=new BufferedReader(inputStreamReader); [javac] ^ [javac] symbol: class BufferedReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:894: error: cannot find symbol [javac] BufferedReader bufferedReader=new BufferedReader(inputStreamReader); [javac] ^ [javac] symbol: class BufferedReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:935: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:947: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:983: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 17 errors [javac] 1 warning ERROR: BUILD FAILED
  10. Does anyone know how to find the object of the "Grave" itself? I tried several ways and no progress grave = getObjects().closest(o -> o.hasAction("Loot")); grave = getObjects().closest(o -> o.getName().contains("Grave")); grave = getObjects().closest(o -> o.getName().contains("ave")); grave = getObjects().closest(o -> o.hasAction("Check")); grave = getObjects().closest(o -> o.getId() == 28434); grave = getObjects().closest(o -> o.getId() == 28435); grave = getObjects().closest(o -> o.getId() == 28436); grave = getObjects().closest(o -> o.getId() == 28437); grave = getObjects().closest(o -> o.getId() == 28438); grave = getObjects().closest(o -> o.getId() == 28439); grave = getObjects().closest(o -> o.getId() == 28440); grave = getObjects().closest(o -> o.getId() == 28441); grave = getObjects().closest(o -> o.getId() == 28442); grave = getObjects().closest(o -> o.getId() == 28443); grave = getObjects().closest(o -> o.getId() == 28444); grave = getObjects().closest(o -> o.getId() == 28445); grave = getObjects().closest(o -> o.getId() == 28446); grave = getObjects().closest(o -> o.getId() == 28447); grave = getObjects().closest(o -> o.getId() == 28448); grave = getObjects().closest(o -> o.getId() == 28449); grave = getObjects().closest(o -> o.getId() == 28450); grave = getObjects().closest(o -> o.getId() == 28451);
  11. I uploaded several code changes over the days but my Last compile doesn't come out from 2021-06-06 16:52:39. I'm not remembering if I need to do something to force recompile
  12. Heiz

    Heiz Shopper

    Did you check the option to switch worlds?
×
×
  • Create New...