Everything posted by Woody
- False Advertising
-
False Advertising
In other words: Please, let me buy your reviews because I'm less better than my competitors and I think this is a good strategy to get popular.
-
Returning wrong state for no reason?
Ugh.. Your conditions and naming your states are so flawed. If you want help, post your code and perhaps we can help you with your problem. Edit: try something like this if got food if in combat area if not under attack return state.FIGHT else return state.WAIT else return state.WALK_TO_COMBAT_AREA else if in bank area return state.BANK else return state.WALK_TO_BANK
-
LEICESTER CITY FC BARCLAY PREMIER LEAGUE WINNERS
You're like 37 minutes late buddy
-
Returning wrong state for no reason?
Because your logic is flawed. Trust me, you will never make me upset. EDIT: Why do you even have an OUT_OF_FOOD state? What purpose does it have? Just do: if out of food -> go to bank to retrieve food (return state.WALK)
-
Returning wrong state for no reason?
Your logic is flawed. You should have more/better conditions.
-
[Combat] Constant clicking on NPC
if (guard != null && guard.isAttackable() && !myPlayer().isUnderAttack()) return State.KILL; You need more checks other than "guard != null" if you want to fight NPC. As IHB said, you should put a sleep after interaction; a conditional sleep. if(guard != null){ if(guard.interact("Attack")) { log("Status: Attacking..."); new ConditionalSleep(4000, 500) { @Override public boolean condition() throws InterruptedException { return api.myPlayer().isInteracting(guard); } }.sleep(); } } It will check the condition() every 500 ms and wait maximum 4000 ms before executing the interaction again.
-
inventory.interact question
if (inventory.interact(this.basketsName, "Basket")) { There is no action option "Basket". That is why the mouse only hovers it. Also, do a null check before interacting with items. Item item = inventory.get if item != null item.interact("Fill")
-
Who can write tutorials automatic login, automatic rest or tutorial
Learn some English dude. I hope google can translate that for you to understand.
- Savage
-
Maths People?
Tried using Newton's method?
-
Move mouse while waiting for tasks to complete
While animating -> find another nearby tree -> move mouse over the tree
- scary
- "good weather"
-
What IDE Do You Use for Scripting?
Microsoft word
-
What's your favourite script?
Woody's Firemaker
-
ConditionalSleep and ConditionalLoop
As a S2 you should remember those methods and not rely on the API docs.
-
Object Help
RS2Object obj = blah ConditionalSleep -> return obj.getId() == the changed id If the objects are not moving position, use the x and y coordinates as iJodix suggested to retrieve a certain object.
-
how to place a sleep when smelting?
You are making the same mistake for using while loop. You shouldn't use a while loop for sleeping purpose.
-
how to place a sleep when smelting?
Why r u stalking me?
-
how to place a sleep when smelting?
Nope. If you really want to use a while loop, always have a backup so it doesn't get stuck in the loop.
-
isAnimating() is returning false during the brief period between sequence of animations
As Fruity said*
-
how to place a sleep when smelting?
That will not work for his purpose.
-
how to place a sleep when smelting?
The character only animates when it's placing the ore in the furnace, therefore it will only wait for a very short period before interacting with the furnace again.
-
isAnimating() is returning false during the brief period between sequence of animations
You can have it so the timer begins on a certain animation, you silly.