dreamunreal Posted December 26, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Share Posted December 26, 2011 (edited) 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 January 21, 2012 by dreamunreal 2 Quote Link to comment Share on other sites More sharing options...
Legato Posted December 26, 2011 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Share Posted December 26, 2011 Argh. Link is down. Couldn't download. Quote Link to comment Share on other sites More sharing options...
Angel Posted December 26, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 85 Reputation: 17 Joined: 12/25/11 Last Seen: 12 hours ago Share Posted December 26, 2011 I can´t too I hope and upload this mod in a external link like mediafire.. Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted December 26, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted December 26, 2011 I can´t too I hope and upload this mod in a external link like mediafire.. china fire wall is forbidden mediafire. Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted December 26, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted December 26, 2011 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 Quote Link to comment Share on other sites More sharing options...
Angel Posted December 27, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 85 Reputation: 17 Joined: 12/25/11 Last Seen: 12 hours ago Share Posted December 27, 2011 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 ^^ Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted December 27, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted December 27, 2011 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. Quote Link to comment Share on other sites More sharing options...
Angel Posted December 28, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 85 Reputation: 17 Joined: 12/25/11 Last Seen: 12 hours ago Share Posted December 28, 2011 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 Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted December 28, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted December 28, 2011 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 enjoy it type 1.patch Quote Link to comment Share on other sites More sharing options...
Angel Posted December 28, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 85 Reputation: 17 Joined: 12/25/11 Last Seen: 12 hours ago Share Posted December 28, 2011 Awww tnks very much sir ^^ regards Quote Link to comment Share on other sites More sharing options...
manabeast Posted January 3, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted January 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted January 3, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted January 3, 2012 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. 1 Quote Link to comment Share on other sites More sharing options...
manabeast Posted January 6, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted January 6, 2012 oh... thx.... i now finally understand why emistry suggest this system... cool thx =) Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 15, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Friday at 11:44 PM Share Posted January 15, 2012 Every server restart, we need to reload the mobdb?.. Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Just now Share Posted January 16, 2012 i guess no...since server restart will reload everything..... Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 16, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Friday at 11:44 PM Share Posted January 16, 2012 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 Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Just now Share Posted January 16, 2012 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....>.< Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 16, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Friday at 11:44 PM Share Posted January 16, 2012 (edited) 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 January 16, 2012 by wakoko321 1 Quote Link to comment Share on other sites More sharing options...
manabeast Posted January 18, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted January 18, 2012 why i apply this patch it come out warning? and say unknown setting. Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted January 21, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted January 21, 2012 (edited) 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... 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 January 21, 2012 by dreamunreal 1 Quote Link to comment Share on other sites More sharing options...
manabeast Posted February 21, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted February 21, 2012 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? Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted February 26, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted February 26, 2012 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. Quote Link to comment Share on other sites More sharing options...
manabeast Posted February 27, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted February 27, 2012 about source i dun really know anything of them. so in my position just patch all and recompiled? Quote Link to comment Share on other sites More sharing options...
dreamunreal Posted March 2, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 28 Reputation: 8 Joined: 11/16/11 Last Seen: May 30, 2023 Author Share Posted March 2, 2012 about source i dun really know anything of them. so in my position just patch all and recompiled? yes. 1 Quote Link to comment Share on other sites More sharing options...
integral Posted March 3, 2012 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 167 Reputation: 4 Joined: 02/01/12 Last Seen: August 20, 2017 Share Posted March 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.