Jump to content

Swizzbeat

Members
  • Posts

    7986
  • Joined

  • Last visited

  • Days Won

    58
  • Feedback

    100%

Everything posted by Swizzbeat

  1. Swizzbeat

    App Logos

    Great work as always, would highly recommend!
  2. Need someone to design me an icon for my app. App design experience preferred (or at least know how to design something "app icon" style). Send me a PM if interested.
  3. Weren't you a mod for MyGOBot?
  4. Dude get out of here I'm surprised @Maldesto is trusting you with a moderating position lol
  5. all these pokemon go bots
  6. @Novak tried to convince everyone he was a girl
  7. I own one. Let me know if you need any help. I've seen some bad code but that repository is just horrendous. I like you ;)
  8. Swizzbeat

    hi

    Hi get back to work please. Hey bud long time no talk :p You have long hair right?
  9. Swizzbeat

    hi

    ayyyyy scotty with a moderator position
  10. Swizzbeat

    hi

    i used to be a celebrity and now no one remembers me
  11. I wrote my own algo. You're not being forced into using A* or Dijkstra.
  12. In my implementation I subclass my base connection type and connect all my "walkable" nodes that way. My algorithm then recognizes these connections and adjusts itself accordingly.
  13. no they wont wtf can you read https://support.google.com/adsense/answer/48182?hl=en
  14. wait what do you know what phishing is?
  15. idc but I'd optimize it since that codes pretty shitty
  16. uhhh no offence but im pretty sure even a stock broker knows more than you about stocks and they're all autistic
  17. Here's the map if you want to create an actual utility: http://www.filedropper.com/showdownload.php/map_3
  18. I have moderated content on here cause I'm an asshole so my posts need to be approved by mods. import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; /** * Created with IntelliJ IDEA * User: Anthony * Date: 6/8/2014 */ public class XPListener extends Thread { private boolean running; private int lastXpGain; private long lastXpGainTime; private Script sI; private Skill skill; public XPListener(Script sI, Skill skill) { this.running = true; this.sI = sI; this.skill = skill; } @Override public void run() { while (running) { int oldXp = sI.skills.getExperience(skill); try { Thread.sleep(600); } catch (InterruptedException e) { } int newXp = sI.skills.getExperience(skill); if (oldXp != newXp) { lastXpGain = newXp - oldXp; lastXpGainTime = System.currentTimeMillis(); } } } public void setRunning(boolean running) { this.running = running; } public Skill getSkill() { return skill; } public int getLastXpGain() { return lastXpGain; } public long getLastXpGainTime() { return lastXpGainTime; } } import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /** * Created with IntelliJ IDEA * User: Anthony * Date: 6/8/2014 */ public class XPTracker { private Script sI; private Set<XPListener> xpListeners; public XPTracker(Script sI) { this.sI = sI; this.xpListeners = new HashSet<>(); } public void startTrackingSkills(Skill... skills) { for (Skill s : skills) { XPListener listener = new XPListener(sI, s); listener.start(); xpListeners.add(listener); } } public void stopTrackingSkills(Skill... skills) { Iterator<XPListener> iterator = xpListeners.iterator(); for (Skill s : skills) { while (iterator.hasNext()) { XPListener l = iterator.next(); if (l.getSkill() == s) { l.setRunning(false); iterator.remove(); break; } } } } public int getLastXpGainForSkill(Skill skill) { int returnValue = -1; for (XPListener l : xpListeners) { if (l.getSkill() == skill) { returnValue = l.getLastXpGain(); break; } } return returnValue; } public long getLastXpGainTimeForSkill(Skill skill) { long returnValue = -1; for (XPListener l : xpListeners) { if (l.getSkill() == skill) { returnValue = l.getLastXpGainTime(); break; } } return returnValue; } public Set<XPListener> getXpListeners() { return xpListeners; } } Code is shit I wrote it awhile ago (it's not even a listener lol idk why I called it that). Create and register like so: XPTracker tracker = new XPTracker(this); tracker.startTrackingSkills(Skill.FLETCHING); The check using tracker methods: tracker.getLastXpGainTimeForSkill(Skill.FLETCHING) // returns milliseconds since last xp gain
  19. More than likely you're doing this because the player stops animating in between smelting and the bot goes and attempts to smelt again? Just monitor your last smithing xp gain and if it was over a certain threshold then you know you have to smith.
×
×
  • Create New...