-
Posts
764 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by Lewis
-
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)
-
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
-
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);
-
i tried a conditional sleep on getLoginStateValue() it still gives the 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
-
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)); }
-
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
-
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
Lewis replied to Lewis's topic in Scripting Help
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 -
*most* fast food for delivery/collection for RSGP
Lewis replied to CU M8's topic in Other & Membership Codes
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
Lewis replied to CU M8's topic in Other & Membership Codes
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
Lewis replied to CU M8's topic in Other & Membership Codes
sounds too good to be true. What sort of fraud are you doing xD -
*most* fast food for delivery/collection for RSGP
Lewis replied to CU M8's topic in Other & Membership Codes
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 -
that free post count though
-
your code worked great
-
thank you no error, ill let you know how it works
-
done like so: List<Area> closestArea = new ArrayList<Area>(); @[member=Override] public void onStart() { gui = new GUI(); closestArea.add(Banks.AL_KHARID); closestArea.add(Banks.DRAYNOR); closestArea.add(Banks.VARROCK_WEST); closestArea.sort(new Comparator<Area>() { public int compare(Area entry1, Area entry2) { return entry1.getRandomPosition().distance(myPlayer()) entry2.getRandomPosition().distance(myPlayer()); } }); } although on line : return entry1.getRandomPosition().distance(myPlayer()) entry2.getRandomPosition().distance(myPlayer()); it wants me to insert ; to complete the block (if i do insert ; then entry 2 gets full error)
-
List<Area> closestArea = new ArrayList<Area>(); closestArea.add(Banks.AL_KHARID); closestArea.add(Banks.DRAYNOR); closestArea.add(Banks.VARROCK_WEST); closestArea.sort(new Comparator<Area>() { public int compare(Area entry1, Area entry2) { return entry1.getRandomPosition().distance(myPlayer()) entry2.getRandomPosition().distance(myPlayer()); } }); getWalking().webWalk(closestArea.get(0)); if(!closestArea.get(0).contains(myPlayer()) getWalking().webWalk(closestArea.get(0)); just add more closestArea.add(Banks.DRAYNOR); ? or do i need to add, entry 1,2,3,4 etc also?