summaryrefslogtreecommitdiffstats
path: root/src/defines.h
Commit message (Collapse)AuthorAgeFilesLines
* Moved defines.h and manaserv_protocol.h into 'common'Thorbjørn Lindeijer2011-03-201-207/+0
| | | | Just seems a bit more organized to me.
* Some renamings to try to make things more readableThorbjørn Lindeijer2011-03-201-17/+16
| | | | | | | | | | | | | | | | | | AT_TY -> StackableType TY_ST -> Stackable TY_NST -> NonStackable TY_NSTB -> NonStackableBonus AME_TY -> ModifierEffectType AME_MULT -> Multiplicative AME_ADD -> Additive Got rid of related documentation, which is now stating the obvious. Also renamed many related variables. Reviewed-by: Freeyorp
* General cleanups and code style fixesThorbjørn Lindeijer2011-03-201-10/+10
| | | | | | | A bunch of variables that were continuously requested from the configuration are now members of the AccountHandler. Reviewed-by: Freeyorp
* Use an enum rather than a bunch of #defines for the attributesThorbjørn Lindeijer2011-03-131-31/+33
| | | | Nicer style.
* Revert "Fixed the money handling."Jared Adams2011-01-301-1/+1
| | | | | | This reverts commit b2209cbe93aa12dcd4e4e3b9a7cd8b13ed5713e9. Money should be handled through attributes, not magic numbers.
* Fixed the money handling.Yohann Ferreira2011-01-311-1/+1
| | | | | - At character's attributes recalculation when necessary. - In the lua scripting functions.
* Get rid of the server tick magic number.Yohann Ferreira2011-01-061-0/+3
| | | | Reviewed-by: CodyMartin.
* Centralized the servers' exit values.Yohann Ferreira2010-09-221-10/+42
| | | | | | | | Also made random code format clean-ups. Resolves: Mana-Mantis #217 Reviewed-by: Jaxad0127.
* New attribute system and major changes to many low-level areas.Freeyorp2010-07-101-43/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attribute system: Structure is no longer completely hardcoded. Attributes and structure is defined by new xml file (defaulting to stats.xml) Structure defines non-base modifications to an attribute, to be used by modifiers from items, effects, etc. Calculating the base value for core attributes is still done in C++ (and for such fundamental elements the only reason I can think of to do it any other way is perhaps being able to quickly change scripts without a compile could be useful for testing, but such things are a low priority anyway) Item structure: Modifiers are now through triggers rather than single events. This also removes hardcoded types - an item could be both able to be equipped and be able to be activated. Item activation no longer consumes by default, this must be specified by the property <consumes /> inside the trigger. Currently only attribute modifications, autoattacks, and consumes are defined as effects, but stubs for others do exist. Autoattacks are currently non-functional, and this should be rectified with some urgency. Auto Attacks: AutoAttacks are now separate entities, though not fully complete, nor fully integrated with all beings yet. Integration with the Character class is urgent, integration with other Being children less so. When fully integrated this will allow for multiple autoattacks, through equipping multiple items with this as an equip effect or even through other means if needed. Equipment structure: As ItemClass types are no longer hardcoded, so too are equip types. An item have multiple ways to be equipped across multiple equipment slots with any number in each slot. Character maximums are global but configurable. Miscellaneous: Speed, money, and weight are now attributes. Some managers have been changed into classes such that their associated classes can have them as friends, to avoid (ab)use of public accessors. The serialise procedure should also be set as a friend of Character (both in the account- and game- server) as well; having public accessors returning iterators is simply ridiculous. Some start for such cleanups have been made, but this is not the primary focus here. Significant work will need to be done before this is resolved completely, but the start is there. BuySell::registerPlayerItems() has been completely disabled temporarily. The previous function iterated through equipment, yet in the context I think it is intended to fill items? I have been unable to update this function to fit the modifications made to the Inventory/Equipment/Possessions, as I am unsure what exactly what it should be doing. ItemClass::mSpriteId was previously unused, so had been removed, but I notice that it was used when transmitting equipment to nearby clients. Experimentation showed that this value was never set to anything other than 0, and so has been left out of the ItemManager rewrite. I am not entirely sure what is happening here, but it should be worth looking into at a later time, as I am not sure how equipment appearences would be sent otherwise.
* Update Copyright date for Manaserv.Bertram2010-02-071-1/+1
|
* Reverted the accountserver-affecting changes of commits a9a87aea and ↵Philipp Sehmisch2010-01-181-0/+18
| | | | dfc6875e - doesn't work out the way I planned.
* Removed last traces of hardcoded access levels form game-server, begun with ↵Philipp Sehmisch2010-01-171-18/+0
| | | | using the permission manager in the account-server.
* Fixed name of the project in copyright headersThorbjørn Lindeijer2009-12-061-13/+13
| | | | | | Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
* Removed "TMW" and "TMWSERV" from header guardsThorbjørn Lindeijer2009-12-061-3/+3
|
* Speed code unification part 1: Made the server accept speed values in tiles ↵Bertram2009-10-151-2/+6
| | | | per second.
* Synced the protocol file with client in protocol.h, letting other defines in ↵Bertram2009-10-091-328/+1
| | | | defines.h, and removing some overheading along the way.
* Adds server auth, also adds the "net_password" configure optionChuck Miller2009-10-071-2/+8
|
* Some cleanupThorbjørn Lindeijer2009-10-031-1/+1
| | | | | | | | | * Removed unsigned/signed warning by just using signed integers. * Made AccountHandler message handler functions members again instead of static functions. * Renamed 'computer' to 'client' since that is a less confusing name.
* Added script bindings and netcode for creating being-bound effects.Philipp Sehmisch2009-09-271-1/+2
|
* Simplifies Movement to not send path destinations, but rather just the ↵Chuck Miller2009-08-011-1/+1
| | | | current pos
* Have the game server reconnect with the account-server if account-server is ↵Chuck Miller2009-07-201-0/+3
| | | | restarted
* Sending spell recharge status to the clientsPhilipp Sehmisch2009-07-081-0/+1
|
* GPMSG_PLAYER_ATTRIBUTE_CHANGE should now be using a Word over a ByteChuck Miller2009-07-061-1/+1
| | | | This is to allow for skill IDs >255
* Makes Skills non hard codedChuck Miller2009-07-031-35/+0
| | | | | It should be noted that Jax still needs to update the client Level calulation seems broken now too
* Send a word over a byte for skill expChuck Miller2009-06-301-1/+1
|
* Fix target bugs.David Athay2009-05-261-1/+1
|
* Mysql backend, lua and NPC handlerBlue2009-05-011-0/+5
| | | | | Fix for mysql backend (again) Lua modification for integer and string ask with NPC, and closing fix.
* Merged MovingObject into the Being classBjørn Lindeijer2009-04-261-1/+1
| | | | | | Also renamed Object to Actor, to make it sound a little less generic. Cleans up a bit the rather big hierarchy of different object types we have.
* Added listing all online usersDavid Athay2009-04-231-0/+3
|
* Reworked party invites, now sends rejections and checks the invites are validDavid Athay2009-04-231-0/+2
|
* Trade System Patch (server side)blue1122009-04-211-6/+9
| | | | | | Server side modification for making the three steps trade working. For tmwserv Some trade related protocol modification too.
* Added transactional history to game server.David Athay2009-03-061-0/+1
|
* Made a lot of hard-coded values configuration optionsPhilipp Sehmisch2009-02-241-43/+0
|
* Fixed number of allowed hairstyles which got invalid because of the ↵Philipp Sehmisch2009-02-021-1/+1
| | | | transgender hairstyle content update.
* Changed guild member permissions. Restricted players to owning only 1 guild.David Athay2009-01-271-3/+22
|
* Added getting IP, and restricting time between loginsDavid Athay2009-01-121-0/+1
|
* Added new table to store online users. See mantis #553Andreas Habel2008-12-011-0/+1
| | | | | | | | This upgrade will be the first, we provide database installation scripts and update scripts to upgrade from the previous version. For more details about database upgrades see http://wiki.themanaworld.org/index.php/Upgrade_Database and feel free to comment.
* Add sync Buffer according to mantis #550Andreas Habel2008-11-301-0/+9
| | | | | | | | The game server buffers all changes made to a character in a sync buffer. The buffer is sent to the account server if the buffer contains more then 20 message, reaches size of 1kb or at least every 10 seconds. ATM Character attributes, corr points and attribute points and skills are synchronized. TODO: items, location, money...
* Refuse to spawn dead monstersBjørn Lindeijer2008-11-221-1/+7
| | | | | The server now warns instead of spawning dead monsters. Since I threw the spawning code around a bit, I hope I didn't break it.
* Changed from Access Levels to Command Groups for @ commandsDavid Athay2008-11-201-4/+11
|
* Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer2008-11-161-3/+0
|
* Added sending post via NPC.David Athay2008-11-061-6/+3
|
* Added version information to item database. Gameserver reports its local ↵Andreas Habel2008-11-051-2/+9
| | | | version to account server during registration and gets notified if the version is up-to-date or outdated to prevent inconsistencies.
* Added notifiying party members when a player joins or leaves the party.David Athay2008-11-041-0/+3
|
* Magic implementation roadmap phase 1 and 2 (calling a script function on ↵Philipp Sehmisch2008-11-011-1/+2
| | | | PGMSG_USE_SPECIAL)
* Added changing player's character and account level (game-server commit to ↵David Athay2008-10-271-2/+2
| | | | come at a later date)
* add effects sending system (by Chuck Miller)Roderic Morris2008-10-271-0/+1
|
* update commands.txt, get rid of packets.txtRoderic Morris2008-10-261-0/+1
|
* Fixed some compile warnings.Bjørn Lindeijer2008-10-211-1/+1
|
* Game Server now reconnects to Account Server. Some postal system bugs fixed.David Athay2008-10-211-3/+3
|