Jump to content

PineappleSausage

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

901 profile views

PineappleSausage's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Hey so I've been testing out scripts that I write myself for a bit. Made a flipper script which basically just looks at the top traded items and buys low/sells high. Works just fine and all but I keep getting banned using it. Doesn't last more than 3-6 days. I've tried adding all sorts of random shit to it (random walking around, random short/long delays, mistyping item names, etc), but it doesn't work. The thing is all the other scripts I've written are still goin strong so far (3+ weeks). It's just this one script which is getting me banned consistently. I feel like jagex have safeguards specifically for the GE... Has anyone had the same experience using the GE? Either way going to give up on using this script. Requires putting like 15-20m on the account to flip efficiently anyways, too risky.
  2. I must be missing something... when I go to create an account from the oldschool page, it takes me here: https://secure.runescape.com/m=account-creation/g=oldscape/create_account?trialactive=true This page doesn't let me make an account without a valid email. I've gotten around it using emails from https://temp-mail.org/ but it's still annoying. Also, as far as I can tell, having a valid email doesn't matter. Been testing various methods for the past month and several accounts of mine have gotten banned despite having confirmed email addresses linked to em.
  3. Really nice tool, viewing the logs will be a nice touch. One issue though, the local script loader only loads the first Script it finds in jar files. It should load all the local Scripts it can find imo, so I made a quick PR if you wanna look: https://github.com/Explv/osbot_manager/pull/1/files Couldn't get this to build though (not sure if missing a dependency?) even when including the osbot.jar, but I think these changes will work.
  4. Hm okay... Well I thought of a fairly easy way to still create modular scripts. Just need to separate out the implementation. TinCopperMiner: public class TinCopperMiner extends Script { private TinCopperMinerImpl tinCopperMinerImpl; @[member='Override'] public void onStart() { TinCopperMinerImpl tinCopperMiner = new TinCopperMinerImpl(this); } @[member='Override'] public int onLoop() throws InterruptedException { TinCopperMinerImpl.execute(); this.stop(); return 0; } @[member='Override'] public void onExit() {} } TinCopperMinerImpl (the actual implementation): public class TinCopperMinerImpl { Script parentScript; public TinCopperMinerImpl(Script script) { // still have access to the Script's API via this constructor arg parentScript = script; } // psuedo-code-y public void start() { setup(); while (some condition is true) { loop(); } exit(); } // some methods similar to what you'd override in the Script class private void setup() private int loop() private void exit() } The "main" entry Script I talked about would then call out to individual implementations not Scripts: @[member='Override'] public int onLoop() throws InterruptedException { TinCopperMinerImpl tinCopperMinerImpl = new TinCopperMinerImpl(this); tinCopperMinerImpl.execute(); // call more executes of other Script implementations as needed this.stop(); return 0; } Pretty hack-y and I'm not 100% sure this will work. But if it does work, it would allow me to use TinCopperMiner as a Script on its own, or use its implementation in a different script. Is there some other, better way to create modular code? Or maybe a tool which lets you run Scripts back to back (which is basically all I want to be able to do)? I'm just trying to keep code modular for readability and efficiency purposes. I stumbled upon a tutorial island script here on this site which had a switch statement in its onLoop with several hundred cases... definitely trying to avoid that.
  5. Hi, I am new to this API and bot scripting in general (not to coding though) and I'm unsure of how to accomplish using multiple scripts. I'm trying to use something like a "main" Script as an overarching entry point, which can call other Scripts in sequential order. This way, I could implement modular Scripts. So in my "main" script I have this: @[member='Override'] public int onLoop() throws InterruptedException { Script tinCopperMiner = new TinCopperMiner(); // TinCopperMiner is a local script Bot bot = this.getBot(); bot.getScriptExecutor().prepare(tinCopperMiner); bot.getScriptExecutor().start(tinCopperMiner); // call more local scripts as needed this.stop(); return 0; } The inner, modular Scripts would be responsible for calling stop(). This doesn't seem to work though (null pointer exception), probably am misusing the API...
×
×
  • Create New...