postreply Home » Forums » Knight Online » KO Submissions

Macro2 : KO Submissions

Posted: July 11th, 2004, 7:40 pm
tault_Tault Community

Total Posts: 10213
Joined: August 29th, 2004, 2:46 pm
ACtool auto-kill/heal/mana

Code: Select all

/////////////////////////////////////////////////////////////////////////////
// START GAME - ALT+TAB , START MACRO TOOL - LOAD THIS MACRO, PRESS START IN RIGHT DOWN
// CORNER - THE GAME WINDOW APPEAR AND NOW IS MACRO WORKING..
// WARNING -- WHEN YOU ALT+TAB FROM GAME WINDOW - YOU MUST AGAIN PRESS START MACRO BUTTON!
// BECAUSE WHEN YOU ALT+TAB FROM GAME, THE MACRO STOP !! U MUST START IT AGAIN.. AND THE
// MACRO SWITCH YOU TO THE GAME AUTOMATICALLY - IF NOT, CLOSE NONSTANDARD BACKGROUND APPLICATIONS.
// You must have the game in 1024 x 768 and HP potions/heal spells on hotkey 8
// (last slot in quickbar).
// if you have heal/spell on another key, change "Keys 8" to "Keys x"
// where x = number corresponding to slot where you have the healp/spell.
// Same way to set your mana potions, but instead of 8. slot, put into 7. slot
// How it work ? This macro look at pixel 260, 9 (vertical,horisontal) and if see
// red color on that pixel, then make nothing.. if don't see - simply press key corresponding with
// slot where you have your spell/potions.
//
// If you want be start auto-healed when you have 3/4 of HP - let the line 32 be on 260, 9
// If you want .... 1/2 of HP - change it to 233, 9
// If you want .... 1/3 of HP - change it to 200, 9
// Same way is with MP but on line 44.
// IF YOU USE ANOTHER RESOLUTION OR USE WINDOWED MODE YOU NEED CHANGE THIS NUMBERS !!
// change the 9 to 31 and 27 to 49 for Windowed mode. For another resolution  I dont know now,
// but it can be simply calculated, press Printscrn, paste it to in Paint and point cursor to
// place where is your HP bar and mana bar and check the second number in status. This is number what you
// need to place instead of 9 and 27. As I said, these numbers is pixels on screen and changing resolution
// will change the position of your mana/hp bars. 
// IF YOU GET GAME TOO LAGGY - CHANGE THE DELAY 1000 TO ANOTHER. ITS IN msec (1000=1SEC)
/////////////////////////////////////////////////////////////////////////////
// This line is necessary to select the proper window
SetActiveWindow Knight OnLine Client
ObjVar 10 // variance of HP/mana bar colors, variance how can be different from real red/blue
CommandDelay 500
Procedure heal
  IsRed 250, 9 // check if your HP bar is RED = if you have HP
  Else
    Keys 8 // now pressing key = using HP potions/spell
  End
End

Procedure afk
   IsBlue  250, 27 // check if your mana bar is blue = if you have MP
      Keys z // if you have mana, then target nearest mob
      Delay 500 // little delay, because macro lag game client :(
        IsRed 456, 48 // checking if your target have HP
    Keys 1 // start attacking - using ability in 1 slot, if you need change the number to corresponding
// slot where you have your attacking ability or spell. If you want attack with more ability/spells or
// want combine it - simply make new line after this comment and write "Keys X" where X = key to using
// your ability/spell. Remember set the right Delay between using abilities... for example :
// Keys 1
// Delay 3000
// Keys 2
// Delay 1000  - this is example how to attack with using slot 1, then pause 3s, then using slot 2
// and pause 1sec.
      Else
      //
      End
  Else
    //  if false
    Keys 4 // if you dont have mana, drink mana potion
  End
End
while 1 = 1
  Call heal
  Call afk // run the procedure ..
End
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests