Sign in to follow this  
Followers 0
xxd2godxx

Question on order of the script!

7 posts in this topic

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


Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

That is my problem....how do i call the function? An example Please?

-Thanx, matt


Share this post


Link to post
Share on other sites

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()


Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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


Share this post


Link to post
Share on other sites

; 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()

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0