diff options
Diffstat (limited to 'npc/items/restricted_item.txt')
-rw-r--r-- | npc/items/restricted_item.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/items/restricted_item.txt b/npc/items/restricted_item.txt index adf7aff5..8016b0a8 100644 --- a/npc/items/restricted_item.txt +++ b/npc/items/restricted_item.txt @@ -8,11 +8,11 @@ function script RestrictedItem { if (!@minLvl) set @minLvl, 60; - if (debug || getgmlevel(0) >= @minLvl) end; // If the active character is staff, do nothing. + if (debug || getgmlevel(0) >= @minLvl) return; // If the active character is staff, do nothing. message strcharinfo(0), "This item repells you with extreme force. It does not seem to be meant for you."; unequipbyid @slotId; - if (getgmlevel(0)) end; + if (getgmlevel(0)) return; gmcommand strcharinfo(0) + " : @wgm Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; gmcommand strcharinfo(0) + " : @l Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; - end; + return; } |