From 29df0cb4c8bba89cc608739e00590afdc25ec64a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 30 Sep 2020 20:01:15 -0300 Subject: Prevent people with GM < 50 from accidentally wiping Kimarr's event scoreboard. Any person with enough clearance to use Fluffy Debug can enable/disable it, though. --- world/map/npc/033-1/kimarr.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt index 76451891..8a16ab93 100644 --- a/world/map/npc/033-1/kimarr.txt +++ b/world/map/npc/033-1/kimarr.txt @@ -563,9 +563,15 @@ L_Enable: return; L_Reset: + if (GM < G_EVENT) goto L_Decline; cleararray $Record_CRC_Fluffy_Kills, 0, MAX_HIGH_SCORES; cleararray $Record_CRC_Fluffy_Name$, "", MAX_HIGH_SCORES; cleararray $Record_CRC_Fluffy_Date$, "", MAX_HIGH_SCORES; gmlog strcharinfo(0) + " wiped Fluffy Hunt Event Scoreboards."; return; + +L_Decline: + mes "[Numa]"; + mes "I'm sorry, but your GM level does not authorizes you to perform this operation."; + return; } -- cgit v1.2.3-60-g2f50