Jump to content

[Mapflag] droprate


Xantara

Recommended Posts


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  243
  • Reputation:   206
  • Joined:  11/28/11
  • Last Seen:  

File Name: [Mapflag] droprate

File Submitter: Xantara

File Submitted: 18 Dec 2011

File Category: Source Modifications

Information

This source modification allows certain maps that have the droprate mapflag attached to have a modified drop rate based on the state/flag given. It affects all mobs on that map, including MvP. However, items that are looted by mobs (eg. Poring) are not affected (they have to drop).

The modified rate is applied after all the other rate modifiers (such as those in the conf/battle/exp.conf, monster size, etc.)

This bypasses the min and max drops in the exp.conf file and the drop_rate0item configuration.

Mapflags noloot, nomobloot, and nomvploot take precedence over the droprate mapflag.

There is also a battle configuration that allows you to toggle the global droprate effect on and off.

Great for event or special maps where you want the items to drop less or more frequently without having to duplicate the mob(s).

Syntax

<mapname> mapflag droprate{ <rate>}

Configuration

// Enable the droprate mapflag? (Note 1)

droprate_mapflag: 1

Documentation

The optional numeric parameter, rate, changes the drop rate of the mobs of the specified map. The number is in percent. Paramenter cannot be 0 (it will default to 100).

Default is 100% (meaning that the drop rates are not affected).

Example Snippet

// Mobs that are killed in Prontera have their drop rate halved
  // ie. Poring normally drops Empty Bottle at 100% (@mi). If spawned in Prontera, the drop would become 50%
  prontera	mapflag	droprate	50

  // Mobs that are killed in Geffen have a 2x (+200%) the drop rate
  // ie. Fabre normally drops Clover at 10% (@mi). If spawned in Geffen, the drop of Fluff would become 20%
  geffen	mapflag	droprate	200

Credits

Created by Xantara

88x31.png

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Click here to download this file

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

its posible to reduce drop till 0?

  // Mobs that are killed in Geffen have a -100x (-100%) the drop rate
  // ie. Fabre normally drops Clover at 10% (@mi). If spawned in Geffen, the drop of Fluff would become 0%
  geffen mapflag droprate 0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  243
  • Reputation:   206
  • Joined:  11/28/11
  • Last Seen:  

No, you currently not able to set the drop to 0. This is because there are mapflags noloot, nomobloot, and nomvploot that can do this for you already =)

Let me know if you have further questions~

I'll also update the patch file to be usable with the latest rAthena revision~

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

wow was looking for the file on eAthena.ws and it was already here nice :)

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

can you say me please how to istall the patch file? I like to patch this to my server.

Thanks you!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  243
  • Reputation:   206
  • Joined:  11/28/11
  • Last Seen:  

Hi Hirasu,

Thanks for your interest in my modification =)

Here is a Wiki link regarding how to apply the patch file (either using TortoiseSVN or Manually): http://rathena.org/wiki/Diff

Regards,

~ Xantara

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

@Xantara

Thank you !

I like this mapflag is very useful!!

  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/18/11
  • Last Seen:  

Is it possible to make mapflag exprate?

Link to comment
Share on other sites


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

Is it possible to make mapflag exprate?

think both of these can help you

//mf_jexp 39
mapname	mapflag	jexp
//mf_bexp 40
mapname	mapflag	bexp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/18/11
  • Last Seen:  

Is it possible to make mapflag exprate?

think both of these can help you

//mf_jexp 39
mapname	mapflag	jexp
//mf_bexp 40
mapname	mapflag	bexp

Thanks, I'll test it today~

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Will the reduced drop rate be shown in the @mi and @rates? Or will it just show as normal as set in battle configuration while it is affected by this mapflag?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  243
  • Reputation:   206
  • Joined:  11/28/11
  • Last Seen:  

Currently, the reduced drop rate won't show in @mi and @rates; it will show as normal.

However, an edit to @mi (or a new atcommand) is possible for it to show the reduce drop rate for that map.

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

I agree. Edit / solution for those @commands should be posted here as well.

Great work, btw! /no1

Link to comment
Share on other sites

  • 6 years later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  128
  • Reputation:   11
  • Joined:  11/26/16
  • Last Seen:  

On 12/19/2011 at 12:04 PM, Xantara said:

File Name: [Mapflag] droprate

File Submitter: Xantara

File Submitted: 18 Dec 2011

File Category: Source Modifications

Information

This source modification allows certain maps that have the droprate mapflag attached to have a modified drop rate based on the state/flag given. It affects all mobs on that map, including MvP. However, items that are looted by mobs (eg. Poring) are not affected (they have to drop).

The modified rate is applied after all the other rate modifiers (such as those in the conf/battle/exp.conf, monster size, etc.)

This bypasses the min and max drops in the exp.conf file and the drop_rate0item configuration.

Mapflags noloot, nomobloot, and nomvploot take precedence over the droprate mapflag.

There is also a battle configuration that allows you to toggle the global droprate effect on and off.

Great for event or special maps where you want the items to drop less or more frequently without having to duplicate the mob(s).

Syntax

Configuration

Documentation

Example Snippet

 


// Mobs that are killed in Prontera have their drop rate halved
  // ie. Poring normally drops Empty Bottle at 100% (@mi). If spawned in Prontera, the drop would become 50%
  prontera	mapflag	droprate	50

  // Mobs that are killed in Geffen have a 2x (+200%) the drop rate
  // ie. Fabre normally drops Clover at 10% (@mi). If spawned in Geffen, the drop of Fluff would become 20%
  geffen	mapflag	droprate	200
 

 

Credits

Created by Xantara

88x31.png

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Click here to download this file

Hello there. Can you update this source edit please.

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  03/05/19
  • Last Seen:  

@Xantara hi there, does this script works in 2019?

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