From 46fa34deb896c9adbe23dff02a8d42deceed44ae Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 4 Dec 2021 00:17:55 +0100 Subject: brawling item check for focused brawling skill (#584) --- world/map/npc/items/brawling_item.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'world') 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; -- cgit v1.2.3-70-g09d2