summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed issues with removing attribute modifiersThorbjørn Lindeijer2012-08-101-4/+5
| | | | | | | | | | | | | | * AttributeModifiersEffect::remove was not calling updateMod with the 'value' parameter, causing it to have no effect at all for Stackable modifiers. * The cached value of the changed modifier effect was not being recalculated when removing modifiers, because it started one layer too high (there's an inconsistency here: AttributeModifiersEffect::add updates this cached value while AttributeModifiersEffect::remove doesn't). Reviewed-by: Erik Schilling
* Allow monster name in <drop> tagErik Schilling2012-08-061-3/+17
| | | | Reviewed-by: Stefan Beller.
* Fixed wrong error raising in lua.cppErik Schilling2012-08-051-2/+2
| | | | Reviewed-by: bjorn.
* Removed old warnings and documentation from chr_inv_change.Erik Schilling2012-08-051-7/+3
| | | | | | | This was forgotten to do when dropping the money checks and introducing the checkItem function. Reviewed-by: bjorn.
* Fixed the atinit functionErik Schilling2012-08-052-0/+3
| | | | | | | Previously each map had its own scope. They got merged now but the atinit function was forgotten to adapt. Reviewed-by: bjorn.
* Fixed recalculation of base attributesErik Schilling2012-08-051-7/+7
| | | | | | | We do not need to calculate derived attributes of the derived attributes but the base of the derived attribute. Reviewed-by: bjorn.
* Remove resetEffects; move it to destructor in ItemClass.Stefan Beller2012-08-052-18/+20
| | | | Reviewed-by: bjorn
* Cleaned up some world state variable testing codeThorbjørn Lindeijer2012-08-051-10/+2
| | | | | | Kept the accountserver_startup time for now, since it could be useful. Reviewed-by: Stefan Beller
* Fixup segfault at shutdown of gameserver.Stefan Beller2012-08-051-5/+1
| | | | | | | | The objects of ItemEffectInfo class, which are hold in mDispells are definitly in mEffects as well, because they are added in in addEffect as the same pointer. Reviewed-by: Erik Schilling
* Correct updating the old position of beings.Stefan Beller2012-08-051-4/+4
| | | | | Reviewed-by: bjorn acked-by: Ablu
* Prevent characters from using specials after deathErik Schilling2012-08-041-0/+6
| | | | Reviewed-by: Stefan Beller.
* Fixed dead characters being able to use items.Erik Schilling2012-08-031-0/+4
| | | | | | | | Change is tested. Mantis: #492. Reviewed-by: Stefan Beller.
* Made the character not colliding with monsters.Erik Schilling2012-08-031-1/+1
| | | | | | Prevents clientside desyncs. Reviewed-by: Stefan Beller.
* Correct further int lengthes.Stefan Beller2012-08-021-2/+2
| | | | Reviewed-by: Ablu.
* Gameserver raise attribute: correct integer size.Stefan Beller2012-07-311-1/+1
| | | | Acked-by: bjorn
* Make Attributes modifiable by client again.Stefan Beller2012-07-311-1/+2
| | | | Reviewed-by: bjorn
* Fixed SQL syntax error when updating character pointsThorbjørn Lindeijer2012-07-311-2/+1
| | | | | | | Had a comma too much. Reviewed-by: Stefan Beller Reviewed-by: Erik Schilling
* Fix Inventory::getNewEquipItemInstance to yield really unique ids.Stefan Beller2012-07-311-9/+8
| | | | | Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Reviewed-by: Erik Schilling
* Fixed an error message and inlined some one-linersThorbjørn Lindeijer2012-07-212-30/+29
|
* Removed raiseScriptErrorThorbjørn Lindeijer2012-07-213-37/+24
| | | | | | | It wasn't really adding anything since errors raised using luaL_error are already logged anyway. Reviewed-by: Erik Schilling
* Added lua binds for issuing request of quest variable + bind for trying to ↵Erik Schilling2012-07-174-13/+134
| | | | | | | | | | | read them The difference to the old chr_get_quest bind is that this allows querying quest vars from non npc functions as well. Change is tested. Reviewed-by: bjorn.
* Added script binds to get full monster anger list + drop anger of monstersErik Schilling2012-07-172-0/+20
| | | | Reviewed-by: bjorn.
* Added lua bind to send text effect particle to clientsErik Schilling2012-07-172-0/+14
| | | | | | Change is tested. Reviewed-by: bjorn.
* Made chr_get_level capable of retrieving skill levelsErik Schilling2012-07-171-3/+12
| | | | Reviewed-by: bjorn.
* Fixed the get_beings_in_rectangle function.Erik Schilling2012-07-141-1/+2
| | | | | | | | | | Previously it only used the rectangle iterator which in fact iterated over the beings in the map zones and returned often way higher number of beings compared to the actual rectangle. Change is tested. Reviewed-by: Bjorn.
* Made sure the map is set for trigger scriptsErik Schilling2012-07-112-0/+2
| | | | | | Also unsetted maps after execution of scripts to make finding this mistakes easier. Reviewed-by: bjorn.
* Made kill count script bind capable of taking the monster name as argumentErik Schilling2012-07-101-2/+2
| | | | Reviewed-by: bjorn.
* Added bind for setting login callbackErik Schilling2012-07-084-0/+22
| | | | Reviewed-by: bjorn.
* Added script bind for getting specy id of a monster handleErik Schilling2012-07-071-0/+12
| | | | Reviewed-by: bjorn.
* Collisiondetection: Removing commented code.Stefan Beller2012-06-221-118/+0
| | | | Reviewed-by: Ablu
* Fixed handling of skillsErik Schilling2012-05-254-18/+10
| | | | | | | | | | | | | - Removed possibility of skills getting mixed with attributes - Made the server sending the level of the current skill on exp change (currently the client could calculate it itself, but it allows more flexibillity in future this way) - Fixed reading of skills out of the database (for some reason the status effects were added as skills) ** Needs clientside patch as well (coming soon) ** Reviewed-by: Bertram.
* Removed no longer needed codeErik Schilling2012-05-202-24/+0
| | | | | | I forgot to remove this during my special cleanup Reviewed-by: bjorn.
* Don't send NPC text as fixed-length stringThorbjørn Lindeijer2012-05-061-3/+2
| | | | | | | | This is intended to be used only when the string length is known. The client was deriving the length from the remaining amount of data in the message, but that doesn't work in the new 'debug mode' of the protocol. Reviewed-by: Ben Longbons
* Some small optimizations in Lua helper functionsThorbjørn Lindeijer2012-05-061-6/+3
| | | | Reviewed-by: Ben Longbons
* Fixed type of returned value from MapReader::readMapThorbjørn Lindeijer2012-05-061-1/+1
| | | | GCC 4.7 warns about this, yay.
* Small GCC 4.7 compile fixThorbjørn Lindeijer2012-05-051-0/+1
| | | | | | Not entirely according to the standards since this is a C99 header, but that's better than not having it compile at all, or switching it entirely over to C++11 mode just now.
* Added debugging mode to the protocolThorbjørn Lindeijer2012-05-0511-99/+283
| | | | | | | | | | | | Allows inspection of message data. It is off by default since it consumes additional bandwidth, but it can be turned on using the net_debugMode option in manaserv.xml. Currently the option only affects outgoing data for each host individually. In particular, enabling this debug mode for the server does not automatically make the client annotate its messages. Reviewed-by: Erik Schilling
* Fix compiler error in g++ (GCC) 4.7.0jurkan2012-05-011-2/+2
| | | | | | | | Compiler error was due to variable redeclaration (variable inside of for loop had the same name as the loop iterator variabele) - fixed through renaming of the inner variable. Reviewed-by: bjorn
* Fixed guild supportErik Schilling2012-04-1911-167/+250
| | | | | | | | | | | | | | | | | List of things fixed: - fixed having multiple guild support everywhere - implemented kick code (untested due to missing kick possiblity in client) - fixed giving owner rights to next member when owner leaves guild - fixed potentional segmention fault when trying to access deleted guild after all members left - fixed saving right changes to database - made searching for guilds faster a bit (at least when having many guilds) TODO: + Fix conflict between guild and normal channels + Fix being able to leave guild channel without leaving guild itself + Add kick possiblity to client Reviewed-by: bjorn.
* Removed not needed trigger for specialupdate when INT attribute changed.Erik Schilling2012-04-181-4/+0
| | | | | | I removed this dependency a while ago. But forgot to remove this code. Reviewed-by: bjorn.
* Fixed compiler warning about non-virtual destructorThorbjørn Lindeijer2012-04-141-0/+2
| | | | | | | | None of the subclasses actually define a destructor that does anything, but this may change in the future. In any case it's good to get rid of the warning. Reviewed-by: Erik Schilling
* Introduced a Timeout class for counting down without countingThorbjørn Lindeijer2012-04-1411-142/+221
| | | | | | | | The timeout remembers a reference point of time against which it can check how much time is remaining. Reviewed-by: Erik Schilling Reviewed-by: Yohann Ferreira
* Fixed issues with server behind routerErik Schilling2012-04-122-3/+5
| | | | | | Tested-by: jurkan. Reviewed-by: Bertram.
* Fixed Configuration::initialize() to return false when failing loadingErik Schilling2012-04-121-2/+2
| | | | Reviewed-by: Bertram.
* Adding monster::on_damage callbackStefan Beller2012-04-043-0/+33
| | | | Reviewed-by: bjorn
* Added mysql update script for the special commitErik Schilling2012-04-041-0/+11
| | | | | | Forgot to add this to git when doing the commit. Sorry. Reviewed-by: bjorn.
* Renamed Thing to EntityThorbjørn Lindeijer2012-04-0428-121/+119
| | | | | | | | In preparation for using an entity/component system for the entities in the game world, this name will be more recognizable and easier to talk about. Reviewed-by: Yohann Ferreira
* Enhanced special supportErik Schilling2012-04-0423-172/+951
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Made the current charge being saved. - Added script binds: - chr_set_special_recharge_speed - chr_get_special_recharge_speed - chr_set_special_mana - chr_get_special_mana - get_special_info - Added special info lua class. Functions: - name - needed_mana - rechargeable - on_use - on_recharged - category Further the engine no longer sets charge to 0 after using of specials this allows more flexbilillity (like failing specials). Changes on the xml database: - recharge renamed to rechargeable (needed by client and server) - needed - the needed mana to trigger a special (server only) - rechargespeed - the defailt recharge speed in mana per tick (server only) - target - the type of target (either being or point) (server and client) I also made the lua engine pushing nil instead of a 0 light userdata when the pointer was 0. Database update needed. Change is tested. Mana-Mantis: #167, #156 Reviewed-by: bjorn.
* Some general cleanups and merged Being::perform() into update()Thorbjørn Lindeijer2012-03-269-129/+117
| | | | | | | | The main change here is to remove the separate calling of 'perform' on all beings, and rather rely on the beings to do whatever they were doing in that function when the virtual 'update' function is called. Reviewed-by: Yohann Ferreira
* Fixed restoring of persistent floor itemsThorbjørn Lindeijer2012-03-211-1/+1
| | | | | | | Only 1/4th of the floor items were being restored after a reboot of the game server. Reviewed-by: jurkan