it run just fine in my computer windows 7 64 bit,
but here is the problem that i got,, when i run it on my other computer windows 7 32 bit,, it cannot start.
I think i found the problem,, on win 7 32 bit,, the game is hidden on the task manager (only the proses game.exe) i cannot see it on the Applications tab.
so i wonder , how to solve this problem? how to attach the game in 32 bit?
Code: Select all
BOT_VERSION = 1.70;
include("functions.lua");
---------------------------------------------------------------------------
--ADDRESSES
---------------------------------------------------------------------------
proc = 0;
win = 0;
---------------------------------------------------------------------------
--SETTINGS
---------------------------------------------------------------------------
setStartKey(key.VK_DELETE)
setStopKey(key.VK_END)
------------------------------------------------
-- Variable setup
------------------------------------------------
kill = 0;
---------------------------------------------------------------------------
--MAIN MACRO
---------------------------------------------------------------------------
function main()
-- Greeting
cprintf(cli.green, "Welcome To BOI BOT!\n");
cprintf(cli.green, "version [%s]", BOT_VERSION);
cprintf(cli.green, " Enjoy\n");
cprintf(cli.green, "\n");
--Attach
cprintf(cli.red, "Looking For Client\n");
win = findWindow("Battle*");
local wx,wy,ww,wh = windowRect(win);
if( win == 0 ) then printf("Error! Could not locate Battle of Immortals window!\n");
return;
end;
hdc = openDC(win)
proc = openProcess( findProcess("Battle*") );
attach(win);
win = getHwnd();
cprintf(cli.red, "Attach Success\n");
cprintf(cli.yellow, "Starting.......\n");
printf("\n");
name = memoryReadString(proc, 0x00BDD730);
setWindowName(win, sprintf("BOI Bot %s - %s", BOT_VERSION, name))
expstart = memoryReadInt(proc, 0x00EFCE68);
registerTimer("updateVar", 100, updateVar);
registerBuffs();
while( 1 ) do
call_stat();
target_monster();
yrest(1200);
end
end
startMacro(main);