Jump to content
  • 0

@mobinfo/mi


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  420
  • Reputation:   89
  • Joined:  01/30/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  790
  • Reputation:   225
  • Joined:  01/30/13
  • Last Seen:  

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.)
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

  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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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

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