Procházet zdrojové kódy

Rename canParticipateSiegeTE into getpermissionwoete

Atemo před 9 roky
rodič
revize
3a558ff83b

+ 1 - 1
doc/script_commands.txt

@@ -6674,7 +6674,7 @@ Theses commands behave identically to gvgon/gvgoff, but apply GVG_TE mapflag.
 
 ---------------------------------------
 
-*canParticipateSiegeTE {<char id>};
+*getpermissionwoete({<char id>});
 
 Return 1 if player can participate in WOE:TE, 0 otherwise.
 Currently third class, Kagerou/Oboro and Rebellion class can't participate in WOE:TE.

+ 1 - 1
npc/re/merchants/te_merchant.txt

@@ -15,7 +15,7 @@ te_alde_gld,215,184,4	duplicate(TE Potion Merchant#prt)	TE Potion Merchant#alde
 //=======================================
 -	script	rental_woe_TE	-1,{
 	mes "[Rental Items Manager]";
-	if (canParticipateSiegeTE() == 1) {
+	if (getpermissionwoete() == 1) {
 		.@list01$ = "[Shield] [Armor] [Garment]";
 		.@list02$ = "[Helmet] [Accessory] [Shoes]";
 		.@list03$ = "[Sword] [Spear] [Axe] [Katar]";

+ 1 - 1
npc/re/quests/woe_te/te_mission_main.txt

@@ -160,7 +160,7 @@ S_Coord:
 			7509,"30 Small Wooden Boxes" );
 	}
 	mes "["+ .@npc_name$ +"]";
-	if (canParticipateSiegeTE() == 0) {
+	if (getpermissionwoete() == 0) {
 		mes "Ah... you...";
 		mes "based on TE rules, I won't be ordering you or asking you favors unfortunately.";
 		next;

+ 1 - 1
npc/re/warps/guildcastles.txt

@@ -78,7 +78,7 @@ OnTouch:
 	end;
 
 S_Warp:
-	if (canParticipateSiegeTE() == 0) {
+	if (getpermissionwoete() == 0) {
 		mes "3rd and expansion job level can't enter in WoE TE.";
 		close;
 	}

+ 1 - 1
npc/re/woe_te/main_TE.txt

@@ -1063,7 +1063,7 @@ function	script	F_flag_woe_TE	{
 		mes "Do you wish to return with honor?";
 		next;
 		if (select( "Return to the fortress.","Forget it." ) == 1) {
-			if (canParticipateSiegeTE() == 0) {
+			if (getpermissionwoete() == 0) {
 				mes "Tertiary job class and users with expanded levels are not allowed to participate in Siege Battles TE.";
 				close;
 			}

+ 3 - 3
src/map/script.c

@@ -21495,11 +21495,11 @@ BUILDIN_FUNC(getguildalliance)
 }
 
 /**
- * canParticipateSiegeTE([<char_id>]);
+ * getpermissionwoete([<char_id>]);
  * Check if player can participate in WOE:TE
  * @param char_id Player's CharID (optional)
  **/
-BUILDIN_FUNC(canParticipateSiegeTE) {
+BUILDIN_FUNC(getpermissionwoete) {
 	TBL_PC *sd = NULL;
 
 	if (!script_charid2sd(2, sd)) {
@@ -22092,7 +22092,7 @@ struct script_function buildin_func[] = {
 	BUILDIN_DEF(agitcheck3,""),
 	BUILDIN_DEF(gvgon3,"s"),
 	BUILDIN_DEF(gvgoff3,"s"),
-	BUILDIN_DEF(canParticipateSiegeTE,"?"),
+	BUILDIN_DEF(getpermissionwoete,"?"),
 
 #include "../custom/script_def.inc"