summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-26[Abilities] Turned special 1 into a point target for easier testingErik Schilling2-1/+2
2013-08-26[Abilities] Added network message for removed abilityErik Schilling2-1/+4
This prevents really nasty code clientside
2013-08-26[Abilities] Renamed set to categoryErik Schilling7-32/+32
On the one hand setSetName and setName could sound misleading in the qt client patch i plan. On the otherhand i never really liked the name "set". I think category is more general and obvious.
2013-08-26[Abilities] Renamed specials to abilitiesErik Schilling30-662/+720
2013-08-25Use std::unique_ptr for Account instance of AccountClientThorbjørn Lindeijer3-38/+32
Makes cleanup automatic and ownership somewhat better recognizable.
2013-07-28Allow -v for setting verbosityErik Schilling2-4/+4
I am really bad at spelling verbosity :->
2013-07-19Adapted the inline documentation for markdown docsErik Schilling2-171/+238
2013-06-18Allow manaserv to be built with external ENetBrian Callahan2-4/+16
2013-05-23Added paths.xml to settings.xml in example dataPrzemysław Grzywacz1-0/+1
2013-05-10Partial rewrite and improvements of Warp objectPrzemysław Grzywacz4-30/+180
2013-05-04Client-side settings are now available from settings.xml too, so ↵Przemysław Grzywacz1-1/+4
example/settings.xml needed updates
2013-05-04Added missing files to the codeblocks projectErik Schilling1-0/+2
Reported by tao1 on IRC.
2013-05-03Maps are now configured in settings.xml tooPrzemysław Grzywacz6-70/+84
2013-05-03Made member function tables available as a globalsThorbjørn Lindeijer5-25/+30
This way the scripts can add or replace existing member functions, which can be useful. As demonstration chr_money and chr_money_change are now added as Entity.money and Entity.change_money. Also fixed the banker to use ask_number instead of ask_integer (I had decided to rename this and apparently forgot the banker). Mantis-issue: 503 Reviewed-by: Ablu
2013-05-02Fixed a bunch of cppcheck warningsErik Schilling21-93/+78
2013-04-30Bumped the protocol version to 3Thorbjørn Lindeijer1-1/+1
Version 2 was on the lpc2012 branch. With version 3 the lpc2012 and master branches use again the same protocol.
2013-04-29Single xml solutionPrzemysław Grzywacz24-577/+902
Mana-mantis: #506.
2013-04-29Fixed two SQL queries that broke since NULL -> nullptr replacementThorbjørn Lindeijer1-3/+3
2013-04-27Warn at failing overridesErik Schilling1-1/+2
2013-04-27Use nullptr instead of NULL everywhereErik Schilling39-78/+78
2013-04-27Added a few file to .gitignoreErik Schilling1-0/+12
2013-04-27Fixed typo in script docsErik Schilling1-1/+1
2013-04-25Fixed crash when checking whether a character is already onlineThorbjørn Lindeijer1-3/+2
Not every connected game client has a character in the world. The code was checking this, but since commit aa04597c5f8bb806996 the pointer was being used before being checked.
2013-04-25Simplified BeingComponent::updateDirectionThorbjørn Lindeijer2-74/+7
Same as in the client.
2013-04-22Removed old monster attributesErik Schilling1-3/+0
2013-04-15Forgot to rename npc_message in some docsThorbjørn Lindeijer1-11/+11
2013-04-15Fixed small script documentation errorThorbjørn Lindeijer1-1/+1
2013-04-15Fixed error messageThorbjørn Lindeijer1-1/+1
Thanks to Ablu for noticing.
2013-04-15Used static_assert for static assertionThorbjørn Lindeijer1-1/+2
Yay for C++11! static_assert is available since GCC 4.3. Fixed warning when compiling with GCC 4.8: src/utils/mathutils.cpp:53:18: warning: typedef ‘float_must_be_32_bits’ locally defined but not used [-Wunused-local-typedefs]
2013-04-15Dropped the & from the Lua function tablesThorbjørn Lindeijer1-149/+149
It's not actually necessary.
2013-04-15Moved functions to entity members where appropriateThorbjørn Lindeijer22-608/+723
Some functions were skipped for now because they may need a new name or change of behavior. Changes: chr_warp entity:warp chr_get_inventory entity:inventory chr_inv_change entity:inv_change chr_inv_count entity:inv_count chr_get_equipment entity:equipment chr_equip_slot entity:equip_slot chr_equip_item entity:equip_item chr_unequip_slot entity:unequip_slot chr_unequip_item entity:unequip_item chr_get_level entity:level chr_get_exp entity:xp chr_give_exp entity:give_xp chr_get_rights entity:rights chr_set_hair_style entity:set_hair_style chr_get_hair_style entity:hair_style chr_set_hair_color entity:set_hair_color chr_get_hair_color entity:hair_color chr_get_kill_count entity:kill_count chr_give_special entity:give_special chr_has_special entity:has_special chr_take_special entity:take_special chr_set_special_recharge_speed entity:set_special_recharge_speed chr_get_special_recharge_speed entity:special_recharge_speed chr_set_special_mana entity:set_special_mana chr_get_special_mana entity:special_mana chr_kick entity:kick exp_for_level xp_for_level monster_get_id entity:monster_id monster_change_anger entity:change_anger monster_drop_anger entity:drop_anger monster_get_angerlist entity:angerlist being_apply_status entity:apply_status being_remove_status entity:remove_status being_has_status entity:has_status being_set_status_time entity:set_status_time being_get_status_time entity:status_time being_get_gender entity:gender being_set_gender entity:set_gender being_type entity:type being_walk entity:walk being_say entity:say being_damage entity:damage being_heal entity:heal being_get_name entity:name being_get_action entity:action being_set_action entity:set_action being_get_direction entity:direction being_set_direction entity:set_direction being_apply_attribute_modifier entity:apply_attribute_modifier being_remove_attribute_modifier entity:remove_attribute_modifier being_set_base_attribute entity:set_base_attribute being_get_modified_attribute entity:modified_attribute being_get_base_attribute entity:base_attribute being_set_walkmask entity:set_walkmask being_get_walkmask entity:walkmask being_get_mapid entity:mapid chat_message entity:message being_register entity:register chr_shake_screen entity:shake_screen chr_create_text_particle entity:show_text_particle - entity:position posX entity:x posY entity:y monster_get_name monsterclass:name item_get_name itemclass:name
2013-04-14Simplified some script function namesThorbjørn Lindeijer9-112/+109
npc_message -> say npc_choice -> ask npc_ask_integer -> ask_number npc_ask_string -> ask_string npc_trade -> trade
2013-04-14Removed NPC and character parameters from NPC functionsThorbjørn Lindeijer11-139/+143
These functions can only be used in the context of a character talking to an NPC, so these parameters can be deduced from that context rather than passing them explicitly all the time. Simplifies NPC scripting.
2013-04-14Use a full user data for Entity referencesThorbjørn Lindeijer7-96/+65
Only moved a single script function to a member for now, will do others in a separate commit.
2013-04-13Don't try to kill the connection of a deleted characterThorbjørn Lindeijer1-1/+1
The point is to do this on the new character and to allow the client to continue playing with the existing character instance (when it represents the same character in the DB). Somehow was changed in commit aa04597c5f8.
2013-04-13Added -std=c++0x compiler flag to the codeblocks filesPostremus2-1/+3
2013-04-13Actually use transactions for mysql updatesErik Schilling2-4/+4
BEGIN; END; does not work similar to sqlite here.
2013-04-12Fixed uninitialised variable warning in valgrindErik Schilling1-0/+1
2013-04-12Fixed too long lua documentationErik Schilling1-21/+46
2013-04-12Removed static member definitions that are no longer neededThorbjørn Lindeijer6-11/+1
The requirement for having these definitions was relaxed in the C++11 standard. In short, they are not needed anymore for static const integral types. Details: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#454
2013-04-12Removed CharacterData member from CharacterComponentThorbjørn Lindeijer3-9/+3
It is only needed temporarily while serializing and deserializing.
2013-04-12Moved Actor into an ComponentErik Schilling33-408/+429
This was the final step to remove the hierachy with Entity on the top.
2013-04-11Converted Being into a ComponentErik Schilling49-872/+1051
I did not really care too much about staying consistent with the use of static_casts to Actors since they are only temporary anyway until Actor is a component too.
2013-04-11Converted the Character class into a componentErik Schilling42-760/+1178
A CharacterData was created as a proxy class in order to allow using the old serialization method.
2013-04-11Renamed Character -> CharacterData in the accountserverErik Schilling14-68/+70
2013-04-10Fixed @kill killing yourselfErik Schilling1-1/+1
2013-04-07Fixed undefined #defines in mingw and c++0xErik Schilling3-1/+8
It looks like mingw does not define all the stuff in c++0x it does without.
2013-04-03Moved the Monster class to a ComponentErik Schilling14-123/+160
Things done: - Allowed to create new Attributes outside of the protected scope of Being - Moved Monster to MonsterComponent - Some minor cleanup in the Attribute setting code of monsters
2013-04-02Fixed multiple warnings and errors that blocked c++0xErik Schilling18-53/+74
This allows the server to compile with c++0x (and enables it). This also includes some coding style / readabillity fixes.
2013-04-02Removed old commandhandler approachErik Schilling2-440/+0
It was forgotten to remove when the new approach was added