summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-07Fixed compile when using Lua 5.3Thorbjørn Lindeijer2-5/+3
It seems like properly upgrading to Lua 5.3 would affect quite a few small function calls, but fortunately compatibility can be achieved with just a define for now.
2015-06-07Fixing some compilation issues when using GCC 5.1Thorbjørn Lindeijer2-4/+4
For whatever reason, GCC 5.1 no longer finds an operator<< overload for streaming a std::ostringstream into a std::ostringstream.
2015-04-25Do not pollute the context with the icu namespaceErik Schilling1-0/+3
2015-04-24Fix crash if the client sends garbage public id valuesErik Schilling1-1/+5
Indexing an array with a negative int as index is no good idea...
2014-05-05Make travis build with gcc 4.8Erik Schilling1-1/+3
2014-03-02IdManager tweaksThorbjørn Lindeijer1-4/+2
2014-02-03Fixed SQL InjectionErik Schilling1-3/+4
2013-12-29Small cleanupErik Schilling6-19/+11
- Deleted empty constructor rather than throwing, resulting in compiletime errors rather than runtime errors. - Removed some remainings of currentMana - Fixed some compiler warnings regarding structs getting forward declared as classes.
2013-12-08Restored copy constructor protection for mapcompositeErik Schilling1-0/+1
2013-12-08deleted copy constructors in Component rather than all the subclassesErik Schilling4-16/+11
2013-12-08Delete some unused copy constructorsThorbjørn Lindeijer5-13/+10
2013-11-28Include the list of characters in the login responseThorbjørn Lindeijer4-14/+17
This makes it easier on the client to decide whether to immediately open the Create Character page or to go to the Choose Character page. Still supports client version 9 as well.
2013-11-28Added Upstart filesThorbjørn Lindeijer2-0/+33
These files may be useful for people running manaserv on Ubuntu. They can for example be placed in /etc/init for easily stopping/starting and restarting manaserv.
2013-11-02Do not send dir changes back to the player itselfErik Schilling1-1/+1
2013-11-01Fixed typo in docsErik Schilling1-2/+2
2013-10-19Fixed negative attribute valuesErik Schilling1-1/+1
Note @Bertram25: c++11 comes with lowest() min() for float types only returns the next positive value > 0.
2013-10-16Fixed protocol descriptionErik Schilling1-1/+1
2013-10-13Changed argument to const &Thorbjørn Lindeijer1-1/+2
2013-10-13Added GPMSG_NPC_BUYSELL_RESPONSEThorbjørn Lindeijer2-7/+19
Without this message it is not possible to reliably know how many items were traded with an NPC at the client side. It helps with updating the shop's inventory.
2013-10-06Marked getRandomString as staticThorbjørn Lindeijer1-1/+1
2013-10-01Send the character data in a single messageErik Schilling2-36/+30
2013-09-30Removed outdated commentErik Schilling1-4/+0
2013-09-30Actually send and store the equipment slotErik Schilling2-15/+6
I was wrong to assume that we do not need it. The accountserver needs to send the info the the client in order to display the equipment on the character selection page.
2013-09-29Fixed parameters of setting global cooldownErik Schilling1-1/+1
2013-09-26Removed unrequired if checkErik Schilling1-34/+28
wrapped the code parts with {} to prevent trashing the scope too much
2013-09-26Store questlog values in the databaseErik Schilling11-48/+341
2013-09-21Replaced tabs with spacesErik Schilling1-88/+88
2013-09-21Added @commands for setting attribute and correction pointsErik Schilling1-0/+74
2013-09-21Fixed implementation of entity_inv_countThorbjørn Lindeijer1-12/+5
Was still checking for booleans and using the wrong stack indexes.
2013-09-21Removed invalid boolean check in set_questlog_description()Przemysław Grzywacz1-1/+0
2013-09-21Removed outdated documentationThorbjørn Lindeijer1-3/+0
2013-09-19Synchronized some tweaks to protocol file from the clientThorbjørn Lindeijer2-5/+5
2013-09-19Removed the unused OBJECT_ACTOR enum valueThorbjørn Lindeijer2-11/+6
NPCs, monsters and character are all actors, but no entity exists that has "actor" as its type. To avoid having to increment the protocol version, the values of the different entity types are now mentioned explicitly.
2013-09-19Some optimizations in GameHandlerThorbjørn Lindeijer3-38/+43
The findActorNear, findBeingNear and findCharacterNear functions in gamehandler.cpp were iterating over nearby entities in search for an entity with a specific ID. Now they do a quick lookup of exactly that entity, and then check whether it is in range.
2013-09-19Use constructor to initialize IdManager::mLastIdThorbjørn Lindeijer1-2/+2
Fixes compile error with GCC 4.6.3.
2013-09-19Have Lua use entity IDs instead of direct pointersThorbjørn Lindeijer6-39/+225
Allows to report access to removed entities instead of crashing.
2013-09-19Cleaned up mapcomposite.hThorbjørn Lindeijer2-291/+303
Moving class definitions for MapZone, ObjectBucket and MapContent into mapcomposite.cpp since they are not used anywhere else.
2013-09-19Removed unused being state enumsThorbjørn Lindeijer4-48/+1
2013-09-19Renamed actor.{h,cpp} to actorcomponent.{h,cpp}Thorbjørn Lindeijer6-9/+9
To match the class name.
2013-09-15Renamed sendFullStatus to markAllInfoAsChangedErik Schilling3-25/+17
Moved the actual sending of info out of update() and into sendStatus to prevent delay issues depending on the order of the components getting updated.
2013-09-15Fixed last commitErik Schilling5-14/+15
Renamed killConnection based on bjorns feedback. Do not send the info on each warp but only on reconnections.
2013-09-15Fixed handling of reconnects while the old connection is still validErik Schilling6-21/+34
The old connection is now terminated. And the new connection will receive the character data properly.
2013-09-14Removed unused variableErik Schilling1-2/+0
2013-09-14Allow to set the kill count againErik Schilling1-0/+20
We later need to check wether we still need this logic or whether we rather want to remove it in favor of the quest system. But we need this for sourceoftales for now.
2013-09-13Added basic questlog supportErik Schilling5-1/+196
I did this patch quite a while ago. Big thx to Stefan Beller for "rebasing" it.
2013-09-13Fixed walking resetting the dead actionErik Schilling1-2/+2
2013-09-13Fixed small typoErik Schilling1-1/+1
2013-09-13Simplified removal of effectsErik Schilling1-2/+1
2013-09-10Fixed typoThorbjørn Lindeijer1-1/+1
2013-09-09Fixed the equipment info for charactersErik Schilling1-1/+1
It was a inventory slot not equipmentslot.