yep this works... not great and massivley annoying to do all the time... im working on a script to get it working automatically in ACTool.
ok here goes.....
important notes =
screen resolution to use is - windowed 1024,768,32
pots need to be in 3rd row down in first slot and they need to be showing (i.e. the bag must be displayed on screen) it has to be the pack of pots u are using in the auto-pot macro (press Y ingame).
i will work on making it more flexible but for now this works well enough for me... i can solo things which would normally kill me, even through a little lag
code is here....
// This line is necessary to select the proper window
SetActiveWindow rf online
delay 1000
(* note to users;
screen resolution is 1024 x 768 in 32 bit colour and windowed mode *)
constants
x=0 //used to store pot x location
y=0 //used to store pot y location
end
while 1=1
setconst $x=185 //set x to hp co-ord
setconst $y=51 //set y to hp co-ord
loadRGB $x,$y //check player health
if {RGBred}<205 //if player needs healing
loadRGB 91,51 //check player lower health
if {RGBred}<205 //if player is dead
stop //quit macro
else //otherwise carry on trying to heal
setconst $x=746 //set x to first bag slot
setconst $y=562 //set y to first bag slot
delay 125
mousepos $x,$y //move mouse to found pots
delay 125
leftclick //pick up pots
delay 125
mousepos $x,$y //move mouse to found pots
delay 125
leftclick //drop pots - thus removing cooldown
delay 125
end if //if player is dead end
end if //if player needs healing end
delay 750 //needed so code doesn't eat all ur cpu, can increase this to decrease cpu load
end //end while
__________________________________________________ ______________________________
^^end of code
bugs....
sometimes a stack is picked up and not dropped - this can happen when u lag a little and the code skips a line or more likely when u pot back past the initial check for running the pot bug... thus the program seems to end early.
my mouse goes mad during the cycle - this due to the fact that the mouse needs to move to the pot stack to pick it up and drop it again... it's best not to use the mouse during a fight and use the skills in keyboard mode (i.e. 1-10 or f1-f10), i realise this can make targetting very hard when u are taking too much damage but that's the price u pay atm, target first is the only advice i can give atm
the program stops if i change area or (heaven forbid) diethis is intended to reduce the load on the cpu when it isnt needed... simply start the program when u need it - or u can remove the "stop //quit macro" line