From a9b4ca539cb3bb12ddc6f1eca09702e6059abe2f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 Aug 2021 14:29:49 -0300 Subject: Fix Beheader NoBow requeriment close serverdata#73 --- db/pre-re/item_db.conf | 9 +++++---- npc/scripts.conf | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index 1bb0bee0..9d6a7d1e 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -498,11 +498,12 @@ item_db: ( Refine: false ViewSprite: 1 Subtype: "W_1HSWORD" + OnEquipScript: <" + callfunc "NoBowItem", EQI_HAND_R; + if (readparam(bInt) > 1) + unequip(EQI_HAND_R); + "> Script: <" - callfunc "NoBowItem"; - set @bStat, Int; - set @maxbStatVal, 1; - callfunc "RequireMaxStat"; bonus bDoubleAddRate, 50; bonus bSpeedAddRate, 10; bonus bHit, -20; diff --git a/npc/scripts.conf b/npc/scripts.conf index a6a19493..6bd0a5ed 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -65,6 +65,7 @@ "npc/items/shock_sweet.txt", "npc/items/unreleased_item.txt", "npc/items/brawling_item.txt", +"npc/items/nobow_item.txt", "npc/items/require_stat.txt", "npc/items/warpTowels.txt", "npc/items/mirror.txt", -- cgit v1.2.3-60-g2f50