Introducing Hercules' Map Zone Database

Can you enlighten me with adjust_skill_damage?

Say for example I want to adjust its damage in all maps (this includes damage done to monster, players, boss, everything)..

Do I need to set first at disabled skills like this..

RK_HUNDREDSPEAR: "NONE"

then..

mapflags: ("adjust_skill_damage RK_HUNDREDSPEAR    250")

if yes.. This is just what I did and I'm receiving lots of warnings. Thanky ou.
Have you remembered to put correct tabulation spaces? Just like this:

mapflags: ("adjust_skill_damage RK_HUNDREDSPEAR 250")
And try to check if you haven't mis-typed the map zone mapflag if you declared a new zone or applied mapflags to any map. It'd also be better if you tell us what's the warning you're getting because that will help us to help you.

 
Yes. I set the tabulation correctly. (<tab>"adjust_skill_damage<tab>RK_HUNDREDSPEAR<tab>250")

 
That first tabulation space is not needed and I think that's what make you get all those errors. Ind used a space there, but you may decide not to use anything.

 
Okay here's what I did.. Just used normal mapflags set to it. just added the hundred and the warning shows up.

 

 

{
/* Normal zone is applied to all maps that are not pkable (where players cant fight each other)  */
/* However, it wont be applied to maps with its own zones (specified thru mapflag) */
name: "Normal" /* changing this name requires MAP_ZONE_NORMAL_NAME to also be changed in src/map/map.h file */

disabled_skills: {
WM_LULLABY_DEEPSLEEP: "PLAYER"
WM_SIRCLEOFNATURE: "PLAYER"
WM_SATURDAY_NIGHT_FEVER: "PLAYER"
SO_ARRULLO: "PLAYER"
CG_HERMODE: "PLAYER"
}

disabled_items: {

}
mapflags: ("adjust_skill_damage RK_HUNDREDSPEAR 250")
},

Code:
removing flag from 1@xm_d (file '', line '1').[Warning]: npc_parse_mapflag: Missing 5th param for 'adjust_skill_damage' flag!removing flag from 1@eom (file '', line '1').[Warning]: npc_parse_mapflag: Missing 5th param for 'adjust_skill_damage' flag!removing flag from 1@jtb (file '', line '1').[Status]: Event 'OnInit' executed with '1640' NPCs.
 
Something about it is indeed broken, I'll get to work on it

 
Hercules Map Zone DB Update

  • Added New "All" Zone, easy way to add modifiers to all maps in the game. Automatically inherited by all existent zones.
  • Added new zone setting disabled_commands, can disable any command in any zone "command-name: min-group-lv" also supports min group level to override, to enable back a command disabled by inheritance just use "command-name: 0"
  • Added new zone setting skill_damage_cap (as requested by the community), can cap any skill damage to any range of unit types, and also a new core config "HMAP_ZONE_DAMAGE_CAP_TYPE" that controls how the cap is applied (before or after modifiers)
  • New target-type support (used by skill_damage_cap and disabled_skills): PET (special thanks to frenzmu06 for bringing it up!), CLONE and MOB_BOSS
  • Added support to ids! item and skill ids may now be employed in all sections of the file in the place of item/skill names
Format Sample

/* 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" } disabled_items: { //Both examples below disable apple (id 501) //Apple: true //ID501: true } mapflags: ( ) /* "command:min-group-lv-to-override" e.g. "heal: 70" */ disabled_commands: { //Example Below makes @heal be used in maps within this zone only by those group lv 70 and above //heal: 70 } skill_damage_cap: { //Exemple Below caps firebolt damage in maps within this zone to a maximum 50 damage, // (depends on HMAP_ZONE_DAMAGE_CAP_TYPE in src/config/core.h) // to players and monsters. //MG_FIREBOLT: (50,"PLAYER | MONSTER") }
New core.h config
Code:
/// Uncomment to switch the way map zones' "skill_damage_cap" functions./// When commented the cap takes place before modifiers, as to have them be useful./// When uncommented the cap takes place after modifiers.//#define HMAP_ZONE_DAMAGE_CAP_TYPE
Link~u!
 
Last edited by a moderator:
eow Ind, you mentioned something about "CLONE and MOB_BOSS" on map_zone_db.conf but i cant see any documentation where to use it lol

PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, ALL and NONE ++ CLONE & MOB_BOSS am i right?

these features & upgrades are outstanding

 
skill_damage_cap: { //Exemple Below caps firebolt damage in maps within this zone to a maximum 50 damage, // (depends on HMAP_ZONE_DAMAGE_CAP_TYPE in src/config/core.h) // to players and monsters. //MG_FIREBOLT: (50,"PLAYER | MONSTER") }
im using the most updated svn at this time that i posted

im sorry for this noob question but how do you make a cap for players only?

i tried 

MG_FIREBOLT: (50,"MONSTER") didn't cap at 50 when im hitting a monster

MG_FIREBOLT: (50,"PLAYER") didn't cap at 50 when im hitting a player

MG_FIREBOLT: (50,"PLAYER | PLAYER") didn't cap at 50 when im hitting a player

MG_FIREBOLT: (50,"MONSTER | MONSTER") didn't cap at 50 when im hitting a monster

or is it really required to cap them in both player and monster?(basically using that format)

since /MG_FIREBOLT: (50,"PLAYER | MONSTER") this works perfectly

 
Last edited by a moderator:
eow Ind, you mentioned something about "CLONE and MOB_BOSS" on map_zone_db.conf but i cant see any documentation where to use it lol

PLAYER, HOMUN, MERCENARY, MONSTER, PET, ELEMENTAL, ALL and NONE ++ CLONE & MOB_BOSS am i right?

these features & upgrades are outstanding
Thanks~! https://github.com/HerculesWS/Hercules/commit/4a6e655a6fb39123363905b468a3e5dcd1451f8d
skill_damage_cap: { //Exemple Below caps firebolt damage in maps within this zone to a maximum 50 damage, // (depends on HMAP_ZONE_DAMAGE_CAP_TYPE in src/config/core.h) // to players and monsters. //MG_FIREBOLT: (50,"PLAYER | MONSTER") }im using the most updated svn at this time that i posted
im sorry for this noob question but how do you make a cap for players only?

i tried 

MG_FIREBOLT: (50,"MONSTER") didn't cap at 50 when im hitting a monster

MG_FIREBOLT: (50,"PLAYER") didn't cap at 50 when im hitting a player

MG_FIREBOLT: (50,"PLAYER | PLAYER") didn't cap at 50 when im hitting a player

MG_FIREBOLT: (50,"MONSTER | MONSTER") didn't cap at 50 when im hitting a monster

or is it really required to cap them in both player and monster?(basically using that format)

since /MG_FIREBOLT: (50,"PLAYER | MONSTER") this works perfectly
I just tested to ensure and it is working, be aware of the HMAP_ZONE_DAMAGE_CAP_TYPE config, when disabled (commented out) the cap is applied before modifiers, meaning that its 50 minus whatever the target has that can reduce damage, when enabled its 50 after modifiers, then yes always 50.
 
hi i don't know whats wrong with mine

here's my video showing that skill damage cap isn't working for exclusively for monsters using 

MO_EXTREMITYFIST: (200000,"MONSTER")

and i disabled HMAP_ZONE_DAMAGE_CAP_TYPE

i also set my svn to pre renewal mode in renewal.h i added a comment on all renewal mechanics

cause you might be wondering why im editing map_zone.conf if pre-re folder in the video

and i haven't added any modifications to the svn. i just edited some files like conf and mmo.h to make it work as a test server

map.h for max lvl. disabled all the npc so the emulator would loadfaster

pls correct me if im wrong i am very new to hercules





To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


MO_EXTREMITYFIST: (200000,"PLAYER") - WORKS btw

 
Last edited by a moderator:
the type in skill_damage_cap is for who is casting the asura not who receives the damage, that is why it worked when you used "PLAYER" and not when you used "MONSTER"

 
It seems it could be a nice idea to remodel this for also checking the destination of the skill or even the pair caster-receiver. But I think it's quite good as is, especially if most uses of this mods will surely be for PvP or WoE.

 
indeed, thinking about it now, it makes more sense to make it depend on target not source

 
It seems it could be a nice idea to remodel this for also checking the destination of the skill or even the pair caster-receiver. But I think it's quite good as is, especially if most uses of this mods will surely be for PvP or WoE.

indeed, thinking about it now, it makes more sense to make it depend on target not source
+1 to this

and im sorry i didn't know that it was for the caster of the skill

cause i was trying to put the cap on damaging against players

ill just hope this would be implemented in the future updates
default_smile.png


 
makes much more sense to change it like that, I'll post in this thread when the update is in the repository

 
Hi sir @Ind,

I think the skill_damage should be re-construct, I, still don't know how this works xD. 

Can you please remake it like Lilith's Manage Skill Damage? Its easy to understand just like that. 

~ Thanks and more power to Hercules!
default_biggrin.png


 
i don't seem to see a damage increase when i have this configured

mapflags: ("adjust_skill_damage    RK_HUNDREDSPEAR    2500")

silly me, i used the wrong folder

 
Last edited by a moderator:
Back
Top