This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
minionlib_lua_api [2015/04/24 09:27] – created fxfire | minionlib_lua_api [2015/06/18 13:25] (current) – removed fxfire | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====MinionLib Lua==== | ||
- | This library is holding the core functionality on which all our bots are running. You can freely use the available functions for your Addon, in order to do that, you just need to open your **module.def** and set the dependency of your Addon to the lib: | ||
- | <code lua> | ||
- | [Module] | ||
- | Name=YourAddon | ||
- | Dependencies=minionlib | ||
- | Version=1 | ||
- | Files=myluacode.lua | ||
- | Enabled=1 | ||
- | </ | ||
- | |||
- | |||
- | ===Utility Functions=== | ||
- | ***d(...)** | ||
- | *Prints our the passed variable or the result of a function into the console. | ||
- | ***Now()** | ||
- | *Returns tickcount from ml_global_information.Now | ||
- | ***TimeSince(// | ||
- | *Returns //integer// ml_global_information.Now - previousTime | ||