Jump to content

Lewis

$100.00 Donor
  • Posts

    764
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Lewis

  1. 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
  2. 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)
  3. 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
  4. yeah i tried the conditional sleep after hopping, then open inv like in example code yet it still does it
  5. 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)
  6. 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
  7. 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);
  8. i tried a conditional sleep on getLoginStateValue() it still gives the error.
  9. 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
  10. 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)); }
  11. 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
  12. hopefully i can get my login info so i can add some scripts soon lol
  13. 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
  14. 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 }
  15. 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
  16. 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)
  17. sounds too good to be true. What sort of fraud are you doing xD
  18. 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
  19. thank you no error, ill let you know how it works
  20. 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)
  21. 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?
×
×
  • Create New...