Jump to content

Mirror Mode/OSRS Client Issue (searching for osrs client to attach to) Resolved


Recommended Posts

Posted

If your OSBot client is stuck on "searching for osrs client to attach to" while trying to use mirror mode it's because you have to run it as administrator. To do so we'll have to create a .bat file.

 

Step 1. Open Note Pad

 

Step 2. Copy and Paste the following code:

 

@echo off
:: BatchGotAdmin (Run as Admin code starts)
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:: BatchGotAdmin (Run as Admin code ends)
:: Your codes should start from the following line
java -jar d:\games\osbot.jar

 

Step 3. Pay attention to the last line of code: "java -jar d:\games\osbot.jar". This is the location of your OSBot Client aka the .jar file. This code varies from user to user due to whatever folder you choose to put your client in. Some people have it in storage drive C/D/E/F/G, etc and some people have it in a folder within a folder within a folder. As you can see I have mines in Storage Drive D within a "Games" folder. Also, I must note that I renamed the "OSBot 2.6.27" (client) file to simply "OSBot". Make sure you change the last line starting from java -jar X:/XXXX/osbot.jar in accordance with where that .jar file is located.

 

Step 4. Save as: for the file name put: "OSBot.bat" and for the "Save as type" change it from ".txt" to "All Files". Save.

 

Step 5. Load your OSRS client. Then open the .bat file (icon has 2 gears) in which you just created. You will now be running this .bat file every time you want to use OSBot. Check off Mirror Mode and voilà no more "searching for osrs client to attach to"

  • Like 1
  • 10 months later...
  • 9 months later...
  • 7 months later...
Posted

im having an issue. 

so i open notepad, and put @echo off
:: BatchGotAdmin (Run as Admin code starts)
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:: BatchGotAdmin (Run as Admin code ends)
:: Your codes should start from the following line
java -jar C:\Users\new user\Downloads

 

all of that? (i switched the location) then save it as osbot.bat and run it...it doesnt open..what am i doing wrong?

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...