Jump to content

Recommended Posts

Posted

I cant find out what the error is in this but i just wont start??

$maxVariance = 1
HotKeySet( "{esc}" , "terminate" )
;/////// Func Start ///////

Func terminate()
    Exit
EndFunc

Func Startbot()
sleep( 1500 )
Mouseclick ( "left" , 736, 235 , 0 , 10 ); click mage
sleep ( 1023 )
Mouseclick ( "left" , 730, 412 , 0 , 10 ); click scroll bar
sleep ( 1023 )
Alch()
EndFunc

Func Alch()
Mouseclick ( "left" , 634, 316 , 0 , 10 ); alch
Alchsleep(2050); alching time space
Mouseclick ( "left" , 634, 316 , 0 , 10 ); item
Restart()
EndFunc

Func Restart()
    Alch()
EndFunc

Func AlchSleep($delay)
Sleep(Random($delay, $delay * (1 + $maxVariance)))
EndFunc
;/////// Func End /////// 
StartBot()

Can anyone help me??

Posted (edited)

Global Const $Variance = 1
HotKeySet( "{ESC}", "Terminate")
Startbot()
Func Alch()
    Local $DelayTime = 2000; In Miliseconds
    MouseClick("left", 634, 316, 1, 10)
    AlchSleep($DelayTime)
    MouseClick("left", 634, 316, 1, 10)
    Restart()
EndFunc  ;==>Alch
Func AlchSleep($Delay)
    Local $SleepTime = Random($Delay, $Delay * ($Variance + 1))
    Sleep($SleepTime)
EndFunc  ;==>AlchSleep
Func Restart()
    Alch()
EndFunc  ;==>Restart
Func Startbot()
    Sleep(1500)
    MouseClick("left", 736, 235, 1, 10); click mage
    Sleep(1000)
    MouseClick("left", 730, 412, 1, 10); click scroll bar
    Sleep(1000)
    Alch()
EndFunc  ;==>Startbot
Func Terminate()
    Exit
EndFunc  ;==>Terminate

Try this. You weren't clicking at all. Also try changing your sleep times, because it makes it sleep WAY to long.

Edited by AutoIt Smith
Posted

i still cant get it working it doesnt run the func i dont know why but if i just write a mousemove or something else when its not in a func it starts

Posted

dude ur supposed to call a function...i had that problem too...functions dont get called on for no reason, u have to put a command like......Call("StartBot").........that line will call that function...im sure this should work....if it still doesnt work, ill try more to fix it, because i didnt actually test the script, i just used some knowledge and came with that conclusion...if it still wont work, let me know and i may actually tset the script and make sure it works...

GodandRock leaves his mark. ^*+-._.-+*^(|{[\:=^*+-._ GAR _.-+*^=:/]}*^|)^*+-._.-+*^

[font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font]

Posted (edited)

I hate the cal function, it and parameters don't mix. As for the script try this:

$maxVariance = 1
HotKeySet("{ESC}", "Terminate")

Func Terminate()
    Exit
EndFunc

Sleep(1500)
MouseClick("left", 736, 235, 1, 10); click mage
Sleep(1023)
MouseClick("left" , 730, 412, 1, 10); click scroll bar
Sleep(1023)

While True
    MouseClick("left", 634, 316, 1, 10); alch
    Sleep(Random(2050, 2050 * (1 + $maxVariance), 1)); alching time space
    MouseClick("left", 634, 316, 1, 10); item
WEnd
I tried everything, things that wouldn't even matter even, like changing caps, when I noticed you told it to click 0 times. :P

PS: Be careful tho. Jagex probably wouldn't like things like this...

[edit]

Are you sure you copied and pasted Smith's script. Now that I read it. It should have worked.

Edited by gamerman2360

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
×
×
  • Create New...