summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Readded Entity:damage as lua functionabilitiesErik Schilling2013-05-125-15/+46
|
* fixed on being inform messageErik Schilling2013-05-121-1/+1
|
* Added a first very basic monster ai versionErik Schilling2013-05-126-28/+168
| | | | | | The ai is similar to the old c++ version. Only the target searching is executed every 10 ticks only now to prevent performance issues with too many lua calls.
* Call the on_remove handler with the being as parameterErik Schilling2013-05-111-6/+7
|
* Added look_at bindErik Schilling2013-05-111-0/+33
|
* Fixed setting name of monstersErik Schilling2013-05-111-2/+2
|
* Added tick argument to the monster update callbackErik Schilling2013-05-111-0/+1
|
* Removed the hardcoded monster AIErik Schilling2013-05-114-230/+1
|
* Added entity:destination() bindErik Schilling2013-05-111-0/+18
|
* Added function to check for lenght of a possible pathErik Schilling2013-05-113-9/+54
|
* Added get_monster_classes() bindErik Schilling2013-05-113-2/+28
| | | | It returns all monster classes in a id->monsterclass table.
* [Abilities] Added abilities to monstersErik Schilling2013-05-117-26/+237
| | | | | Monsters can now either receive abilities at lifetime via scripts, or via the <ability> node in the monsters node.
* [Abilities] Removed the old autoattack systemErik Schilling2013-05-0830-1955/+15
| | | | | As a side effect i had to remove the monster attack AI for now. I will readd this as next thing.
* [Abilities] Added a add_hit_taken bindErik Schilling2013-05-086-30/+55
| | | | This allows to display hit messages in the client for abilities
* [Abilities] Made a first example attack abilityErik Schilling2013-05-081-2/+20
|
* [Abilities] Added a useaction to the gamedataErik Schilling2013-05-081-0/+1
| | | | Only required clientside.
* [Abilities] Inform other players about ability usesErik Schilling2013-05-085-4/+77
|
* [Abilities] Added support for a global cooldownErik Schilling2013-05-0815-41/+154
| | | | | | | | | Each ability can now define a cooldown that prevents the player from using other abilities for a while. The time of this cooldown can be set to any attribute. The modified value of the attribute is the value of the cooldown in game ticks. The cooldown will be automatically started if the ability has `autoconsume` set to true. Otherwise a script has to call entity:cooldown_ability(ability).
* [Abilities] Added a autoconsume optionErik Schilling2013-05-084-1/+14
| | | | | | You do not need to reset the mana in the scripts if you do not want to. We will need this for attacks later since those do not nessecary have a script.
* [Abilities] Moved the ability code into a own componentErik Schilling2013-05-089-255/+355
| | | | This later allows monsters and characters to use this component.
* [Abilities] Removed all except one abilityErik Schilling2013-05-082-21/+0
| | | | | Should allow easier modification without thinking of useful examples for each one
* [Abilities] Made the rechargespeed depending on attributesErik Schilling2013-05-087-90/+28
| | | | | | | | | | This allows a lot more flexibility and makes stuff like magical items a lot easier to implement. We will also use this for the attack system in the future. So a attack (abilitiy) would simply depend on some value like Agility (or a derived attribute from it). Which sets the recharge speed. The recharge speed is the modified value of the attribute per game tick.
* [Abilities] Only send status for actually changed abilitiesErik Schilling2013-05-082-15/+17
| | | | | Previously *every* ability was spammed over the network regardless whether it was changed or not.
* [Abilities] Turned special 1 into a point target for easier testingErik Schilling2013-05-082-1/+2
|
* [Abilities] Added network message for removed abilityErik Schilling2013-05-082-1/+4
| | | | This prevents really nasty code clientside
* [Abilities] Renamed set to categoryErik Schilling2013-05-087-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.
* [Abilities] Renamed specials to abilitiesErik Schilling2013-05-0830-662/+720
|
* Client-side settings are now available from settings.xml too, so ↵Przemysław Grzywacz2013-05-041-1/+4
| | | | example/settings.xml needed updates
* Added missing files to the codeblocks projectErik Schilling2013-05-041-0/+2
| | | | Reported by tao1 on IRC.
* Maps are now configured in settings.xml tooPrzemysław Grzywacz2013-05-036-70/+84
|
* Made member function tables available as a globalsThorbjørn Lindeijer2013-05-035-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
* Fixed a bunch of cppcheck warningsErik Schilling2013-05-0221-93/+78
|
* Bumped the protocol version to 3Thorbjørn Lindeijer2013-04-301-1/+1
| | | | | Version 2 was on the lpc2012 branch. With version 3 the lpc2012 and master branches use again the same protocol.
* Single xml solutionPrzemysław Grzywacz2013-04-2924-577/+902
| | | | Mana-mantis: #506.
* Fixed two SQL queries that broke since NULL -> nullptr replacementThorbjørn Lindeijer2013-04-291-3/+3
|
* Warn at failing overridesErik Schilling2013-04-271-1/+2
|
* Use nullptr instead of NULL everywhereErik Schilling2013-04-2739-78/+78
|
* Added a few file to .gitignoreErik Schilling2013-04-271-0/+12
|
* Fixed typo in script docsErik Schilling2013-04-271-1/+1
|
* Fixed crash when checking whether a character is already onlineThorbjørn Lindeijer2013-04-251-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.
* Simplified BeingComponent::updateDirectionThorbjørn Lindeijer2013-04-252-74/+7
| | | | Same as in the client.
* Removed old monster attributesErik Schilling2013-04-221-3/+0
|
* Forgot to rename npc_message in some docsThorbjørn Lindeijer2013-04-151-11/+11
|
* Fixed small script documentation errorThorbjørn Lindeijer2013-04-151-1/+1
|
* Fixed error messageThorbjørn Lindeijer2013-04-151-1/+1
| | | | Thanks to Ablu for noticing.
* Used static_assert for static assertionThorbjørn Lindeijer2013-04-151-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]
* Dropped the & from the Lua function tablesThorbjørn Lindeijer2013-04-151-149/+149
| | | | It's not actually necessary.
* Moved functions to entity members where appropriateThorbjørn Lindeijer2013-04-1522-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
* Simplified some script function namesThorbjørn Lindeijer2013-04-149-112/+109
| | | | | | | | npc_message -> say npc_choice -> ask npc_ask_integer -> ask_number npc_ask_string -> ask_string npc_trade -> trade
* Removed NPC and character parameters from NPC functionsThorbjørn Lindeijer2013-04-1411-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.