Help - Search - Members - Calendar
Full Version: Perfect World
AC Tools Everything Macro > AC Tool Macros > Other Macros
omfgzord
Hello,
Could you help me create a macro with autopot by AC Tools program?
I cant set up auto use potion while MP/HP is 20% for example.

Active Window: Element Client
Key to use in action: 6 - potion
30% MP
20% HP

Screenshot attached is orginal resolution.


I hope someone know how to do that.
If no I will very sad sad.gif , because I dont want botting, just autopot while I playing.

I need it for situation, when i must afk on bosses, then my char using Ingame skill macro but problem is with autopots, game not allow to put potion on macrobar


omfgzord
hello?
Everyone here cant sacrifice 1 min and help me? sad.gif
Bear
QUOTE(omfgzord @ Apr 11 2009, 06:51 PM) *
hello?
Everyone here cant sacrifice 1 min and help me? sad.gif

Posting in more than one forum area, asking the same thing... "someone Make me A MACRO..."
Isn't gonna get you anywhere. There's your 1 min.
omfgzord
QUOTE(Bear @ Apr 11 2009, 09:04 PM) *
Posting in more than one forum area, asking the same thing... "someone Make me A MACRO..."
Isn't gonna get you anywhere. There's your 1 min.


I posted in 2 dection because here i want someone who make macro for me, in development section i want to know how to do that and if its possible. I will try do it alone, just need your help a bit.

I copied some autopots macros from other games and it didnt work sad.gif
Bear
QUOTE(omfgzord @ Apr 12 2009, 10:59 AM) *
QUOTE(Bear @ Apr 11 2009, 09:04 PM) *
Posting in more than one forum area, asking the same thing... "someone Make me A MACRO..."
Isn't gonna get you anywhere. There's your 1 min.

I will try do it alone, just need your help a bit.


First thing you need to do is open that screen shot in a Image Editor and find the Starting/Ending Pixils for your Health(Red) and Mana(Blue) bars, Reason i say the start and stop is you wanted 30 & 20%'s. I guess you could guess on were 20 & 30 are on the bar or we can use the Compute function. The Bars are the Same length, do they stay the same length as your character advances in level? So you just Need to get the Start(Dead_X) / Stop(Full_X) for one Bar, then use something like Red_Y & Blue_Y.

Ok, Once you have the Start (Dead_X) and the End (Full_X) time for some Math. Before we get too deep in makeing the macro, let's make sure ACTool can interact with your game.

Ok so, with a hand calculator, piece of paper or in your head, Figure out this out: Full_X - Dead_X = Var1, (Make sure Var1 is a Whole Number) there's a Compute function that can do it on the fly but we get back to that, Var1 / 10 = Var2, Var2 * 2 = Var3, Var3 + Dead_X = Red_X.

Then try this simple Code: lol Be sure to fill in the Red_X and Red_Y from your findings. smile.gif
CODE

SetActiveWindow Element Client
Delay 10 sec
Constants
Red_X =
Red_Y =
Var1 = 0
Var2 = 0
End
delay 1000
Compute Var1 = $Red_X + 30
Compute Var2 = $Red_X + 120

Procedure MM using X //Move Mouse
MousePos $X,$Red_Y
Delay 500
End

Loop 5
Call MM $Var1
Call MM $Red_X
Call MM $Var2
End

LoadRGB $Red_X,$Red_Y
Timestamp What are my Values? Red ( {RGBRed} ), Green ( {RGBGreen} ), Blue ( {RGBBlue} )


Then look in the Test Log Tab after the macro finishes, the values inside the () HAVE to be Greater than Zero(0), If they're Zero, actool isn't loading the Color.
omfgzord
Really thanks for reply in this style. Its very helpfull

QUOTE(Bear @ Apr 14 2009, 07:52 AM) *
The Bars are the Same length, do they stay the same length as your character advances in level?


Yes always same lenght
QUOTE(Bear @ Apr 14 2009, 07:52 AM) *
First thing you need to do is open that screen shot in a Image Editor and find the Starting/Ending Pixils for your Health(Red) and Mana(Blue) bars


I saw tool for this in AC tool, but now i cant find it.
I want paste this screenshot to AC tool folder with name 1024x768 and run position tool... but where the hell is it? :/

CODE

SetActiveWindow Element Client
Delay 10 sec
Constants
Red_X =
Red_Y =
Var1 = 0
Var2 = 0
End
delay 1000
Compute Var1 = $Red_X + 30
Compute Var2 = $Red_X + 120

Procedure MM using X //Move Mouse
MousePos $X,$Red_Y
Delay 500
End

Loop 5
Call MM $Var1
Call MM $Red_X
Call MM $Var2
End

LoadRGB $Red_X,$Red_Y
Timestamp What are my Values? Red ( {RGBRed} ), Green ( {RGBGreen} ), Blue ( {RGBBlue} )



I dont get this
CODE

Timestamp What are my Values? Red ( {RGBRed} ), Green ( {RGBGreen} ), Blue ( {RGBBlue} )"



and could u fast edit it and add something like:

//type here
and
//do not change

to all commands? or its not important and i must change only Red_X Red_Y


If i want mana i can change names:
Red_X Red_Y
to
Blue_X Red_Y?
Bear
QUOTE(omfgzord @ Apr 14 2009, 02:13 PM) *
Really thanks for reply in this style. Its very helpfull

QUOTE(Bear @ Apr 14 2009, 07:52 AM) *
The Bars are the Same length, do they stay the same length as your character advances in level?


Yes always same lenght
QUOTE(Bear @ Apr 14 2009, 07:52 AM) *
First thing you need to do is open that screen shot in a Image Editor and find the Starting/Ending Pixils for your Health(Red) and Mana(Blue) bars


I saw tool for this in AC tool, but now i cant find it.
I want paste this screenshot to AC tool folder with name 1024x768 and run position tool... but where the hell is it? :/

I dont get this
Timestamp What are my Values? Red ( {RGBRed} ), Green ( {RGBGreen} ), Blue ( {RGBBlue} )

and could u fast edit it and add something like:

If i want mana i can change names:
Red_X Red_Y
to
Blue_X Red_Y?


Just use Paint that comes with Windows. Then just ZOOM in.
Timestamp is for DEBUGGING - it's gonna tell us if ACTool can even See the Color on the Health Bar. If it can't why Build a Macro that won't Work?
Yes, Blue_X well be for the mana Bar, but your getting ahead of your self. If ACTool can't see the Red bar it sure isn't gonna see the Blue bar.
Fast Edit: You just need a Value after the = of both Red_X & Red_Y.
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.