Klutz 2 Posted March 3, 2017 (edited) Hey, I am moving from eAthena server based to Hercules. And i need to move all my source edit to Hercules and i decided to do it the right way and use the HPM. I read the wiki and check some example but i don't seems to understand how it works. so i will just get example for something i need and i will try to learn from that. i want to add to PA_PRESSURE Maximum damage value. so my old Source edit is this: case PA_PRESSURE: md.damage=500+300*skill_lv; if (md.damage > 2000){md.damage=2000;} This is under battle.c -> battle_calc_misc_attack Line 4010 on latest Hercules . how can i make it in plugin? Edited March 3, 2017 by Klutz Quote Share this post Link to post Share on other sites
0 Klutz 2 Posted March 3, 2017 Hey, how can i make it in plugin? You know a great thing about Hercules isn't just our plugin feature. We also have something called the map_zone_db. In this file, you can edit skills and increase their damage without touching the source. So no need to worry. Head on over to https://github.com/HerculesWS/Hercules/blob/master/db/pre-re/map_zone_db.conf and look for: And add this mapflag to one of the zones. "adjust_skill_damage HT_LANDMINE 200", What you do here now, is add the skill Pressure and change the damage output bad example then i won't be able to learn that way Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted March 3, 2017 (edited) Em, okay well lets put it this way. If you scroll down... you'll notice the part that says /* PvP zone is applied to all maps with a pvp mapflag */ name: "PvP" /* changing this name requires MAP_ZONE_PVP_NAME to also be changed in src/map/map.h file */ In this zone, if you add the bonus damage to the skill under here, the skill's damage will only be increased in every map that has the pvp mapflag. So, it would look like so: /* PvP zone is applied to all maps with a pvp mapflag */ name: "PvP" /* changing this name requires MAP_ZONE_PVP_NAME to also be changed in src/map/map.h file */ disabled_skills: { BS_GREED: "PLAYER" CG_HERMODE: "PLAYER" } disabled_items: { Greed_Scroll: true } mapflags: ( "nocashshop", "adjust_skill_damage HT_LANDMINE 200", ) So of course, change HT_LANDMINE to the Pressure skill. Edited March 3, 2017 by Mysterious Fixed mistake Quote Share this post Link to post Share on other sites
0 Klutz 2 Posted March 3, 2017 (edited) Lets try something else: this is my current pressure SP damage: case PA_PRESSURE: status_percent_damage(src, bl, 0,5*skilllv, false); and Hercules: case PA_PRESSURE: status_percent_damage(src, bl, 0, 15+5*skill_lv, false); How do i edit it using HPM? Once i will understand how the HPM works it will be much easier for me (i have too many source edits i couldn't upgrade my eathena [still at 2010 version] Edited March 3, 2017 by Klutz Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted March 3, 2017 Lets try something else: this is my current pressure SP damage: case PA_PRESSURE: status_percent_damage(src, bl, 0,5*skilllv, false); and Hercules: case PA_PRESSURE: status_percent_damage(src, bl, 0, 15+5*skill_lv, false); How do i edit it using HPM? Once i will understand how the HPM works it will be much easier for me (i have too many source edits i couldn't upgrade my eathena [still at 2010 version] Why do you want to change the source for or add a plugin for changing the damage output of Paladin's pressure? Use the map_zone conf when you switch to Hercules. I already gave you the example above using : "adjust_skill_damage PA_PRESSURE 200" You just want to increase the damage of the skill? Correct? You can also read this to learn more: http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/ Quote Share this post Link to post Share on other sites
0 Klutz 2 Posted March 3, 2017 Lets try something else: this is my current pressure SP damage: case PA_PRESSURE: status_percent_damage(src, bl, 0,5*skilllv, false); and Hercules: case PA_PRESSURE: status_percent_damage(src, bl, 0, 15+5*skill_lv, false); How do i edit it using HPM? Once i will understand how the HPM works it will be much easier for me (i have too many source edits i couldn't upgrade my eathena [still at 2010 version] Why do you want to change the source for or add a plugin for changing the damage output of Paladin's pressure? Use the map_zone conf when you switch to Hercules. I already gave you the example above using : "adjust_skill_damage PA_PRESSURE 200" You just want to increase the damage of the skill? Correct? You can also read this to learn more: http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/ According to what i am reading it caps only the Damage to the HP. The second question was Damage to SP. So from what i understand this won't help me in this case. Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted March 3, 2017 According to what i am reading it caps only the Damage to the HP. The second question was Damage to SP. So from what i understand this won't help me in this case. That was my mistake. I edited ;P That wasn't what I wanted to put haha. Using this mapflag: "adjust_skill_damage PA_PRESSURE 200" will increase the skill damage ;P. My apologies. I personally haven't used the zone with Pal's Pressure. Not 100% sure it will affect the amount drained. If it doesn't then I believe it will need a source edit. Quote Share this post Link to post Share on other sites
Hey,
I am moving from eAthena server based to Hercules.
And i need to move all my source edit to Hercules and i decided to do it the right way and use the HPM.
I read the wiki and check some example but i don't seems to understand how it works.
so i will just get example for something i need and i will try to learn from that.
i want to add to PA_PRESSURE Maximum damage value.
so my old Source edit is this:
Share this post
Link to post
Share on other sites