summaryrefslogtreecommitdiff
path: root/example/scripts/npcs
AgeCommit message (Collapse)AuthorFilesLines
2012-03-11Converted two Lua scripts from DOS to UNIX line endingsThorbjørn Lindeijer1-44/+44
2012-03-11Register Lua script API functions into the global namespaceThorbjørn Lindeijer8-107/+107
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-11Removed deprecated NPC helper functionsThorbjørn Lindeijer7-59/+59
Reviewed-by: Erik Schilling
2012-03-10Moved the managing of NPC script coroutines into C++Thorbjørn Lindeijer1-2/+0
Rather than wrapping NPC functions up in coroutines in the Lua side, they are now managed on the C++ side as "script threads", which are essentially the same thing. The main purpose is that the server can now know whether any of these long running script interactions are still active, which will probably be useful when adding the ability to reload scripts. Reviewed-by: Erik Schilling
2012-03-02A bunch of cleanups to example Lua scriptsThorbjørn Lindeijer2-22/+12
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 Lindeijer8-0/+576
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