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.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/world/map/npc/items/brawling_item.txt b/world/map/npc/items/brawling_item.txt
index 097de378..a3162b93 100644
--- a/world/map/npc/items/brawling_item.txt
+++ b/world/map/npc/items/brawling_item.txt
@@ -4,11 +4,30 @@
function|script|BrawlingItem
{
+ cleararray @skilllist_name$[0], "", 8;
+ cleararray @skilllist_id[0], 0, 8;
+ cleararray @skilllist_count[0], 0, 8;
+ getactivatedpoolskilllist;
+
+ if (@skilllist_id[0] != SKILL_BRAWLING)
+ goto L_BrawlingItem_Check_Weapon;
+
+ bonus bStr, 2;
+ bonus bDex, 1;
+
+ goto L_BrawlingItem_Check_Weapon;
+
+L_BrawlingItem_Check_Weapon:
+
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.";
+ goto L_BrawlingItem_UnequipLater;
+
+L_BrawlingItem_UnequipLater:
+
// This is for debug
if (getgmlevel() >= 60)
bonus bAgi, -7;