summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Officially added the being gender to the protocol.Yohann Ferreira2011-09-283-5/+29
| |
* | Added the chr_get_level script function.Yohann Ferreira2011-09-281-0/+18
| |
* | Merge github.com:mana/manaservYohann Ferreira2011-09-285-16/+18
|\| | | | | | | | | | | | | | | | | | | Conflicts: src/game-server/inventory.cpp src/game-server/inventory.h src/game-server/item.h src/game-server/main-game.cpp src/game-server/skillmanager.cpp src/utils/point.h
| * Clarified the role of initialize() and reload() functions in the monsterYohann Ferreira2011-09-282-6/+8
| | | | | | | | | | | | | | | | | | and item managers. ack-by: o11c. note: The managers still need to auto deinit when already loaded. This will be done in another trivial commit.
| * Fixed mem leak on the item and monster manager unloading processYohann Ferreira2011-09-283-8/+16
| | | | | | | | | | | | | | Reviewed-by: o11c. Note: the initialize/reload() api problem will be fixed in another commit.
| * Added a bit more precision on the conditions used in the ↵Yohann Ferreira2011-09-282-2/+6
| | | | | | | | TriggerArea::update() function.
| * Rewrote the skill manager the same way as the item manager.Yohann Ferreira2011-09-282-128/+149
| | | | | | | | | | This will permit better handling of both skills names and id. This is needed to start reworking on the auto-attack system.
| * Turned the skill manager into a class.Yohann Ferreira2011-09-283-7/+24
| | | | | | | | Ack-by: o11c.
| * Made the npc_create() function use insertion enqueueing.Yohann Ferreira2011-09-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As the server was exitting when the insertion was failing anyway, and because the GameState::update() doesn't allow actor insertion while the update process, it was then pretty weird to not use an enqueued insertion for it. Plus, it fixes an assertion failure when scheduling an npc creation. Resolves: Mana-Mantis #360. Reviewed-by: o11c.
| * Fixed the trigger area declared within map files.Yohann Ferreira2011-09-282-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | The bug was pretty generic, as the contains() method of the Rectangle class wasn't checking against left and top sides according to the client view point. I also documented the call site. Resolves: Mana-Mantis #317. Reviewed-by: o11c.
| * Small random code format cleanups, and documentation fixes.Yohann Ferreira2011-09-285-79/+50
| | | | | | | | | | | | This doesn't change anything yet. Reviewed-by: o11c.
| * Added chatcommand to get position of a character.Erik Schilling2011-09-151-0/+33
| | | | | | | | | | | | | | | | Add chatcommand @getpos <character> which return the mapid and location of the character. Part of: Mana-Mantis: #385. Reviewed-by: Bertram.
| * Avoid crashing the game server when the last argument is quoted.Yohann Ferreira2011-09-131-1/+9
| | | | | | | | | | | | Resolves: Mana-Mantis #386 Reviewed-by: o11c.
* | Add persistent items support based on seeseekey's work.Yohann Ferreira2011-09-0913-13/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | Also made some random changes where useful, including: - Code formatting fixes, - Design fix about the fact that only the game config option should be checked. - Fixed the size of the values sent and receive to follow the rest of the development. - Fixed variables names to make them show what they are, and not why they are used. Resolves: Mana-Mantis #142.
* | Merge github.com:mana/manaservYohann Ferreira2011-09-086-5/+19
|\| | | | | | | | | | | | | Conflicts: src/account-server/storage.cpp src/game-server/mapreader.cpp src/sql/mysql/createTables.sql
| * Fixed size of mapid field in mysql database.Erik Schilling2011-09-054-2/+16
| | | | | | | | | | | | Resolves: Mana-Mantis: #388. Reviewed-by: Bertram.
| * Added possibility for using monster name in SPAWN map objects.Erik Schilling2011-09-041-14/+41
| | | | | | | | Reviewed-by: Bertram.
| * Prevented char from picking up items when inventory is full.Erik Schilling2011-09-021-9/+14
| | | | | | | | | | | | Resolves: Mana-Mantis: #379. Reviewed-by: Bertram.
| * Allowed map names in chr_warp function.Erik Schilling2011-08-231-2/+6
| | | | | | | | | | | | Resolves: Mana-Mantis #293. Reviewed-by: Bertram.
| * Created function to make getting monsters easier in scripts.Erik Schilling2011-08-193-14/+16
| |
| * Added LUA function for changing anger of monsters.Erik Schilling2011-08-181-0/+30
| | | | | | | | | | | | | | You now can change the anger of a monster to a being using mana.monster_change_anger(monster, being, anger) Resolves: Mana-Mantis #366.
* | Added possibility for using monster name in SPAWN map objects.Erik Schilling2011-09-051-14/+41
| |
* | Fixed size of mapid field in mysql database.Erik Schilling2011-09-051-1/+1
| | | | | | | | Resolves: Mana-Mantis: #388.
* | Added chatcommand to get position of a character.Erik Schilling2011-09-011-0/+33
| | | | | | | | | | Add chatcommand @getpos <character> which return the mapid and location of the character. Part of: Mana-Mantis: #385.
* | Prevented char from picking up items when inventory is full.Erik Schilling2011-09-011-9/+14
| | | | | | | | Resolves: Mana-Mantis: #379.
* | As requested, changed the trigger 'existence' to 'in-inventory'.Yohann Ferreira2011-08-301-2/+2
| |
* | Made the monster removal not using queues to avoid a crash.Yohann Ferreira2011-08-301-4/+4
| | | | | | | | | | | | | | | | | | | | A race condition on the being pointer could happen when the being queue was highly requested. IMHO, using queues to add being but remove them directly is the way to go. Resolves: Mana-Mantis #384
* | Avoid crashing the game server when the last argument is quoted.Yohann Ferreira2011-08-301-1/+9
| | | | | | | | Resolves: Mana-Mantis #386
* | Merge branch 'equipment-fix'Yohann Ferreira2011-08-307-9/+59
|\ \
| * | Made the db version an official pre-requisite.Yohann Ferreira2011-08-303-7/+14
| | | | | | | | | | | | | | | | | | | | | It was uneasy to not miss something when updating the db. And as the db version is somewhat corresponding to a certain protocol version, adding it in the protocol file sounds relevant to me, and helps when updating it.
| * | Added missing sql update scripts.Yohann Ferreira2011-08-305-3/+46
| | |
* | | Fixed mem leak on the item and monster manager unloading processYohann Ferreira2011-08-263-3/+11
| | |
* | | Rewrote the skill manager the same way as the item manager.Yohann Ferreira2011-08-263-131/+169
| | | | | | | | | | | | | | | | | | This will permit better handling of both skills names and id. This is needed to start reworking on the auto-attack system.
* | | Added a bit more precision on the conditions used in the ↵Yohann Ferreira2011-08-262-2/+6
| | | | | | | | | | | | TriggerArea::update() function.
* | | Made the npc_create() function use insertion enqueueing.Yohann Ferreira2011-08-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the server was exitting when the insertion was failing anyway, and because the GameState::update() doesn't allow actor insertion while the update process, it was then pretty weird to not use an enqueued insertion for it. Plus, it fixes an assertion failure when scheduling an npc creation. Resolves: Mana-Mantis #360.
* | | Fixed the trigger area declared within map files.Yohann Ferreira2011-08-262-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | The bug was pretty generic, as the contains() method of the Rectangle class wasn't checking against left and top sides according to the client view point. Resolves: Mana-Mantis #317.
* | | Merge branch 'equipment-fix' of github.com:Bertram25/manaservYohann Ferreira2011-08-2517-1193/+1248
|\| |
| * | Merge git://gitorious.org/~bertram/mana/manaserv-equipment-fix into ↵Yohann Ferreira2011-08-197-206/+211
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | equipment-fix Conflicts: example/serverdata/scripts/maps/desert.lua
| | * | Removed the now useless SpriteLayer enum from the protocol.Yohann Ferreira2011-08-191-17/+0
| | | |
| | * | Changed the sprite layer protocol to supportYohann Ferreira2011-08-195-59/+66
| | | | | | | | | | | | | | | | an arbitrary number of layers. (up to 255).
| | * | Used the client base to make a final bugfix on the server code.Yohann Ferreira2011-08-195-133/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the server handle only one slot type requirement since it's irrelevant to have more anyway. Plus, it simplifies the code for both equipping/unequipping. I also added a dagger to show how equipping/unequipping is working.
| * | | Merge git://gitorious.org/~bertram/mana/manaserv-equipment-fix into ↵Yohann Ferreira2011-08-183-19/+17
| |\| | | | | | | | | | | | | | equipment-fix
| | * | Change the unequip function to make use of the item instance id.Yohann Ferreira2011-08-183-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will make the client capable to tell which item is to be unequipped when there are several item equipped within a slot type, for instance. The client has now yet to be upgraded to follow the new protocol.
| | * | Fixed a crash when dealing with unknown equipped items.Yohann Ferreira2011-08-181-1/+1
| | | |
| * | | Merge branch 'master' of ↵Yohann Ferreira2011-08-1117-1137/+1189
| |\| | | | |/ | |/| | | | | | | | | | | | | git://gitorious.org/~bertram/mana/manaserv-equipment-fix into equipment-fix Conflicts: src/common/manaserv_protocol.h
| | * Basically redid equip and unequip functions().Yohann Ferreira2011-08-114-156/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I made the system handle the fact that equipment item are completely unlinked to the inventory items. Equip items now have a unique itemInstance number permitting to equip the same item type multiple time when the slot capacity is wide enough to do so. I also prepared the functions to welcome in the near tests against scripted equipment. The equip process is known to be working server-side but the unequip process has yet to be reviewed, even if implemented.
| | * Changed ItemEquipInfo to only be a pair of unsigned.Yohann Ferreira2011-08-103-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously it was a list of pair ofunsigned int, used to get the equipment slot requirements. It didn't make sense as the ItemEquipsInfo was already a list of it. So you had to manage with a list of list and that ended up being irrelevant to the need. I had to disable the equip function to permit compilation. This will be fixed in my next commit.
| | * Fixed getting slot id per name.Yohann Ferreira2011-08-102-6/+20
| | |
| | * Change the changeEquipment() function nameYohann Ferreira2011-08-042-7/+7
| | | | | | | | | | | | to something more meaningful.
| | * Merge branch 'master' of git://gitorious.org/mana/manaservYohann Ferreira2011-08-041-27/+100
| | |\