summaryrefslogtreecommitdiff
path: root/example/scripts/crafting.lua
AgeCommit message (Collapse)AuthorFilesLines
2012-03-11Converted two Lua scripts from DOS to UNIX line endingsThorbjørn Lindeijer1-88/+88
2012-03-11Register Lua script API functions into the global namespaceThorbjørn Lindeijer1-9/+9
Scripts mostly execute the Mana script API, and it seems like just unnecessary verbosity to refer to the 'mana' table all the time. This table no longer exists now. Reviewed-by: Erik Schilling
2012-03-03Made some global Lua variables localThorbjørn Lindeijer1-45/+44
We have to be careful with introducing globals now that there is only a single Lua state, so we shouldn't use globals unnecessarily. Any variable should be declared 'local' unless there is a reason to make it global. For additional safety we can also think about disallowing the use of globals entirely. This also helps to catch typos in scripts. Reviewed-by: Erik Schilling
2012-03-03Added further missing callbacksErik Schilling1-0/+2
Reviewed-by: bjorn.
2012-03-02A bunch of cleanups to example Lua scriptsThorbjørn Lindeijer1-28/+16
Mostly removed bulky copyright headers and fixed indentation and line length. Reviewed-by: Yohann Ferreira Reviewed-by: Erik Schilling
2012-02-25Merged the example client and server dataThorbjørn Lindeijer1-0/+99
It's easier to just talk about world data and to modify it as a whole. If there is really a need to separate it, a project can still choose to do that (and in whatever suitable way). There is no need to enforce this separation or to do it in our example. Reviewed-by: Erik Schilling