Search found 21 matches

by luonline
Mon Sep 15, 2008 2:36 pm
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

Re: [REQUEST] atStop

Function yrest causes error inside the callback function... For example: startKey = key.VK_INSERT; stopKey = key.VK_DELETE; function pause_callback() yrest(100); printf("Pausing...\n"); end atPause( pause_callback ); function main() while(true) do printf("Running...\n"); yrest(10...
by luonline
Thu Sep 11, 2008 7:25 am
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

Re: [REQUEST] atStop

Both files you've uploaded are the same. Not working yet.
by luonline
Wed Sep 10, 2008 7:37 am
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

Re: [REQUEST] atStop

Didn't work. I tried: startKey = key.VK_INSERT; stopKey = key.VK_DELETE; function pause_callback() printf("Pausing...\n"); end atPause( pause_callback ); function main() while(true) do printf("Running...\n"); yrest(100); end end startMacro(main); But, I still got: "...of\Des...
by luonline
Tue Sep 09, 2008 3:33 pm
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

Re: [REQUEST] atStop

Hi! I tried:

Code: Select all

function stop_callback()
  printf("Stoping...\n");
end

atStop(stop_callback);
But I got an error:
"...of\Desktop\mutools\micromacro\scripts\mu-engnovo.lua:399: attempt to call global 'atStop' (a nil value)".
Could you give an example? Thank you.
by luonline
Tue Sep 09, 2008 2:44 pm
Forum: MicroMacro scripts
Topic: Global Mu Online
Replies: 3
Views: 2360

Re: Global Mu Online

Hi, this is an English version. I hope you understand it. :D
Try it and let me know if it is running slowly on your PC.
I tried it on 5 PC's, but only on 2 this bot run correctly since last GG update...
by luonline
Mon Sep 08, 2008 12:46 pm
Forum: MicroMacro scripts
Topic: Global Mu Online
Replies: 3
Views: 2360

Re: Global Mu Online

I'd like an english translation :lol: No problem, I'll work on it. Also, how do you get past gameguard? I only need to rename micromacro.exe to tablet.exe and use a minimizer like lodi's or Travis. You can get both here: http://www.mpcdownloads.com/forums/downloads/40-MU-Online-cheats-hacks/ . Good...
by luonline
Fri Sep 05, 2008 6:32 am
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

Re: [REQUEST] atStop

Good question. i think so, because stoping a script before it exits makes sense to me. Furthermore, i think that atStop would be used for cleaning or logging purposes and it doesn't affect later events.
Just my opinion.
by luonline
Thu Sep 04, 2008 7:24 am
Forum: MicroMacro general & support
Topic: [REQUEST] atStop
Replies: 11
Views: 3490

[REQUEST] atStop

Hi!
Is it possible to add an atStop function (similar to atExit), which would be called when the script stops by pressing the stop key?
Thanks in advance.
by luonline
Thu Sep 04, 2008 6:55 am
Forum: MicroMacro general & support
Topic: yrest
Replies: 3
Views: 2040

Re: yrest

I'll rework it to allow 10ms sections if Coco is available, or fall back on 100ms sections otherwise. Just a suggestion of implementation: function yrest(msec) safeYield(); local size; if( cocoAvailable ) then size = 10; else size = 100; end if( msec < size ) then rest(msec); return; else sections ...
by luonline
Wed Sep 03, 2008 3:16 pm
Forum: MicroMacro general & support
Topic: yrest
Replies: 3
Views: 2040

Re: yrest

elverion wrote:Thanks for the bug report.
Forget about it.
Actually, we (all users) thank you for spending your time developing and improving this great tool!
by luonline
Tue Sep 02, 2008 7:50 pm
Forum: MicroMacro general & support
Topic: yrest
Replies: 3
Views: 2040

yrest

function yrest(msec) safeYield(); if( msec < 10 ) then (1) rest(msec); return; else sections = math.floor(msec / 100); -- split into 10msec sections (2) ... end Taking a closer look at this code in lib.lua, I think: (1) this line should be "if( msec < 100 ) then" (2) this comment should b...
by luonline
Tue Sep 02, 2008 7:31 am
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Re: Global Mu Online

elverion wrote:As long as it works, it works, I guess. I'll look into it further when I get some time.
:D
OK, I'd aprecciate it. And I will do some tests here...
by luonline
Mon Sep 01, 2008 9:32 pm
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Re: Global Mu Online

elverion wrote:Try renaming micromacro.exe to JoyToKey.exe. That sometimes works.
With this name, nothing happens, not even slowly... :cry:
But, I just realized a crazy thing: I got DC (disconnect) from the game and, when I logged on again (without restarting micromacro), my bot run perfectly!
Strange, hun?
by luonline
Mon Sep 01, 2008 7:09 pm
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Re: Global Mu Online

Yes, it is possible. Using setPriority() as previously stated should give you higher priority, and therefor it should run at normal speed again. But, unfortunatelly, I already did it... See: function main() attach(win); setPriority(priority.high); And it doesn't work. Anyone else use MU+Micromacro?...
by luonline
Mon Sep 01, 2008 6:24 pm
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Re: Global Mu Online

First of all, thanks for all suggestions. And I'll try to explain my code... Your while loop is pretty cluttered. This could cause it to run slow if another program is consuming large amounts of the CPU. Maybe it's cluttered because that script is suitable for many kinds of MU chars. if (usa_autopar...
by luonline
Mon Sep 01, 2008 2:51 pm
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Re: Global Mu Online

Hi!
elverion wrote:It could just be a priority issue. Try setting setPriority(priority.high) to allow MicroMacro to have first dibs on processor time.
I don't think so... I just uploaded here: http://solarimpact.servegame.com/phpBB3 ... ?f=3&t=123.
Maybe I'm making another mistake...
Thanx.
by luonline
Mon Sep 01, 2008 2:44 pm
Forum: MicroMacro scripts
Topic: Global Mu Online
Replies: 3
Views: 2360

Global Mu Online

Hi! It's my first bot for GMO. A silly one. It's in Portuguese, but I can translate into English if anyone is interested in it. It's intended for using on slower PC's (like mine), so keys and buttons are "carefully" pressed. But, AFAIK, it also works on faster PC's. I hope it can be helpfu...
by luonline
Mon Sep 01, 2008 12:23 pm
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 10
Views: 3589

Global Mu Online

Hi! I've been using MiniMacro and MicroMacro for writing my own simple bots (autopick, autobuff, etc.). Until now... :( But, since last GameGuard update, my bots run slowly. I mean, if Mu is running, my bots run slowly, but if I close Mu, bots run perfectly. Users of others bots, like PJ or ChaosBot...
by luonline
Mon May 19, 2008 12:41 pm
Forum: MicroMacro general & support
Topic: Lua beginner
Replies: 1
Views: 1138

Lua beginner

Hi! Following script doesn't work, because it doesn't wait for user input: startKey = key.VK_INSERT; stopKey = key.VK_DELETE; function main() io.write("Are you OK? (Y/N): "); answer = io.read(1); -- answer = io.read("*line"); print("Your choice is:", answer); end startM...
by luonline
Mon May 19, 2008 6:21 am
Forum: MicroMacro general & support
Topic: Global Mu Online
Replies: 2
Views: 1435

Re: Global Mu Online

Hi! You're better off making use of memoryRead* [See: manual ] functions as opposed to reading the color from the screen. It's much easier to implement, and is less likely to be effected by configuration changes (different resolutions, video cards, or video settings could potentially make color read...