summaryrefslogtreecommitdiff
path: root/world/map/npc/items/brawling_item.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/items/brawling_item.txt')
-rw-r--r--world/map/npc/items/brawling_item.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/world/map/npc/items/brawling_item.txt b/world/map/npc/items/brawling_item.txt
new file mode 100644
index 00000000..097de378
--- /dev/null
+++ b/world/map/npc/items/brawling_item.txt
@@ -0,0 +1,23 @@
+// Items which can only be used while unarmed
+// Variables passed to this script:
+// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script.
+
+function|script|BrawlingItem
+{
+ if (getequipid(equip_hand1) == -1)
+ goto L_Return;
+
+ message strcharinfo(0), "This item's curse does not allow it to be used with weapons equipped.";
+
+ // This is for debug
+ if (getgmlevel() >= 60)
+ bonus bAgi, -7;
+ if (getgmlevel() >= 60)
+ goto L_Return;
+
+ callfunc "UnequipLater";
+ goto L_Return;
+
+L_Return:
+ return;
+}