Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted
On 8/17/2021 at 8:50 AM, DemonChuck said:

Monster drop zeny for a low chance and can edit by monster?

poring = 1% chance of dropping zeny
poporing = 2% chance of dropping zeny

Thanks

Another way that's a little more involved but probably better for the server. Would be to just add an item that the mob could drop which when consumed increases the players zeny by a specific amount. You could make an item for each amount like 1k 10k 100k etc.

-	script	sampledrop	-1,{
OnInit:
	addmonsterdrop 1002,90000,100; // 1% Poring Zeny Bag
}

Example item_db_usable

  - Id: 90000
    AegisName: Zeny Bag
    Name: Zeny Bag
    Type: Cash
    Buy: 10
    Weight: 10
    EquipLevelMin: 1
    Script: |
      Zeny += 10000;

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

Again another way that you might accomplish this would be to enable:

// Zeny from mobs
zeny_from_mobs: yes

In monster.conf

And then edit the formula in mob.cpp to follow some kind of curve based on mob level.

			if(battle_config.zeny_from_mobs && md->level) {
				 // zeny calculation moblv + random moblv [Valaris]
				zeny=(int) ((md->level+rnd()%md->level)*per*bonus/100.);
				if(md->db->mexp > 0)
					zeny*=rnd()%250;
			}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...