Everything posted by Token
- Stealth Quester
- Stealth Quester
-
Script not running
Just initialize it inside a method when you actually need it
-
Script not running
It's exactly what I said, you initialized wPump outside the Script methods
-
Script not running
You most likely attempted to initialize an instance of any OSBot class outside the methods defined in the Script class, eg: @ScriptManifest(name = "Lol", author = "Token", version = 1.0, info = "", logo = "") public class Lol extends Script { NPC x = npcs.closest("Guard"); // script won't start because of this NPC y; @Override public void onStart() throws InterruptedException { // something y = npcs.closest("Guard"); // but this is fine } @Override public int onLoop() throws InterruptedException { // something return 69; } } Post your code if that's not the case because this is definitely a programming error
- Stealth Quester
- Stealth Quester
-
Stealth Quester
It was designed for goldfarming aka mass account creation, I wouldn't personally use it just for one account
- Stealth Quester
-
Stealth Quester
Unfortunately there is the problem of determining which is the best weapon and armour which requires a full item database dump and writing definitions for ~20k item ids in order to have a sound and complete solution to this
-
How to tell if player is attacking me
script.players.getAll().stream().filter(x -> script.myPlayer().equals(x.getInteracting())).findFirst().isPresent(); // there is a player ATTEMPTING to attack, not necessarily already attacked script.myPlayer().isHitBarVisible(); // only works if the attack triggered health bar display (not a splashed spell) script.projectiles.getAll().stream().filter(x -> script.myPlayer().equals(x.getTargetEntity())).findFirst().isPresent(); // a ranged/magic attack was launched against the bot Combining the 3 will give you a relatively good coverage on simple cases but unfortunately the topic of accurately determining combat is very complex. Imagine a player casts wind strike on you in the wilderness (he's interacting with you in this case) then quickly eats food (he's no longer interacting with you), the health bar is not visible but there is a projectile launched with your player as its target, if it hits then your health bar will be visible but if it splashes, your health bar will not be visible, the player is not interacting with you because the interaction was interrupted by eating and there is no projectile launched towards your player. But you are in combat with him for 8 seconds or whatever the timer is. The only way to determine if you really are under attack 100% is by caching this state once you detect an attacker and clearing the cache once the combat timer is up so if you want the maximum precision (eg pking scripts) you will have to multithread your script and dedicate a whole thread to managing the combat state and determining the opponent.
- Stealth Quester
-
Stealth Quester
Quests were always added based on API limitations, so if that allows it maybe
-
Stealth Builder
The script will be updated shortly
-
Stealth Quester
The order is already randomized, the prices are defined based on rsbuddy's website so they aren't static either and they should change at least every 30 mins or so, but randomizing the quantity doesn't really make sense unless it's for runes or food where it can buy extras Authed Authed Authed Authed
-
Stealth Builder
Authed Does it also happen if you start the script now that you are lvl 40/50? Authed
- Stealth Quester
- Stealth Quester
- Stealth Quester
- Stealth Quester
- Stealth Builder
-
It's a sad day for OSBot
I've avoided the whole chatbox
-
Stealth Builder
It says you had one last week
-
It's a sad day for OSBot
Wtf why am I banned
- Stealth Quester