diff options
Diffstat (limited to 'npc/items/restricted_item.txt')
-rwxr-xr-x | npc/items/restricted_item.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/items/restricted_item.txt b/npc/items/restricted_item.txt new file mode 100755 index 00000000..96a60272 --- /dev/null +++ b/npc/items/restricted_item.txt @@ -0,0 +1,14 @@ + +function script RestrictedItem { + if (!@minLvl) set @minLvl, 60; + if (debug || getgmlevel() >= @minLvl) goto L_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."; + callfunc "UnequipLater"; + if (getgmlevel()) goto L_Return; + wgm "Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; + gmlog "Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; + goto L_Return; + +L_Return: + return; +} |