Jump to content
Cydh

Monster Drop with Item Random Option, yet for Item Random Option

Recommended Posts

This feature is merged and as rAthena's feature since Git Hash: e59cdfff903c1f7ea920858eb62a6ce1b31db9c6

Spoiler

 

ATTENTION: This feature requires Item Random Option System enabled!

This works just like iRO Crimson Weapon drop feature.

IMPORTANT: This is now in rAthena's Pull Request: Pull: 1743

 

 

SEE ALSO: For Item Random Option: getitem3, getitembound3, rentitem3, makeitem3, delitem3, countitem3

 

There are 2 new db files for this feature.

  • item_randomopt_group.txt where you defines the group (that will be used later in mob_drop) with its entries and some rates.
  • mob_drop.txt (whew, actually I want remove drops from mob_db.txt 'in previous life'), this is your workplace if you want to add drop item with the random option group, just like iRO's Crimson Weapon!

 

How to add Custom

Again, here my custom while testing this just now (Good! I create this feature only for 2 days)

Don't forget add the item random option group to db/const.txt just like when you add item group.

RDMOPTG_MaxHP    2
RDMOPTG_MaxSP    3

Then defines the group entries in db/[pre-]re/item_randomopt_group.txt

// MaxHP
RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0
RDMOPTG_MaxHP,60,RDMOPT_VAR_MAXHPAMOUNT,150,0
RDMOPTG_MaxHP,30,RDMOPT_VAR_MAXHPAMOUNT,200,0
RDMOPTG_MaxHP,12,RDMOPT_VAR_MAXHPAMOUNT,300,0
RDMOPTG_MaxHP,6,RDMOPT_VAR_MAXHPAMOUNT,400,0
RDMOPTG_MaxHP,3,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0
RDMOPTG_MaxHP,2,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0,RDMOPT_VAR_MAXHPPERCENT,5,0
RDMOPTG_MaxHP,1,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,20,0,RDMOPT_VAR_MAXHPPERCENT,7,0

// MaxSP
RDMOPTG_MaxSP,100,RDMOPT_VAR_MAXSPAMOUNT,50,0
RDMOPTG_MaxSP,60,RDMOPT_VAR_MAXSPAMOUNT,100,0
RDMOPTG_MaxSP,30,RDMOPT_VAR_MAXSPAMOUNT,150,0
RDMOPTG_MaxSP,12,RDMOPT_VAR_MAXSPAMOUNT,250,0
RDMOPTG_MaxSP,6,RDMOPT_VAR_MAXSPAMOUNT,350,0
RDMOPTG_MaxSP,3,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0
RDMOPTG_MaxSP,2,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0,RDMOPT_VAR_MAXSPPERCENT,5,0
RDMOPTG_MaxSP,1,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,20,0,RDMOPT_VAR_MAXSPPERCENT,7,0

Now, add for monster's drop in db/[pre-]re/mob_drop.txt

// Additional Valkyrja's Shield as normal drop for Valkyrie Randgris
1751,2115,2000,RDMOPTG_MaxHP
1751,2115,2000,RDMOPTG_MaxSP

// Additional Valkyrian Armor and Valkyrian Shoes as MVP reward for Valkyrie Randgris
1751,2357,1000,RDMOPTG_MaxHP,2
1751,2421,1000,RDMOPTG_MaxSP,2

OK, you can test it.

Spoiler

Oh, if you run high-rate server and the MVP drop can reach 100%, maybe you need to read this.

// The rate adjustment for the MVP items that the MVP gets directly in their inventory
// Mode: 0 - official order, 1 - random order, 2 - all items
item_rate_mvp: 100
item_drop_mvp_min: 1
item_drop_mvp_max: 10000
item_drop_mvp_mode: 0

 

 

Screen Shots

Spoiler

The mobinfo command

screenChyraRO775.jpg

Spoiler

First kill

screenChyraRO776.jpg

Valk Armor

screenChyraRO779.jpg

Valk Shoes

screenChyraRO780.jpg

Spoiler

2nd Kill

screenChyraRO781.jpg

Valk Shield

screenChyraRO784.jpg

Valk Armor

screenChyraRO786.jpg

Valk Shoes

screenChyraRO785.jpg

 

Links

 

Thanks for people who gave information, MrDiablo (what's again his account here?), Oda (that iRO's CM), Secrets (for the Random option system and make me wait and think 'what will he does about the rest item random option expansion?'), and Allanon (from OpenKore, for confirming a thing for me).

 

Edited by Cydh
  • Upvote 5

Share this post


Link to post
Share on other sites

Simple Awesome, I like how the separated drop system works, With this we can add extra drops to the mobs faster and easly.

Share this post


Link to post
Share on other sites
14 hours ago, noonbora said:

great~! thank you

 

3 hours ago, Keitenai said:

Another awesome Work!! love it! <3

 

3 hours ago, FXFreitas said:

Simple Awesome, I like how the separated drop system works, With this we can add extra drops to the mobs faster and easly.

u're welcome :D

 

 

43 minutes ago, noonbora said:

can i change these value to random?

which value? random?

Share this post


Link to post
Share on other sites

for example

RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0

to RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,rand(1,100),0

Share this post


Link to post
Share on other sites
4 minutes ago, noonbora said:

for example

RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0

to RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,rand(1,100),0

Can not.

Maybe you can use makeitem3.

But, it's kinda interesting to put value range. /heh

Share this post


Link to post
Share on other sites

is it possible to implement in pre-renewal???
i got no error....but i didnt get the random stat after killing randgris...

Share this post


Link to post
Share on other sites
1 hour ago, ChadN4u said:

is it possible to implement in pre-renewal???
i got no error....but i didnt get the random stat after killing randgris...

Depends on your emulator & client. It needs 2015 client to show the random option info on item.

Share this post


Link to post
Share on other sites
5 minutes ago, Cydh said:

Depends on your emulator & client. It needs 2015 client to show the random option info on item.

already using client 20151104a....there is no effect when equiping the item...the effect still same with normal valk shield
ah...i cant get my rathena version...(can't determine SVN verison ><)

Share this post


Link to post
Share on other sites
7 minutes ago, ChadN4u said:

already using client 20151104a....there is no effect when equiping the item...the effect still same with normal valk shield
ah...i cant get my rathena version...(can't determine SVN verison ><)

Hmm. On my release, I only put the items for db/re/, have you try move those entries on db/pre or db/import?

Share this post


Link to post
Share on other sites
28 minutes ago, ChadN4u said:

already using client 20151104a....there is no effect when equiping the item...the effect still same with normal valk shield
ah...i cant get my rathena version...(can't determine SVN verison ><)

Make sure your rAthena is up to date when using this feature with Random Option.

Share this post


Link to post
Share on other sites
31 minutes ago, Cydh said:

Hmm. On my release, I only put the items for db/re/, have you try move those entries on db/pre or db importarrow-10x10.png?

yes ...
item_randomopt_group.txt -> db/pre-re/item_randomopt_group.txt & db/import/item_randomopt_group.txt
mob_drop.txt -> db/pre-re/mob_drop.txt & db/import/mob_drop.txt

const.txt

Spoiler

RDMOPTG_MaxHP    2
RDMOPTG_MaxSP    3

//RDMOPTG_Crimson_Weapon    10204
RDMOPT_VAR_MAXHPAMOUNT    1
RDMOPT_VAR_MAXSPAMOUNT    2
RDMOPT_VAR_STRAMOUNT    3
RDMOPT_VAR_AGIAMOUNT    4
RDMOPT_VAR_VITAMOUNT    5
RDMOPT_VAR_INTAMOUNT    6
RDMOPT_VAR_DEXAMOUNT    7
RDMOPT_VAR_LUKAMOUNT    8
RDMOPT_VAR_MAXHPPERCENT    9
RDMOPT_VAR_MAXSPPERCENT    10
RDMOPT_VAR_HPACCELERATION    11
RDMOPT_VAR_SPACCELERATION    12
RDMOPT_VAR_ATKPERCENT    13
RDMOPT_VAR_MAGICATKPERCENT    14
RDMOPT_VAR_PLUSASPD    15
RDMOPT_VAR_PLUSASPDPERCENT    16
RDMOPT_VAR_ATTPOWER    17
RDMOPT_VAR_HITSUCCESSVALUE    18
RDMOPT_VAR_ATTMPOWER    19
RDMOPT_VAR_ITEMDEFPOWER    20
RDMOPT_VAR_MDEFPOWER    21
RDMOPT_VAR_AVOIDSUCCESSVALUE    22
RDMOPT_VAR_PLUSAVOIDSUCCESSVALUE    23
RDMOPT_VAR_CRITICALSUCCESSVALUE    24
RDMOPT_ATTR_TOLERACE_NOTHING    25
RDMOPT_ATTR_TOLERACE_WATER    26
RDMOPT_ATTR_TOLERACE_GROUND    27
RDMOPT_ATTR_TOLERACE_FIRE    28
RDMOPT_ATTR_TOLERACE_WIND    29
RDMOPT_ATTR_TOLERACE_POISON    30
RDMOPT_ATTR_TOLERACE_SAINT    31
RDMOPT_ATTR_TOLERACE_DARKNESS    32
RDMOPT_ATTR_TOLERACE_TELEKINESIS    33
RDMOPT_ATTR_TOLERACE_UNDEAD    34
RDMOPT_ATTR_TOLERACE_ALL    35
RDMOPT_DAMAGE_PROPERTY_NOTHING_USER    36
RDMOPT_DAMAGE_PROPERTY_NOTHING_TARGET    37
RDMOPT_DAMAGE_PROPERTY_WATER_USER    38
RDMOPT_DAMAGE_PROPERTY_WATER_TARGET    39
RDMOPT_DAMAGE_PROPERTY_GROUND_USER    40
RDMOPT_DAMAGE_PROPERTY_GROUND_TARGET    41
RDMOPT_DAMAGE_PROPERTY_FIRE_USER    42
RDMOPT_DAMAGE_PROPERTY_FIRE_TARGET    43
RDMOPT_DAMAGE_PROPERTY_WIND_USER    44
RDMOPT_DAMAGE_PROPERTY_WIND_TARGET    45
RDMOPT_DAMAGE_PROPERTY_POISON_USER    46
RDMOPT_DAMAGE_PROPERTY_POISON_TARGET    47
RDMOPT_DAMAGE_PROPERTY_SAINT_USER    48
RDMOPT_DAMAGE_PROPERTY_SAINT_TARGET    49
RDMOPT_DAMAGE_PROPERTY_DARKNESS_USER    50
RDMOPT_DAMAGE_PROPERTY_DARKNESS_TARGET    51
RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_USER    52
RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_TARGET    53
RDMOPT_DAMAGE_PROPERTY_UNDEAD_USER    54
RDMOPT_DAMAGE_PROPERTY_UNDEAD_TARGET    55
RDMOPT_MDAMAGE_PROPERTY_NOTHING_USER    56
RDMOPT_MDAMAGE_PROPERTY_NOTHING_TARGET    57
RDMOPT_MDAMAGE_PROPERTY_WATER_USER    58
RDMOPT_MDAMAGE_PROPERTY_WATER_TARGET    59
RDMOPT_MDAMAGE_PROPERTY_GROUND_USER    60
RDMOPT_MDAMAGE_PROPERTY_GROUND_TARGET    61
RDMOPT_MDAMAGE_PROPERTY_FIRE_USER    62
RDMOPT_MDAMAGE_PROPERTY_FIRE_TARGET    63
RDMOPT_MDAMAGE_PROPERTY_WIND_USER    64
RDMOPT_MDAMAGE_PROPERTY_WIND_TARGET    65
RDMOPT_MDAMAGE_PROPERTY_POISON_USER    66
RDMOPT_MDAMAGE_PROPERTY_POISON_TARGET    67
RDMOPT_MDAMAGE_PROPERTY_SAINT_USER    68
RDMOPT_MDAMAGE_PROPERTY_SAINT_TARGET    69
RDMOPT_MDAMAGE_PROPERTY_DARKNESS_USER    70
RDMOPT_MDAMAGE_PROPERTY_DARKNESS_TARGET    71
RDMOPT_MDAMAGE_PROPERTY_TELEKINESIS_USER    72
RDMOPT_MDAMAGE_PROPERTY_TELEKINESIS_TARGET    73
RDMOPT_MDAMAGE_PROPERTY_UNDEAD_USER    74
RDMOPT_MDAMAGE_PROPERTY_UNDEAD_TARGET    75
RDMOPT_BODY_ATTR_NOTHING    76
RDMOPT_BODY_ATTR_WATER    77
RDMOPT_BODY_ATTR_GROUND    78
RDMOPT_BODY_ATTR_FIRE    79
RDMOPT_BODY_ATTR_WIND    80
RDMOPT_BODY_ATTR_POISON    81
RDMOPT_BODY_ATTR_SAINT    82
RDMOPT_BODY_ATTR_DARKNESS    83
RDMOPT_BODY_ATTR_TELEKINESIS    84
RDMOPT_BODY_ATTR_UNDEAD    85
RDMOPT_BODY_ATTR_ALL    86
RDMOPT_RACE_TOLERACE_NOTHING    87
RDMOPT_RACE_TOLERACE_UNDEAD    88
RDMOPT_RACE_TOLERACE_ANIMAL    89
RDMOPT_RACE_TOLERACE_PLANT    90
RDMOPT_RACE_TOLERACE_INSECT    91
RDMOPT_RACE_TOLERACE_FISHS    92
RDMOPT_RACE_TOLERACE_DEVIL    93
RDMOPT_RACE_TOLERACE_HUMAN    94
RDMOPT_RACE_TOLERACE_ANGEL    95
RDMOPT_RACE_TOLERACE_DRAGON    96
RDMOPT_RACE_DAMAGE_NOTHING    97
RDMOPT_RACE_DAMAGE_UNDEAD    98
RDMOPT_RACE_DAMAGE_ANIMAL    99
RDMOPT_RACE_DAMAGE_PLANT    100
RDMOPT_RACE_DAMAGE_INSECT    101
RDMOPT_RACE_DAMAGE_FISHS    102
RDMOPT_RACE_DAMAGE_DEVIL    103
RDMOPT_RACE_DAMAGE_HUMAN    104
RDMOPT_RACE_DAMAGE_ANGEL    105
RDMOPT_RACE_DAMAGE_DRAGON    106
RDMOPT_RACE_MDAMAGE_NOTHING    107
RDMOPT_RACE_MDAMAGE_UNDEAD    108
RDMOPT_RACE_MDAMAGE_ANIMAL    109
RDMOPT_RACE_MDAMAGE_PLANT    110
RDMOPT_RACE_MDAMAGE_INSECT    111
RDMOPT_RACE_MDAMAGE_FISHS    112
RDMOPT_RACE_MDAMAGE_DEVIL    113
RDMOPT_RACE_MDAMAGE_HUMAN    114
RDMOPT_RACE_MDAMAGE_ANGEL    115
RDMOPT_RACE_MDAMAGE_DRAGON    116
RDMOPT_RACE_CRI_PERCENT_NOTHING    117
RDMOPT_RACE_CRI_PERCENT_UNDEAD    118
RDMOPT_RACE_CRI_PERCENT_ANIMAL    119
RDMOPT_RACE_CRI_PERCENT_PLANT    120
RDMOPT_RACE_CRI_PERCENT_INSECT    121
RDMOPT_RACE_CRI_PERCENT_FISHS    122
RDMOPT_RACE_CRI_PERCENT_DEVIL    123
RDMOPT_RACE_CRI_PERCENT_HUMAN    124
RDMOPT_RACE_CRI_PERCENT_ANGEL    125
RDMOPT_RACE_CRI_PERCENT_DRAGON    126
RDMOPT_RACE_IGNORE_DEF_PERCENT_NOTHING    127
RDMOPT_RACE_IGNORE_DEF_PERCENT_UNDEAD    128
RDMOPT_RACE_IGNORE_DEF_PERCENT_ANIMAL    129
RDMOPT_RACE_IGNORE_DEF_PERCENT_PLANT    130
RDMOPT_RACE_IGNORE_DEF_PERCENT_INSECT    131
RDMOPT_RACE_IGNORE_DEF_PERCENT_FISHS    132
RDMOPT_RACE_IGNORE_DEF_PERCENT_DEVIL    133
RDMOPT_RACE_IGNORE_DEF_PERCENT_HUMAN    134
RDMOPT_RACE_IGNORE_DEF_PERCENT_ANGEL    135
RDMOPT_RACE_IGNORE_DEF_PERCENT_DRAGON    136
RDMOPT_RACE_IGNORE_MDEF_PERCENT_NOTHING    137
RDMOPT_RACE_IGNORE_MDEF_PERCENT_UNDEAD    138
RDMOPT_RACE_IGNORE_MDEF_PERCENT_ANIMAL    139
RDMOPT_RACE_IGNORE_MDEF_PERCENT_PLANT    140
RDMOPT_RACE_IGNORE_MDEF_PERCENT_INSECT    141
RDMOPT_RACE_IGNORE_MDEF_PERCENT_FISHS    142
RDMOPT_RACE_IGNORE_MDEF_PERCENT_DEVIL    143
RDMOPT_RACE_IGNORE_MDEF_PERCENT_HUMAN    144
RDMOPT_RACE_IGNORE_MDEF_PERCENT_ANGEL    145
RDMOPT_RACE_IGNORE_MDEF_PERCENT_DRAGON    146
RDMOPT_CLASS_DAMAGE_NORMAL_TARGET    147
RDMOPT_CLASS_DAMAGE_BOSS_TARGET    148
RDMOPT_CLASS_DAMAGE_NORMAL_USER    149
RDMOPT_CLASS_DAMAGE_BOSS_USER    150
RDMOPT_CLASS_MDAMAGE_NORMAL    151
RDMOPT_CLASS_MDAMAGE_BOSS    152
RDMOPT_CLASS_IGNORE_DEF_PERCENT_NORMAL    153
RDMOPT_CLASS_IGNORE_DEF_PERCENT_BOSS    154
RDMOPT_CLASS_IGNORE_MDEF_PERCENT_NORMAL    155
RDMOPT_CLASS_IGNORE_MDEF_PERCENT_BOSS    156
RDMOPT_DAMAGE_SIZE_SMALL_TARGET    157
RDMOPT_DAMAGE_SIZE_MIDIUM_TARGET    158
RDMOPT_DAMAGE_SIZE_LARGE_TARGET    159
RDMOPT_DAMAGE_SIZE_SMALL_USER    160
RDMOPT_DAMAGE_SIZE_MIDIUM_USER    161
RDMOPT_DAMAGE_SIZE_LARGE_USER    162
RDMOPT_DAMAGE_SIZE_PERFECT    163
RDMOPT_DAMAGE_CRI_TARGET    164
RDMOPT_DAMAGE_CRI_USER    165
RDMOPT_RANGE_ATTACK_DAMAGE_TARGET    166
RDMOPT_RANGE_ATTACK_DAMAGE_USER    167
RDMOPT_HEAL_VALUE    168
RDMOPT_HEAL_MODIFY_PERCENT    169
RDMOPT_DEC_SPELL_CAST_TIME    170
RDMOPT_DEC_SPELL_DELAY_TIME    171
RDMOPT_DEC_SP_CONSUMPTION    172
RDMOPT_HP_DRAIN    173
RDMOPT_SP_DRAIN    174
RDMOPT_WEAPON_ATTR_NOTHING    175
RDMOPT_WEAPON_ATTR_WATER    176
RDMOPT_WEAPON_ATTR_GROUND    177
RDMOPT_WEAPON_ATTR_FIRE    178
RDMOPT_WEAPON_ATTR_WIND    179
RDMOPT_WEAPON_ATTR_POISON    180
RDMOPT_WEAPON_ATTR_SAINT    181
RDMOPT_WEAPON_ATTR_DARKNESS    182
RDMOPT_WEAPON_ATTR_TELEKINESIS    183
RDMOPT_WEAPON_ATTR_UNDEAD    184
RDMOPT_WEAPON_INDESTRUCTIBLE    185
RDMOPT_BODY_INDESTRUCTIBLE    186
RDMOPT_MDAMAGE_SIZE_SMALL_TARGET    187
RDMOPT_MDAMAGE_SIZE_MIDIUM_TARGET    188
RDMOPT_MDAMAGE_SIZE_LARGE_TARGET    189
RDMOPT_MDAMAGE_SIZE_SMALL_USER    190
RDMOPT_MDAMAGE_SIZE_MIDIUM_USER    191
RDMOPT_MDAMAGE_SIZE_LARGE_USER    192
//RDMOPT_ATTR_TOLERACE_ALL    193

item_randomopt_group.txt
 

Spoiler

// <randopt_groupid>,<rate>,<randopt_id1>,<randopt_value1>,<randopt_param1>{,<randopt_id2>,<randopt_value2>,<randopt_param2>,<randopt_id3>,<randopt_value3>,<randopt_param3>,<randopt_id4>,<randopt_value4>,<randopt_param4>,<randopt_id5>,<randopt_value5>,<randopt_param5>}

RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0
RDMOPTG_MaxHP,60,RDMOPT_VAR_MAXHPAMOUNT,150,0
RDMOPTG_MaxHP,30,RDMOPT_VAR_MAXHPAMOUNT,200,0
RDMOPTG_MaxHP,12,RDMOPT_VAR_MAXHPAMOUNT,300,0
RDMOPTG_MaxHP,6,RDMOPT_VAR_MAXHPAMOUNT,400,0
RDMOPTG_MaxHP,3,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0
RDMOPTG_MaxHP,2,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0,RDMOPT_VAR_MAXHPPERCENT,5,0
RDMOPTG_MaxHP,1,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,20,0,RDMOPT_VAR_MAXHPPERCENT,7,0

// MaxSP
RDMOPTG_MaxSP,100,RDMOPT_VAR_MAXSPAMOUNT,50,0
RDMOPTG_MaxSP,60,RDMOPT_VAR_MAXSPAMOUNT,100,0
RDMOPTG_MaxSP,30,RDMOPT_VAR_MAXSPAMOUNT,150,0
RDMOPTG_MaxSP,12,RDMOPT_VAR_MAXSPAMOUNT,250,0
RDMOPTG_MaxSP,6,RDMOPT_VAR_MAXSPAMOUNT,350,0
RDMOPTG_MaxSP,3,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0
RDMOPTG_MaxSP,2,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0,RDMOPT_VAR_MAXSPPERCENT,5,0
RDMOPTG_MaxSP,1,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,20,0,RDMOPT_VAR_MAXSPPERCENT,7,0

mob_drop.txt
 

Spoiler

// Monster Drop Database
// Add drop item to monster
//
// Structure:
// <mobid>,<itemid>,<rate>{,<randopt_groupid>,<flag>}
//
// <mobid>  : Monster ID. See db/[pre-]re/mob_db.txt
// <itemid> : Item ID.
// <rate>   : 1 = 0.01%
//            100 = 1%
//            10000 = 100%
//            Just like rate in mob_db.txt, adjusted by battle_config.
//            To remove original drop from monster, use 0 as rate.
// Optional:
// <randopt_groupid> : If set, the dropped item will be modified by Random Option Group based on db/[pre-]re/item_randomopt_group.txt
// <flag>            : 1 - The item is protected from steal.
//                     2 - As MVP Reward
// Additional Valkyrja's Shield as normal drop for Valkyrie Randgris
1765,2115,10000,RDMOPTG_MaxHP
1765,2115,10000,RDMOPTG_MaxSP

// Additional Valkyrian Armor and Valkyrian Shoes as MVP reward for Valkyrie Randgris
1751,2357,10000,RDMOPTG_MaxHP,2
1751,2421,10000,RDMOPTG_MaxSP,2

and there is no error with my mapserv.bat....everything working fine...just cant get the status from that random option.

Edited by ChadN4u
wrong press ENTER

Share this post


Link to post
Share on other sites
On 11/20/2016 at 10:20 PM, ChadN4u said:

yes ...
item_randomopt_group.txt -> db/pre-re/item_randomopt_group.txt & db/import/item_randomopt_group.txt
mob_drop.txt -> db/pre-re/mob_drop.txt & db/import/mob_drop.txt

const.txt

  Hide contents

RDMOPTG_MaxHP    2
RDMOPTG_MaxSP    3

//RDMOPTG_Crimson_Weapon    10204
RDMOPT_VAR_MAXHPAMOUNT    1
RDMOPT_VAR_MAXSPAMOUNT    2
RDMOPT_VAR_STRAMOUNT    3
RDMOPT_VAR_AGIAMOUNT    4
RDMOPT_VAR_VITAMOUNT    5
RDMOPT_VAR_INTAMOUNT    6
RDMOPT_VAR_DEXAMOUNT    7
RDMOPT_VAR_LUKAMOUNT    8
RDMOPT_VAR_MAXHPPERCENT    9
RDMOPT_VAR_MAXSPPERCENT    10
RDMOPT_VAR_HPACCELERATION    11
RDMOPT_VAR_SPACCELERATION    12
RDMOPT_VAR_ATKPERCENT    13
RDMOPT_VAR_MAGICATKPERCENT    14
RDMOPT_VAR_PLUSASPD    15
RDMOPT_VAR_PLUSASPDPERCENT    16
RDMOPT_VAR_ATTPOWER    17
RDMOPT_VAR_HITSUCCESSVALUE    18
RDMOPT_VAR_ATTMPOWER    19
RDMOPT_VAR_ITEMDEFPOWER    20
RDMOPT_VAR_MDEFPOWER    21
RDMOPT_VAR_AVOIDSUCCESSVALUE    22
RDMOPT_VAR_PLUSAVOIDSUCCESSVALUE    23
RDMOPT_VAR_CRITICALSUCCESSVALUE    24
RDMOPT_ATTR_TOLERACE_NOTHING    25
RDMOPT_ATTR_TOLERACE_WATER    26
RDMOPT_ATTR_TOLERACE_GROUND    27
RDMOPT_ATTR_TOLERACE_FIRE    28
RDMOPT_ATTR_TOLERACE_WIND    29
RDMOPT_ATTR_TOLERACE_POISON    30
RDMOPT_ATTR_TOLERACE_SAINT    31
RDMOPT_ATTR_TOLERACE_DARKNESS    32
RDMOPT_ATTR_TOLERACE_TELEKINESIS    33
RDMOPT_ATTR_TOLERACE_UNDEAD    34
RDMOPT_ATTR_TOLERACE_ALL    35
RDMOPT_DAMAGE_PROPERTY_NOTHING_USER    36
RDMOPT_DAMAGE_PROPERTY_NOTHING_TARGET    37
RDMOPT_DAMAGE_PROPERTY_WATER_USER    38
RDMOPT_DAMAGE_PROPERTY_WATER_TARGET    39
RDMOPT_DAMAGE_PROPERTY_GROUND_USER    40
RDMOPT_DAMAGE_PROPERTY_GROUND_TARGET    41
RDMOPT_DAMAGE_PROPERTY_FIRE_USER    42
RDMOPT_DAMAGE_PROPERTY_FIRE_TARGET    43
RDMOPT_DAMAGE_PROPERTY_WIND_USER    44
RDMOPT_DAMAGE_PROPERTY_WIND_TARGET    45
RDMOPT_DAMAGE_PROPERTY_POISON_USER    46
RDMOPT_DAMAGE_PROPERTY_POISON_TARGET    47
RDMOPT_DAMAGE_PROPERTY_SAINT_USER    48
RDMOPT_DAMAGE_PROPERTY_SAINT_TARGET    49
RDMOPT_DAMAGE_PROPERTY_DARKNESS_USER    50
RDMOPT_DAMAGE_PROPERTY_DARKNESS_TARGET    51
RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_USER    52
RDMOPT_DAMAGE_PROPERTY_TELEKINESIS_TARGET    53
RDMOPT_DAMAGE_PROPERTY_UNDEAD_USER    54
RDMOPT_DAMAGE_PROPERTY_UNDEAD_TARGET    55
RDMOPT_MDAMAGE_PROPERTY_NOTHING_USER    56
RDMOPT_MDAMAGE_PROPERTY_NOTHING_TARGET    57
RDMOPT_MDAMAGE_PROPERTY_WATER_USER    58
RDMOPT_MDAMAGE_PROPERTY_WATER_TARGET    59
RDMOPT_MDAMAGE_PROPERTY_GROUND_USER    60
RDMOPT_MDAMAGE_PROPERTY_GROUND_TARGET    61
RDMOPT_MDAMAGE_PROPERTY_FIRE_USER    62
RDMOPT_MDAMAGE_PROPERTY_FIRE_TARGET    63
RDMOPT_MDAMAGE_PROPERTY_WIND_USER    64
RDMOPT_MDAMAGE_PROPERTY_WIND_TARGET    65
RDMOPT_MDAMAGE_PROPERTY_POISON_USER    66
RDMOPT_MDAMAGE_PROPERTY_POISON_TARGET    67
RDMOPT_MDAMAGE_PROPERTY_SAINT_USER    68
RDMOPT_MDAMAGE_PROPERTY_SAINT_TARGET    69
RDMOPT_MDAMAGE_PROPERTY_DARKNESS_USER    70
RDMOPT_MDAMAGE_PROPERTY_DARKNESS_TARGET    71
RDMOPT_MDAMAGE_PROPERTY_TELEKINESIS_USER    72
RDMOPT_MDAMAGE_PROPERTY_TELEKINESIS_TARGET    73
RDMOPT_MDAMAGE_PROPERTY_UNDEAD_USER    74
RDMOPT_MDAMAGE_PROPERTY_UNDEAD_TARGET    75
RDMOPT_BODY_ATTR_NOTHING    76
RDMOPT_BODY_ATTR_WATER    77
RDMOPT_BODY_ATTR_GROUND    78
RDMOPT_BODY_ATTR_FIRE    79
RDMOPT_BODY_ATTR_WIND    80
RDMOPT_BODY_ATTR_POISON    81
RDMOPT_BODY_ATTR_SAINT    82
RDMOPT_BODY_ATTR_DARKNESS    83
RDMOPT_BODY_ATTR_TELEKINESIS    84
RDMOPT_BODY_ATTR_UNDEAD    85
RDMOPT_BODY_ATTR_ALL    86
RDMOPT_RACE_TOLERACE_NOTHING    87
RDMOPT_RACE_TOLERACE_UNDEAD    88
RDMOPT_RACE_TOLERACE_ANIMAL    89
RDMOPT_RACE_TOLERACE_PLANT    90
RDMOPT_RACE_TOLERACE_INSECT    91
RDMOPT_RACE_TOLERACE_FISHS    92
RDMOPT_RACE_TOLERACE_DEVIL    93
RDMOPT_RACE_TOLERACE_HUMAN    94
RDMOPT_RACE_TOLERACE_ANGEL    95
RDMOPT_RACE_TOLERACE_DRAGON    96
RDMOPT_RACE_DAMAGE_NOTHING    97
RDMOPT_RACE_DAMAGE_UNDEAD    98
RDMOPT_RACE_DAMAGE_ANIMAL    99
RDMOPT_RACE_DAMAGE_PLANT    100
RDMOPT_RACE_DAMAGE_INSECT    101
RDMOPT_RACE_DAMAGE_FISHS    102
RDMOPT_RACE_DAMAGE_DEVIL    103
RDMOPT_RACE_DAMAGE_HUMAN    104
RDMOPT_RACE_DAMAGE_ANGEL    105
RDMOPT_RACE_DAMAGE_DRAGON    106
RDMOPT_RACE_MDAMAGE_NOTHING    107
RDMOPT_RACE_MDAMAGE_UNDEAD    108
RDMOPT_RACE_MDAMAGE_ANIMAL    109
RDMOPT_RACE_MDAMAGE_PLANT    110
RDMOPT_RACE_MDAMAGE_INSECT    111
RDMOPT_RACE_MDAMAGE_FISHS    112
RDMOPT_RACE_MDAMAGE_DEVIL    113
RDMOPT_RACE_MDAMAGE_HUMAN    114
RDMOPT_RACE_MDAMAGE_ANGEL    115
RDMOPT_RACE_MDAMAGE_DRAGON    116
RDMOPT_RACE_CRI_PERCENT_NOTHING    117
RDMOPT_RACE_CRI_PERCENT_UNDEAD    118
RDMOPT_RACE_CRI_PERCENT_ANIMAL    119
RDMOPT_RACE_CRI_PERCENT_PLANT    120
RDMOPT_RACE_CRI_PERCENT_INSECT    121
RDMOPT_RACE_CRI_PERCENT_FISHS    122
RDMOPT_RACE_CRI_PERCENT_DEVIL    123
RDMOPT_RACE_CRI_PERCENT_HUMAN    124
RDMOPT_RACE_CRI_PERCENT_ANGEL    125
RDMOPT_RACE_CRI_PERCENT_DRAGON    126
RDMOPT_RACE_IGNORE_DEF_PERCENT_NOTHING    127
RDMOPT_RACE_IGNORE_DEF_PERCENT_UNDEAD    128
RDMOPT_RACE_IGNORE_DEF_PERCENT_ANIMAL    129
RDMOPT_RACE_IGNORE_DEF_PERCENT_PLANT    130
RDMOPT_RACE_IGNORE_DEF_PERCENT_INSECT    131
RDMOPT_RACE_IGNORE_DEF_PERCENT_FISHS    132
RDMOPT_RACE_IGNORE_DEF_PERCENT_DEVIL    133
RDMOPT_RACE_IGNORE_DEF_PERCENT_HUMAN    134
RDMOPT_RACE_IGNORE_DEF_PERCENT_ANGEL    135
RDMOPT_RACE_IGNORE_DEF_PERCENT_DRAGON    136
RDMOPT_RACE_IGNORE_MDEF_PERCENT_NOTHING    137
RDMOPT_RACE_IGNORE_MDEF_PERCENT_UNDEAD    138
RDMOPT_RACE_IGNORE_MDEF_PERCENT_ANIMAL    139
RDMOPT_RACE_IGNORE_MDEF_PERCENT_PLANT    140
RDMOPT_RACE_IGNORE_MDEF_PERCENT_INSECT    141
RDMOPT_RACE_IGNORE_MDEF_PERCENT_FISHS    142
RDMOPT_RACE_IGNORE_MDEF_PERCENT_DEVIL    143
RDMOPT_RACE_IGNORE_MDEF_PERCENT_HUMAN    144
RDMOPT_RACE_IGNORE_MDEF_PERCENT_ANGEL    145
RDMOPT_RACE_IGNORE_MDEF_PERCENT_DRAGON    146
RDMOPT_CLASS_DAMAGE_NORMAL_TARGET    147
RDMOPT_CLASS_DAMAGE_BOSS_TARGET    148
RDMOPT_CLASS_DAMAGE_NORMAL_USER    149
RDMOPT_CLASS_DAMAGE_BOSS_USER    150
RDMOPT_CLASS_MDAMAGE_NORMAL    151
RDMOPT_CLASS_MDAMAGE_BOSS    152
RDMOPT_CLASS_IGNORE_DEF_PERCENT_NORMAL    153
RDMOPT_CLASS_IGNORE_DEF_PERCENT_BOSS    154
RDMOPT_CLASS_IGNORE_MDEF_PERCENT_NORMAL    155
RDMOPT_CLASS_IGNORE_MDEF_PERCENT_BOSS    156
RDMOPT_DAMAGE_SIZE_SMALL_TARGET    157
RDMOPT_DAMAGE_SIZE_MIDIUM_TARGET    158
RDMOPT_DAMAGE_SIZE_LARGE_TARGET    159
RDMOPT_DAMAGE_SIZE_SMALL_USER    160
RDMOPT_DAMAGE_SIZE_MIDIUM_USER    161
RDMOPT_DAMAGE_SIZE_LARGE_USER    162
RDMOPT_DAMAGE_SIZE_PERFECT    163
RDMOPT_DAMAGE_CRI_TARGET    164
RDMOPT_DAMAGE_CRI_USER    165
RDMOPT_RANGE_ATTACK_DAMAGE_TARGET    166
RDMOPT_RANGE_ATTACK_DAMAGE_USER    167
RDMOPT_HEAL_VALUE    168
RDMOPT_HEAL_MODIFY_PERCENT    169
RDMOPT_DEC_SPELL_CAST_TIME    170
RDMOPT_DEC_SPELL_DELAY_TIME    171
RDMOPT_DEC_SP_CONSUMPTION    172
RDMOPT_HP_DRAIN    173
RDMOPT_SP_DRAIN    174
RDMOPT_WEAPON_ATTR_NOTHING    175
RDMOPT_WEAPON_ATTR_WATER    176
RDMOPT_WEAPON_ATTR_GROUND    177
RDMOPT_WEAPON_ATTR_FIRE    178
RDMOPT_WEAPON_ATTR_WIND    179
RDMOPT_WEAPON_ATTR_POISON    180
RDMOPT_WEAPON_ATTR_SAINT    181
RDMOPT_WEAPON_ATTR_DARKNESS    182
RDMOPT_WEAPON_ATTR_TELEKINESIS    183
RDMOPT_WEAPON_ATTR_UNDEAD    184
RDMOPT_WEAPON_INDESTRUCTIBLE    185
RDMOPT_BODY_INDESTRUCTIBLE    186
RDMOPT_MDAMAGE_SIZE_SMALL_TARGET    187
RDMOPT_MDAMAGE_SIZE_MIDIUM_TARGET    188
RDMOPT_MDAMAGE_SIZE_LARGE_TARGET    189
RDMOPT_MDAMAGE_SIZE_SMALL_USER    190
RDMOPT_MDAMAGE_SIZE_MIDIUM_USER    191
RDMOPT_MDAMAGE_SIZE_LARGE_USER    192
//RDMOPT_ATTR_TOLERACE_ALL    193

item_randomopt_group.txt
 

  Hide contents

// <randopt_groupid>,<rate>,<randopt_id1>,<randopt_value1>,<randopt_param1>{,<randopt_id2>,<randopt_value2>,<randopt_param2>,<randopt_id3>,<randopt_value3>,<randopt_param3>,<randopt_id4>,<randopt_value4>,<randopt_param4>,<randopt_id5>,<randopt_value5>,<randopt_param5>}

RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0
RDMOPTG_MaxHP,60,RDMOPT_VAR_MAXHPAMOUNT,150,0
RDMOPTG_MaxHP,30,RDMOPT_VAR_MAXHPAMOUNT,200,0
RDMOPTG_MaxHP,12,RDMOPT_VAR_MAXHPAMOUNT,300,0
RDMOPTG_MaxHP,6,RDMOPT_VAR_MAXHPAMOUNT,400,0
RDMOPTG_MaxHP,3,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0
RDMOPTG_MaxHP,2,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0,RDMOPT_VAR_MAXHPPERCENT,5,0
RDMOPTG_MaxHP,1,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,20,0,RDMOPT_VAR_MAXHPPERCENT,7,0

// MaxSP
RDMOPTG_MaxSP,100,RDMOPT_VAR_MAXSPAMOUNT,50,0
RDMOPTG_MaxSP,60,RDMOPT_VAR_MAXSPAMOUNT,100,0
RDMOPTG_MaxSP,30,RDMOPT_VAR_MAXSPAMOUNT,150,0
RDMOPTG_MaxSP,12,RDMOPT_VAR_MAXSPAMOUNT,250,0
RDMOPTG_MaxSP,6,RDMOPT_VAR_MAXSPAMOUNT,350,0
RDMOPTG_MaxSP,3,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0
RDMOPTG_MaxSP,2,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0,RDMOPT_VAR_MAXSPPERCENT,5,0
RDMOPTG_MaxSP,1,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,20,0,RDMOPT_VAR_MAXSPPERCENT,7,0

mob_drop.txt
 

  Hide contents

// Monster Drop Database
// Add drop item to monster
//
// Structure:
// <mobid>,<itemid>,<rate>{,<randopt_groupid>,<flag>}
//
// <mobid>  : Monster ID. See db/[pre-]re/mob_db.txt
// <itemid> : Item ID.
// <rate>   : 1 = 0.01%
//            100 = 1%
//            10000 = 100%
//            Just like rate in mob_db.txt, adjusted by battle_config.
//            To remove original drop from monster, use 0 as rate.
// Optional:
// <randopt_groupid> : If set, the dropped item will be modified by Random Option Group based on db/[pre-]re/item_randomopt_group.txt
// <flag>            : 1 - The item is protected from steal.
//                     2 - As MVP Reward
// Additional Valkyrja's Shield as normal drop for Valkyrie Randgris
1765,2115,10000,RDMOPTG_MaxHP
1765,2115,10000,RDMOPTG_MaxSP

// Additional Valkyrian Armor and Valkyrian Shoes as MVP reward for Valkyrie Randgris
1751,2357,10000,RDMOPTG_MaxHP,2
1751,2421,10000,RDMOPTG_MaxSP,2

and there is no error with my mapserv.bat....everything working fine...just cant get the status from that random option.

How about move entries from db/re/item_randomopt_db.txt to db/pre/item_randomopt_db.txt?

Just tested in pre-re with 2015-11-04a, working good the option info and the bonus. See the SP on these SS

screenChyraRO805.jpg

screenChyraRO806.jpg

Share this post


Link to post
Share on other sites
10 hours ago, Cydh said:

How about db handling input / re / item_randomopt_db.txt to db / pre / item_randomopt_db.txt?

Only pre-tested re on with 2015-11-04a working good Info option and the bonus. See SP On These SS

screenChyraRO805.jpg

screenChyraRO806.jpg

 

Congratulations on your work. I'm having trouble, the items are enquiry.c falling monsters, but They are not coming with spells. I am using Renewal hexed 04.11.2015. It does not return any errors and compiles fine. But not with falls item nothing ...  :unsure:

screen_Rock_RO_004.jpg

 

You're dropping without the enchantment ..

 

@EDIT
Solved!

 

Some people may have this problem. The solution is to delete the spaces at the beginning of the lines in the files (mob_drop.txt and item_randomopt_group.txt). When I applied in my generated these space, causing the files not to be read. By deleting the spaces the problem will be solved and will work very well!

Edited by Badarosk0
upload image

Share this post


Link to post
Share on other sites
13 hours ago, Badarosk0 said:

 

Congratulations on your work. I'm having trouble, the items are enquiry.c falling monsters, but They are not coming with spells. I am using Renewal hexed 04.11.2015. It does not return any errors and compiles fine. But not with falls item nothing ...  :unsure:

screen_Rock_RO_004.jpg

 

You're dropping without the enchantment ..

 

@EDIT
Solved!

 

Some people may have this problem. The solution is to delete the spaces at the beginning of the lines in the files (mob_drop.txt and item_randomopt_group.txt). When I applied in my generated these space, causing the files not to be read. By deleting the spaces the problem will be solved and will work very well!

How can it adds spaces at the beginning of the lines /omg

Share this post


Link to post
Share on other sites
On 22/11/2016 at 10:37 PM, Cydh said:

How can it adds spaces at the beginning of the lines /omg

 

I have no idea what, I just found out by reading the log files. /slur

Share this post


Link to post
Share on other sites

awesome ! thanks i'll try it

Share this post


Link to post
Share on other sites

I got some problems. the items drops from monster not having any random options.. i just kill several monster but all drops the same (no random option)

 

 

 

errorss.png

Share this post


Link to post
Share on other sites
On 3/18/2017 at 6:38 PM, mjonrest said:

I got some problems. the items drops from monster not having any random options.. i just kill several monster but all drops the same (no random option)

 

 

 

errorss.png

check your db/[pre-]re/item_randomopt_group.txt maybe has same issue with post above when you merge this manually

https://rathena.org/board/topic/108189-monster-drop-with-item-random-option-yet-for-item-random-option/#comment-320003

Share this post


Link to post
Share on other sites

help pls

[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_NOTHING' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_WATER' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_GROUND' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_FIRE' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_WIND' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_SAINT' in column 3!
[Error]: itemdb_read_randomopt_group: Invalid random group id 'RDMOPT_WEAPON_ATTR_DARKNESS' in column 3!

 

Share this post


Link to post
Share on other sites

hello, is there like a way to set rarity per amount option? like a 5 option item will drop very rare while 1 or 2 options drop more common ?

Share this post


Link to post
Share on other sites

this wont work on 2013 clients?? or below clients??

Edited by whodhell

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.