About Unit Type Of Map Zone System

Angelmelody

(\ /) ( . .)
Messages
772
Points
0
Age
32
Location
new_1-1,53,111
Github
Angelmelody
Emulator
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

Code:
	/* 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"	}
 

Attachments

Last edited by a moderator:
This  has been bothering me for a long time ,i hope somebody can help me
default_smile.png


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


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

 
Last edited by a moderator:
Back
Top