summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add included enet to CMakeBernd Wachter2010-08-151-3/+8
|
* Fix enet check macros.Freeyorp2010-08-132-3/+3
| | | | | | Not a good idea to have #if checks in a #ifdef check. Trivial fix.
* Fix enet version checkJared Adams2010-08-092-3/+15
| | | | Reviewed-by: Chuck Miller
* Worked around a typo in the update script from version 7 to 8Thorbjørn Lindeijer2010-08-072-2/+3
|
* Also provide an update script for MySQLThorbjørn Lindeijer2010-08-071-0/+3
|
* Fixed index creation on mana_char_kill_stats tableThorbjørn Lindeijer2010-08-073-2/+11
| | | | Reviewed-by: Philipp Sehmisch
* Fixed typoThorbjørn Lindeijer2010-08-071-1/+1
|
* Revert "Added a method of updating the passwords of an existing database"Thorbjørn Lindeijer2010-08-072-50/+0
| | | | | | Assumed to be no longer necessary. This reverts commit a09d4aa14c6a7b4486080b4cfbe1c76c4fae6fd2.
* Renamed modifiedAttribute to updateDerivedAttributesThorbjørn Lindeijer2010-08-076-17/+17
| | | | This describes the purpose of the method better.
* Fix enet version checkJared Adams2010-08-022-13/+7
| | | | Tested-by: BaseBallBoy
* Add support for enet 1.3Jared Adams2010-08-022-0/+27
| | | | Reviewed-by: Yohann Ferreira
* Added back the forgotten Being::attackType enum in the server.Yohann Ferreira2010-07-281-1/+15
| | | | | It has to be in sync with the client, even now, and explains the return value of the Being::getAttackType() function.
* Added a simple sanity check to avoid a gameserver crash at login.Yohann Ferreira2010-07-231-5/+11
| | | | No review asked.
* Fixing compatibility with cmake 2.6.0Renato Alves2010-07-231-2/+2
| | | | | | The syntax IF ((condition) OR (condition)) is not accepted by cmake prior to 2.6.4. The patch should address this without affecting newer versions.
* Upgraded Skill Map loading.Yohann Ferreira2010-07-224-19/+151
| | | | | | | | | | | - Added a new 'default' boolean parameter in mana-skills.xml. If set to true, unknown weapon types will be defaulted to the given value. - Added better checks on skill id and names and improved error reporting. - Corrected minor typos, and made small cleanups. Reviewed-by: jaxad0127
* Added LUA script bindings for manipulating the specials available to a ↵Philipp Sehmisch2010-07-0916-30/+332
| | | | | | | | | | 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
* Made Manaserv accept parameters enclosed with double-quotes.Yohann Ferreira2010-07-081-3/+34
| | | | | | Reviewed-by: Jaxad0127. Resolves: Manasource-Mantis #22
* Fixed the up down monster attack direction and comment trivial fixes.Philipp Sehmisch2010-06-222-4/+4
| | | | | | Resolves: Manasource Mantis #144. Signed-off-by: Philipp Sehmisch <mana@crushnet.org>
* Arbitrary cleanups and marked GameHandler::getClientByNameSlow constThorbjørn Lindeijer2010-06-064-21/+18
|
* More const correctness and small code cleanupsThorbjørn Lindeijer2010-06-0613-86/+65
|
* Made methods of GuildManager const where appropriateThorbjørn Lindeijer2010-06-062-42/+18
| | | | Also removed some pointless null pointer checks.
* Made methods of the Guild class const where appropriateThorbjørn Lindeijer2010-06-063-37/+24
|
* Use XML::Document to automate memory cleanupThorbjørn Lindeijer2010-05-3011-153/+74
| | | | Makes the code a little nicer.
* Copied basic Lua libs back from tmwserv-data and added dummy dataThorbjørn Lindeijer2010-05-302-2/+4
| | | | | | | 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
* Use const std::string & to avoid a copyThorbjørn Lindeijer2010-05-292-6/+5
|
* Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer2010-05-2911-49/+24
| | | | | | libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
* 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