read memory
Posted: Sun Apr 19, 2009 4:25 pm
try to make script ... just starting.
i get 0A523F82 with artMoney
but: error bad argument
I need read Mu Online HP and take action based on it (like drink HP Potion)
thanks
i get 0A523F82 with artMoney
but: error bad argument
Code: Select all
HP_vida = "0A523F82";
HP_vide = "0x0A523F82";
function mem()
HP = memoryReadInt(proc, HP_vida);
end
-- This declares our "main" function which will contain our "main loop".
function main()
win = findWindow("MU");
proc = openProcess( findProcess("MU") );
attach(win);
printf("Press F8 to terminate script.\n");
showWindow(win, sw.show);
while(1) do
-- if they press F8, break out of the while
if( keyPressed(key.VK_F8) ) then
break;
end
if( keyPressed(key.VK_F6) ) then
mem();
end
end
printf("Goodbye!\n");
end
-- startMacro will now call main() within a protected environment for us.
startMacro(main);
thanks