From b2b23ca21ce72241bedb47828d9823aec8478cfb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 27 Aug 2019 12:45:36 -0300 Subject: Mystery Fruit: You don't know what it is until you eat it. Effects are omitted, but status reset will return the correct fruit. --- db/re/item_db.conf | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'db/re/item_db.conf') diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 8a7acb0ef..4a6a9ee97 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -14808,6 +14808,43 @@ item_db: ( STATUSUP_LUK+=1; "> }, +{ + Id: 8006 + AegisName: "MysteryFruit" + Name: "Mystery Fruit" + Type: "IT_USABLE" + Buy: 500000 + Sell: 1500 + Weight: 10 + Delay: 500 + Script: <" + .@r=callfunc("rand2", bStr, bLuk); + switch (.@r) { + case bStr: + STATUSUP_STR+=1; + break; + case bAgi: + STATUSUP_AGI+=1; + break; + case bVit: + STATUSUP_VIT+=1; + break; + case bInt: + STATUSUP_INT+=1; + break; + case bDex: + STATUSUP_DEX+=1; + break; + case bLuk: + STATUSUP_LUK+=1; + break; + default: // Error + getitem callfunc("any", StrengthFruit, AgilityFruit, VitalityFruit, IntelligenceFruit, DexterityFruit, LuckFruit), 1; + end; + } + statusup2(.@r, 1); + "> +}, ) -- cgit v1.2.3-60-g2f50