summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorHoraK-FDF <HoraK-FDF@web.de>2021-12-04 00:17:55 +0100
committerGitHub <noreply@github.com>2021-12-03 23:17:55 +0000
commit46fa34deb896c9adbe23dff02a8d42deceed44ae (patch)
tree02bf442d11451ac8ecca8426e822ebf1297cbf6e /world/map/npc/items
parentda3c23e139c0477a2765914db07f11e58184e454 (diff)
downloadserverdata-46fa34deb896c9adbe23dff02a8d42deceed44ae.tar.gz
serverdata-46fa34deb896c9adbe23dff02a8d42deceed44ae.tar.bz2
serverdata-46fa34deb896c9adbe23dff02a8d42deceed44ae.tar.xz
serverdata-46fa34deb896c9adbe23dff02a8d42deceed44ae.zip
brawling item check for focused brawling skill (#584)
Diffstat (limited to 'world/map/npc/items')
-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;