summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-05Fixed codeblocks compile for linux targetsErik Schilling2-273/+294
2012-12-15Create database using a single transactionThorbjørn Lindeijer1-0/+4
Takes the time required to do initial database creation down from 16 to 0.2 seconds on the Raspberry Pi.
2012-10-11Moved order of sending genderErik Schilling2-7/+5
Gender is shared. There is no reason in duplicating code *Breaks compatbility with old clients* *Requires clientside patch* Reviewed-by: Stefan Beller.
2012-09-22Extended warnings for parsing warpsErik Schilling1-1/+1
Reviewed-by: bjorn.
2012-09-22Fixed marking map as activatedErik Schilling2-19/+40
The patch that allowed to use map objects as warp targets broke this. During run of map initalize mActive was still false. This broke creating objects (npc, triggers) in atinit. Reviewed-by: bjorn.
2012-09-18Added travis configErik Schilling1-0/+8
2012-09-02Allow map objects as warp targetsErik Schilling3-14/+57
This patch allows map objects as warp targets. For use: - Create object in tiled with type="WARP_DEST" - Set name to anything you want - Create usual WARP object - Leave out the DEST_{X,Y} part - Add DEST_NAME property with the name of the first object This requires the game server to parse all maps at startup. Change is tested. Reviewed-by: bjorn.
2012-09-02Dropped .gz suffix for mapsErik Schilling1-2/+0
Reviewed-by: bjorn.
2012-08-10Fixed item_drop insertion of objectErik Schilling1-3/+2
2012-08-10Fixed issues with removing attribute modifiersThorbjørn Lindeijer1-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
2012-08-06Allow monster name in <drop> tagErik Schilling1-3/+17
Reviewed-by: Stefan Beller.
2012-08-05Fixed wrong error raising in lua.cppErik Schilling1-2/+2
Reviewed-by: bjorn.
2012-08-05Removed old warnings and documentation from chr_inv_change.Erik Schilling1-7/+3
This was forgotten to do when dropping the money checks and introducing the checkItem function. Reviewed-by: bjorn.
2012-08-05Fixed the atinit functionErik Schilling3-4/+11
Previously each map had its own scope. They got merged now but the atinit function was forgotten to adapt. Reviewed-by: bjorn.
2012-08-05Fixed recalculation of base attributesErik Schilling1-7/+7
We do not need to calculate derived attributes of the derived attributes but the base of the derived attribute. Reviewed-by: bjorn.
2012-08-05Remove resetEffects; move it to destructor in ItemClass.Stefan Beller2-18/+20
Reviewed-by: bjorn
2012-08-05Cleaned up some world state variable testing codeThorbjørn Lindeijer1-10/+2
Kept the accountserver_startup time for now, since it could be useful. Reviewed-by: Stefan Beller
2012-08-05Fixup segfault at shutdown of gameserver.Stefan Beller1-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
2012-08-05Correct updating the old position of beings.Stefan Beller1-4/+4
Reviewed-by: bjorn acked-by: Ablu
2012-08-04Prevent characters from using specials after deathErik Schilling1-0/+6
Reviewed-by: Stefan Beller.
2012-08-03Fixed dead characters being able to use items.Erik Schilling1-0/+4
Change is tested. Mantis: #492. Reviewed-by: Stefan Beller.
2012-08-03Made the character not colliding with monsters.Erik Schilling1-1/+1
Prevents clientside desyncs. Reviewed-by: Stefan Beller.
2012-08-02Correct further int lengthes.Stefan Beller1-2/+2
Reviewed-by: Ablu.
2012-07-31Gameserver raise attribute: correct integer size.Stefan Beller1-1/+1
Acked-by: bjorn
2012-07-31Make Attributes modifiable by client again.Stefan Beller1-1/+2
Reviewed-by: bjorn
2012-07-31Fixed SQL syntax error when updating character pointsThorbjørn Lindeijer1-2/+1
Had a comma too much. Reviewed-by: Stefan Beller Reviewed-by: Erik Schilling
2012-07-31Fix Inventory::getNewEquipItemInstance to yield really unique ids.Stefan Beller1-9/+8
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Reviewed-by: Erik Schilling
2012-07-21Fixed an error message and inlined some one-linersThorbjørn Lindeijer2-30/+29
2012-07-21Removed raiseScriptErrorThorbjørn Lindeijer3-37/+24
It wasn't really adding anything since errors raised using luaL_error are already logged anyway. Reviewed-by: Erik Schilling
2012-07-21Added zlib to the dependencies documented in the READMEThorbjørn Lindeijer1-0/+1
2012-07-17Added lua binds for issuing request of quest variable + bind for trying to ↵Erik Schilling4-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.
2012-07-17Added script binds to get full monster anger list + drop anger of monstersErik Schilling2-0/+20
Reviewed-by: bjorn.
2012-07-17Added lua bind to send text effect particle to clientsErik Schilling2-0/+14
Change is tested. Reviewed-by: bjorn.
2012-07-17Made chr_get_level capable of retrieving skill levelsErik Schilling1-3/+12
Reviewed-by: bjorn.
2012-07-14Fixed the get_beings_in_rectangle function.Erik Schilling1-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.
2012-07-11Made sure the map is set for trigger scriptsErik Schilling2-0/+2
Also unsetted maps after execution of scripts to make finding this mistakes easier. Reviewed-by: bjorn.
2012-07-10Made kill count script bind capable of taking the monster name as argumentErik Schilling1-2/+2
Reviewed-by: bjorn.
2012-07-08Added bind for setting login callbackErik Schilling4-0/+22
Reviewed-by: bjorn.
2012-07-07Added script bind for getting specy id of a monster handleErik Schilling1-0/+12
Reviewed-by: bjorn.
2012-06-22Collisiondetection: Removing commented code.Stefan Beller1-118/+0
Reviewed-by: Ablu
2012-05-25Fixed handling of skillsErik Schilling4-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.
2012-05-20Removed no longer needed codeErik Schilling2-24/+0
I forgot to remove this during my special cleanup Reviewed-by: bjorn.
2012-05-06Don't send NPC text as fixed-length stringThorbjørn Lindeijer1-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
2012-05-06Some small optimizations in Lua helper functionsThorbjørn Lindeijer1-6/+3
Reviewed-by: Ben Longbons
2012-05-06Fixed type of returned value from MapReader::readMapThorbjørn Lindeijer1-1/+1
GCC 4.7 warns about this, yay.
2012-05-05Small GCC 4.7 compile fixThorbjørn Lindeijer1-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.
2012-05-05Added debugging mode to the protocolThorbjørn Lindeijer12-99/+286
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
2012-05-01Fix compiler error in g++ (GCC) 4.7.0jurkan1-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
2012-04-19Fixed guild supportErik Schilling12-167/+251
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.
2012-04-18Removed not needed trigger for specialupdate when INT attribute changed.Erik Schilling1-4/+0
I removed this dependency a while ago. But forgot to remove this code. Reviewed-by: bjorn.