Jump to content

Advanced common drop system


dreamunreal

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   8
  • Joined:  11/16/11
  • Last Seen:  

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.

ra has own special drop system.

my patch and ra has conflict(sorry for my bad english)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   4
  • Joined:  02/01/12
  • Last Seen:  

ra has own special drop system.

my patch and ra has conflict(sorry for my bad english)

I see, alright. Found out about rA's drop system a while ago. Cool release though. and thank you.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   0
  • Joined:  11/13/11
  • Last Seen:  

have error

c:documents and settingsadministratordesktoprAthenasrcmapmob.c(4395) : warning C4013: 'mob_common_droprate' undefined; assuming extern returning int

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

19090102.png

can't @@"

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   47
  • Joined:  04/01/12
  • Last Seen:  

how about setting it to:

itemid,rate,monsterid

this way we can remove the "common_drop.adv_flag" setting and will work same way, but no more config

so we can just put 0 in monsterid field instead or an actual monsterid if we want the item to have the global specified drop rate

if we put 0 in monsterid then it will affect all monsters with elunium drop

eg.

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

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

Edited by frenzmu06
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

Any update with this?

int common_drop1[MAX_MOB_DB][0x8000];

4000 * 32768 * 4 bytes = 500 MB of memory

  • Upvote 1
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

I applied this on fresh rA, and it doesn't seem to work anymore?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

why still need to apply on rA? isnt rA already got a similar 1 ?

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/mob_item_ratio.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

true, but I thought OP, said it is something that that system couldn't do?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

this patch work for me after a little mod to rathena :)

im using latest rathena.. and everything is ok :P

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/18/12
  • Last Seen:  

Can you teach me how to do it on rathena. i only wanted to edit 985 and 984 thats all. /kis2

And where should i put the patch... any help.

Edited by dice4real
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  188
  • Reputation:   16
  • Joined:  06/12/12
  • Last Seen:  

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)

Can i know if this is applicable for eathena latest version??

Link to comment
Share on other sites

  • 5 months later...

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

Please Solved This

 

4>  mapcache.vcxproj -> C:\Users\PC-rAthena\Desktop\trunk\vcproj-10\..\mapcache.exe
3>  char-server_sql.vcxproj -> C:\Users\Skep'NService\Desktop\trunk\vcproj-10\..\char-server_sql.exe
========== Rebuild All: 2 succeeded, 2 failed, 0 skipped ==========
2>LINK : fatal error LNK1104: cannot open file '..\login-server_sql.exe'
3>------ Rebuild All started: Project: char-server_sql, Configuration: Debug Win32 ------
1>c:\users\PC-rAthena\desktop\trunk\src\map\battle.c(5893): error C2039: 'common_drop_flag' : is not a member of 'Battle_Config'
1>          c:\users\PC-rAthena\desktop\trunk\src\map\battle.h(107) : see declaration of 'Battle_Config'
1>c:\users\PC-rAthena\desktop\trunk\src\map\battle.c(5893): warning C4047: 'initializing' : 'int *' differs in levels of indirection from 'int'
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

i dont get it.. how is this different from the mob_item_ratio.txt?

can this add custom item drop on mob?


 

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   0
  • Joined:  11/30/12
  • Last Seen:  

Can someone make this works with latest revision?

Link to comment
Share on other sites

  • 7 years later...

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