summaryrefslogtreecommitdiff
path: root/npc/items/brawling_item.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/brawling_item.txt')
-rw-r--r--npc/items/brawling_item.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/items/brawling_item.txt b/npc/items/brawling_item.txt
new file mode 100644
index 00000000..9aa06525
--- /dev/null
+++ b/npc/items/brawling_item.txt
@@ -0,0 +1,15 @@
+// Brawling item
+// callfunc "BrawlingItem", slotId;
+function script BrawlingItem {
+ // If you can equip *anything*, this restriction is moot
+ if (has_permission(PERM_USE_ALL_EQUIPMENT, getcharid(3)))
+ return;
+ // Load stat requisites
+ .@me = getarg(0);
+ // If the requirement isn't met, we set an unequip trigger.
+ // The item is now removed.
+ if (getequipid(EQI_HAND_R) > 0)
+ unequip(.@me);
+ return;
+}
+