[Release] Metallurgy Bot

02/21/2011 11:50 kotarou3#136
He said "and make it translated", the subject there being the metallurgy spots. So the answer to that would be no for itemdb.xml

Yes, propdb.english.txt would be better to edit for these things, but propdb.xml still needs to be modified to make the name appear above it
02/24/2011 04:49 allenzy#137
i have a problem i have an error and it reads: Line 7 (File "C:/user/Allen/appdata/local/temp/temp2_Metallurgybot.zip/metallurgy bot/metallurgy Improved.ece")

Error:Subscript ised with non-Array variables?
can someone help me please
02/24/2011 07:43 SSDarkLink#138
Are you using 32bit or 64? I seen this error occur a lot in 64.
02/24/2011 16:44 adam_j#139
First question would be:
Why are you running it out of the zip folder?

Second:
Are you using the exe?
(I'm assuming not.)
02/24/2011 21:22 allenzy#140
whait what am i suppose to run it out of? and im running at 32 bits i believe and what do u mean by exe? sorry i am new tot his :[
02/25/2011 00:38 adam_j#141
I fixed the broken sieve check, if anyone wants to play with it.

The "and" on both of these while loops will make it quit without response, making the if statements pointless. However, it was late, I'd been working out offsets for autoit memory reading, and finishing my various other bots, so, I really couldn't give a flying £^*$ at that point.

It reads the screen correctly.

I'll possibly clean this up tomorrow as this was just a test, but, for the meantime, that will locate good sieves, both in your inv and equipped.
It's mostly copied from Link's function, and altered to work. I assumed for the most part that he had good reasons for his choices, like, "while attempts < 5".


Use PNG and the W7/Vista snipping tool for searches, so that you can use lower tolerance (And thus get better results)

Code:
#include <imagesearch.au3>
#RequireAdmin

Global $loot
Global $counter
Global $loaded

Global $pan_equip_x
Global $pan_equip_y

Global $pan_inv_x
Global $pan_inv_y

Global $result

Global $panx1
Global $pany1

Global $x1
Global $y1

Global $dead_x
Global $dead_y

Global $good_x
Global $good_y


WinActivate("Mabinogi")
CheckPan()


Func CheckPan()
Local $attempts = 0
Local $inv_attempts = 0
		Send("i")
	$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,50)
	$equip_result = _ImageSearch("goodpanequiped.png",1,$pan_equip_x,$pan_equip_y,50)
		Sleep(2000)
	While $attempts < 5 and $equip_result = 0
		If $equip_result=1 Then
			MsgBox(0,"Test","Found Equipped! :D")
			$broken=0
			ExitLoop
		EndIf
			Send("{tab}")
			Sleep(500)
			$attempts= $attempts + 1
			MsgBox(0,"Test","Couldn't find Equipped Q.Q")
			$equip_result = _ImageSearch("goodpanequiped.png",1,$panx1,$pany1,50)
	WEnd
$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,80)
    While $inv_attempts < 6 and $inv_result = 0 
			If $inv_result = 1 Then
			$attempts = 0
			MsgBox(0,"Test","Found! :D")
			ExitLoop
		Else
			$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,80)
			MsgBox(0,"Test","Couldn't find Q.Q")
			$multipan = 0
			$inv_attempts = $inv_attempts + 1
		EndIf
Send("i")
WEnd
EndFunc

As for you Allenzy, unzip it, get [Only registered and activated users can see links. Click Here To Register...], and finally, right click the "My Computer" icon on your desktop/start menu, and choose properties.

What does it say under "System Type"?
02/25/2011 02:39 allenzy#142
Ok how do u unzip it, i downloaded autoit3(is that ok?) and it says 32-bit operating system under system type. thanks for taking ur time and guiding my through this :P
02/25/2011 03:51 adam_j#143
Okay, so take all the files out of that folder, put them in another one.

Then, right click the autoit file (it'll have .AU3 at the end, and look like a symbol on a sheet of paper) and choose to run the script.

Do what you do normally, it probably won't be able to do anything, just let it run until it errors, and then post what line the error is on.

If it says line 7 and the address ends in ".exe" then it's fairly useless to us.
02/25/2011 04:02 allenzy#144
Ok just to make sure its the iria falls place to do it right?
02/25/2011 04:16 allenzy#145
ok after i did all that i got to iria falls and started up my bot from my new folder. all it did was make my mouse go crazy on my desktop and thats all o.o is that what it suppose to do?
02/25/2011 06:03 adam_j#146
No, no it is not.

I'd recommend taking new versions of all those pictures, and see where you are then.

I'm updating this one myself, so, I may have something to post today/tomorrow.

It all seems fine, apart from the fact I'm too tired to write the one simple function I need to fix.
02/25/2011 18:34 allenzy#147
can you make a video on how to start it up and stuff? i might be doing it wrong -_- and how to i make new versions?
02/26/2011 06:23 sunbeam21#148
Quote:
Originally Posted by kotarou3 View Post
He said "and make it translated", the subject there being the metallurgy spots. So the answer to that would be no for itemdb.xml

Yes, propdb.english.txt would be better to edit for these things, but propdb.xml still needs to be modified to make the name appear above it
oh, so that's means i have to rely on the people who make tiara, hoping that they will make the "silver" translated?
02/26/2011 06:29 shaggyze#149
have you tried the latest tiara or my autobot because they should be translated by now
02/26/2011 22:25 adam_j#150
I'd give up here Shaggy, there are some that cannot learn, regardless of what you try.

He's previously been told exactly how to fix it, he chooses to rely on someone else doing it for him.