Page 1 of 1

running scripts without having game client

Posted: Thu Nov 22, 2012 8:46 am
by Rickster
Hi,

is it possible to build some lua scripts an run them without having the game client up and running?

I am not talking about running whole WP files, but some code snippets and functions for testing purpose.
So I wonder how to set up a lua environment which knows for example the "cprintf_ex" function and others, available by the lua environment implemented in MM.

Ric

Re: running scripts without having game client

Posted: Thu Nov 22, 2012 9:26 am
by rock5
I actually have a command line script that starts up a command line that doesn't need the game running. Is that what you are talking about? Of course no bot functions are available to it.
Cl.lua
(552 Bytes) Downloaded 167 times
Just put it in your "micromacro/scripts" folder and start it by typing "cl" in the micromacro window.

Re: running scripts without having game client

Posted: Thu Nov 22, 2012 3:45 pm
by Rickster
jep :) thats it!

for testing when not at home and not having a game client around ;)

with

Code: Select all

Lua> dofile("scripts/file.lua")
i can also feed it with my code :)

thanx Rock!

Re: running scripts without having game client

Posted: Thu Nov 22, 2012 11:04 pm
by rock5
I think you should also be able to just do

Code: Select all

Script> file
at the standard mm prompt to run the file.