Jump to content

Recommended Posts

Posted

ok well here is the code that i have sofar, right now its telling me i have an if statement without and endif statement, but i cant find it.... how does it look?

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author:        HellsDragon
;
; Script Function:
;   SRO Restart script.
;
; ----------------------------------------------------------------------------

; Script Start - Begin the mofo

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Declarations                                                                     ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

$Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe")
$SRO=("C:\Program Files\Silkroad\Silkroad.exe")
$SROEXE=("sro_client.exe")
$SROLaunch=("Silkroad Online Launcher")
$acct=("acct")
$pass=("pass")
$connected=0
$disconnected=0

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Main Code                                                                       ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

if processexists($SROEXE) Then
    $connected=1
    $disconnected=0
Else
    $connected=0
    $disconnected=1
    
    
While $Connected=0
    programs()
    connect()
    if connected=2 Then
        botstart()
    EndIf
WEnd

while $Connected=2
    sleep(5000)
    send("{Enter}")
WEnd

        
While   $Connected = 0
    StartPrograms()
    Connect()
    If $Connected = 1 Then
    StartBot()
    EndIf
Wend


;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Functions                                                                       ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

func programs()
    run ($Scrack);launch crack
    sleep(10000)
    run($SRO);launch sro launcher
    sleep(6000)
    mouseclick("left", 863, 631, 1, 3);click launch
    $connected=1
endfunc;ending programs()

func login()
    if $connected=1 Then
        winactivate($SROexe)
        sleep(1000)
        send("{ENTER}")
        sleep(1000)
        mouseclick("left",675 ,550 ,1 ,0)
        sleep(1000)
        send($acct)
        sleep(1000)
        send("{TAB}")
        sleep(1000)
        send($pass)
        send("{ENTER}")
        $connected=2
    EndIf
endfunc;ending login
Posted (edited)

the problem i think is that u have to while $connected = 0 so i think thats throwing it all off

u dont even have some of these functions dude ...

Edited by thatsgreat2345
Posted

nope thats not it, just removed it still saying....

line 54 (File blah blah blah

func programs()

eorr:"If" statement has no matching "EndIf" statement.

Posted

wwo i totaly didnt see this ahhaha hold on

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author:        HellsDragon
;
; Script Function:
;   SRO Restart script.
;
; ----------------------------------------------------------------------------

; Script Start - Begin the mofo

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Declarations                                                                    ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

$Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe")
$SRO=("Silkroad.exe")
$SROEXE=("sro_client.exe")
$SROLaunch=("Silkroad Online Launcher")
$acct=("acct")
$pass=("pass")
$connected = 0
$disconnected = 0

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Main Code                                                                      ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

if processexists($SROEXE) Then
    $connected = 1
    $disconnected = 0
Else
    $connected = 0
    $disconnected = 1
EndIf  
    
While $Connected = 0
    programs()
    connect()
    if connected=2 Then
        botstart()
    EndIf
WEnd

while $Connected=2
    sleep(5000)
    send("{Enter}")
WEnd

        
While   $disconnected = 0
    StartPrograms()
    Connect()
    If $Connected = 1 Then
    StartBot()
    EndIf
Wend


;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Functions                                                                      ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

func programs()
    run ($Scrack);launch crack
    sleep(10000)
    run($SRO);launch sro launcher
    sleep(6000)
    mouseclick("left", 863, 631, 1, 3);click launch
    $connected=1
endfunc;ending programs()

func login()
    if $connected = 1 Then
        winactivate($SROexe)
        sleep(1000)
        send("{ENTER}")
        sleep(1000)
        mouseclick("left",675 ,550 ,1 ,0)
        sleep(1000)
        send($acct)
        sleep(1000)
        send("{TAB}")
        sleep(1000)
        send($pass)
        send("{ENTER}")
        $connected=2
    EndIf
endfunc;ending login
Posted

ok well here is the code that i have sofar, right now its telling me i have an if statement without and endif statement, but i cant find it.... how does it look?

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author:        HellsDragon
;
; Script Function:
;   SRO Restart script.
;
; ----------------------------------------------------------------------------

; Script Start - Begin the mofo

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Declarations                                                                    ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

$Scrack=("C:\Documents and Settings\David\Desktop\Bot110\SCrack.exe")
$SRO=("C:\Program Files\Silkroad\Silkroad.exe")
$SROEXE=("sro_client.exe")
$SROLaunch=("Silkroad Online Launcher")
$acct=("acct")
$pass=("pass")
$connected=0
$disconnected=0

;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Main Code                                                                      ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

if processexists($SROEXE) Then
    $connected=1
    $disconnected=0
Else
    $connected=0
    $disconnected=1
    
    
While $Connected=0
    programs()
    connect()
    if connected=2 Then
        botstart()
    EndIf
WEnd

while $Connected=2
    sleep(5000)
    send("{Enter}")
WEnd

        
While   $Connected = 0
    StartPrograms()
    Connect()
    If $Connected = 1 Then
    StartBot()
    EndIf
Wend
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;
;Functions                                                                      ;
;-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-;

func programs()
    run ($Scrack);launch crack
    sleep(10000)
    run($SRO);launch sro launcher
    sleep(6000)
    mouseclick("left", 863, 631, 1, 3);click launch
    $connected=1
endfunc;ending programs()

func login()
    if $connected=1 Then
        winactivate($SROexe)
        sleep(1000)
        send("{ENTER}")
        sleep(1000)
        mouseclick("left",675 ,550 ,1 ,0)
        sleep(1000)
        send($acct)
        sleep(1000)
        send("{TAB}")
        sleep(1000)
        send($pass)
        send("{ENTER}")
        $connected=2
    EndIf
endfunc;ending login
You don't have EndIf For the first If:

if processexists($SROEXE) Then

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...