瀏覽代碼

Small correction for checkre script command (#5550)

Removed RENEWAL constant since it doesn't exist
Atemo 4 年之前
父節點
當前提交
b454237d95
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      doc/script_commands.txt
  2. 2 2
      npc/jobs/2-1/hunter.txt
  3. 2 2
      npc/kafras/functions_kafras.txt

+ 2 - 2
doc/script_commands.txt

@@ -3944,8 +3944,8 @@ more:
 Checks if a renewal feature is enabled or not in renewal.hpp, and returns 1 if
 enabled and 0 for disabled.
 
-The renewal feature to check is determined by type.
- 0 - RENEWAL (game renewal server mode)
+The renewal feature to check is determined by the number <type>.
+ 0 - RENEWAL enabled (game renewal server mode)
  1 - RENEWAL_CAST (renewal cast time)
  2 - RENEWAL_DROP (renewal drop rate algorithms)
  3 - RENEWAL_EXP (renewal exp rate algorithms)

+ 2 - 2
npc/jobs/2-1/hunter.txt

@@ -476,7 +476,7 @@ hu_in01,382,382,4	script	Guild Receptionist#hnt	732,{
 		mes "[Demon Hunter]";
 		mes "You see, we're having some financial problems. Let's see, we're short on these items...";
 		next;
-		if (checkre(RENEWAL) == true)
+		if (checkre(0) == true)
 			.@i = 1;
 		switch( rand(1,7) ) {
 		case 1:
@@ -532,7 +532,7 @@ hu_in01,382,382,4	script	Guild Receptionist#hnt	732,{
 		close;
 	}
 	else if (HNTR_Q >= 3 && HNTR_Q <= 9) {
-		if (checkre(RENEWAL) == true)
+		if (checkre(0) == true)
 			.@i = 1;
 		switch(HNTR_Q) {
 		case 3:

+ 2 - 2
npc/kafras/functions_kafras.txt

@@ -315,7 +315,7 @@ function	script	F_KafTele	{
 	else if (@wrpD$[.@j] == "Comodo Pharos Beacon") warp "cmd_fild07", 127, 134;
 	else if (@wrpD$[.@j] == "Geffen") warp "geffen", 120, 39;
 	else if (@wrpD$[.@j] == "Izlude") {
-		if (checkre(RENEWAL) == true)
+		if (checkre(0) == true)
 			warp "izlude", 128, 98;
 		else
 			warp "izlude", 91, 105;
@@ -340,7 +340,7 @@ function	script	F_KafCart	{
 		mes "[Kafra Employee]";
 		mes "I'm sorry, but the";
 		mes "Pushcart rental service";
-		if (checkre(RENEWAL) == true)
+		if (checkre(0) == true)
 			mes "is only available to Merchant classes.";
 		else {
 			mes "is only available to Merchants,";