Faustvii Posted December 10, 2005 Share Posted December 10, 2005 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?? Link to comment Share on other sites More sharing options...
themax90 Posted December 10, 2005 Share Posted December 10, 2005 (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 December 10, 2005 by AutoIt Smith Link to comment Share on other sites More sharing options...
Faustvii Posted December 10, 2005 Author Share Posted December 10, 2005 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 Link to comment Share on other sites More sharing options...
themax90 Posted December 10, 2005 Share Posted December 10, 2005 Did you use the exact script I posted, and It works fine for me. Link to comment Share on other sites More sharing options...
Faustvii Posted December 10, 2005 Author Share Posted December 10, 2005 yes i did copy and paste it i dont really know why it doesnt work ill try reboot computer and see if it works Link to comment Share on other sites More sharing options...
Faustvii Posted December 10, 2005 Author Share Posted December 10, 2005 i tried very many times now but it still wont work i just dont know what to do Link to comment Share on other sites More sharing options...
GodandRock Posted December 11, 2005 Share Posted December 11, 2005 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] Link to comment Share on other sites More sharing options...
CyberSlug Posted December 11, 2005 Share Posted December 11, 2005 u have to put a command like......Call("StartBot").........You should just call the function with the command StartBot(). The Call function should almost never be used. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
gamerman2360 Posted December 11, 2005 Share Posted December 11, 2005 (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 WEndI tried everything, things that wouldn't even matter even, like changing caps, when I noticed you told it to click 0 times. 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 December 11, 2005 by gamerman2360 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now