summaryrefslogtreecommitdiff
path: root/npc/003-1/michel.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
commitfa768d6b1301c8ed5806b36ea2671d8c672a572f (patch)
tree71489fd6cb8a7bc0ae8cd0f652231e103d70bb2f /npc/003-1/michel.txt
parent45d0d0bcc1104d56304d6df15a0904d93e60bcb6 (diff)
downloadserverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.gz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.bz2
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.xz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.zip
Stop using getgmlevel() and use is_gm() is_admin() and is_staff().
Our four power levels: getgmlevel() → Sponsors, etc. is_staff() → GM 5, Developers, test server, etc. is_gm() → GM 80, Game Master, controls the world is_admin() → GM 99, Administrator, controls the uniserver (pun intended)
Diffstat (limited to 'npc/003-1/michel.txt')
-rw-r--r--npc/003-1/michel.txt35
1 files changed, 19 insertions, 16 deletions
diff --git a/npc/003-1/michel.txt b/npc/003-1/michel.txt
index 1024e401c..736aa2424 100644
--- a/npc/003-1/michel.txt
+++ b/npc/003-1/michel.txt
@@ -39,8 +39,9 @@
mes("5."+.@name$[4]+" ("+.@value[4]+")");
next;
-
+ // Anyone with GM Level, staff or not, is allowed to latest GM logs
if (!getgmlevel()) close;
+
mes "";
.@nb = query_sql("select char_name, command from `atcommandlog` ORDER BY atcommand_id DESC LIMIT 10", .@name$, .@value$);
mes l("##BLatest GM Commands##b");
@@ -55,22 +56,24 @@
mes("9."+.@name$[8]+" ("+.@value$[8]+")");
mes("10."+.@name$[9]+" ("+.@value$[9]+")");
- if (getgmlevel() < 99) close;
+ // Only Admins are allowed to change the HoF Scoreboard
+ if (!is_admin()) close;
+
next;
- if (getgmlevel()) mes "##BGM Information##b";
- if (getgmlevel()) mes "We are currently relying in Karma to generate this Hall Of Fame.";
- if (getgmlevel()) mes "";
- if (getgmlevel()) mes "##B Manual Edition ##b";
- if (getgmlevel()) mes "To reliably change Karma values, you must use @set Karma.";
- if (getgmlevel()) mes "But before, check on MySQL the previous karma value, because this command overrides it.";
- if (getgmlevel()) mes "Therefore, it is advised to DON'T change this by hand.";
- if (getgmlevel()) mes "";
- if (getgmlevel()) mes "##B Scripting Edition ##b";
- if (getgmlevel()) mes "Is known to work. This hall of fame will need a few minutes to update itself.";
- if (getgmlevel()) mes "";
- if (getgmlevel()) mes "##B Technical Notes ##b";
- if (getgmlevel()) mes "In future we may start Fame field directly (but it is not displayed on client, thus, we decided to use Karma).";
- //if (getgmlevel()) set Karma, Karma + 5;
+ mes "##BGM Information##b";
+ mes "We are currently relying in Karma to generate this Hall Of Fame.";
+ mes "";
+ mes "##B Manual Edition ##b";
+ mes "To reliably change Karma values, you must use @set Karma.";
+ mes "But before, check on MySQL the previous karma value, because this command overrides it.";
+ mes "Therefore, it is advised to DON'T change this by hand.";
+ mes "";
+ mes "##B Scripting Edition ##b";
+ mes "Is known to work. This hall of fame will need a few minutes to update itself.";
+ mes "";
+ mes "##B Technical Notes ##b";
+ mes "In future we may start Fame field directly (but it is not displayed on client, thus, we decided to use Karma).";
+ //set Karma, Karma + 5;
close;
OnInit: