Jump to content
  • 0

Remove drops from Plant Cultivation


DrakeSky

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

Please help! I don't know the specific forum for my issue.

How to remove the drop of the black mushroom and red mushroom from Plant Cultivation of Biochemist?

TIA!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  740
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

12 minutes ago, DrakeSky said:

Please help! I don't know the specific forum for my issue.

How to remove the drop of the black mushroom and red mushroom from Plant Cultivation of Biochemist?

TIA!

unlike flora / 

// Whether or not Marine Spheres and Floras summoned by Alchemist drop items?
// This setting has three available values:
// 0: Nothing drops.
// 1: Only marine spheres drop items.
// 2: All alchemist summons drop items.
alchemist_summon_reward: 1

easy to way just make duplicate of that monster with no drops or make new condition for this skill

mob.cpp

	if( !(type&1) && !map_getmapflag(m, MF_NOMOBLOOT) && !md->state.rebirth && (
		!md->special_state.ai || //Non special mob
		battle_config.alchemist_summon_reward == 2 || //All summoned give drops
		(md->special_state.ai==AI_SPHERE && battle_config.alchemist_summon_reward == 1) //Marine Sphere Drops items.
		) )
	// Plant Cultivation [Celest]
	case CR_CULTIVATION:
		if (sd) {
			if( map_count_oncell(src->m,x,y,BL_CHAR,0) > 0 )
			{
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				return 1;
			}
			clif_skill_poseffect(src,skill_id,skill_lv,x,y,tick);
			if (rnd()%100 < 50) {
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
			} else {
				TBL_MOB* md = NULL;
				int t, mob_id;

				if (skill_lv == 1)
					mob_id = MOBID_BLACK_MUSHROOM + rnd() % 2;
				else {
					int rand_val = rnd() % 100;

					if (rand_val < 30)
						mob_id = MOBID_GREEN_PLANT;
					else if (rand_val < 55)
						mob_id = MOBID_RED_PLANT;
					else if (rand_val < 80)
						mob_id = MOBID_YELLOW_PLANT;
					else if (rand_val < 90)
						mob_id = MOBID_WHITE_PLANT;
					else if (rand_val < 98)
						mob_id = MOBID_BLUE_PLANT;
					else
						mob_id = MOBID_SHINING_PLANT;
				}

				md = mob_once_spawn_sub(src, src->m, x, y, "--ja--", mob_id, "", SZ_SMALL, AI_NONE);
				if (!md)
					break;
				if ((t = skill_get_time(skill_id, skill_lv)) > 0)
				{
					if( md->deletetimer != INVALID_TIMER )
						delete_timer(md->deletetimer, mob_timer_delete);
					md->deletetimer = add_timer (tick + t, mob_timer_delete, md->bl.id, 0);
				}
				mob_spawn(md);
			}
		}
		break;

 

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

×
×
  • Create New...