فهرست منبع

- Fixed some typos in the script command documentation. (bugreport:2547)
- Fixed a misleading message in the custom Job Changer. (bugreport:682)
- Updated some NPC's facing directions. (bugreport:3030)
- Added missing newline in some ShowWarning(). (bugreport:2940)
- Fixed SC_BOSSMAPINFO time being off by 1 minutes (bugreport:3035)
Now, the seconds are rounded up to the next whole minute.

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

brianluau 16 سال پیش
والد
کامیت
a11e789e0a

+ 9 - 5
doc/script_commands.txt

@@ -2048,7 +2048,7 @@ Lets say the ID of a party was saved as a global variable:
 
 ---------------------------------------
 
-*getpartymember <party id>,{<type>};
+*getpartymember <party id>{,<type>};
 
 Thank you to HappyDenn for all this information.
 
@@ -2112,7 +2112,7 @@ Example:
 
 ---------------------------------------
 
-*getpartyleader(<party id>,{<type>});
+*getpartyleader(<party id>{,<type>});
 
 This function returns some information about the given party-id's leader.
 When type is ommitted, the default information retrieved is the leader's name.
@@ -3856,7 +3856,7 @@ Example:
 	getnameditem "Apple","Aaron"; 
 	
 //Self-explanatory (I hope).
-	if (getnameitem("Apple,"Aaron")) {
+	if (getnameitem("Apple","Aaron")) {
 		mes "You now have a Aaron's Apple!"; 
 	}
 
@@ -5939,10 +5939,14 @@ to query the server log tables.
 
 ---------------------------------------
 
-*setitemscript(<ItemID>,<"{ new item script }">);
+*setitemscript(<item id>,<"{ new item script }">{,<type>});
 
 Set a new script bonus to the Item. Very useful for game events.
-You can remove an item's itemscript by leaving empty the itemscript argument.
+You can remove an item's itemscript by leaving the itemscript argument empty.
+Type can optionally be used indicates which script to set (default is 0):
+ 0 - Script
+ 1 - OnEquip_Script
+ 2 - OnUnequip_Script
 
 Example:
 

+ 2 - 2
npc/custom/jobs/jobmaster.txt

@@ -187,7 +187,7 @@ prontera,153,193,6	script	Job Master	123,{
 				close;
 			}
 	}
-	mes "Looks like something has gone wrong. Please report to the eAthena Development Team about this error.";
+	mes "I'm sorry, there are no further classes for your job.";
 	close;
 
 L_GivePlat:
@@ -266,4 +266,4 @@ OnInit:
 	set $@JC_Plat, 1; //Give Platinum skills on Jobchange (Default : 1-yes)
 	set $@JC_SupNovM, 45; //Base Level to change into Super Novice (Default : 45)
 	end;
-}
+}

+ 2 - 2
npc/kafras/dts_warper.txt

@@ -86,10 +86,10 @@ lighthalzen,154,60,6	script	Cool Event Voting Staff::CoolEventVotingStaff02	874,
 	callfunc "F_DTS_Warp",0,0;
 }
 //Prontera
-prontera,147,125,4	script	Cool Event Voting Staff::CoolEventVotingStaff03	874,{
+prontera,147,125,6	script	Cool Event Voting Staff::CoolEventVotingStaff03	874,{
 	callfunc "F_DTS_Warp",0,0;
 }
-prontera,164,125,6	script	Kafra Voting Staff#02	115,{
+prontera,164,125,4	script	Kafra Voting Staff#02	115,{
 	callfunc "F_DTS_Warp",1,3;
 }
 

+ 1 - 1
npc/quests/skills/assassin_skills.txt

@@ -486,7 +486,7 @@ in_moc_16,23,27,5	script	Assassin#realgirl	885,{
 			mes "[Esmille]";
 			mes "That jewel is yours";
 			mes "to keep. In truth, I don't";
-			mes "really need any treasure, just^FFFFFF ^000000 some proof your of qualification.";
+			mes "really need any treasure, just^FFFFFF ^000000 some proof of your qualification.";
 			mes "It looks like you're ready for me^FFFFFF ^000000 to teach you Sonic Acceleration.";
 			set ASSN_SK,6;
 			next;

+ 2 - 2
src/common/ers.c

@@ -311,14 +311,14 @@ static void ers_obj_destroy(ERS self)
 		}
 	}
 	if (count) { // missing entries
-		ShowWarning("ers::destroy : %u entries missing (possible double free), continuing destruction (entry size=%u).",
+		ShowWarning("ers::destroy : %u entries missing (possible double free), continuing destruction (entry size=%u).\n",
 				count, obj->size);
 	} else if (reuse) { // extra entries
 		while (reuse && count != UINT32_MAX) {
 			count++;
 			reuse = reuse->next;
 		}
-		ShowWarning("ers::destroy : %u extra entries found, continuing destruction (entry size=%u).",
+		ShowWarning("ers::destroy : %u extra entries found, continuing destruction (entry size=%u).\n",
 				count, obj->size);
 	}
 	// destroy the entry manager

+ 2 - 2
src/common/mapindex.c

@@ -30,7 +30,7 @@ const char* mapindex_getmapname(const char* string, char* output)
 	
 	size_t len = strnlen(string, MAP_NAME_LENGTH_EXT);
 	if (len == MAP_NAME_LENGTH_EXT) {
-		ShowWarning("(mapindex_normalize_name) Map name '%*s' is too long!", 2*MAP_NAME_LENGTH_EXT, string);
+		ShowWarning("(mapindex_normalize_name) Map name '%*s' is too long!\n", 2*MAP_NAME_LENGTH_EXT, string);
 		len--;
 	}
 	if (len >= 4 && stricmp(&string[len-4], ".gat") == 0)
@@ -52,7 +52,7 @@ const char* mapindex_getmapname_ext(const char* string, char* output)
 	
 	size_t len = safestrnlen(string, MAP_NAME_LENGTH);
 	if (len == MAP_NAME_LENGTH) {
-		ShowWarning("(mapindex_normalize_name) Map name '%*s' is too long!", 2*MAP_NAME_LENGTH, string);
+		ShowWarning("(mapindex_normalize_name) Map name '%*s' is too long!\n", 2*MAP_NAME_LENGTH, string);
 		len--;
 	}
 	

+ 1 - 1
src/map/clif.c

@@ -12496,7 +12496,7 @@ void clif_bossmapinfo(int fd, struct mob_data *md, short flag)
 			unsigned int seconds;
 			int hours, minutes;
 
-			seconds = DIFF_TICK(timer_data->tick, gettick()) / 1000;
+			seconds = DIFF_TICK(timer_data->tick, gettick()) / 1000 + 60;
 			hours = seconds / (60 * 60);
 			seconds = seconds - (60 * 60 * hours);
 			minutes = seconds / 60;

+ 1 - 1
src/map/npc_chat.c

@@ -389,7 +389,7 @@ int npc_chat_sub(struct block_list* bl, va_list ap)
 				lst = nd->u.scr.label_list;
 				ARR_FIND(0, nd->u.scr.label_list_num, i, strncmp(lst[i].name, e->label, sizeof(lst[i].name)) == 0);
 				if (i == nd->u.scr.label_list_num) {
-					ShowWarning("Unable to find label: %s", e->label);
+					ShowWarning("Unable to find label: %s\n", e->label);
 					return 0;
 				}
 				

+ 2 - 2
src/map/script.c

@@ -6040,7 +6040,7 @@ BUILDIN_FUNC(strcharinfo)
 				script_pushconststr(st,"");
 			break;
 		default:
-			ShowWarning("buildin_strcharinfo: unknown parameter.");
+			ShowWarning("buildin_strcharinfo: unknown parameter.\n");
 			script_pushconststr(st,"");
 			break;
 	}
@@ -10851,7 +10851,7 @@ BUILDIN_FUNC(charcommand)
 	}
 
 	if (*cmd != charcommand_symbol) {
-		ShowWarning("script: buildin_charcommand: No '#' symbol!");
+		ShowWarning("script: buildin_charcommand: No '#' symbol!\n");
 		script_reportsrc(st);
 		return 1;
 	}