AutoIt AutoPot Script

08/18/2009 03:52 DragonicaIt#31
Quote:
Originally Posted by gseed87 View Post
hmm can u write a simple auto atk script so i can check why i cant get auto-it to work..lol thx
Code:
$i = 1
$WinTitle = "Dragonica (Client Ver : 0.1.25)"	

While $i <> 0	
	if $i = 2 Then
		;change to desire delay in milliseconds
		Sleep(500)
		$i = 1
	Else
		If (WinExists($WinTitle)) Then
			;sending x key to dragonica client
			ControlSend($WinTitle,'','','x')
		EndIf
		$i = 2
	EndIf
WEnd
08/18/2009 14:09 ChaosRules#32
Can i ask that where can i find config.dat and modify it?
08/18/2009 14:29 DragonicaIt#33
Quote:
Originally Posted by ChaosRules View Post
Can i ask that where can i find config.dat and modify it?
Read @ Post #28
08/18/2009 15:53 ChaosRules#34
Thats mean i make a new folder.. put the config and the cripts inside.. after that run the scripts? thn the AutoIt will become a small icon at right bottom there.. After that wat shd i do? Can i knw what is this use for? Thx a lot.. and sry i am a noob.. >.<
08/18/2009 23:09 xbbshampoo#35
how do u scan the color

i always get codes like this > 0x2e2e
08/19/2009 04:01 DragonicaIt#36
Quote:
Originally Posted by xbbshampoo View Post
how do u scan the color

i always get codes like this > 0x2e2e
0x2e2e? doesn't seems to be a valid hex of color, can show your code sample?
08/19/2009 04:03 DragonicaIt#37
Quote:
Originally Posted by ChaosRules View Post
Thats mean i make a new folder.. put the config and the cripts inside.. after that run the scripts? thn the AutoIt will become a small icon at right bottom there.. After that wat shd i do? Can i knw what is this use for? Thx a lot.. and sry i am a noob.. >.<
it's written to auto login to the server, choose a channel and a character, and during game play if your hp and mp falls below 70% it will autopot for u
08/22/2009 22:22 cybaster86#38
DragonicaIT do u mind if u can create a script that will make your character walk around and auto A on them till they die and when done, it continue to walk around and kill mods again?
08/22/2009 22:35 beansprout#39
A little favor , can make the mp heal at 60% or 50% instead of 70%?

For melee class which have lesser MP comparing to INT class, MP pot heal a little too much (overload) at 70%. Kind of wasting pot :P
08/23/2009 11:09 xbbshampoo#40
dragonicait

can u post a little tutorial to scan the color and how to write it in autoit @@?
08/23/2009 11:16 neogohan1#41
hmmm thanks for sharing this script, learnt a few things I didn't know how to do yet (like the pixelsearching using GetWinPos and offsets)
08/23/2009 14:46 DragonicaIt#42
Quote:
Originally Posted by beansprout View Post
A little favor , can make the mp heal at 60% or 50% instead of 70%?

For melee class which have lesser MP comparing to INT class, MP pot heal a little too much (overload) at 70%. Kind of wasting pot :P
[Only registered and activated users can see links. Click Here To Register...]

Download my newest autopot, it allows u to calibrate yourself the point of when u want the script to autopot itself
08/23/2009 14:51 DragonicaIt#43
Quote:
Originally Posted by xbbshampoo View Post
dragonicait

can u post a little tutorial to scan the color and how to write it in autoit @@?
what u mean by scanning color?
08/23/2009 15:37 xbbshampoo#44
erh..

is like when i hover the mouse over an icon, i can get to know the icon's color value so that i can easily add buff to myself @@..

and the icon dissappeared, it will auto buff back

just like the chicken head of trapper @@
08/23/2009 16:12 DragonicaIt#45
Quote:
Originally Posted by xbbshampoo View Post
erh..

is like when i hover the mouse over an icon, i can get to know the icon's color value so that i can easily add buff to myself @@..

and the icon dissappeared, it will auto buff back

just like the chicken head of trapper @@
Code:
;HotKey for terminating the script
HotKeySet("{F11}", "Terminate")

;Window title for dragonica should be changed after every patch
$WinTitle = "Dragonica (Client Ver : 0.1.27)"

;Force focus on game
WinActivate($WinTitle)

;Continuous Loop
While 1
	Local $MouseTrack = MouseGetPos()	;Get Mouse Position
	Local $size = WinGetPos($WinTitle)	;Get X,Y and Size of Game
	
	;If game is active, display X,Y co-ordinates and color hex.
	;NOTE THAT X,Y CO-ORDINATES INFORMATION ARE RELATIVE TO THE WINDOW POSITION
	If(WinActive($WinTitle)) Then 
		ToolTip("X Pos: " & $MouseTrack[0]-$size[0] & @CRLF & "Y Pos: " & $MouseTrack[1]-$size[1] & @CRLF & Hex(PixelGetColor($MouseTrack[0],$MouseTrack[1]),6), $MouseTrack[0], $MouseTrack[1])
	EndIf
WEnd

Func Terminate()
	Exit 0
EndFunc
Dragonica must be active and a tooltip with the X,Y value and hex color value will be shown.
Note that X,Y value are relative to the game window.