summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Made the logLevel be taken from configuration for both servers.Yohann Ferreira2010-05-292-51/+73
| | | | | | | | | | 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.
* Made disabling of HP regeneration during combat configurablePhilipp Sehmisch2010-05-291-1/+2
| | | | Reviewed-by: Bertram
* Added some more log infos, and made small cleanups.Yohann Ferreira2010-05-287-34/+59
| | | | Reviewed-by: Thorbjorn, Jaxad0127
* Modified the npc_trade() lua function to permit selling the whole player ↵Yohann Ferreira2010-05-285-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
* Fixes the random drops made by monsters once they've reached their lifetime ↵Yohann Ferreira2010-05-271-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
* Fixes based on cppcheck errors report.Yohann Ferreira2010-05-212-2/+3
| | | | Reviewed-by: Jaxad0127
* Some cleanup in StatusEffect classThorbjørn Lindeijer2010-05-212-14/+14
| | | | No functional changes.
* Added a package loader that goes through the resource managerThorbjørn Lindeijer2010-05-213-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
* Removed unused parameter from being_get_speed Lua functionThorbjørn Lindeijer2010-05-201-4/+4
| | | | | Also updated the link to the documentation and fixed the documentation for being_set_speed.
* Fixed CMake build by removing now unused defineThorbjørn Lindeijer2010-05-171-2/+0
|
* Random cleanups, adding const, removing unnecessary clear callsThorbjørn Lindeijer2010-05-169-49/+29
| | | | Reviewed-by: Jared Adams
* Don't return configuration value by referenceThorbjørn Lindeijer2010-05-162-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
* Changed and split up the default location for loading dataThorbjørn Lindeijer2010-05-1618-177/+236
| | | | | | | | | | | | | | | | | 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
* Fixed a forbidden use of char bomBuffer[utf8Bom.length()]; with ISO C++Bertram2010-05-121-8/+8
| | | | | Made-by: thorbjorn Reviewed-by: Bertram
* Floor items are now removed after a (configurable) time.Philipp Sehmisch2010-05-092-4/+29
| | | | Reviewed-by: Thorbjorn Lindeijer
* Compile-fix for manaserv, post protocol merge.Bertram2010-05-062-24/+16
| | | | Please re-merge mana and manamobile to fit the change on actor types.
* synchronised protocol.h between manaserv, mana and manamobile.Maximilian Philipps2010-05-031-37/+65
|
* Added a Byte Order Mask (BOM) filter to the ResourceManager.Bertram2010-04-2510-11/+45
| | | | Reviewed by: Jaxad0127
* Implemented handler for on_chr_death and put the loading of the global ↵Philipp Sehmisch2010-04-114-15/+29
| | | | | | script into a method of class LuaScript Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
* Implemented global event function call to on_chr_deathPhilipp Sehmisch2010-04-114-13/+34
| | | | Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
* Added global lua event script (only on_being_death_accept for now)Philipp Sehmisch2010-04-114-9/+36
| | | | Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
* Remove empty LOG print when deallocatingChuck Miller2010-04-021-2/+0
|
* Fix sitting and standingChuck Miller2010-03-301-5/+6
|
* Remove unneed debug outputChuck Miller2010-03-301-1/+0
| | | | The issue this output was created to help debug has long been fixed
* Fixed a typo in mysql database update script for v7 to v8.Philipp Sehmisch2010-03-181-1/+1
| | | | (trivial change)
* Add methods to get and set being speedJonathan Kolberg2010-03-131-1/+35
| | | | Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
* Remove an unused function and two protocol messages.Bertram2010-03-084-23/+1
| | | | | TMW-Mantis #25 is resolved, btw. Reviewed-by: thorbjorn, Jaxad0127, and Kage.
* Added script bindings for healing characters and other beings.Philipp Sehmisch2010-02-253-0/+55
| | | | Reviewed-by: Jared Adams <jaxad0127@gmail.com>
* Removed some unnecessary log messagesPhilipp Sehmisch2010-02-232-3/+2
|
* Fixed unused variable warningsThorbjørn Lindeijer2010-02-222-3/+1
|
* Send update host also with registration responseThorbjørn Lindeijer2010-02-221-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
* Update Copyright date for Manaserv.Bertram2010-02-07161-161/+161
|
* Fixed gameserver termination under unices environnements when the account ↵Bertram2010-02-071-1/+1
| | | | server wasn't found.
* Win32 build fixes when building with cmakeBernd Wachter2010-01-301-2/+6
| | | | Add missing zlib dependency, add NOGDI flag to avoid namespace clashes.
* Rename enum elements to avoid clashing with macrosBernd Wachter2010-01-294-19/+19
|
* Add/fix win32 build rulesBernd Wachter2010-01-294-1/+74
|
* Switch inverted binary namesBernd Wachter2010-01-291-2/+2
|
* Fix build flags for optional libraries, add extra link librariesBernd Wachter2010-01-291-5/+10
|
* Use the module shipped with CMake 2.6 to detect Lua 5.1Bernd Wachter2010-01-291-5/+5
|
* Upgraded CMakeLists.txt files to deal with compile option. I have still one ↵Bertram2010-01-291-64/+94
| | | | | | | problem with Lua... There must be something wrong in the FindLua.cmake module because the FIND_PACKAGE(Lua) doesn't work and is currently commented out.
* Added WIP entries for Cmake build. This is configurable but non-working atm.Bertram2010-01-282-1/+253
| | | | | | I'll need a bit more time and help to get this fully working, but it's a good start :) Also corrected a typo in a makefile.am file.
* Adding compilation warnings for automake.Bertram2010-01-261-0/+4
|
* Fix a syntax error in MYSQL createTable scriptBlue Sans Douze2010-01-231-4/+4
| | | | Introduced in commit bb7866f0
* Reverted the accountserver-affecting changes of commits a9a87aea and ↵Philipp Sehmisch2010-01-185-10/+21
| | | | dfc6875e - doesn't work out the way I planned.
* Updated project filesPhilipp Sehmisch2010-01-181-0/+2
|
* Removed last traces of hardcoded access levels form game-server, begun with ↵Philipp Sehmisch2010-01-177-112/+59
| | | | using the permission manager in the account-server.
* Some refractoring at the command handler for easier maintainabilityPhilipp Sehmisch2010-01-173-84/+141
|
* Added some missing headers, and added some missing files to Makefile.amChuck Miller2010-01-173-2/+7
|
* Merge branch 'master' of gitorious.org:mana/manaservPhilipp Sehmisch2010-01-173-3/+32
|\
| * Updates mysql to database version 8Chuck Miller2010-01-162-2/+31
| |