Everything posted by Token
-
Stealth Quester
The client is not functional right now because of the update 2 hours ago, webwalking will not work until it gets fixed
- Stealth Quester
-
Stealth Quester
Does it not complete the dialogue?
-
Stealth Quester
It doesn't get any stats, it's just a questing script
-
Stealth Quester
Authed At which parts of what quest
-
Case switching question.
Just post your whole source code, I doubt there is anything wrong with the code above
-
Case switching question.
Then canReach may not be good enough either, just insert a max distance of 8 or so to your tree as condition
-
Case switching question.
Yes it is a problem in the CHOP case as I stated. Invoking interact() on an Entity will create a default InteractionEvent instance which will walk to that Entity if it's too far. InteractionEvent will create a WalkingEvent instance and set it as its child. This WalkingEvent instance will create a LocalPathFinder instance that will generate a path to the closest position from which the target of the InteractionEvent can be accessed. The problem in here is that LocalPathFinder will only generate paths to tiles that are on map, which results in this weird behavior depending on how the current region loaded. Those entities that are not on minimap cannot be walked to, but they are not null so your bot will be stuck there trying to find a path to it. case CHOP: Entity treeToChop = objects.closest(tree); GroundItem birdNest = groundItems.closest("Bird nest"); treeToChop.interact("Chop down"); StatusUpdate = "Chopping " + tree + " logs"; new ConditionalSleep(10000) { public boolean condition() throws InterruptedException { return !treeToChop.exists(); } }.sleep(); if (birdNest != null && pickupBirdsNests == true) { birdNest.interact("Take"); } break; Adjusted some code in there. You already null check the tree in your getState() so the if is redundant. There are many ways to check to check if you can walk to that specific Entity, easiest would be private State getState() { Entity treeToChop = objects.closest(tree); if (inventory.isFull() && powerChop == false) return State.BANK; if(inventory.isFull() && powerChop == true) return State.POWERCHOP; if (treeToChop != null && map.canReach(treeToChop)) return State.CHOP; else return State.WALK; } You can also go with LocalPathFinder lpf = new LocalPathFinder(bot); lpf.findPath(tree); And use lpf.foundPath() As condition to verify if you can walk to your tree. tree.getPosition().isOnMiniMap(bot) Is good but not perfect, it leaves out the 1 in a million case where trees are arranged in such way that the tree is on minimap, but there is no tile on minimap from which you can access it
- Stealth Quester
-
Stealth Quester
Starting the script while certain quests are in progress is not supported on all quests yet, it is not able to continue on RFD Pirate Subquest from stage 40, only maybe if it's interrupted before stage 30
-
Case switching question.
You missed the case where you are outside the bank but there are no nearby trees, using areas or any other predefined sets of data is generally not a good idea. Remove the areas in your logic and it should look like this private State getState() { Entity treeToChop = objects.closest(tree); if (inventory.isFull() && powerChop == false) return State.BANK; if(inventory.isFull() && powerChop == true) return State.POWERCHOP; if (treeToChop != null) return State.CHOP; else return State.WALK; } And a state that doesn't do anything at all is just bad practice, simply returning from the current loop iteration without performing any actions will yield the same result. PS: you also have the case where you are at the desired location to chop trees but all tree instances are depleted, but since you know the destination you can add this condition to your states Edit: You should post the case CHOP as the error is definitely there
- Stealth Quester
-
fishers too greedy to buy windows :/
phishers started fishing http://osbot.org/forum/topic/106610-phishers-too-greedy-to-buy-windows/
-
Next level businessman
- What is the monthly average revenue of a good scriptwriter?
- What is the monthly average revenue of a good scriptwriter?
Scripters average $11,800 per month- Stealth Quester
Did you start the script at stage 40?- Stealth Quester
Did it get stuck because of equipment weight?- Stealth Quester
Create a gear preset and load the gear while you have a spell selected on autocast in game, the selected spell will be displayed on the GUI with the other gear components. Only the 16 elemental spells are supported, and it will only take runes for quests that contain combat.- Stealth Quester
I'll post the change log if there's any update, except for bug fixes- Stealth Quester
Idk... I haven't personally been banned- Stealth Quester
- Stealth Quester
- Stealth Quester
- Stealth Quester
Doing previously started quests is not fully supported on every quest, as stated in the instructions, RFD Pirate Subquest cannot continue because the underwater area is not accessible to the webwalker yet - What is the monthly average revenue of a good scriptwriter?