Help - Search - Members - Calendar
Full Version: Nid Help
AC Tools Everything Macro > AC Tool Macros > Other Macros
MigZ
I need Help...
How to find my right HP bar and MP bar... using color

example..
when 50%=hp use
keys 1
delay 100
when 50%=mp use
keys 2
delay 100

i need to be more precise on the color of my hp/mp bar

thank u very much... tongue.gif
pastuh
Hi, im using simple macro. But i put locations for my monitor and colors for my monitor..
U can use this, but i think you need some changes to do.

CODE

// Naudojama rezoliucija: 1024x768 || Fullscreen //

SetActiveWindow Lineage II
Delay 5000

While 1 = 1
Constants
Heal = {F7} //Susidek i sita shortcuta gyvybes
End



LoadRGB 130, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 85, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 45, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 16, 41
if {RGBRed} < 99
say dead
End
End
MigZ
QUOTE(pastuh @ Jan 1 2009, 07:57 PM) *
Hi, im using simple macro. But i put locations for my monitor and colors for my monitor..
U can use this, but i think you need some changes to do.

CODE

// Naudojama rezoliucija: 1024x768 || Fullscreen //

SetActiveWindow Lineage II
Delay 5000

While 1 = 1
Constants
Heal = {F7} //Susidek i sita shortcuta gyvybes
End



LoadRGB 130, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 85, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 45, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 16, 41
if {RGBRed} < 99
say dead
End
End


So much End... any loop of this?
Uhmm... ill try to confuse my self again.. MOD's PLS post a Section
where u can have aTUT on know how to use RBG/Colors in ACTOOL
MORE POWER ill USE SEARCH FIRST>>> XD tongue.gif
BTW THANKZ PAZTU

DaMOB
QUOTE(MigZ @ Jan 2 2009, 03:20 AM) *
QUOTE(pastuh @ Jan 1 2009, 07:57 PM) *
Hi, im using simple macro. But i put locations for my monitor and colors for my monitor..
U can use this, but i think you need some changes to do.

CODE

// Naudojama rezoliucija: 1024x768 || Fullscreen //

SetActiveWindow Lineage II
Delay 5000

While 1 = 1
Constants
Heal = {F7} //Susidek i sita shortcuta gyvybes
End



LoadRGB 130, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 85, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 45, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 16, 41
if {RGBRed} < 99
say dead
End
End


So much End... any loop of this?
Uhmm... ill try to confuse my self again.. MOD's PLS post a Section
where u can have aTUT on know how to use RBG/Colors in ACTOOL
MORE POWER ill USE SEARCH FIRST>>> XD tongue.gif
BTW THANKZ PAZTU

CODE
Procedure SetRGB using CoordX, CoordY
  //Sets the RGB values from a particular location on the screen
  LoadRGB $CoordX, $CoordY
  SetConst RValue = {RGBRED}
  SetConst GValue = {RGBGREEN}
  SetConst BValue = {RGBBLUE}
End

To use the above code snippet just have a constants section with the RValue, GValue, BValue declared then to actually use it

CODE
Call SetRGB 130,41
if $RValue < 99
...
...
end
MigZ
QUOTE(DaMOB @ Jan 2 2009, 09:11 AM) *
QUOTE(MigZ @ Jan 2 2009, 03:20 AM) *
QUOTE(pastuh @ Jan 1 2009, 07:57 PM) *
Hi, im using simple macro. But i put locations for my monitor and colors for my monitor..
U can use this, but i think you need some changes to do.

CODE

// Naudojama rezoliucija: 1024x768 || Fullscreen //

SetActiveWindow Lineage II
Delay 5000

While 1 = 1
Constants
Heal = {F7} //Susidek i sita shortcuta gyvybes
End



LoadRGB 130, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 85, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 45, 41
if {RGBRed} < 99
keydown $Heal 250 //Hp potas naudojamas
say Healing
End

Delay 6000

LoadRGB 16, 41
if {RGBRed} < 99
say dead
End
End


So much End... any loop of this?
Uhmm... ill try to confuse my self again.. MOD's PLS post a Section
where u can have aTUT on know how to use RBG/Colors in ACTOOL
MORE POWER ill USE SEARCH FIRST>>> XD tongue.gif
BTW THANKZ PAZTU

CODE
Procedure SetRGB using CoordX, CoordY
  //Sets the RGB values from a particular location on the screen
  LoadRGB $CoordX, $CoordY
  SetConst RValue = {RGBRED}
  SetConst GValue = {RGBGREEN}
  SetConst BValue = {RGBBLUE}
End

To use the above code snippet just have a constants section with the RValue, GValue, BValue declared then to actually use it

CODE
Call SetRGB 130,41
if $RValue < 99
...
...
end



setactivewindow ???????

while 1=1
keys z
delay 100
keys z
delay 100

keys 2
delay 100
keys 2
delay 100
keys 2
delay 100
end

Procedure SetRGB using CoordX, CoordY
//sets the RBG values from a particular location on the screen

LoadRGB $CoordX, $CoordY
SetConst RValue = {RGBRED}
SetConst GValue = {RGBGREEN}
SetConst BValue = {RGBBLUE}

Call SetRGB 130,41
if $BValue < 500
keys 3
delay 100

end

thats my code:
im wondring where i got wrong?
it states that missing procedure Coord x and Y
Question: Where can u tell your coordinate in the map?
sigh.. i got head ache..... ill try again .. Can someone direct me to HELP section xD....



actooldude
You have written the call statement for setRGB inside the actual procedure.

The procedure needs to have its own end statement after the line SetConst BValue = {RGBBLUE}.

Take more care in reading before posting, DaMob's example has an end statement dry.gif

EDIT: your question regarding getting co-ordinates - open an actools window and position your mouse on the screen where you want actool to record the position and then press ctrl+m. This will insert "mousepos x,y" into your open actools window. (Top left corner of the screen is 0,0)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.