Everything posted by Token
-
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
-
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 Builder
The script will be updated shortly
-
Stealth Builder
Authed Does it also happen if you start the script now that you are lvl 40/50? Authed
- 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 Builder
-
Stealth Builder
I'm afraid I chose to remove my own access to deleting expired auths from the database due to the large amount of people asking for multiple trials over and over again
-
Stealth Builder
Yes if it's not there anymore
-
Stealth Builder
24 hours since the start
- Stealth Builder
- Stealth Builder
-
Stealth Builder
That blonde moment lol
- Stealth Builder
- Stealth Builder
- Stealth Builder
- Stealth Builder
-
Stealth Builder
Anywhere OSBot's webwalker can walk (not in a house), it will automatically buy required supplies
-
Stealth Builder
Where did you start the script?
-
Stealth Builder
Post the logger contents
- Stealth Builder
-
have i made a big mistake?
No a kitten won't solve her problems, you should actually ask her what's wrong and try to fix that instead