Everything posted by Lewis
-
Questions about Tut island scriptm
worst ways interact with the widgets
-
OSBot 2.4.103 - More WebWalking and GrandExchange
will do
-
OSBot 2.4.103 - More WebWalking and GrandExchange
now get an error with web walking [ERROR][Bot #1][12/14 03:50:08 PM]: Error executing event : org.osbot.rs07.event.WebWalkEvent@7c327aa java.lang.NullPointerException at org.osbot.rs07.event.WebWalkEvent.execute(ql:271) at org.osbot.rs07.event.EventExecutor$2.run(wh:269) at org.osbot.rs07.event.EventExecutor.execute(wh:120) at org.osbot.rs07.script.MethodProvider.execute(bo:580) at org.osbot.rs07.api.Walking.webWalk(fj:184) at script.onLoop(script.java:311) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mm:90) at java.lang.Thread.run(Unknown Source) [INFO][Bot #1][12/14 03:50:08 PM]: Walking to shop [ERROR][Bot #1][12/14 03:50:08 PM]: Error on event onStart()! java.lang.NullPointerException at org.osbot.AB.getItems(bh:117) at org.osbot.UB.iiIiIiiiIIIi(ce:24) at org.osbot.ec.iiIiIiiiIIIi(e:48) at org.osbot.lPT7.iiIiIiiiIIIi(wn:1154) at org.osbot.rb.iiIiIiiiIIIi(wf:671) at org.osbot.rb.iiIiIiiiIIIi(wf:9) at org.osbot.W.iiIiIiiiIIIi(k:182) at org.osbot.rs07.event.WebWalkEvent.prefetchRequirements(ql:60) at org.osbot.rs07.event.WebWalkEvent.onStart(ql:260) at org.osbot.rs07.event.EventExecutor$2.run(wh:237) at org.osbot.rs07.event.EventExecutor.execute(wh:120) at org.osbot.rs07.script.MethodProvider.execute(bo:580) at org.osbot.rs07.api.Walking.webWalk(fj:184) at script.onLoop(script.java:311) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mm:90) at java.lang.Thread.run(Unknown Source) im using this code to call webwalking: getWalking().webWalk(SHOP); or walking.webWalk(SHOP); both get the same errors
-
if timeRan is between two time vars do method help
Looking to add account switching to my script. Would like it to switch after example when timeRan is between 3 hour and 4 hours But i cant seem to figure out how to get it to call when its at a random time between the two, instead of being called as soon as timeRan is = 3:00:01 compared to 3:27:51 for example (random time between the two)
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
thank you, ill try it shortly
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
how do you use it? i tried: if (getInventory().getAmount("Coins") <= 1000 && inventory.getAmount("Coins") >= 0 && !GE.contains(myPlayer())) return State.WALKGE; and it was still doing it
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
Tried it and it still does it ive even added: if (!getTabs().getOpen().equals(Tab.INVENTORY)) { getTabs().open(Tab.INVENTORY); } in my ge walker case It seems to be when world hopping lags slightly, causing it not to reopen inventory (even though i have open in in walking case too)
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
i know it was being falsely called already. I'm looking for a solution to the problem. So no, he hasnt answered the question yet. Please refrain from any unrelated posts
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
such on topic, much relevance
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
yeah i tried the conditional sleep after hopping, then open inv like in example code yet it still does it
-
getInventory().getAmount("Coins") <= 1000 returning a false true after world hop
Still having an issue with my case being called even though inventory contains over 1k coins after world hopping if (getInventory().getAmount("Coins") <= 1000 && !GE.contains(myPlayer())) return State.WALKGE; is the case being called after it world hops my world hop code: else if (store.getAmount(ITEM) == 0 && store.getAmount(ITEM) < 215) { if (store.isOpen()) { store.close(); } worlds.hopToP2PWorld(); new ConditionalSleep(20000) { @[member=Override] public boolean condition() throws InterruptedException { return widgets.isVisible(548, 62); } }.sleep(); getTabs().open(Tab.INVENTORY); } note*: The conditional sleep widget is, the loading text you get when world hopping / hoping for a ghetto fix (where current world would be)
- APA Sand Crabs
-
World hopping inventory error
cant get it to work still tried waiting on widgets, login status' if inventory is open or not all dont work (it is calling open inventory before it has finished loading into the new world) and i would rather avoid a static sleep to avoid lag educed errors
-
World hopping inventory error
on my conditional sleep like so?: worlds.hopToP2PWorld(); log("hopping to new world"); new ConditionalSleep(10000) { @[member=Override] public boolean condition() throws InterruptedException { return getInventory().getEmptySlotCount() != -1; } }.sleep(); log("open inv"); getTabs().open(Tab.INVENTORY);
-
World hopping inventory error
i tried a conditional sleep on getLoginStateValue() it still gives the error.
-
World hopping inventory error
im not having an error with it hopping, i have an error after it hops, i.e im at the shop with 100k in inv, it buys items until X remaining (lets say i have 80k remaining) then it will hop. i have another muling state for if inventory has under 20k gp so, after it buys from the shops, world hops it runs to my muling area even though it has 80k in inventory still
-
World hopping inventory error
i declare the buy case by: if shop area contains my player && inventory contains > 1000 coins case BUY: NPC shop = npcs.closest(npc); if (!getTabs().getOpen().equals(Tab.INVENTORY)) { getTabs().open(Tab.INVENTORY); } if (shop != null && !store.isOpen()) { shop.interact("Trade"); new ConditionalSleep(10000) { @[member=Override] public boolean condition() throws InterruptedException { return store.isOpen(); } }.sleep(); } else if (store.getAmount(ITEM) > 0) { store.buy(ITEM, 10); } else if (store.getAmount(ITEM) > 15) { store.buy(ITEM, 10); } else if (store.getAmount(ITEM) == 0 && store.getAmount(ITEM) < 15) { if (store.isOpen()) { store.close(); } worlds.hopToP2PWorld(); sleep(random(700, 1000)); }
-
World hopping inventory error
my script basically does: if shop contains X && inventory contains X coins { do w.e } else world hop But when i world hop, it loads into the new world with the worlds tab open, causing the inventory counter to glitch out and return it doesnt contain X coins ive tried contitional sleeps for getLoginStateValue() != 20; then open the inv tab, although it does nothing also. worlds.hopToP2PWorld(); new ConditionalSleep(10000) { @[member=Override] public boolean condition() throws InterruptedException { return getClient().getLoginStateValue() != 20; } }.sleep(); getTabs().open(Tab.INVENTORY); } i also tried adding this to the top of the buy case: if (!getTabs().getOpen().equals(Tab.INVENTORY)) { getTabs().open(Tab.INVENTORY); } which still does nothing
-
6 New Scripts!
hopefully i can get my login info so i can add some scripts soon lol
-
How to implement an action after a random amount of time has passed
long lastHop = System.currentTimeMillis(); if(lastHop >= (pastTime + 30*60000) { //multiply by 60000 to get mins doSomething(); } like this? is what i can find, but its after a set amount of time rather than random between two ints
-
How to implement an action after a random amount of time has passed
basically looking to world hop a random amount of time (similar to sleep(random(300, 500)) ) just need help on being able to intitate the world hop i.e if time has been between 30 mins - 1 hour since last world hop { do stuff }
-
*most* fast food for delivery/collection for RSGP
When it comes to fraudulent activity its best to get the facts. Last thing anyone wants is to order pizza threw you, get their order delivered. A week later you get police knocking on your door for fraud. Don't get me wrong, if it works ill probably buy some myself aha
-
*most* fast food for delivery/collection for RSGP
yeah it may work, but no doubt your doing some sort of fraud. When it gets reported by whatever food company, theyll go for us(the buyer)
-
*most* fast food for delivery/collection for RSGP
sounds too good to be true. What sort of fraud are you doing xD
-
*most* fast food for delivery/collection for RSGP
so, we pay you 500k per £1 of food, you order it to say our address/pick up, we go there and pay for the order? or you have a method to get it for free