Jump to content
  • 0
Dori

@mobinfo/mi

Question

Is it possible to make the @mi/mobinfo command to read a custom text file instead of mob_db.txt?

The reason I want to do this is because I want players to only see a specific amount of mobs and not ever mobs (G mobs and crap). 

 

If this is possible, please guide me to properly edit the source code for this. Thank you in advance!

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

Maybe you can use the mob_db, just filter out 0 exp mobs. That gets rid of most of the event/quest mobs. Is that suitable for you?

Share this post


Link to post
Share on other sites

Maybe you can use the mob_db, just filter out 0 exp mobs. That gets rid of most of the event/quest mobs. Is that suitable for you?

 

Uhm, If I filter these Gmobs out, the MvPs will have no summons, so yeah. that's a problem. I just wish that @mi could read my own 'mob_db'. My own mob_db without any of the unnecessary mobs in it. This is just for @mi. 

 

Edit: May be this way is too complicated?

If so, how can I block off certain MobIDs being read from @mi through editing the src code?

Edited by Phenex

Share this post


Link to post
Share on other sites

Still need this ..Is there any one who can help?

Share this post


Link to post
Share on other sites

Don't filter it when reading the mob_db, instead you filter it whenever the atcommand is called.

Also @mi is already filtering out monster with no exp, so that should already be working if you are using rAthena.

But anyway, you can easily implement this by going to mob.c and find the following function:

static int mobdb_searchname_array_sub(struct mob_db* mob, const char *str)
{
	if (mob == mob_dummy)
		return 1;
	if(!mob->base_exp && !mob->job_exp && mob->spawn[0].qty < 1)
		return 1; // Monsters with no base/job exp and no spawn point are, by this criteria, considered "slave mobs" and excluded from search results
	if(stristr(mob->jname,str))
		return 0;
	if(stristr(mob->name,str))
		return 0;
	return strcmpi(mob->jname,str);
}
If you return "1" here, then the monster will be excluded from @mi. (You can already see the check that it needs to give exp to be included.)

Share this post


Link to post
Share on other sites

  1. make new flie, mob_avaialble_in_at_mi.txt, for flagging it as "show"

add new field for "show" in mob db, so only mob with "show" = true will be shown when @mi is used

Share this post


Link to post
Share on other sites

@Playtester: I see. Yeah I am using rAthena. I think this is good enough I guess. Thank you.

@Cydh: From what I understand, this is a mapflag, correct? I have a few questions:

  • Where does this mob_avaialble_in_at_mi.txt go in, the mapflags folder?
  • How do I add a new field in the mob db?
  • Which src files must I edit to implement this mapflag?

Thanks in return.

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

Important Information

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