Heya all, I'm here to present Lunadll with Lua (Alpha-Version)!
I used most of the last week to work on this, and I think it's turning out pretty well. The problem with Autocode (the lunadll-language) is the lack of flexibility that it has (such as the way it lacks custom functions, variables.etc).
So first of all: What is lua?
LunaDLL for lua reference & example page (outdated since v0.2.7)
PLEASE NOTE: I am currently rewriting the documentary HERE: http://wohlsoft.ru/wiki/index.php?title=Category:LunaLua_API
You might want to google other lua tutorials too.
How to install:
1. You'll need a "hexed" smbx client (A2XT or Raw)
2. If you have finished setting up everything, then download this (if you haven't already), replace Lunadll.dll with the new dll and copy the Lua dlls.
3. There is an example folder in the zip file containing two examples. To use them, copy the lua file in the custom folder of your level and rename it to "lunadll.lua" (similiar to lunadll.txt)
3.1. Example "wind.lua" - moves the character +1 of the x-coordinates to simulate wind (pretty fun :P)
3.2. Example "harmtest.lua" - every 1000 frames, the player gets a "fake-hit"
Which lua-libs can I access?
Code: Select all
os.* --Limited (only time/date works), because of security reasons