From bef05c1888574f5c12ce62605a40806989d4e166 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 30 Jul 2018 00:14:43 -0300 Subject: Safety check to another VERY dangerous NPC: Mr. Rock Could open a bound error!! --- npc/test/rock.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'npc/test') diff --git a/npc/test/rock.txt b/npc/test/rock.txt index 75c32ad23..e899ea4df 100644 --- a/npc/test/rock.txt +++ b/npc/test/rock.txt @@ -146,6 +146,11 @@ test,2,6,0 script rock NPC_PLAYER,{ close; } + if (!is_admin()) { + mesc "Error 13: Permission Denied", 1; + close; + } + speech S_LAST_NEXT, l("Hello do you want to play rock scissors paper?"); do { -- cgit v1.2.3-70-g09d2