summaryrefslogtreecommitdiff
path: root/src/game-server
AgeCommit message (Collapse)AuthorFilesLines
2010-05-30Use XML::Document to automate memory cleanupThorbjørn Lindeijer9-151/+72
Makes the code a little nicer.
2010-05-29Use const std::string & to avoid a copyThorbjørn Lindeijer2-6/+5
2010-05-29Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer6-14/+7
libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
2010-05-29Made the logLevel be taken from configuration for both servers.Yohann Ferreira1-24/+35
The new parameters in the manaserv.xml file can be used to do so: log_accountServerLogLevel log_gameServerLogLevel Also, updated the sample manaserv.xml accordingly. Reviewed-by: Thorbjorn.
2010-05-29Made disabling of HP regeneration during combat configurablePhilipp Sehmisch1-1/+2
Reviewed-by: Bertram
2010-05-28Added some more log infos, and made small cleanups.Yohann Ferreira6-34/+54
Reviewed-by: Thorbjorn, Jaxad0127
2010-05-28Modified the npc_trade() lua function to permit selling the whole player ↵Yohann Ferreira2-6/+44
inventory. It permits to open a sell box with every items in the player inventory as requested by Striker. Also added different return value support to both the buy selling functions, and made fixes where relevant. The test.lua script will be upgraded to show examples in a next commit. What's left to be done is to fix the inventory handling for both selling functions. (Sigh...) Concerns: Manasource mantis: #78, #101. Reviewed-by: Jaxad0127
2010-05-27Fixes the random drops made by monsters once they've reached their lifetime ↵Yohann Ferreira1-11/+12
limit. This contributes to avoid maps full of loot after a week or so. This also resolves TMW-Mantis: #708 Reviewed-by: Jaxad0127
2010-05-21Fixes based on cppcheck errors report.Yohann Ferreira1-0/+1
Reviewed-by: Jaxad0127
2010-05-21Some cleanup in StatusEffect classThorbjørn Lindeijer2-14/+14
No functional changes.
2010-05-16Random cleanups, adding const, removing unnecessary clear callsThorbjørn Lindeijer1-2/+2
Reviewed-by: Jared Adams
2010-05-16Changed and split up the default location for loading dataThorbjørn Lindeijer10-248/+18
Instead of loading data from a 'data' directory in the current working directory, the server now uses clientDataPath and serverDataPath as specified in the configuration. This removes the need to set up symbolic links in order to merge these two types of data. The default values point to example/clientdata and example/serverdata, where a minimal example world can be developed to make setting up an initial server quick and easy. The XML::Document convenience class was copied over from the client. Also, the ResourceManager is now shared between both servers, since the account client is reading items.xml. Reviewed-by: Jared Adams
2010-05-12Fixed a forbidden use of char bomBuffer[utf8Bom.length()]; with ISO C++Bertram1-8/+8
Made-by: thorbjorn Reviewed-by: Bertram
2010-05-09Floor items are now removed after a (configurable) time.Philipp Sehmisch2-4/+29
Reviewed-by: Thorbjorn Lindeijer
2010-05-06Compile-fix for manaserv, post protocol merge.Bertram1-17/+2
Please re-merge mana and manamobile to fit the change on actor types.
2010-04-25Added a Byte Order Mask (BOM) filter to the ResourceManager.Bertram8-9/+41
Reviewed by: Jaxad0127
2010-04-11Implemented handler for on_chr_death and put the loading of the global ↵Philipp Sehmisch1-13/+10
script into a method of class LuaScript Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
2010-04-11Implemented global event function call to on_chr_deathPhilipp Sehmisch2-13/+12
Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
2010-04-11Added global lua event script (only on_being_death_accept for now)Philipp Sehmisch2-9/+33
Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
2010-04-02Remove empty LOG print when deallocatingChuck Miller1-2/+0
2010-03-30Fix sitting and standingChuck Miller1-5/+6
2010-03-30Remove unneed debug outputChuck Miller1-1/+0
The issue this output was created to help debug has long been fixed
2010-03-08Remove an unused function and two protocol messages.Bertram3-20/+1
TMW-Mantis #25 is resolved, btw. Reviewed-by: thorbjorn, Jaxad0127, and Kage.
2010-02-25Added script bindings for healing characters and other beings.Philipp Sehmisch2-0/+21
Reviewed-by: Jared Adams <jaxad0127@gmail.com>
2010-02-23Removed some unnecessary log messagesPhilipp Sehmisch1-2/+2
2010-02-22Fixed unused variable warningsThorbjørn Lindeijer1-2/+0
2010-02-07Update Copyright date for Manaserv.Bertram62-62/+62
2010-02-07Fixed gameserver termination under unices environnements when the account ↵Bertram1-1/+1
server wasn't found.
2010-01-29Rename enum elements to avoid clashing with macrosBernd Wachter1-1/+1
2010-01-17Removed last traces of hardcoded access levels form game-server, begun with ↵Philipp Sehmisch1-82/+20
using the permission manager in the account-server.
2010-01-17Some refractoring at the command handler for easier maintainabilityPhilipp Sehmisch1-84/+112
2010-01-17Added commands for setting permissions by aliasPhilipp Sehmisch1-0/+116
2010-01-17Added permission manager. Currently only used for @commands and doesn't ↵Philipp Sehmisch2-90/+54
support <deny> and <alias> yet.
2010-01-08Added script binding for checking the kill count for each monster so that ↵Philipp Sehmisch2-0/+17
uninventive server admins can implement their boring kill-ten-rats quests.
2010-01-08Added tracing of kill count for each monster per characterPhilipp Sehmisch4-0/+38
2009-12-28Tweaked the skip detection a bit more to show less groups of small skips in ↵Philipp Sehmisch1-2/+2
the log.
2009-12-28Made world tick skip detection more laxPhilipp Sehmisch1-12/+12
2009-12-28Added parser for mana-skills.xmlPhilipp Sehmisch1-1/+60
2009-12-28Added support for skill names as weapon types in items.xml (still hardcoded)Philipp Sehmisch4-2/+118
2009-12-28Nerfed HP regeneration by disabling it while in combat.Philipp Sehmisch1-7/+11
2009-12-09Fix detecting collision layer for mapsJared Adams1-3/+2
2009-12-06A few late rebranding updatesThorbjørn Lindeijer1-2/+2
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer60-519/+475
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-12-06Removed "TMW" and "TMWSERV" from header guardsThorbjørn Lindeijer28-63/+63
2009-12-06Fixed crash when an invalid status effect is requestedThorbjørn Lindeijer3-11/+18
Log an error instead.
2009-12-06A host of code style changesThorbjørn Lindeijer5-9/+9
Removed pointless void in method parameter lists, fixed methods and variables that started with upper case, removed pointless 'const' for stuff passed by value, made some getters const, etc.
2009-12-06Moved rectangle intersection to the Rectangle classThorbjørn Lindeijer2-39/+15
Also a bit of pointless cleanup in the math utils.
2009-12-06Fixed the default visual rangeThorbjørn Lindeijer1-1/+1
The client is 800x600 by default, so 320 pixels radius was not enough. Taking into account a bit of network latency as well, 448 should be alright.
2009-12-06Made the Being timer accessors constThorbjørn Lindeijer2-20/+25
2009-12-05Fixed a bug which prevented monsters from attackingPhilipp Sehmisch1-1/+0