From 22291e651306dae324fccc08d7c51adb7fe0ae09 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Apr 2021 12:10:11 -0300 Subject: If you are so powerful to equip *anything*, stats are meaningless --- npc/items/require_stat.txt | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3-60-g2f50