ALL monster drop item with Random Option 1.2.0


5 Screenshots

About This File

ALL equipment drop by monster has chance of getting Random-Option.

Like MU online every item you found have some (random) option .. now in rathena.

/////////////

News update

28/04/2107

due to #2065 one of the requirement was merged in to rathena master so

we no longer need any source modification for those who using latest release.

/////////////////

UPDATE

V.1.0 - 3 random option in each item.

V.1.1 - has chance of getting 0-3 option in stead of fixed 3option.

V.1.2 - drop chance is lower according to option quantity. Now 3option is rare (not yet applied to weapon).
         - Fixed error message.
         

pre-re user still getting error message refer to Invalid monster ID.
but random-drop-system work fine with this error.
get in touch with next update.

/////////

Requirement (for athena before  bf2461f  28/04/2107)

////////////////

Installation

replace the following files.

db/re(pre-re)/item_randomopt_group.txt

db/re(pre-re)/mob_drop.txt


make sure your   /db/re(pre-re)/item_randomopt_db.txt is 201 lines (200 sloc)  16.7 KB.

add following 6 line at the end of /db/const.txt


RDMOPTG_WEP    1
RDMOPTG_EQARM    2
RDMOPTG_EQSH    3
RDMOPTG_EQGAR    4
RDMOPTG_EQFOOT    5
RDMOPTG_EQACC    6

 

//////////////////

Option Description (DEFAULT)

Spoiler

 

6 group of option. ARMOR,SHIELD,GARMENT,FOOTGEAR,ACCESSORY,WEAPON

each random 1-3 option from list below (not duplicate). (v1.1)

customize your option by editing item_randomopt_group.txt using "find and replace" or tool you familiar with.

pick good option in /db/re/item_randomopt_db.txt

ARMOR 4,080 possibility

RDMOPT_VAR_AGIAMOUNT,10,0

RDMOPT_VAR_INTAMOUNT,10,0

RDMOPT_VAR_VITAMOUNT,10,0

RDMOPT_VAR_DEXAMOUNT,10,0

RDMOPT_VAR_LUKAMOUNT,10,0

RDMOPT_VAR_MAXHPPERCENT,10,0

RDMOPT_VAR_MAXSPPERCENT,10,0

RDMOPT_VAR_ITEMDEFPOWER,30,0

RDMOPT_VAR_MDEFPOWER,30,0

RDMOPT_VAR_AVOIDSUCCESSVALUE,20,0

RDMOPT_ATTR_TOLERACE_ALL,10,0

RDMOPT_ATTR_TOLERACE_NOTHING,15,0

RDMOPT_RACE_TOLERACE_HUMAN,15,0

RDMOPT_BODY_ATTR_WATER,0,0

RDMOPT_BODY_ATTR_FIRE,0,0

RDMOPT_BODY_ATTR_WIND,0,0

 

SHIELD 3,360 possibility

RDMOPT_VAR_MAXHPPERCENT,10,0

RDMOPT_VAR_MAXSPPERCENT,10,0

RDMOPT_VAR_ITEMDEFPOWER,40,0

RDMOPT_VAR_MDEFPOWER,20,0

RDMOPT_ATTR_TOLERACE_ALL,10,0

RDMOPT_ATTR_TOLERACE_NOTHING,15,0

RDMOPT_RACE_TOLERACE_HUMAN,15,0

RDMOPT_BODY_INDESTRUCTIBLE,0,0

RDMOPT_RACE_TOLERACE_DRAGON,15,0

RDMOPT_RACE_TOLERACE_HUMAN,15,0

RDMOPT_RACE_TOLERACE_UNDEAD,15,0

RDMOPT_HEAL_MODIFY_PERCENT,20,0

RDMOPT_DEC_SP_CONSUMPTION,25,0

RDMOPT_VAR_MAXHPAMOUNT,4000,0

RDMOPT_VAR_MAXSPAMOUNT,700,0

RDMOPT_VAR_HITSUCCESSVALUE,30,0

 

GARMENT 3,360 possibility

RDMOPT_ATTR_TOLERACE_ALL,10,0

RDMOPT_ATTR_TOLERACE_NOTHING,15,0

RDMOPT_RACE_TOLERACE_HUMAN,15,0

RDMOPT_BODY_INDESTRUCTIBLE,0,0

RDMOPT_RACE_TOLERACE_DRAGON,15,0

RDMOPT_RACE_TOLERACE_UNDEAD,15,0

RDMOPT_HEAL_MODIFY_PERCENT,20,0

RDMOPT_DEC_SP_CONSUMPTION,25,0

RDMOPT_VAR_HITSUCCESSVALUE,30,0

RDMOPT_VAR_AVOIDSUCCESSVALUE,10,0

RDMOPT_VAR_PLUSAVOIDSUCCESSVALUE,15,0

RDMOPT_VAR_CRITICALSUCCESSVALUE,10,0

RDMOPT_DAMAGE_CRI_TARGET,15,0

RDMOPT_DAMAGE_CRI_USER,15,0

RDMOPT_VAR_PLUSASPDPERCENT,10,0

RDMOPT_VAR_MAGICATKPERCENT,10,0

 

FOOTGEAR 3,360 possibility

RDMOPT_CLASS_DAMAGE_NORMAL_TARGET,10,0

RDMOPT_CLASS_DAMAGE_BOSS_TARGET,10,0

RDMOPT_CLASS_DAMAGE_NORMAL_USER,10,0

RDMOPT_CLASS_DAMAGE_BOSS_USER,10,0

RDMOPT_CLASS_MDAMAGE_NORMAL,10,0

RDMOPT_CLASS_MDAMAGE_BOSS,10,0

RDMOPT_CLASS_IGNORE_DEF_PERCENT_NORMAL,15,0

RDMOPT_CLASS_IGNORE_DEF_PERCENT_BOSS,15,0

RDMOPT_CLASS_IGNORE_MDEF_PERCENT_NORMAL,15,0

RDMOPT_CLASS_IGNORE_MDEF_PERCENT_BOSS,15,0

RDMOPT_VAR_STRAMOUNT,10,0

RDMOPT_VAR_AGIAMOUNT,10,0

RDMOPT_VAR_INTAMOUNT,10,0

RDMOPT_VAR_VITAMOUNT,10,0

RDMOPT_VAR_DEXAMOUNT,10,0

RDMOPT_VAR_LUKAMOUNT,10,0

 

ACCESSORY 4,080 possibility 

RDMOPT_DEC_SPELL_CAST_TIME,10,0

RDMOPT_DEC_SPELL_DELAY_TIME,10,0

RDMOPT_RANGE_ATTACK_DAMAGE_TARGET,10,0

RDMOPT_RANGE_ATTACK_DAMAGE_USER,10,0

RDMOPT_VAR_MAXHPPERCENT,7,0

RDMOPT_VAR_MAXSPPERCENT,7,0

RDMOPT_VAR_HPACCELERATION,5,0

RDMOPT_VAR_SPACCELERATION,5,0

RDMOPT_VAR_ATKPERCENT,7,0

RDMOPT_VAR_MAGICATKPERCENT,7,0

RDMOPT_VAR_PLUSASPDPERCENT,5,0

RDMOPT_RACE_CRI_PERCENT_NOTHING,8,0

RDMOPT_RACE_CRI_PERCENT_HUMAN,8,0

RDMOPT_RACE_IGNORE_DEF_PERCENT_NOTHING,8,0

RDMOPT_RACE_IGNORE_DEF_PERCENT_HUMAN,8,0

RDMOPT_RACE_IGNORE_MDEF_PERCENT_NOTHING,8,0

RDMOPT_RACE_IGNORE_MDEF_PERCENT_HUMAN,8,0

 

WEAPON 15,600 possibility

RDMOPT_DEC_SPELL_CAST_TIME,7,0

RDMOPT_DEC_SPELL_DELAY_TIME,7,0

RDMOPT_RANGE_ATTACK_DAMAGE_TARGET,9,0

RDMOPT_RANGE_ATTACK_DAMAGE_USER,9,0

RDMOPT_VAR_ATKPERCENT,7,0

RDMOPT_VAR_MAGICATKPERCENT,7,0

RDMOPT_VAR_PLUSASPDPERCENT,5,0

RDMOPT_CLASS_DAMAGE_NORMAL_TARGET,10,0

RDMOPT_CLASS_DAMAGE_BOSS_TARGET,10,0

RDMOPT_CLASS_DAMAGE_NORMAL_USER,10,0

RDMOPT_CLASS_DAMAGE_BOSS_USER,10,0

RDMOPT_CLASS_MDAMAGE_NORMAL,10,0

RDMOPT_CLASS_MDAMAGE_BOSS,10,0

RDMOPT_DAMAGE_SIZE_SMALL_TARGET,10,0

RDMOPT_DAMAGE_SIZE_MIDIUM_TARGET,10,0

RDMOPT_DAMAGE_SIZE_LARGE_TARGET,10,0

RDMOPT_DAMAGE_SIZE_SMALL_USER,10,0

RDMOPT_DAMAGE_SIZE_MIDIUM_USER,10,0

RDMOPT_DAMAGE_SIZE_LARGE_USER,10,0

RDMOPT_DAMAGE_SIZE_PERFECT,10,0

RDMOPT_MDAMAGE_SIZE_SMALL_TARGET,15,0

RDMOPT_MDAMAGE_SIZE_MIDIUM_TARGET,15,0

RDMOPT_MDAMAGE_SIZE_LARGE_TARGET,15,0

RDMOPT_WEAPON_INDESTRUCTIBLE,1,0

RDMOPT_WEAPON_ATTR_SAINT,1,0

RDMOPT_VAR_PLUSASPD,1,0

 

 

 

 

///////////

Drop rate (DEFAULT)

same rate as you can see in db/re/item_db.txt

customize your droprate by editing db/re(pre-re)/mob_drop.txt

/////////

 

Feel free to PM me

 


What's New in Version 1.2.0   See changelog

Released

 - drop chance is lower according to option quantity. Now 3option is rare (not yet apply to weapon).
 - Fixed error message.

  • Upvote 2
  • Love 2
  • Like 1