summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-12 12:10:11 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-12 12:10:11 -0300
commit22291e651306dae324fccc08d7c51adb7fe0ae09 (patch)
treedd74b955caf070a40329e01e5ce9c25c58ee6b9d /npc/items
parent4985bd71604b542c588905d5d1a7f34cfa711434 (diff)
downloadserverdata-22291e651306dae324fccc08d7c51adb7fe0ae09.tar.gz
serverdata-22291e651306dae324fccc08d7c51adb7fe0ae09.tar.bz2
serverdata-22291e651306dae324fccc08d7c51adb7fe0ae09.tar.xz
serverdata-22291e651306dae324fccc08d7c51adb7fe0ae09.zip
If you are so powerful to equip *anything*, stats are meaningless
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);