blob: 96a60272616a67648845b0a8aac43abb18d931ad (
plain) (
tree)
|
|
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;
}
|