Bläddra i källkod

* Fixed a little Error with a label on Hall Of Fame. (bugreport:722)
* Fixed another typo error in Novice Training Ground. (bugreport:740)
* Fixed a typo error in duplicates of Mr.Smile Quest. (bugreport:749)

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

samuray22 17 år sedan
förälder
incheckning
b4a3935264
4 ändrade filer med 29 tillägg och 17 borttagningar
  1. 4 0
      npc/Changelog.txt
  2. 19 13
      npc/custom/Lance/FR_HallOfFame.c
  3. 3 2
      npc/jobs/novice/novice.txt
  4. 3 2
      npc/quests/mrsmile.txt

+ 4 - 0
npc/Changelog.txt

@@ -1,5 +1,9 @@
 Date		Added
 ======
+2008/01/06
+	* Fixed a little Error with a label on Hall Of Fame. (bugreport:722) [Samuray22]
+	* Fixed another typo error in Novice Training Ground. (bugreport:740)
+	* Fixed a typo error in duplicates of Mr.Smile Quest. (bugreport:749)
 2008/01/05
 	* Rev. 12014 Updated Kunlun NPCs and warps. [L0ne_W0lf]
 	- Didn't update the Kunlun 'Power' npcs

+ 19 - 13
npc/custom/Lance/FR_HallOfFame.c

@@ -5,7 +5,7 @@
 //= [Lance]
 //= Idea from emilylee78
 //===== Version =============================================
-//= 2.3 FINAL
+//= 2.4 FINAL
 //===== Compatible With =====================================
 //= eAthena SVN and Freya SVN
 //===== Description =========================================
@@ -31,9 +31,11 @@
 //= 2.1 - Typo.. again.. T_T                        [Lance]
 //= 2.2 - Minor updates and added Jury              [Lance]
 //= 2.3 - Utilizing eAthena's new scripting engine  [Lance]
+//= 2.4 - Minor bug fix with event script label (bugport:722) [Samura22]
 //===========================================================
 
 prontera,0,0,0	script	OnPCLoginEvent	-1,{
+OnPCLoginEvent:
 	callfunc "HallOfFameInit";
 	end;
 
@@ -91,6 +93,7 @@ OnClock0000:
 }
 
 prontera,0,0,0	script	PCLogoutEvent	-1,{
+OnPCLogoutEvent:
 	callfunc "HallOfFameInit";
 	end;
 }
@@ -219,31 +222,34 @@ L_End:
 
 
 function	script	hallOfFameNewEntry	{
-	if(getarg(0) == 0 || getarg(1) != $HoF_LadderName$[getarg(0) - 1]) {
+	if(getarg(0) == 0) goto L_New_Entry;
+	else if(getarg(1) != $HoF_LadderName$[getarg(0) - 1]) goto L_New_Entry;
+	return;
+
+L_New_Entry:
 		set @startPos, getarg(0);
 		copyarray @HoF_LadderNameB$[0], $HoF_LadderName$[@startPos], $HoF_totalCount;
 		copyarray @HoF_LadderBLevelB[0], $HoF_LadderBLevel[@startPos], $HoF_totalCount; 
 		copyarray @HoF_LadderJLevelB[0], $HoF_LadderJLevel[@startPos], $HoF_totalCount;
 		copyarray @HoF_LadderZenyB[0], $HoF_LadderZeny[@startPos], $HoF_totalCount; 
-		set $HoF_LadderName$[@startPos], getarg(1);
-		set $HoF_LadderBLevel[@startPos], getarg(2);
-		set $HoF_LadderJLevel[@startPos], getarg(3);
-		set $HoF_LadderZeny[@startPos], getarg(4);
+		setarray $HoF_LadderName$[@startPos], getarg(1);
+		setarray $HoF_LadderBLevel[@startPos], getarg(2);
+		setarray $HoF_LadderJLevel[@startPos], getarg(3);
+		setarray $HoF_LadderZeny[@startPos], getarg(4);
 		set @startPos, @startPos + 1;
-		set @limitPos, $HoF_totalCount - @startPos;
+		set @limitPos, $HoF_totalCount - @startPos + 1;
 		copyarray $HoF_LadderName$[@startPos], @HoF_LadderNameB$[0], @limitPos;
 		copyarray $HoF_LadderBLevel[@startPos], @HoF_LadderBLevelB[0], @limitPos; 
 		copyarray $HoF_LadderJLevel[@startPos], @HoF_LadderJLevelB[0], @limitPos;
 		copyarray $HoF_LadderZeny[@startPos], @HoF_LadderZenyB[0], @limitPos;
 		announce "[Hall of Fame] " + getarg(1) + " has made his/herself onto the No. " + @startPos + " ranking in Hall of Fame!", bc_all;
-	}
-	return;
+		return;
 }
 
 function	script	printHallOfFame	{
 	if(getarg(0) == 1) {
 		mes "[Hall of Fame] - Last Week's Rankings";
-		for(set @loop, 0; @loop < $HoF_totalCount; set @loop, @loop + 1){
+		for(set @loop, 0; @loop <= $HoF_totalCount; set @loop, @loop + 1){
 			mes "^ff0000";
 			mes "Position No. " + (@loop + 1) + ":^0000ff";
 			mes "+================================+";
@@ -255,7 +261,7 @@ function	script	printHallOfFame	{
 		}
 	} else {
 		mes "[Hall of Fame] - Current Rankings";
-		for(set @loop, 0; @loop < $HoF_totalCount; set @loop, @loop + 1){
+		for(set @loop, 0; @loop <= $HoF_totalCount; set @loop, @loop + 1){
 			mes "^ff0000";
 			mes "Position No. " + (@loop + 1) + ":^0000ff";
 			mes "+================================+";
@@ -269,7 +275,7 @@ function	script	printHallOfFame	{
 	return;
 }
 
-prontera,180,200,4	script	Jury	109,{
+prontera,164,134,2	script	Jury	109,{
 	mes "[Jury]";
 	mes "Good day. Would you like to view the Hall of Fame?";
 	next;
@@ -294,4 +300,4 @@ L_QUIT:
 	mes "Have a nice day then.";
 	close;
 	
-}
+}

+ 3 - 2
npc/jobs/novice/novice.txt

@@ -3,7 +3,7 @@
 //===== By: ================================================== 
 //= Dr.Evil & MasterOfMuppets
 //===== Current Version: ===================================== 
-//= 1.7b
+//= 1.7c
 //===== Compatible With: ===================================== 
 //= eAthena SVN 3422+(Requires jA Script System)
 //===== Description: ========================================= 
@@ -21,6 +21,7 @@
 //= 1.7 Now Kafra Tickets are given at correct NPC/Actions [Lupus]
 //= 1.7a a bit of optimization [Lupus]
 //= 1.7b Corrected a little Typo Error. (bugreport:728) [Samuray22]
+//= 1.7C Corrected another Typo Error. (bugreport:740) [Samuray22]
 //============================================================ 
 
 //====================================================================
@@ -2916,7 +2917,7 @@ L_cancel:
 		set NOV_3_ARCHER,NOV_3_ARCHER+1;break;
 	case 3:	set NOV_3_MAGICIAN,NOV_3_MAGICIAN+1;
 		set NOV_3_THIEF,NOV_3_THIEF+1;
-		set NOV_3_MERCHANT,NOV_3_MERCHAN+1;	
+		set NOV_3_MERCHANT,NOV_3_MERCHANT+1;	
 	}
 	mes "[Hanson]";
 	mes "You happened to pick up";

+ 3 - 2
npc/quests/mrsmile.txt

@@ -3,7 +3,7 @@
 //===== By: ================================================== 
 //= kobra_k88, Akaru
 //===== Current Version: ===================================== 
-//= 1.4
+//= 1.4a
 //===== Compatible With: ===================================== 
 //= eAthena 7.15 +
 //===== Description: ========================================= 
@@ -11,6 +11,7 @@
 //= Trade Clover, Fluff and Jellopy for a Mr. Smile mask.
 //===== Additional Comments: ================================= 
 //= 1.4 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
+//= 1.4a Fixed a little Typo error in duplicates. (bugreport:749) [Samuray22]
 //============================================================ 
 
 prontera,157,187,4	script	Smile Assistance#prt::SmileHelper	92,{
@@ -99,7 +100,7 @@ aldebaran,136,135,4	duplicate(SmileHelper)	Smile Assistance#alde	92
 geffen,119,107,4	duplicate(SmileHelper)	Smile Assistance#gef	92
 alberta,113,53,4	duplicate(SmileHelper)	Smile Assistance#alb	92
 payon,186,104,5	duplicate(SmileHelper)	Smile Assistance#pay	92
-izlude,129,118,4	duplicate(SmileHelper)	Smile Assistance:iz	92
+izlude,129,118,4	duplicate(SmileHelper)	Smile Assistance#iz	92
 
 //============================================================ 
 // Old changelog