From a1becae58f0b25913637edbd9ba61907bebf480b Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 19 Oct 2007 20:31:57 +0000 Subject: [PATCH] - Added bonusautoscript and bonusautoscript2. These are used to attach a script to a player which gets executed on attack (or when attacked). Required for several of the more recent items. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11519 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 6 +++++ doc/script_commands.txt | 39 ++++++++++++++++++++++++++++ src/map/map.h | 6 +++++ src/map/pc.c | 30 ++++++++++++++++++++++ src/map/pc.h | 3 +++ src/map/script.c | 57 +++++++++++++++++++++++++++++++++++++++++ src/map/skill.c | 34 ++++++++++++++++++++++++ src/map/status.c | 7 +++-- src/map/unit.c | 4 +++ 9 files changed, 184 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 693b380c68..48c6cc7cdc 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,12 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2007/10/19 + * Added bonusautoscript and bonusautoscript2. These are used to attach a + script to a player which gets executed on attack (or when attacked). This + is very similar to the autospell bonuses, except that a script is executed + instead of a spell. See doc/script_commands for indepth description and + usage. NOTE that I am unable to test ingame, and even though I proofread + the code it could have bugs. Feel free to test and report. [Skotlex] * Applied some cleanups that should correct "Infinite Endure" ending sometimes. [Skotlex] 2007/10/18 diff --git a/doc/script_commands.txt b/doc/script_commands.txt index bf9343cfed..baa73a8937 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4285,6 +4285,45 @@ kind in 'doc/item_bonus.txt'. --------------------------------------- +*bonusautoscript