summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/require_stat.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/items/require_stat.txt b/npc/items/require_stat.txt
index 7ff2b101..815f7b5a 100644
--- a/npc/items/require_stat.txt
+++ b/npc/items/require_stat.txt
@@ -1,6 +1,10 @@
// Unequip if stat not enough
// callfunc "RequireStat", bDex, 80, EQI_HAND_R;
function script RequireStat {
+ // If you can equip *anything*, this restriction is moot
+ if (has_permission(PERM_USE_ALL_EQUIPMENT, getcharid(3)))
+ return;
+ // Load stat requisites
.@stat = getarg(0);
.@min = getarg(1);
.@me = getarg(2);