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.

Trying to learn basic script writing. Help please

Featured Replies

first while works but second while does not. please help i know this is easy for some of you. Also want it to loop constantly.

Spoiler

HotKeySet("{f1}", "ExitScript")

Global $money = False;
SetError(PixelSearch(520,708,930,712,0xBF5329))
While (1)
;win or loss
    PixelSearch(520,708,930,712,0xBF5329)
    If Not(@error) Then
; arrow on losing side
;click to double up
        MouseClick("main", 698, 464, 1)
        Sleep(1000) ;x2
        MouseClick("main", 854, 620, 1)
        Sleep(3000) ;reroll
        $money=False

        While Not($money=True)
            msgbox(0, "Ending Script", "Bot is Exiting")
            PixelSearch(520,711,930,709,0xBF5329)
            If(@error) Then
                MouseClick("main", 611, 464, 1)
                Sleep(1000)
;set to 1
                MouseClick("main", 738, 465, 1)
                Sleep(1000)
;x10
                MouseClick("main", 854, 620, 1)
                Sleep(3000)
;reroll
                $money=True
            EndIf
        WEnd
    EndIf
WEnd

Func ExitScript()
    Exit
EndFunc

 

Edited by pureacoustix

38 minutes ago, pureacoustix said:

first while works but second while does not. please help i know this is easy for some of you. Also want it to loop constantly.

  Hide contents

HotKeySet("{f1}", "ExitScript")

Global $money = False;
SetError(PixelSearch(520,708,930,712,0xBF5329))
While (1)
;win or loss
    PixelSearch(520,708,930,712,0xBF5329)
    If Not(@error) Then
; arrow on losing side
;click to double up
        MouseClick("main", 698, 464, 1)
        Sleep(1000) ;x2
        MouseClick("main", 854, 620, 1)
        Sleep(3000) ;reroll
        $money=False

        While Not($money=True)
            msgbox(0, "Ending Script", "Bot is Exiting")
            PixelSearch(520,711,930,709,0xBF5329)
            If(@error) Then
                MouseClick("main", 611, 464, 1)
                Sleep(1000)
;set to 1
                MouseClick("main", 738, 465, 1)
                Sleep(1000)
;x10
                MouseClick("main", 854, 620, 1)
                Sleep(3000)
;reroll
                $money=True
            EndIf
        WEnd
    EndIf
WEnd

Func ExitScript()
    Exit
EndFunc

 

What language is this? 

Create an account or sign in to comment

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.