Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

herojord

Members
  • Joined

  • Last visited

Everything posted by herojord

  1. I know this is a kinda dumb question but how can I use an integer to create a boolean. I mean the variable creation. PHP is not that strict on var types.
  2. I think it's a logic problem. I make things to difficult for myself I guess. So if I'm right: This: private State getState() { if (inventory.getAmount("Coal") > 1 && inventory.getAmount("Iron ore") > 0 ){ return State.SMITH; } return State.BANK; } Should be: private State getState() { if ( got ores && not close to furnace){ Walk to furnace } if ( got ores && close to furnace){ Smelt } if ( got no ores && not close to bank ){ walk to bank } if ( got no ores && close to bank){ bank } The problem I have is that in this situation what should I compare with, should I use the iron ores or coal or both? btw Thanks for the fast respone!
  3. Hey guys, Recently I started scripting, I've got a decent level with PHP and web developing so the java basics are easy for me. My problem is : I'm making a smithing script for al kharid, I've got the backbone basicly but im kinda stuck with the conditions. Like when the player has 9 iron and 19 coal it needs to walk to the furnace (case smithing) then it needs to make steel bars until it can no longer make them, then it needs to bank. But my brain thinks way to complex so I'm not able to get it to work flawlessly. private State getState() { if (inventory.getAmount("Coal") > 1 && inventory.getAmount("Iron ore") > 0 ){ return State.SMITH; } return State.BANK; } ^ This is one method I used. Can somebody please make it clear how to condition this the right way

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.