Everything posted by Token
-
Get hexadecimal value of a config
Click on decimal display. Get the config values Format: [CONFIG] : [VALUE] is displayed as you play. if (script.configs.get(CONFIG) == VALUE1) { // in dream } else if (scripts.config.get(CONFIG) == VALUE2) { // not in dream }
-
Get hexadecimal value of a config
In config debugger you have 3 big buttons for hexadecimal, decimal and binary display. The hexadecimal one is completely useless because there is no case in runescape history where information is stored on nibbles but quite often on bits (hence we sometimes use binary values for example when I wrote Demon Slayer the incantation is written in the quest config). The internal representation of numbers is binary in 2's complement but if you write Ah, 10 or 1010b and compare them with each other you should always get an equality because regardless of base, they have the same internal representation.
-
Get hexadecimal value of a config
Why aren't you working with the decimal value?
-
Help with a chest
Did you try without those underscores?
-
Ardougne Nature Chest
I'm not sure if this is the case with that specific building which contains the chest but if you check for and x and y coordinates but not z and your player ends up standing on those exact coordinates but on ground floor the bot will get stuck. I generally compare the whole position of an object as that's 100% accurate and will not produce such bugs. The following code should work: if (myPosition() != new Position(2672, 3301, 1)) { state = "Walking to spot"; walking.webWalk(new Position(2672, 3301, 1)); }
-
61 cmb b gloves :doge:
Already sent my autoreporter to your cc
- Force logout
-
Selling nice account
Bid noted thanks PS: Leading
- Selling nice account
-
WebWalking Problems
I doubt the WebWalker was updated since there hasn't been an OSBot update but posting relevant code may help in getting the issue fixed.
-
[Tutorial][Indepth] A better take on task based scripts
Gotta love the states vs tasks fight. Big boys write everything in onLoop() :ph34r: :ph34r: :ph34r:
-
Alone on Valentines day?
I'm in a relationship with someone and they don't even know about it. Could it be worse? :ph34r:
-
Random resolvers
You cannot implement a behaviour for each individual random event using the OSBot random solving api (as in actual runescape random events, not the login screen and other stuff in there). RandomEvent is an enum having no fields for each random event, only the DISMISS_RANDOM field which is used for every event. Each event has a RandomBehaviourHook that describes how the bot will behave if it should activate. So you may be able to use the OSBot random event api to write your own behaviour that applies to all random events but not to an individual one. If you insist to create your own behaviour for every random event in runescape then you can proceed to unregistering the hook for DISMISS_RANDOM so the bot will no longer react to randoms. Now you can define a custom behaviour when a given random is present (context detected using objects/npcs) and you may write your solvers just like any other script functionalities. Finally, create a new RandomBehaviourHook with the solving code and register it using RandomExecutor for the DISMISS_RANDOM field of RandomEvent.
- Selling nice account
- Selling nice account
- Selling nice account
- Selling nice account
- Selling nice account
-
scripts not working
Could you be more specific? What are the scripts that are not working?
-
grounditems string[]
String[] lootItems = { "apple", "orange", "banana" }; if (groundItems.getAll().stream().filter(item -> Arrays.asList(lootItems).contains(item.getName())).count() > 0) { wherethemagichappens(); }
-
Quest complete check doesn't work
The quest API is not functional, I wrote my own. Even the getQuestPoints() method is broken.
- Selling nice account
-
Using synchronized() to your advantage
- Selling nice account
- Selling nice account
1. Pictures of the account stats 2. Pictures of the login details 3. Pictures of the total wealth (if there is any) None. 4. Pictures of the quests completed Animal Magnetism Cook's Assistant Doric's Quest Druidic Ritual Dwarf Cannon Ernest the Chicken Goblin Diplomacy Imp Catcher Jungle Potion Plague City Priest in Peril Recipe for Disaster (2 subquests: Cook and Goblin) Romeo and Juliet Rune Mysteries Sheep Shearer The Knight's Sword The Restless Gohst Vampire Slayer Witch's Potion 5. The price you will be starting bids at 0 6. The A/W (Auto-win) for your account sqrt(e^100) * 1/lg(pi) gp 7. The methods of payment you are accepting 07 gp 8. Your trading conditions I will go first if you are trusted, otherwise we can use a middleman 9. Pictures of the account status 10. Original/previous owners AND Original Email Address I am the original owner, the account does not have a registered email address.