From c9ac9a1aadd7405f2fe81f28eb59680ddfa3d780 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 10 Jun 2021 15:45:36 -0300 Subject: ...And I also forgot one script. --- npc/items/brawling_item.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 npc/items/brawling_item.txt 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; +} + -- cgit v1.2.3-60-g2f50