include("addresses.lua"); include("settings.lua"); include("functions.lua"); setStartKey(settings.hotkeys.START_BOT.key); setStopKey(settings.hotkeys.STOP_BOT.key); local windowList = findWindowList("Grand Fantasia", "DJO_CLASS"); if( #windowList == 0 ) then print("You need to run GF first!") end cprintf(cli.red,"Get focus on Game and press (".. getKeyName(settings.hotkeys.START_BOT.key)..") to start.\n") repeat rest(200) until keyPressed(settings.hotkeys.START_BOT.key) keyboardPress(settings.hotkeys.MOVE_FORWARD.key) -- memory doesn't update until character has moved. playerupdate() x= playerX y= playerY function main() local running = true; while(running) do playerupdate() potions() fight() -- checkwindows() box(x+100,x-100,y+100,y-100) --xbig, xsmall, ybig, ysmall if 10 > playerHP then break end end end startMacro(main, true);