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.

DOS programming -> ERRORLEVEL issues

Featured Replies

I've got something that looks like this:

CHOICE /C:123456789 /M Choice: 
IF ERRORLEVEL 1 GOTO universal
IF ERRORLEVEL 2 GOTO 2006remade
IF ERRORLEVEL 3 GOTO allstarlegends
IF ERRORLEVEL 4 GOTO creativescape
IF ERRORLEVEL 5 GOTO crisisx
IF ERRORLEVEL 6 GOTO firepk
IF ERRORLEVEL 7 GOTO ohhaider
IF ERRORLEVEL 8 GOTO pkhonor
IF ERRORLEVEL 9 GOTO runedeath

...It works perfectly. But how can I go above 9? This: (below) doesn't work.

CHOICE /C:123456789ab /M Choice: 
IF ERRORLEVEL 1 GOTO universal
IF ERRORLEVEL 2 GOTO 2006remade
IF ERRORLEVEL 3 GOTO allstarlegends
IF ERRORLEVEL 4 GOTO creativescape
IF ERRORLEVEL 5 GOTO crisisx
IF ERRORLEVEL 6 GOTO firepk
IF ERRORLEVEL 7 GOTO ohhaider
IF ERRORLEVEL 8 GOTO pkhonor
IF ERRORLEVEL 9 GOTO runedeath
IF ERRORLEVEL 10 GOTO vasora
IF ERRORLEVEL 11 GOTO runeonline

Help please, I know ERRORLEVELs can go up to level 255 but I can't get it to work in the 'choice' part!@$@$^@$^!#%@#&%%)

CHOICE /C:123456789ab /M Choice:

IF ERRORLEVEL 11 GOTO runeonline 

IF ERRORLEVEL 10 GOTO vasora

IF ERRORLEVEL 9 GOTO runedeath

IF ERRORLEVEL 8 GOTO pkhonor

IF ERRORLEVEL 7 GOTO ohhaider

IF ERRORLEVEL 6 GOTO firepk

IF ERRORLEVEL 5 GOTO crisisx

IF ERRORLEVEL 4 GOTO creativescape

IF ERRORLEVEL 3 GOTO allstarlegends

IF ERRORLEVEL 2 GOTO 2006remade

IF ERRORLEVEL 1 GOTO universal

the if command matches for equal or higher, so the checks need to be made in reverse order

 

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

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.