Bläddra i källkod

- The default packet version is now 8. Clients from November2006 and before can no longer get past the char-server unless you change it back to 7.
- Fixed Storm Gust counter freezing on fourth hit instead of third.
- Fixed @homstats not taking into consideration that the stat growth decimals get discarded on level up (so the real minimum/maximum displayed was off).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9868 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 18 år sedan
förälder
incheckning
dabaf379a9
5 ändrade filer med 16 tillägg och 27 borttagningar
  1. 7 0
      Changelog-Trunk.txt
  2. 1 1
      src/common/mmo.h
  3. 6 6
      src/map/atcommand.c
  4. 0 19
      src/map/script.c
  5. 2 1
      src/map/skill.c

+ 7 - 0
Changelog-Trunk.txt

@@ -3,6 +3,13 @@ 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/02/15
+	* The default packet version is now 8. Clients from November2006 and before
+	  can no longer get past the char-server unless you change it back to 7.
+	* Fixed Storm Gust counter freezing on fourth hit instead of third.
+	* Fixed @homstats not taking into consideration that the stat growth
+	  decimals get discarded on level up (so the real minimum/maximum displayed
+	  was off).
 2007/02/13
 	* Applied Rayce's dangling pointer fix when returning a temporary npc
 	  string variable (those starting with .@)

+ 1 - 1
src/common/mmo.h

@@ -9,7 +9,7 @@
 #include "utils.h" // _WIN32
 
 // server protocol version
-#define PACKETVER			7
+#define PACKETVER			8
 
 #define FIFOSIZE_SERVERLINK	256*1024
 

+ 6 - 6
src/map/atcommand.c

@@ -9434,27 +9434,27 @@ int atcommand_homstats(const int fd, struct map_session_data* sd, const char* co
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Str: %d (%d~%d)",
-		hom->str/10, db->baseSTR +lv*db->gminSTR/10, db->baseSTR +lv*db->gmaxSTR/10);
+		hom->str/10, db->baseSTR +lv*(db->gminSTR/10), db->baseSTR +lv*(db->gmaxSTR/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Agi: %d (%d~%d)",
-		hom->agi/10, db->baseAGI +lv*db->gminAGI/10, db->baseAGI +lv*db->gmaxAGI/10);
+		hom->agi/10, db->baseAGI +lv*(db->gminAGI/10), db->baseAGI +lv*(db->gmaxAGI/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Vit: %d (%d~%d)",
-		hom->vit/10, db->baseVIT +lv*db->gminVIT/10, db->baseVIT +lv*db->gmaxVIT/10);
+		hom->vit/10, db->baseVIT +lv*(db->gminVIT/10), db->baseVIT +lv*(db->gmaxVIT/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Int: %d (%d~%d)",
-		hom->int_/10, db->baseINT +lv*db->gminINT/10, db->baseINT +lv*db->gmaxINT/10);
+		hom->int_/10, db->baseINT +lv*(db->gminINT/10), db->baseINT +lv*(db->gmaxINT/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Dex: %d (%d~%d)",
-		hom->dex/10, db->baseDEX +lv*db->gminDEX/10, db->baseDEX +lv*db->gmaxDEX/10);
+		hom->dex/10, db->baseDEX +lv*(db->gminDEX/10), db->baseDEX +lv*(db->gmaxDEX/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	snprintf(atcmd_output, sizeof(atcmd_output) ,"Luk: %d (%d~%d)",
-		hom->luk/10, db->baseLUK +lv*db->gminLUK/10, db->baseLUK +lv*db->gmaxLUK/10);
+		hom->luk/10, db->baseLUK +lv*(db->gminLUK/10), db->baseLUK +lv*(db->gmaxLUK/10));
 	clif_displaymessage(fd, atcmd_output);
 
 	return 0;

+ 0 - 19
src/map/script.c

@@ -6659,25 +6659,6 @@ BUILDIN_FUNC(getgdskilllv)
 		script_pushint(st, guild_checkskill(g,skill_id));
 
 	return 0;
-/*
-	int skill_id;
-	TBL_PC* sd;
-	struct guild* g = NULL;
-
-	sd = script_rid2sd(st);
-	if( sd == NULL )
-		return 0; // needs player attached
-
-	skill_id = conv_num(st, script_getdata(st,2));
-	if( sd->status.guild_id > 0 )
-		g = guild_search(sd->status.guild_id);
-	if( g == NULL )
-		script_pushint(st, -1);
-	else
-		script_pushint(st, guild_checkskill(g,skill_id+9999));
-
-	return 0;
-*/
 }
 
 /// Returns the 'basic_skill_check' setting.

+ 2 - 1
src/map/skill.c

@@ -1113,7 +1113,8 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
 		break;
 
 	case WZ_STORMGUST:
-		if(tsc->data[SC_FREEZE].val3 >= 3) //Tharis pointed out that this is normal freeze chance with a base of 300%
+		//Use two since the counter is increased AFTER the attack.
+		if(tsc->data[SC_FREEZE].val3 >= 2) //Tharis pointed out that this is normal freeze chance with a base of 300%
 			sc_start(bl,SC_FREEZE,300,skilllv,skill_get_time2(skillid,skilllv));
 		break;