summaryrefslogtreecommitdiff
path: root/src/scripting/luascript.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-2/+2
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-08-22Pass a script name to Lua for proper reporting of error locationsThorbjørn Lindeijer1-5/+5
Now the Lua file name shows up in the error message and stack traceback, or the map file and object name in case of a script embedded in a map file.
2010-08-22Rename some stuff to conform to naming conventionsThorbjørn Lindeijer1-8/+8
2010-08-22Print out a backtrace when a Lua error is raisedThorbjørn Lindeijer1-19/+19
The backtrace is printed by using debug.traceback as error handler when calling Lua functions. At the moment it still looks pretty ugly since Lua is not aware of the file names of the scripts (to be fixed). Reviewed-by: Jared Adams
2010-08-22Print out the actual error message in case of a syntax errorThorbjørn Lindeijer1-3/+7
Should help to locate the problem. Reviewed-by: Jared Adams
2010-07-09Added LUA script bindings for manipulating the specials available to a ↵Philipp Sehmisch1-0/+11
character. Added script call for getting the cost of a special (recharge only for now) Deleting specials works server-sided but the client isn't informed about it properly. Specials without recharge cost don't appear for the player. Both of these features require an additional netcode message. Reviewed-by: Freeyorp
2010-04-11Implemented handler for on_chr_death and put the loading of the global ↵Philipp Sehmisch1-0/+11
script into a method of class LuaScript Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-7/+6
Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
2009-04-26Standardize on the position of the const keywordBjørn Lindeijer1-8/+8
Same as for the client.
2009-01-31Added on_remove callback to lua APIPhilipp Sehmisch1-1/+10
2009-01-22Reduced the size of lua.cpp by putting the class LuaScript and the utility ↵Philipp Sehmisch1-0/+150
functions in separate files leaving only the script bindings themself. Unified internal and external names of lua script bindings.