Jump to content
dreamunreal

Advanced common drop system

Recommended Posts

58ba0d7b205cd41209532d662392665f-.jpg

File Name: Advanced common drop system

File Submitter: dreamunreal

File Submitted: 12-26 2011

File Updated: 12-26 2011

File Category: Source Modifications

Why make it:

I think it would be more flexible, if it would work this way:

2115,1 would make valkyrie shield is not effected by drop rate, so you can use the full scale (from 0,01% to 100%).

The original idea would force that, every mob has to drop that item with the SAME chance. However this way the same item can be dropped with different chances from different mobs.

Ind's Special item drop system can't do it.

so. I base on Ind's work to finish this to solve xazax's probrom.

How to use it:

1: create item_droprate.txt in db folder as item database. not a npc.

2: find conf/battle/drop.conf add new line common_drop.adv_flag: 1 as a switch,

if you use type 2 (switch off)

format in item_droprate.txt must like this:

any number,itemid,rate

e.g:

0,985,10000

1000,985,10000 // it will set item 985 drop rate to 100%

if your use type 1(switch on)

format in item_droprate.txt must like this:

mobid,itemid,rate

e.g:

1219,4120,10000 // it will set knight of abyss's knight of abyss card's drop rate to 100%

1150,985,1 // it will set moonlight_flower's elunium's drop rate to 0.01%

if you add new line or modify a line in item_droprate.txt it will run when you reload mobdb,after save.

Other:

this patch. base on eAthena r15049 trunk.

that is all,. enjoy it.

Download:

download 1: Click here to download this file(*.patch)

mirror1: save as (*.patch)

Edited by dreamunreal
  • Upvote 2
Link to comment
Share on other sites

Argh. Link is down. Couldn't download.

I can´t too

I hope and upload this mod in a external link like mediafire..

i can wait for admin to check my upload..

add mirror by pastebin

Link to comment
Share on other sites

it's working perfectly, only i find some error at compilar in the line of patch 94 " if( mobdb_checkid(atoi(str[0])) == 0 && battlec_config.common_drop_flag)" only delete that letter "c" and no error show.

ingame only make @reloadmobdb and the rates are the you put in item_droprate.txt

Many tnks ^^

Link to comment
Share on other sites

it's working perfectly, only i find some error at compilar in the line of patch 94 " if( mobdb_checkid(atoi(str[0])) == 0 && battlec_config.common_drop_flag)" only delete that letter "c" and no error show.

ingame only make @reloadmobdb and the rates are the you put in item_droprate.txt

Many tnks ^^

bug fixed. thank for your report.

Link to comment
Share on other sites

Hi sir dreamunreal

Can you please do that in your mod has no option to type 2, only this type 1 please ..

thank you very much

regards

Link to comment
Share on other sites

sir, i dunno use mind teach me?

1.adjust at which part? drop.conf / item_droprate.txt (about item_droprate.txt create myself? run like normal npc?)

2.there will be Advanced common & common drop type 2

-if i want use type 1 or 2 how?

-like this if advanced common? (mob,id,0.01%)

1150,985,1

-like this if common type 2? (any number,id,rate 100%)

1000,985,10000

Link to comment
Share on other sites

sir, i dunno use mind teach me?

1.adjust at which part? drop.conf / item_droprate.txt (about item_droprate.txt create myself? run like normal npc?)

2.there will be Advanced common & common drop type 2

-if i want use type 1 or 2 how?

-like this if advanced common? (mob,id,0.01%)

1150,985,1

-like this if common type 2? (any number,id,rate 100%)

1000,985,10000

1: create item_droprate.txt in db folder as item database. not a npc.

2: find conf/battle/drop.conf add new line common_drop.adv_flag: 1 as a switch,

if you use type 2 (switch off)

format in item_droprate.txt must like this:

any number,itemid,rate

e.g:

0,985,10000

1000,985,10000 // it will set item 985 drop rate to 100%

if your use type 1(switch on)

format in item_droprate.txt must like this:

mobid,itemid,rate

e.g:

1219,4120,10000 // it will set knight of abyss's knight of abyss card's drop rate to 100%

1150,985,1 // it will set moonlight_flower's elunium's drop rate to 0.01%

if you add new line or modify a line in item_droprate.txt it will run when you reload mobdb,after save.

  • Upvote 1
Link to comment
Share on other sites

i guess no...since server restart will reload everything.....

Already tried it, everytime i restart the server, it reads 0 entries in the item_droprate.txt

But when i use reloadmobdb, it reads the entries in the item_droprate.txt

Link to comment
Share on other sites

owh...then i think you have to keep use that xD

guess dreamunreal forget to add a patch to load that text file upon server is restart / booting....xD

sorry my bad...coz i didnt tested it....>.<

Link to comment
Share on other sites

owh...then i think you have to keep use that xD

guess dreamunreal forget to add a patch to load that text file upon server is restart / booting....xD

sorry my bad...coz i didnt tested it....>.<

Don't know what went wrong, it suddenly works...

It's just reading the item_droprate.txt when Dropflag is set to 0...

But i'm experiencing a bug...

Dropflag 0 is not working...

1000,985,1

that should make elunium .01% drop right? but still 100% for every mob...

Edited by wakoko321
  • Upvote 1
Link to comment
Share on other sites

i guess no...since server restart will reload everything.....

Already tried it, everytime i restart the server, it reads 0 entries in the item_droprate.txt

But when i use reloadmobdb, it reads the entries in the item_droprate.txt

that is impossable...

post-364-0-33298600-1327132283_thumb.jpg

i test in my localhost.

it always loaded when server boot/relaodmobdb/mapexit

did you sure you has add a line

+ // load common drop function. by [dreamunreal]
+ mob_common_droprate();

in mob.c's function static void mob_load(void) ???

--------------------------------------------------------------------------------------------------------------------------------------------

owh...then i think you have to keep use that xD

guess dreamunreal forget to add a patch to load that text file upon server is restart / booting....xD

sorry my bad...coz i didnt tested it....>.<

Don't know what went wrong, it suddenly works...

It's just reading the item_droprate.txt when Dropflag is set to 0...

But i'm experiencing a bug...

Dropflag 0 is not working...

1000,985,1

that should make elunium .01% drop right? but still 100% for every mob...

how about your switch

common_drop.adv_flag: 1

you need turn off this switch if you want to set drop rate for any monster who drop this item!

if this switch is on. the number must monster' nameid.

id 1000 is a dummy monster as my memory. is it?.

--------------------------------------------------------------------------------------------------------------------------------------------

why i apply this patch it come out warning? and say unknown setting.

this patch base EA... not 3ceam.

if you want to use in 3ceam that patch it by your hand!.

Edited by dreamunreal
  • Upvote 1
Link to comment
Share on other sites

you late reply i also forgot have this post =D haha, sorry...

oh when i click apply patch have 5 option, i just click number 1 & 2. do i need click all? then save?

post-472-0-08556700-1329834396_thumb.png

Link to comment
Share on other sites

you late reply i also forgot have this post =D haha, sorry...

oh when i click apply patch have 5 option, i just click number 1 & 2. do i need click all? then save?

make sure you will patch in eathena, if you sure,patch all and recompiled.

other project please edit that code reference for my file by your hand.

Link to comment
Share on other sites

I tried using this patch in my rAthena svn: 15641, but when I tried running it, the cmd message stops at "Awaiting maps from map-server", Any solution for this? Thank you.

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...

Important Information

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