Jump to content

Release: ALL monster drop item with Random Option


nutminemz

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

ALL monster drop item with Random Option


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

 


 

Edited by nutminemz
  • Upvote 3
  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   2
  • Joined:  01/12/16
  • Last Seen:  

i don't download your file./sob/sob/sob/sob

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  21
  • Reputation:   0
  • Joined:  02/16/12
  • Last Seen:  

i paid.... and many errors "Invalid Randopt_groupid" 

give pls list of constants

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

5 hours ago, SwaTik said:

i paid.... and many errors "Invalid Randopt_groupid" 

give pls list of constants

 

make sure your /db/pre-re/item_randomopt_db.txt is 201 lines, 16.7 KB

or replace it with this

  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

Hi!
I dont want my crimson weapons to keep their randomopt element, but also gain bonus from your script to the 2nd and 3rd option.
How could i make it?

And also, where/how can i edit the text of the description? its too long, and players cant read it

+1Q:"Decrease critical dmg +15%" whats that? will it decrease enemy's critical dmg on me by 15% or?

Thanks in advice

randomopt.PNG

rand22.PNG

Edited by Sunset
improved
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

26 minutes ago, Sunset said:

Hi!
I dont want my crimson weapons to keep their randomopt element, but also gain bonus from your script to the 2nd and 3rd option.
How could i make it?

And also, where/how can i edit the text of the description? its too long, and players cant read it

+1Q:"Decrease critical dmg +15%" whats that? will it decrease enemy's critical dmg on me by 15% or?

Thanks in advice

randomopt.PNG

rand22.PNG

A.#1. in your mob_drop.text ,add line #22 - #123 of https://github.com/rathena/rathena/blob/master/db/re/mob_drop.txt
A.#1.1 i dont know - -'
A.#2 it is damage reduction when receiving critical hit.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

19 minutes ago, nutminemz said:

A.#1. in your mob_drop.text ,add line #22 - #123 of https://github.com/rathena/rathena/blob/master/db/re/mob_drop.txt
 

I've made this, but aint working.

instead of:

2071,28007,50,RDMOPTG_WEP // HEADLESS_MULE
this:

2071,28007,50,RDMOPTG_Crimson_Weapon // HEADLESS_MULE
 

not? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

1 minute ago, Sunset said:

I've made this, but aint working.

instead of:

2071,28007,50,RDMOPTG_WEP // HEADLESS_MULE
this:

2071,28007,50,RDMOPTG_Crimson_Weapon // HEADLESS_MULE
 

not? 

i think it is okay to keep it both line 

2071,28007,50,RDMOPTG_WEP // HEADLESS_MULE
2071,28007,50,RDMOPTG_Crimson_Weapon // HEADLESS_MULE

anyway i never test multi grouping before let me know if you see error msg.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

Just now, nutminemz said:

i think it is okay to keep it both line 

2071,28007,50,RDMOPTG_WEP // HEADLESS_MULE
2071,28007,50,RDMOPTG_Crimson_Weapon // HEADLESS_MULE

anyway i never test multi grouping before let me know if you see error msg.

I dont get error, but the crimson weapons doesnt gets element enchant from their option group, only from yours :V

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

What is the fastest/easiest way to decrease the droprate of these items? do i really have to rewrite ALL of them one by one?

solved, microsoft word is my best friend. 

Edited by Sunset
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/02/16
  • Last Seen:  

Pls Tell me How to install because i dont understand

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

5 hours ago, Get said:

Pls Tell me How to install because i dont understand

use Latest release or after Git Hash: e59cdff , you just copy and replace .

but for athena before 28/04/2107 you need to diff src with Initial release item random option for monster drop #2065

then copy and replace.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

can you help me.. im always getting wind element and DEF 20+ Flee 30 on body armor..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

4 hours ago, mhielo12 said:

can you help me.. im always getting wind element and DEF 20+ Flee 30 on body armor..

use v1.1 (ado-2) then tell me if it solve your problem.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

5 minutes ago, nutminemz said:

use v1.1 (ado-2) then tell me if it solve your problem.

isn't ado3? or ado2 doesnt includes that enchantement?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

hi the ado-2 works fine but the problem now is all item get 3 random option instead of getting randomly 1-3 option please help thanks

Edited by mhielo12
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

3 hours ago, mhielo12 said:

hi the ado-2 works fine but the problem now is all item get 3 random option instead of getting randomly 1-3 option please help thanks

adjust drop rate by edit item_radomopt_group.txt (ado-3)

use your favorited text-editor like notepad++ or ms word

eg.

replace ",1000,RDMOPT" with ",100,RDMOPT"
replace ",400,RDMOPT" with ",40,RDMOPT"

 

Edited by nutminemz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

my problem is.. I want 1 option to be more easy to get like it will common for an item to have it.. 2 option medium  ... 3 option hard to get to make it more rare.. 

because it is more easy to get 3option rather than getting 1 option.. and 3 options are is like thousand in value unlike 1 option and 2 option only few.. 

asdsadd.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

Hi!

Did you test ado3 for armors?

There is no other enchant than wind element, and def+30 Flee+20.

Fill you fix it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

7 minutes ago, Sunset said:

Hi!

Did you test ado3 for armors?

There is no other enchant than wind element, and def+30 Flee+20.

Fill you fix it?

adjust drop rate by edit item_radomopt_group.txt (ado-3)

use your favorited text-editor like notepad++ or ms word

eg.

replace ",1000,RDMOPT" with ",100,RDMOPT"
replace ",400,RDMOPT" with ",40,RDMOPT"

But my problem now is.. 3 option is more common than having 1 option.. i like 1 option to be common to have and 3 option to be rare or hard to have..

Edited by mhielo12
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

Oh dont get me wrong, ive solved it, thanks for the answer tho!

Just i think its should be fixed here, not only at me. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

Hi can you help me.. because 3 random option was being easy to get.. i want 3 random option to be rare so players would hunt it.. and i want random option 1 and 2 to be easy to get.. change rate didnt solve my problem.. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   19
  • Joined:  02/01/17
  • Last Seen:  

with ado-3, item with 3option is rare (normal drop rate)

but if your server is running on high drop rate (in drop conf)

you have to adjust option rate suit your server drop rate like example above.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  101
  • Reputation:   3
  • Joined:  09/15/16
  • Last Seen:  

Can this be used in client date

2013-08-07?

Link to comment
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...