summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-08Made Manaserv accept parameters enclosed with double-quotes.Yohann Ferreira1-3/+34
Reviewed-by: Jaxad0127. Resolves: Manasource-Mantis #22
2010-06-22Fixed the up down monster attack direction and comment trivial fixes.Philipp Sehmisch2-4/+4
Resolves: Manasource Mantis #144. Signed-off-by: Philipp Sehmisch <mana@crushnet.org>
2010-06-07Update Code::Blocks project filesJared Adams2-2/+4
2010-06-06Arbitrary cleanups and marked GameHandler::getClientByNameSlow constThorbjørn Lindeijer4-21/+18
2010-06-06More const correctness and small code cleanupsThorbjørn Lindeijer13-86/+65
2010-06-06Made methods of GuildManager const where appropriateThorbjørn Lindeijer2-42/+18
Also removed some pointless null pointer checks.
2010-06-06Made methods of the Guild class const where appropriateThorbjørn Lindeijer3-37/+24
2010-05-31Added minimal example global_events.luaPhilipp Sehmisch1-0/+57
Reviewed-by: Thorbjorn
2010-05-30Use XML::Document to automate memory cleanupThorbjørn Lindeijer11-153/+74
Makes the code a little nicer.
2010-05-30Copied basic Lua libs back from tmwserv-data and added dummy dataThorbjørn Lindeijer13-15/+752
The dummy data is currently mostly empty data though, so still nothing to see as far as the example content is concerned. Reviewed-by: Bertram
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 Lindeijer11-49/+24
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 Ferreira3-51/+85
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-29Set example paths to those documented on the wikiPhilipp Sehmisch1-2/+2
2010-05-29Added path and hp regen in combat config options to example manaserv.xmlPhilipp Sehmisch1-3/+7
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 Ferreira7-34/+59
Reviewed-by: Thorbjorn, Jaxad0127
2010-05-28Modified the npc_trade() lua function to permit selling the whole player ↵Yohann Ferreira5-20/+133
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 Ferreira2-2/+3
Reviewed-by: Jaxad0127
2010-05-21Some cleanup in StatusEffect classThorbjørn Lindeijer2-14/+14
No functional changes.
2010-05-21Added a package loader that goes through the resource managerThorbjørn Lindeijer3-1/+41
Fixes issues with finding Lua scripts after changing the way client and server data paths are set up. Lua scripts can now use 'require' with paths relative from the serverDataPath to include other Lua scripts. Reviewed-by: Jared Adams
2010-05-20Removed unused parameter from being_get_speed Lua functionThorbjørn Lindeijer1-4/+4
Also updated the link to the documentation and fixed the documentation for being_set_speed.
2010-05-17Added .mailmap file to clean up shortlogThorbjørn Lindeijer1-0/+4
Removed some duplicate entries like Bjørn and Thorbjørn, three different variations of Blue and two for Bertram.
2010-05-17Fixed CMake build by removing now unused defineThorbjørn Lindeijer1-2/+0
2010-05-16Changed contact email address to the Mana developer listThorbjørn Lindeijer1-1/+1
Reviewed-by: Jared Adams
2010-05-16Random cleanups, adding const, removing unnecessary clear callsThorbjørn Lindeijer9-49/+29
Reviewed-by: Jared Adams
2010-05-16Added some documentation about the dependenciesThorbjørn Lindeijer1-0/+9
Reviewed-by: Jared Adams
2010-05-16Don't return configuration value by referenceThorbjørn Lindeijer2-3/+3
The lifetime of the default value is often not long enough to survive to the next statement, so returning it by reference is dangereous. At the moment there may not be any place that actually tries to use the returned value as a reference, but it's better not to wait on it to happen. This was already fixed on the client after it lead to strange crashes. Reviewed-by: Jared Adams
2010-05-16Changed and split up the default location for loading dataThorbjørn Lindeijer19-177/+248
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 Sehmisch3-7/+35
Reviewed-by: Thorbjorn Lindeijer
2010-05-06Compile-fix for manaserv, post protocol merge.Bertram2-24/+16
Please re-merge mana and manamobile to fit the change on actor types.
2010-05-03synchronised protocol.h between manaserv, mana and manamobile.Maximilian Philipps1-37/+65
2010-04-25Added a Byte Order Mask (BOM) filter to the ResourceManager.Bertram10-11/+45
Reviewed by: Jaxad0127
2010-04-11Implemented handler for on_chr_death and put the loading of the global ↵Philipp Sehmisch4-15/+29
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 Sehmisch4-13/+34
Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
2010-04-11Added global lua event script (only on_being_death_accept for now)Philipp Sehmisch4-9/+36
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-18Fixed a typo in mysql database update script for v7 to v8.Philipp Sehmisch1-1/+1
(trivial change)
2010-03-13Add methods to get and set being speedJonathan Kolberg1-1/+35
Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-03-08Remove an unused function and two protocol messages.Bertram4-23/+1
TMW-Mantis #25 is resolved, btw. Reviewed-by: thorbjorn, Jaxad0127, and Kage.
2010-03-08We should enable Lua per default as we have no other scripting engine anyway.Bertram1-1/+1
2010-02-25Added script bindings for healing characters and other beings.Philipp Sehmisch3-0/+55
Reviewed-by: Jared Adams <jaxad0127@gmail.com>
2010-02-23Removed some unnecessary log messagesPhilipp Sehmisch2-3/+2
2010-02-22Fixed unused variable warningsThorbjørn Lindeijer2-3/+1
2010-02-22Send update host also with registration responseThorbjørn Lindeijer1-3/+8
The client would otherwise not know which update host to use after registration. Also, the update host is now always sent, even if it is empty. This makes the message contents more deterministic. Reviewed-by: Jared Adams
2010-02-22Updated INSTALL fileThorbjørn Lindeijer1-20/+94