Jump to content

Adept

Lifetime Sponsor
  • Posts

    346
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Adept

  1. I'd recommend using the bottom one. I edited the code so that all you have to do is add world to the "worlds" array. Copy the code again from the original reply and try again.
  2. So far I've haven't experienced any issues with the hopper. Are you sure you're making use of the correct methods? Also, consider using a switch instead of multiple if statements. You should use something of this sort: int hopTo = -1; int rand = random(1,10); switch (rand) { case 1: hopTo = 1; break; case 2: hopTo = 8; break; //add remaining cases } if (hopTo != -1 && hopTo != getWorlds().getCurrentWorld){ getWorlds().hop(hopTo); } Here's an even better solution with an array instead of a switch int hopTo = -1; int[] worlds = {1,8,16}; //add your worlds here int rand = random(0, worlds.length - 1); //arrays start from index 0 hopTo = worlds[rand]; if (hopTo != -1 && hopTo != getWorlds().getCurrentWorld){ getWorlds().hop(hopTo); }
  3. What a silly goose I am. I was passing the ID's of the noted version. RSbuddy needs the IDs of the unnoted version. One can avoid using the other class you provided by simply finding the unnoted ID's using the getUnnotedID() method. Thanks for your help
  4. I'm making use of the ExchangeItem.java class multiple times throughout my code. On some occasions, fetching the price works and other times all price checks simply return 0. Here's an example of price checks which return 0: Item[] inventoryItems = getInventory().getItems(); int j; for(j = 0; j < inventoryItems.length; j++){ Item currentItem = inventoryItems[j]; if (currentItem != null) { log("currentItem: " + currentItem.toString()); int jId = currentItem.getId(); String jName = currentItem.getName(); ExchangeItem jItem = new ExchangeItem(jName, jId); int jPrice = jItem.getPrice(); log("Price: " + jPrice); //returns 0 } } Log example: [INFO][Bot #1][02/22 12:54:38 AM]: currentItem: Item id: 995, Name: Coins, Amount: 8000 [INFO][Bot #1][02/22 12:54:38 AM]: Price: 0 [INFO][Bot #1][02/22 12:54:38 AM]: currentItem: Item id: 12288, Name: Mithril platebody (t), Amount: 1 [INFO][Bot #1][02/22 12:54:38 AM]: Price: 0 [INFO][Bot #1][02/22 12:54:38 AM]: currentItem: Item id: 1051, Name: Santa hat, Amount: 17 [INFO][Bot #1][02/22 12:54:39 AM]: Price: 0 [INFO][Bot #1][02/22 12:54:39 AM]: currentItem: Item id: 6740, Name: Dragon axe, Amount: 11 [INFO][Bot #1][02/22 12:54:39 AM]: Price: 0 Why is this happening?
  5. How can I check/listen for login failure i.e. incorrect login details, account invalid, account logged, etc.?
  6. That was simply an indication of the minimum amount of positive feedback required for me to deem someone as trusted. I apologise for the misunderstanding. Lack of clarity from my end. Kindly edit it back to S> 120M+ 07 | LF Trusted Members w/ 100+ Feedback Discuss on Skype?
  7. Add my Skype: adept.osbot
  8. 2 Feedback scares me. I stated in the title 'LF trusted individuals'
  9. Title says it all. Shoot me a PM Price is set in stone.
  10. That ain't no Hayden. That's Slim [shady]en I'm so proud of my beautiful masterpiece and play with letters On a serious note, the 'Click here for questing service' ruins it,
  11. As clearly indicated by the title I'd like to purchase 100M on RS3. Feel free to add my Skype: adept.osbot EDIT: PLEASE, FIX TITLE TO: B> 100M RS3 $42 ($0.42/M) [PayPal] I COVER FEES
  12. The combined categories have been bothering me for a while too. I support this.
  13. Sick! Should've been in SOTW.
  14. Adept

    SOTW 17 Voting

    Love the first one.
  15. Never saw this guide before. Sweet!
  16. The spam is real... Good luck..
×
×
  • Create New...