From 4985bd71604b542c588905d5d1a7f34cfa711434 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Apr 2021 12:09:56 -0300 Subject: Fix required stat --- db/pre-re/item_db.conf | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'db/pre-re/item_db.conf') diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index c0b98c8e..ff2f96d1 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -874,9 +874,7 @@ item_db: ( BindOnEquip: false Subtype: "W_2HSTAFF" OnEquipScript: <" - set @bStat, readparam(bInt); - set @minbStatVal, 60; - callfunc "RequireStat"; + callfunc "RequireStat", bInt, 60, EQI_HAND_R; "> }, { @@ -900,9 +898,7 @@ item_db: ( BindOnEquip: false Subtype: "W_STAFF" OnEquipScript: <" - set @bStat, readparam(bInt); - set @minbStatVal, 5; - callfunc "RequireStat"; + callfunc "RequireStat", bInt, 5, EQI_HAND_R; "> }, { @@ -973,9 +969,7 @@ item_db: ( BindOnEquip: false Subtype: "W_BOW" OnEquipScript: <" - set @bStat, readparam(bDex); - set @minbStatVal, 80; - callfunc "RequireStat"; + callfunc "RequireStat", bDex, 80, EQI_HAND_R; bonus2 bHPDrainRate, 100, -2; bonus bAspdRate, 20; bonus bMaxHP, -150; @@ -6251,12 +6245,8 @@ item_db: ( BindOnEquip: false Delay: 0 OnEquipScript: <" - set @bStat, readparam(bInt); - set @minbStatVal, 70; - callfunc "RequireStat"; - set @bStat, readparam(bVit); - set @minbStatVal, 40; - callfunc "RequireStat"; + callfunc "RequireStat", bInt, 70, EQI_HEAD_MID; + callfunc "RequireStat", bVit, 40, EQI_HEAD_MID; bonus bSpeedAddRate, -15; bonus bDef2Rate, -40; bonus bMdef, 60; @@ -10923,15 +10913,9 @@ item_db: ( BindOnEquip: false Delay: 0 OnEquipScript: <" - set @bStat, readparam(bStr); - set @minbStatVal, 70; - callfunc "RequireStat"; - set @bStat, readparam(bVit); - set @minbStatVal, 50; - callfunc "RequireStat"; - set @bStat, readparam(bLuk); - set @minbStatVal, 50; - callfunc "RequireStat"; + callfunc "RequireStat", bStr, 70, EQI_HEAD_TOP; + callfunc "RequireStat", bVit, 50, EQI_HEAD_TOP; + callfunc "RequireStat", bLuk, 50, EQI_HEAD_TOP; bonus bAtkRange, -10; bonus bDoubleAddRate, 20; bonus bStr, 10; -- cgit v1.2.3-60-g2f50