Jump to content
Zephyr

[Mapflag] Mobitemadder

Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=2746

File Name: [Mapflag] Mobitemadder

File Submitter: Zephyr

File Submitted: 28 Dec 2012

File Category: Source Modifications

Content Author: Zephyr

This mapflag sets more drops for monsters at the map that it's been attached.

Sintax:

mapname<TAB>mapflag<TAB>mobitemadder<TAB>mob_id,item_id,drop_per{,item_id,drop_per(...)}

You can set up to ~50 more items for mobs.

"drop_per" is the chance of drop, from 1 (0,01%) to 10000 (100%).

There's an example at the screenshot, I setted a Yggdrasil Berry with 100% of chance for the Poring at prt_fild08 map.

You can set a lot of mobs, but you have to set more mapflags for your maps.

Click here to download this file

  • Upvote 7
  • Love 2

Share this post


Link to post
Share on other sites

Very useful as an alternative to editing the mob_db all the time if you wanted custom drops. Thanks a lot. =)

Share this post


Link to post
Share on other sites

I'm having a problem with this. Sometimes it drops random items like refined sakkat box. I'm using mobitemadder mapflag for 3 monsters on the same map and 1 monster is dropping refined sakkat box. Others drop Falcon Flute.

Edited by RaGERO

Share this post


Link to post
Share on other sites

yeah, i encountered same problem with RaGERO

Share this post


Link to post
Share on other sites

This mapflag doesn't affect the original mob drops, they will drop the original drops setted on mob_db AND the drops setted at the mapflag.

Share this post


Link to post
Share on other sites

yes we know that, but sometimes it drops items w/o in the mob_db and set items in mapflag

Share this post


Link to post
Share on other sites

Getting an error when I tried to recompile my server. 

 

Nevermind. Got it working now. Thanks for the release!

Edited by arzzzae

Share this post


Link to post
Share on other sites
Posted (edited)

Hi !

Is there an updated version of it? I tried the current one but I'm having a strange issue:
It works, 4 grapes are appearing only when I kill poring and only in Rachel as defined BUT with 2 staffs + 1 unknown item.

rachel    mapflag    mobitemadder    1002,514,10000,514,10000,514,10000,514,10000

434296721_screenDivineAscensionRO016.jpg.1a31b4a7364c62de144f2b394ba89820.jpg

Edited by grenat50

Share this post


Link to post
Share on other sites
On 4/21/2020 at 11:33 PM, grenat50 said:

Hi !

Is there an updated version of it? I tried the current one but I'm having a strange issue:
It works, 4 grapes are appearing only when I kill poring and only in Rachel as defined BUT with 2 staffs + 1 unknown item.

rachel    mapflag    mobitemadder    1002,514,10000,514,10000,514,10000,514,10000

434296721_screenDivineAscensionRO016.jpg.1a31b4a7364c62de144f2b394ba89820.jpg

+1 for update.

Share this post


Link to post
Share on other sites

Amazing work, but needs a fix, i can work in that, someday i comment the solution in this post. +1 if you need

  • Like 1

Share this post


Link to post
Share on other sites

To fix the error about the random drop items is:

		// Mapflag 'mobitemadder' (Zephyr)
		if( map[m].mobitemadder_droplist[0].mob_id == md->mob_id ) {
			// for( i = 1; i < sizeof( map[m].mobitemadder_droplist ); i = i + 1 ) <----- Change this
			for( i = 1; i < sizeof( map[m].mobitemadder_droplist[0].item_id ); i = i + 1 ) <----- Add this

 

  • Like 1

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.