summaryrefslogtreecommitdiff
path: root/src/game-server/npc.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-03-11Removed the create_npc wrapper and the last two NPC callbacksThorbjørn Lindeijer1-17/+29
When creating an NPC, you now provide its optional talk and update functions directly rather than them being stored in a table on the Lua side and then called in response to a global callback. Also fixed an issue with a missing gender parameter to the delayed NPC creation callback used by NPCs defined on the map (found by Erik while reviewing this patch). Reviewed-by: Erik Schilling
2012-03-10Moved the managing of NPC script coroutines into C++Thorbjørn Lindeijer1-37/+69
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-03Added further missing callbacksErik Schilling1-10/+23
Reviewed-by: bjorn.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-3/+3
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-13/+13
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-05-24Fixed name of method (recepted -> received)Bjørn Lindeijer1-2/+2
2009-05-01tmwserv NPC String inputBlue1-2/+17
Adding support for npc string input.
2009-05-01Mysql backend, lua and NPC handlerBlue1-0/+4
Fix for mysql backend (again) Lua modification for integer and string ask with NPC, and closing fix.
2009-04-26Merged MovingObject into the Being classBjørn Lindeijer1-1/+4
Also renamed Object to Actor, to make it sound a little less generic. Cleans up a bit the rather big hierarchy of different object types we have.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
2008-10-22Added enabling and disabling NPCs.David Athay1-4/+9
2008-05-19Implemented NPC names. Implemented the theoretical possibility to have named ↵Philipp Sehmisch1-1/+2
monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed.
2007-08-09Converted NPC class to scripting engine.Guillaume Melquiond1-0/+58