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 /src | |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 19 |
1 files changed, 19 insertions, 0 deletions
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} }; |