Jump to content
  • 0
Angelmelody

About Unit Type Of Map Zone System

Question

How can I divide the mob_boss into mob_sboss(mini boss) and mob_mboss(MVP)?

Here is my src mod not working properly , I was setting the disable skill unit

to mob_mboss only,but the test result was to disable both mvp and mini boss's

skills,Is there anything wrong with my code ,who can help me to fix it ? 

 

123456.patch

 

 

	/* All zone is a dynamic (very special) zone that is forcebly inherited by ALL maps automatically */	name: "All" /* changing this name requires MAP_ZONE_ALL_NAME to also be changed in src/map/map.h file */	disabled_skills: {		//both examples below disable napalm beat (id 11) to players		//MG_NAPALMBEAT: "PLAYER"		//ID11: "PLAYER"		NPC_CALLSLAVE: "MOB_MBOSS"		NPC_SUMMONSLAVE: "MOB_MBOSS"	}
Edited by Angelmelody

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

try to add a new custom mode into:

 

status.h

enum e_mode

 

 

and check for it with something like

 

(st->mode&MD_CUSTOMNAME)

 

and (sadly) edit all mini bosses you want adding the hex from this mode, that is the only way I can think of, since there is really no way to detect between boss and mini boss without editing one by one since them are checked by the same way (mvp exp) and your code don't really alters that xD

Share this post


Link to post
Share on other sites
  • 0

You could verify if the mob has an entry in mob_boss.txt iterating summon[2] (see [email protected]), if it has it is an MVP, thus monsters that have MVPExp and arent't present in bloody branch are mini-bosses :)

Share this post


Link to post
Share on other sites
  • 0

try to add a new custom mode into:

 

status.h

enum e_mode

 

 

and check for it with something like

 

(st->mode&MD_CUSTOMNAME)

 

and (sadly) edit all mini bosses you want adding the hex from this mode, that is the only way I can think of, since there is really no way to detect between boss and mini boss without editing one by one since them are checked by the same way (mvp exp) and your code don't really alters that xD

You could verify if the mob has an entry in mob_boss.txt iterating summon[2] (see [email protected]), if it has it is an MVP, thus monsters that have MVPExp and arent't present in bloody branch are mini-bosses :)

I think that should be a bug of mapzone system, becoz map->list[src->m].zone->disabled_skills->subtype was always equal to 0

 

http://herc.ws/board/index.php?app=tracker&showissue=8260

Edited by Angelmelody

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

  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.

Loading...

×
×
  • Create New...

Important Information

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