Quote:
Originally Posted by swords
Thanks but I made mine a little more complicated.. I'm going to let them choose where on the HP bar to use a pot at... So when it goes below there point selected, it will use a pot...
Yours it seems like that, but I don't see where at all they can select on the HP bar, or even WHERE on the HP bar that it uses a pot? Just curious :P
|
That's only the part of actually checking on the hp bar when the coords are already set to $potx and $poty and the color to $potcolor, I guess emmanication just took an extract from another code :p
You may consider saving the coords of the color to an ini file when setting the potter, like this
------------------------------------------------
Func setpot();
if $potset=1 Then
$potcoords=MouseGetPos();
$potcolor=PixelGetColor($potcoords[0],$potcoords[1]);
$potx=$potcoords[0];
$poty=$potcoords[1];
IniWrite("settings\settings.ini", "POTTER", "x", $potcoords[0])
IniWrite("settings\settings.ini", "POTTER", "y", $potcoords[1])
IniWrite("settings\settings.ini", "POTTER", "color", $potcolor)
$potset=0
MsgBox(0,"Set","The data was changed.")
EndIf
EndFunc
------------------------------------------------
I checked your code, looks pretty nice ^_^
I hope this project of yours grows and people forget about Kira soon xD
Good luck.
r4ito.