Small correction for checkre script command (#5550)

Removed RENEWAL constant since it doesn't exist
This commit is contained in:
Atemo 2020-11-16 17:51:30 +01:00 committed by GitHub
parent d9fc45231f
commit b454237d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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