Macro1
Posted: July 11th, 2004, 7:39 pm
ACtool Auto-heal/mana
[code]
/////////////////////////////////////////////////////////////////////////////
// You must have the game in 1024 x 768 and potions on hotkey 8
// If you want to use this when hunting mobs set IS RED to 200 instead of 260
// Right now its set to heal if you hurt just a bit. FOR PK
// i.e 260 = you get autohealed with 3/4 of HP/MP
// i.e 233 = you get autohealed when you have 2/4 of HP/MP
// By Xare / Phear Me
/////////////////////////////////////////////////////////////////////////////
// This line is necessary to select the proper window
SetActiveWindow Knight OnLine Client
ObjVar 10
CommandDelay 1000
Procedure Heal
// THERE \/ IS THE NUMBER TO CHANGE TO 233 IF U WANT HEALED WHEN U HAVE 1/2HP
IsRed 233, 9
// if true
Else
// if false
Keys 1 // THIS IS NUMBER OF SLOT WHERE YOU HAVE HEAL POTIONS OR HEAL SPELL
End
End
Procedure Heal2
// THERE \/ IS THE NUMBER TO CHANGE TO 233 IF U WANT DRINK MP WHEN U HAVE 1/2MP
IsBlue 260, 27
// if true
Else
// if false
Keys 2 // THIS IS NUMBER OF SLOT WHERE YOU HAVE MANA POTIONS OR MANA SPELL
End
End
While 1 = 1
Call Heal
Call Heal2
End
[code]
/////////////////////////////////////////////////////////////////////////////
// You must have the game in 1024 x 768 and potions on hotkey 8
// If you want to use this when hunting mobs set IS RED to 200 instead of 260
// Right now its set to heal if you hurt just a bit. FOR PK
// i.e 260 = you get autohealed with 3/4 of HP/MP
// i.e 233 = you get autohealed when you have 2/4 of HP/MP
// By Xare / Phear Me
/////////////////////////////////////////////////////////////////////////////
// This line is necessary to select the proper window
SetActiveWindow Knight OnLine Client
ObjVar 10
CommandDelay 1000
Procedure Heal
// THERE \/ IS THE NUMBER TO CHANGE TO 233 IF U WANT HEALED WHEN U HAVE 1/2HP
IsRed 233, 9
// if true
Else
// if false
Keys 1 // THIS IS NUMBER OF SLOT WHERE YOU HAVE HEAL POTIONS OR HEAL SPELL
End
End
Procedure Heal2
// THERE \/ IS THE NUMBER TO CHANGE TO 233 IF U WANT DRINK MP WHEN U HAVE 1/2MP
IsBlue 260, 27
// if true
Else
// if false
Keys 2 // THIS IS NUMBER OF SLOT WHERE YOU HAVE MANA POTIONS OR MANA SPELL
End
End
While 1 = 1
Call Heal
Call Heal2
End