ソースを参照

Small cleanups

Lemongrass3110 8 年 前
コミット
30647011e2
3 ファイル変更9 行追加13 行削除
  1. 3 7
      doc/mapflags.txt
  2. 2 2
      doc/script_commands.txt
  3. 4 4
      npc/re/other/Global_Functions.txt

+ 3 - 7
doc/mapflags.txt

@@ -266,18 +266,14 @@ because it does not necessarily require PvP mode to be set.
 *gvg_noparty
 *gvg_castle
 *gvg_dungeon
+*gvg_te
+*gvg_te_castle
 
 Enables Guild vs. Guild mode on a map and applies the corresponding damage adjustments.
 'gvg_noparty' will ignore party alliances.
 'gvg_castle' marks a guild castle. GvG mode will be active only during the War of Emperium.
 'gvg_dungeon' marks a guild dungeon. Players will be warped out after two deaths.
-
----------------------------------------
-
-*gvg_te
-*gvg_te_castle
-
-Used to determines map is WOE:TE area. Special restrictions are applied.
+'gvg_te' and 'gvg_te_castle' marks a WOE:TE area and special restrictions are applied.
 
 ---------------------------------------
 

+ 2 - 2
doc/script_commands.txt

@@ -3670,7 +3670,7 @@ Name is optional, and defaults to the attached player if omitted.
 
 These function will let you check whether the server is currently in WoE:FE mode
 (agitcheck()), WoE:SE mode (agitcheck2()), or WoE:TE mode (agitcheck3()) and will
-return 1 if War of Emperium is on and 0 if it isn't. 
+return true if War of Emperium is on and false if it isn't. 
 
 ---------------------------------------
 
@@ -6693,7 +6693,7 @@ For examples, check the WoE scripts in the distribution.
 *agitstart3;
 *agitend3;
 
-These six commands will start and end War of Emperium, War of Emperium SE,
+These commands will start and end War of Emperium FE, War of Emperium SE,
 or War of Emperium TE.
 
 This is a bit more complex than it sounds, since the commands themselves won't 

+ 4 - 4
npc/re/other/Global_Functions.txt

@@ -5,10 +5,10 @@
 //= General script functions.
 //===== Changelogs: ==========================================
 //= 1.0 WoeTECheckHour(X) function check if the woe
-//	will start in X seconds. [Capuche]
+//	will start in X seconds or less. [Capuche]
 //============================================================
 
-// WoeTETimeStart(<seconds>) : return 1 if the woe te will start in less than X seconds, 0 otherwise
+// WoeTETimeStart(<seconds>) : return true if the woe te will start in X seconds or less, false otherwise
 function	script	WoeTETimeStart	{
 	.@woe_status = agitcheck3();
 	.@min_today  = gettime(2);
@@ -20,8 +20,8 @@ function	script	WoeTETimeStart	{
 		if (.@h > .@hour_today) {
 			.@time = (60 - .@min_today) *60 + ( .@h - .@hour_today -1 ) *3600;
 			if (.@time <= getarg(0))
-				return 1;
+				return true;
 		}
 	}
-	return 0;
+	return false;
 }