Browse Source

* Implemented Token of Siegfried effect care of Zephyrus_CR.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11307 54d463be-8e91-2dee-dedb-b68131a5f0ec
L0ne_W0lf 17 years ago
parent
commit
ac52b62707
4 changed files with 24 additions and 1 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 1 0
      db/Changelog.txt
  3. 2 1
      db/packet_db.txt
  4. 19 0
      src/map/clif.c

+ 2 - 0
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):

+ 1 - 0
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]

+ 2 - 1
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

+ 19 - 0
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);
+}
+
 /*==========================================
  * ƒpƒPƒbƒgƒfƒoƒbƒO
  *------------------------------------------*/
@@ -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}
 	};