diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-26 17:07:21 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-26 17:07:21 +0000 |
commit | c00bfb5e5b23b3e42552ac84abbf40b428e94bb7 (patch) | |
tree | 4d83f1496a6dba3c284bb71344eaceaa977fecd9 | |
parent | d3cd76be1c756605106fabdb4397f7d7c4761d5c (diff) | |
download | hercules-c00bfb5e5b23b3e42552ac84abbf40b428e94bb7.tar.gz hercules-c00bfb5e5b23b3e42552ac84abbf40b428e94bb7.tar.bz2 hercules-c00bfb5e5b23b3e42552ac84abbf40b428e94bb7.tar.xz hercules-c00bfb5e5b23b3e42552ac84abbf40b428e94bb7.zip |
* Implemented Token of Siegfried effect care of Zephyrus_CR.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11307 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | db/Changelog.txt | 1 | ||||
-rw-r--r-- | db/packet_db.txt | 3 | ||||
-rw-r--r-- | src/map/clif.c | 19 |
4 files changed, 24 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 226614373..472e60d5f 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/09/26 + * Rev. 11307 Implemented Token of Siegfried effect care of Zephyrus_CR. [L0ne_W0lf] 2007/09/25 * Modified a bit the hard/lazy ai triggers to match aegis (you can alter these changing the defines near the beginning of mob.c): diff --git a/db/Changelog.txt b/db/Changelog.txt index c468c1a44..ad28ce34e 100644 --- a/db/Changelog.txt +++ b/db/Changelog.txt @@ -38,6 +38,7 @@ ======================= 09/25 + * Rev. 11307 Implemented Token of Siegfried effect care of Zephyrus_CR. [L0ne_W0lf] * Rev. 11304 Touched up View IDs of the Japanese new Mobile headgears. [L0ne_W0lf] * Rev. 11297 Corrected Aegis name for socketed Schweizersabel and Spike. [L0ne_W0lf] * Rev. 11295 Item database update. [L0ne_W0lf] diff --git a/db/packet_db.txt b/db/packet_db.txt index 7c48eb862..5b6d25b6f 100644 --- a/db/packet_db.txt +++ b/db/packet_db.txt @@ -924,7 +924,8 @@ packet_ver: 20 0x028f,6 0x0290,4 0x0291,4 -0x0292,2 +//0x0292,2 +0x0292,2,autorevive,0 // Token_of_Ziegfried used... 0x0293,70 0x0294,10 0x0295,-1 diff --git a/src/map/clif.c b/src/map/clif.c index e9258e317..97e452874 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11492,6 +11492,24 @@ void clif_parse_HomMenu(int fd, struct map_session_data *sd) merc_menu(sd,RFIFOB(fd,packet_db[sd->packet_ver][cmd].pos[0])); } +// [Zephyrus Code Modifications] +void clif_parse_AutoRevive(int fd, struct map_session_data *sd) +{ + int item_position; + + nullpo_retv(sd); + item_position = pc_search_inventory(sd, 7621); + + if (item_position < 0) + return; + + if (!status_revive(&sd->bl, 100, 100)) + return; + + clif_skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,4,1); + pc_delitem(sd, item_position, 1, 0); +} + /*========================================== * パケットデバッグ *------------------------------------------*/ @@ -11902,6 +11920,7 @@ static int packetdb_readdb(void) {clif_parse_HomMenu,"hommenu"}, {clif_parse_StoragePassword,"storagepassword"}, {clif_parse_Hotkey,"hotkey"}, + {clif_parse_AutoRevive,"autorevive"}, {NULL,NULL} }; |