summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21Remove obsolete reset of SIGSEGV handlingStefan Dombrowski2-6/+0
Reviewed-by: Thorbjorn
2011-02-20Made use of npc_disable(), npc_enable() on the template map.Yohann Ferreira1-0/+4
2011-02-20Fixed enabling/disabling npcs by enqueuing the insertion.Yohann Ferreira1-2/+1
This permits to handle such operation after the object locking, thus avoiding to fail on the assertion: assert(!dbgLockObjects); when inserting a npc. Reviewed-by: Ablu.
2011-02-20Fixed the check_schedule() lua function.Yohann Ferreira1-0/+5
An misleading error was raised when the function dealt with its last remaining job as it didn't return after removing it. Reviewed-by: Ablu.
2011-02-20Adding CSV support from Jaxad's client implementation.Yohann Ferreira1-8/+45
Reviewed-by: Jaxad0127. Resolves: Mana-Mantis #286.
2011-02-20Update barbers and hair display.Yohann Ferreira16-90/+16
2011-02-19Removing dublicate deinitialize of enetStefan Dombrowski2-6/+3
Both servers deinitialize enet now from deinitializeServer(). Reviewed-by: Bertram, Jaxad0127
2011-02-19Add support for zlib map layer compression.Yohann Ferreira1-3/+6
Trivial fix.
2011-02-19Updated the C::B project file to permit the choice of DB.Yohann Ferreira1-7/+57
Reviewed-by: Mpa4Hu. Resolves: Mana-Mantis #61.
2011-02-16Removing unused variable configPathChangedStefan Dombrowski2-6/+0
2011-02-16Fixed doc about stroll range, which is coded in pixels.Yohann Ferreira1-2/+2
Not in tiles, as suggested by the header. Trivial fix.
2011-02-15Added a merchant and a blacksmith on the template map.Yohann Ferreira5-79/+130
They're both using a fully working merchant lua function. Resolves: Mana-mantis #295.
2011-02-15Fixed registering the players items to the buysell handler.Yohann Ferreira1-24/+46
Now buy/sell lua functions can access the player inventory again. This is not using the delayed mode, so it won't be a problem. Reviewed-by: Freeyorp.
2011-02-11Added the schedule_per_date() lua function.Yohann Ferreira1-0/+11
Reviewed-by: Ablu, Freeyorp.
2011-02-11Finally fix Harmony giving some GP to characters.Yohann Ferreira1-7/+4
2011-02-11Fix the GP base and mod values for newly created characters.Yohann Ferreira1-0/+11
Reviewed-by: Freeyorp.
2011-02-11Fix basic money handling using the ATTR_GP attribute.Yohann Ferreira2-7/+23
Reviewed-by: Freeyorp.
2011-02-11Synced the libmana-constants.lua file with the current protocol.Yohann Ferreira1-59/+68
Trivial.
2011-02-11Added lua attributes getters/setters thanks to Freeyorp.Yohann Ferreira1-68/+155
2011-02-08Implemented LUA binding to get the gender of a characterPhilipp Sehmisch3-1/+27
The function is named mana.chr_get_gender. It returns 0 for male and 1 for female. libmana-constants.lua defines the variables GENDER_MALE and GENDER_FEMALE with these values. Also made the banker NPC refer to the gender of the player character. Reviewed-by: Jaxad0127
2011-01-30Revert "Fixed the money handling."Jared Adams5-34/+7
This reverts commit b2209cbe93aa12dcd4e4e3b9a7cd8b13ed5713e9. Money should be handled through attributes, not magic numbers.
2011-01-31Added first visible npcs and play with them a bit.Yohann Ferreira5-6/+55
2011-01-31Fixed the money handling.Yohann Ferreira5-7/+34
- At character's attributes recalculation when necessary. - In the lua scripting functions.
2011-01-30Made the code tell a bit more when a monster is lacking values.Yohann Ferreira1-14/+30
2011-01-30Trivial code format fixes in monstermanager.cpp.Yohann Ferreira1-28/+45
2011-01-30Added the missing Magical dodge monster property.Yohann Ferreira2-1/+3
Now this can be loaded with the 'magic-evade' xml tag.
2011-01-30Made the monsters' attributes compute fine again.Yohann Ferreira4-18/+67
As a consequence, the monsters can spawn again. Reviewed-by: Freeyorp.
2011-01-27Simply fixing the map script header while i see it.Yohann Ferreira1-4/+4
2011-01-27Updates to the example data.Yohann Ferreira42-8/+794
- Fixed monsters Id. - Added collision layer to the desert map. - Added a few simple NPCs on the map (They still need a sprite.) - Added player and hairstyles sprites files and definition in items.xml.
2011-01-27Add collisions to the template map.Yohann Ferreira2-2/+10
2011-01-26Removed the outdated net_clientVersion config options.Yohann Ferreira1-6/+0
This is now set in the manaserv_protocol.h file using the PROTOCOL_VERSION enum.
2011-01-26Add an heartbeat time flag in the statistics file.Yohann Ferreira4-58/+101
This way, any kind of external service can know about the running state of each servers, even if only the account server is updating the statistics because: 1. When the account server is running, each <gameserver> tag is a running game server. Otherwise, it's not listed. 2. Whenever the account server stops running, the stat file isn't updated anymore and so the <heartbeat> tag isn't. 3. Game servers without any contact with an account server will try to reconnect to the account server and kick out every players so they aren't considered as running in that case. Reviewed-by: Crush. Resolves: Mana-mantis #270.
2011-01-25Upgraded the manaserv protocol version to 1.Yohann Ferreira1-1/+1
Yeah, I know Jaxad, we're not releasing but as agreed with Thorbjorn, the protocol is incompatible even when moving, so better get rid of old clients early.
2011-01-22Fix the default slot values when upgrading the database to version 14.Yohann Ferreira2-2/+2
Reviewed-by: Cody. Resolves: Mana-Mantis #284.
2011-01-22Made the being direction be updated only at the end of the movement.Yohann Ferreira1-3/+3
This saves a bit of cpu and make use of pixel points where tile points where used before and could lead to discrepancies. Reviewed-by: Thorbjorn.
2011-01-11Made the servers report their protocol version.Yohann Ferreira5-5/+13
As the protocol version isn't something the maintainers should set, I removed the net_clientVersion irrelevant option, replaced by the corresponding define PROTOCOL_VERSION in the manaserv_protocol.h file. A corresponding change in the client will be made. N.B.: Now, the Enet version is also reported in the log. Reviewed-by: Jaxad.
2011-01-10Removing default argument values from Map definitionStefan Dombrowski3-4/+3
The default argument values had no effect, because they are not in the declaration. Updating the codeblock project, because protocol.h had been renamed. Reviewed-by: Bertram
2011-01-09Fix being direction discrepancies by syncing the BeingDirection.Yohann Ferreira7-21/+118
The server was actually using the bitmask enum while the the client still sent another one, creating discrepancies. A second problem is that the being direction was not properly initialized and not updated while it was moving. Reviewed-by: Jaxad.
2011-01-09Removed the superfluous point struct.Yohann Ferreira17-41/+31
It was too close from the Position class and it leads to making the server handle one or another type through the code. Still bugged me many times while making changes. Reviewed-by: Jaxad.
2011-01-06Get rid of the server tick magic number.Yohann Ferreira6-15/+19
Reviewed-by: CodyMartin.
2011-01-03Got rid of the superfluous DEFAULT_TILE_HEIGHT/WIDTH.Yohann Ferreira4-10/+10
We've got DEFAULT_TILE_LENGTH in defines.h for that. Trivial fix.
2011-01-03Change Actor::mActionTime to mMoveTime member to reflect more its actual use.Yohann Ferreira3-12/+14
Trivial.
2011-01-03Added missing using namespace clauses. Cmake's fault, I guess. ;)Yohann Ferreira3-0/+6
Trivial.
2011-01-03Cleaned up and document a bit more the speed conversion functions.Yohann Ferreira5-13/+28
Trivial fix.
2011-01-03Namespaced the manaserv protocol to ease the porting of the enums.Yohann Ferreira6-0/+12
Trivial.
2010-12-30Added new example files needed to start a more complete feature-showing map.Yohann Ferreira120-11/+2304
I also replaced certain files with newer version, just as the items.xml file. And I started to split test npcs from the tmwserv repository into reusable pieces. Big but trivial. Part of the Mana-Mantis issue: #231.
2010-12-29Corrected the database version of newly created databases.Yohann Ferreira2-2/+2
Trivial fix.
2010-12-29Updated the attributes.xml file with a more up-to-date version.Yohann Ferreira1-12/+10
Trivial fix.
2010-12-29protocol.h -> manaserv_protocol.h to avoid conflicts with mysql files.Yohann Ferreira11-10/+10
Resolves: Mana-Mantis #278.
2010-12-29Updated the manaserv.xml to reflect latest functionalities.Yohann Ferreira1-10/+13
Trivial fix.