Selaa lähdekoodia

- Added a few missing updates to the last packet update to properly support player clones and disguising.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14387 54d463be-8e91-2dee-dedb-b68131a5f0ec
Skotlex 14 vuotta sitten
vanhempi
commit
1ffca62da2
2 muutettua tiedostoa jossa 12 lisäystä ja 4 poistoa
  1. 6 2
      Changelog-Trunk.txt
  2. 6 2
      src/map/clif.c

+ 6 - 2
Changelog-Trunk.txt

@@ -3,8 +3,12 @@ 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.
 
+2010/08/20
+	* Added a few missing updates to the last packet update to properly support player clones and disguising. [Skotlex]
 2010/08/19
 	* Rev. 14384 Follow up to r14383, changed use of clif_font_area to clif_font, seems Skotlex forgot them. [L0ne_W0lf]
+	* Added support for packets 0x7fa, 0x7f7, 0x7f8, 0x7f9. These are for renewal
+	  clients and fixes deletion of ammo/displaying of Homunculus HP/SP bars on recent RE clients. [Skotlex]
 2010/08/18
 	* Rev. 14381 Added bonus3 bAdd/SubEle, which allows you to specify a battle flag as well! Dun dun dun! [L0ne_W0lf]
 	- The bonuses are addititive to existing bAdd/SubEles, as that's how it appears to work.
@@ -13,9 +17,9 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 	* Rev. 14378 Attempting to tackle, and fix some simple errors in skills. [L0ne_W0lf]
 	- Stormgust hit counter no longer resets under new casts of stormgust.
 	- RG_STEALCOIN will now cause the monster to aggro player on success. (bugreport:3547)
-	- SL_WIZARD will now consume one crystal fragement per reflected hit. (bugreport:3603)
+	- SL_WIZARD will now consume one crystal fragment per reflected hit. (bugreport:3603)
 	- WZ_FROSTNOVA will now ignore targets in area that are already frozen. (bugreport:3980)
-	- SL_KAAHI will no longer uses SP if player has full health already. (bugreport:3918)
+	- SL_KAAHI will no longer use SP if player has full health already. (bugreport:3918)
 	- CG_TAROTCARD "The Lovers" will heal source player instead of target. (bugreport:4171)
 	* Merged Shinryo's patch which speeds up map-cache loading (with a few changes, see eA forum thread #253218 for details) [Skotlex]
 2010/08/14

+ 6 - 2
src/map/clif.c

@@ -168,7 +168,7 @@ static inline unsigned char clif_bl_type(struct block_list *bl) {
 	case BL_ITEM:  return 0x2; //ITEM_TYPE
 	case BL_SKILL: return 0x3; //SKILL_TYPE
 	case BL_CHAT:  return 0x4; //UNKNOWN_TYPE
-	case BL_MOB:   return 0x5; //NPC_MOB_TYPE
+	case BL_MOB:   return pcdb_checkid(((TBL_MOB*)bl)->class_)?0x0:0x5; //NPC_MOB_TYPE
 	case BL_NPC:   return 0x6; //NPC_EVT_TYPE
 	case BL_PET:   return 0x7; //NPC_PET_TYPE
 	case BL_HOM:   return 0x8; //NPC_HOM_TYPE
@@ -1016,7 +1016,11 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un
 //Used for spawn/walk packets, where the ID offset changes for packetver >=9
 static void clif_setdisguise(struct block_list *bl, unsigned char *buf,int len)
 {
-#if PACKETVER >= 20071106
+#if PACKETVER >= 20091103
+	WBUFB(buf,4)= 0x5; //NPC_MOB_TYPE
+	WBUFL(buf,5)=-bl->id;
+#elif PACKETVER >= 20071106
+	WBUFB(buf,2)= 0x5; //NPC_MOB_TYPE
 	WBUFL(buf,3)=-bl->id;
 #else
 	WBUFL(buf,2)=-bl->id;