xxd2godxx Posted November 16, 2005 Posted November 16, 2005 I am making a very advanced diablo 2 bot for the new ladder season 3. I was just wondering if the order i put the functions in makes any difference. I can: Get the bot start up diablo, login, choose char. and create game. I just am trying to make it run a script (like pindle etc.) but when i do it, the bot just doesn't run. I have the main scripts, but then the sub scripts at the very end. Example: When it gets to the scripting part, there is a function named: SlowMouseClick and i put that at the very end of my .au3 script, but the MAIN function (the sequence that i want to run) is earlier in the script. I have alot of sub-functions that are at the very end (like 15-20 of them? maybe more) I was just wondering, when i added those sub func's did it not make the bot work because it was unorganized? -matt
Knight Posted November 16, 2005 Posted November 16, 2005 The order of functions doesnt matter, but you have to call the functions in order for it to work how you would like it to..
xxd2godxx Posted November 16, 2005 Author Posted November 16, 2005 That is my problem....how do i call the function? An example Please? -Thanx, matt
lopolop Posted November 16, 2005 Posted November 16, 2005 like... Hotkeyset("+r", "Script") Func OpenNP() Run("Notepad.exe") EndFunc Func Script() Sleep(2000) OpenNP() Exit EndFunc Now that was a little much lol... but just put the name of your function in your script like OpenNP()
Valuater Posted November 16, 2005 Posted November 16, 2005 search "pause"... like this.. help has very good demo's at the bottom of each page on your computer press the following Start > All Programs > Autoit v3 > Autoit Help File when that loads then press the "search" tab then type in "?your search?" and press "List Topics" **** you can do this with any word you want thats what i do all the time 8)
xxd2godxx Posted November 16, 2005 Author Posted November 16, 2005 lol...I STILL dont get it...is that script added with the other script? or is it a seperate starter script? here are my functions: StartD2() Func Login() Func ChooseChar() Func CreateGame() Func AllSeqRecord() Func ParseCmd($SeqIndex, $CmdIndex, $CMD) Func ReadCodeFile($FilePathName) -matt
LxP Posted November 17, 2005 Posted November 17, 2005 ; The function definition Func MyFunc() ; Calling an in-built function MsgBox(0x40, '', 'I am a message box.') EndFunc ; Calling a user-defined funcion is no different MyFunc()
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