[Help] Beginner at Autoit

08/01/2012 04:27 _slimshady_#1
Ok so this tool attached is a keypresser for a game called silkroad online. It works fine on the original game, but I am wanting to try it on a private server. The only difference I saw in the source codes (open source made with autoit) is the task name in the task manager. In the normal game the task is "sro_client" In the private server, the name is MythClient. So I renamed sro_client to MythClient and saved the 3 au3 files but I don't know what to do next. How do you compile those 3 files together to make a working exe like the creator did? I always seem to get this error ingame when I press F6 ingame to start the program. The error I get is below. I am also unable to decompile the exe because the exe2aut program I found doesn't support version 3.2.2.0 exe's.



Line 0 (File location):

$MobPixel=($size[2]-196)/2+14
$MobPixel=($size^ ERROR

Error: Subscript used with non-Array variable.




So if anyone can help me out or tell me the next step that would be great. Also I made sure both original silkroad and the private server do have the same resolution of 1920 x 1080.

Thanks for any help, tips, or advise of what to do next :)


Download: [Only registered and activated users can see links. Click Here To Register...]
08/01/2012 12:24 Menan#2
Hey,

Actually you just compile the nuBot Helper.au3, because when you look in the first lines of this au3 you see:

Code:
#include <functions.au3>
#include <bot.au3>
There you see that the other au3's are included so the main program can access the functions in the bot and the functions.au3. When you now compile this nuBot Helper.au3 the compiler should automatically include the other au3's in your executable.

Just again in other words (sorry for my bad english :P ):

You compile the nuBot Helper.au3 to get a executable. Just start this executable as administrator and then try to start it ingame with F6 (dont know the game and dont know the function of the bot).

When you still have problems just write me a pn or post here ;)

Best Regards,
Menan
08/01/2012 17:44 _slimshady_#3
Quote:
Originally Posted by Menan View Post
Hey,

Actually you just compile the nuBot Helper.au3, because when you look in the first lines of this au3 you see:

Code:
#include <functions.au3>
#include <bot.au3>
There you see that the other au3's are included so the main program can access the functions in the bot and the functions.au3. When you now compile this nuBot Helper.au3 the compiler should automatically include the other au3's in your executable.

Just again in other words (sorry for my bad english :P ):

You compile the nuBot Helper.au3 to get a executable. Just start this executable as administrator and then try to start it ingame with F6 (dont know the game and dont know the function of the bot).

When you still have problems just write me a pn or post here ;)

Best Regards,
Menan

Well I thought that's how to do it to. I hit compile and it made it an exe. Tried running the exe as admin and get:


Line 4274

Error: Variable used without being declared :confused:

Did you try it or can you?
08/01/2012 18:53 -STORM-#4
$size is no array meaning $size[2] does not exist and is used without being declared.
You might post your script to get better help since most people dont know that Silkroad bot.
08/01/2012 21:18 _slimshady_#5
Quote:
Originally Posted by -STORM- View Post
$size is no array meaning $size[2] does not exist and is used without being declared.
You might post your script to get better help since most people dont know that Silkroad bot.

Thanks for your post. I did post a download link to the program with the source codes in it if you want to take a look.
08/01/2012 22:29 -STORM-#6
Quote:
Originally Posted by _slimshady_ View Post
Thanks for your post. I did post a download link to the program with the source codes in it if you want to take a look.
The way of cutting the script into three parts is (sry for that) crap.
The functions.au3 contains plenty of variables from the nuBot thus cannot be included as a single script.
The bot.au3 contains some variables required at the bots beginning but also some functions which require other variables and must accordingly be placed at the bots end.
Just copy each of these to the right position in the bot and there are only a few errors left.
These are caused by using constants from the TabConstants.au3 without including it.
The $size error results from WinGetPos not finding the right window due to a wrong name, which means you have either not replaced sro_client by MythClient at any occurence or MythClient simply is not the right name.
08/02/2012 23:19 _slimshady_#7
Can you compile it how you think it should be and I can try it?
08/07/2012 16:39 _slimshady_#8
Any help?