Leaderboard
Popular Content
Showing content with the highest reputation on 04/01/19 in Posts
-
2 points
New damage formula (Dragon Breath)
banhelba2019 and one other reacted to AnnieRuru for a post in a topic
no idea, I have tested it works do I seriously have to do like this ? https://github.com/HerculesWS/Hercules/compare/master...AnnieRuru:topic/16676-n. https://github.com/AnnieRuru/Hercules/blob/803f7335803460b8a4f2554240a9b29f4686f556/src/map/battle.c#L4957-L4963 -
2 points
New damage formula (Dragon Breath)
Crown The Empire and one other reacted to AnnieRuru for a post in a topic
@@ -4960,6 +4953,14 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl the patch has clearly said, modify the line somewhere at line no.4960 and your compiler said your error is on line 4127 -
2 points
New damage formula (Dragon Breath)
Crown The Empire and one other reacted to AnnieRuru for a post in a topic
if you change skill->attack from BF_MISC into BF_WEAPON, then you should also change the damage calculation from battle_calc_misc_attack function into battle_calc_weapon_attack function src/map/battle.c | 15 ++++++++------- src/map/skill.c | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index 1b7bf909e..4193c8cd0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4130,13 +4130,6 @@ static struct Damage battle_calc_misc_attack(struct block_list *src, struct bloc case NPC_EVILLAND: md.damage = skill->calc_heal(src,target,skill_id,skill_lv,false); break; - case RK_DRAGONBREATH: - case RK_DRAGONBREATH_WATER: - md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; - RE_LVL_MDMOD(150); - if (sd) md.damage = md.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100; - md.flag |= BF_LONG|BF_WEAPON; - break; /** * Ranger **/ @@ -4960,6 +4953,14 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl break; } break; + + case RK_DRAGONBREATH: + case RK_DRAGONBREATH_WATER: + wd.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; + wd.damage = wd.damage * status->get_lv(src) / 150; + if (sd) wd.damage = wd.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100; + wd.flag |= BF_LONG|BF_WEAPON; + break; default: { i = (flag.cri diff --git a/src/map/skill.c b/src/map/skill.c index 633a73d67..4121d66e7 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4937,7 +4937,7 @@ static int skill_castend_damage_id(struct block_list *src, struct block_list *bl if( (tsc = status->get_sc(bl)) && (tsc->data[SC_HIDING] )) { clif->skill_nodamage(src,src,skill_id,skill_lv,1); } else - skill->attack(BF_MISC,src,src,bl,skill_id,skill_lv,tick,flag); + skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag); } break; case NPC_SELFDESTRUCTION: { but how you want to change the damage formula is totally up to you ... -
1 point
Max Atk
RagnarokOnline2015 reacted to 4144 for a post in a topic
I created this pr https://github.com/HerculesWS/Hercules/pull/2419 for allow change some limits -
1 point
Max Atk
RagnarokOnline2015 reacted to 4144 for a post in a topic
atk and some other attributes stored in unsigned short fields. this mean max value is 65535. Also some packets allow only short/unsigned shorts. I can try create pr with increasing this fields, but not sure is it will broke some old pre-re code -
1 point
Max Atk
RagnarokOnline2015 reacted to AnnieRuru for a post in a topic
@RagnarokOnline2015 must be using RENEWAL in renewal, its base atk + weapon atk simply equip any weapon will do, like I'm using priest, equip a club "@refine 0 10", the refine will increase the value along with bonus bAtk or bonus bAtk2 in renewal, equip fire-brand will increase the value there @Orca must be using pre-renewal yes, equip a fire-brand doesn't increase that value, to increase bAtk2, the only way is through refine "@refine 0 10" on your fire-brand, or using bonus bAtk2 and I repeat again, THIS IS OFFICIAL <-- tested same thing happen in rathena as well(EDIT) this atk/matk stuffs has even confuse some developers EDIT: seems like I misunderstood the question, you want to increase the 65535, not to add to the bAtk2 bonus ... -
1 pointthis isn't an issue, it just say it runs this event too many times probably having some scripts runs jobchange + statusup +equip + .... etc stuffs I remember you said something about having a refiner script runs in loop ... probably caused by that and even that ... it shouldn't effect anything ... just an error message
-
1 point
Tifa Lockhart (dont sue me)
bWolfie reacted to banhelba2019 for a post in a topic
View File Tifa Lockhart (dont sue me) Just my attempt at adding some cleavage to ro Nothing fancy she just stands there, Didnt give her a back sprite cause she was gonna be placed in a fixed camera so i could focus on animations without worrying about the back sprite. Didnt add the animations in the end cause she already looked great in-game Submitter lllaaazzz Submitted 03/28/19 Category Sprites & Palettes credits to everybody at "Square" for final fantasy 7 or whoever they go by now. -
1 pointstatic void guild_block_skill(struct map_session_data *sd, int time) { uint16 skill_id[] = { GD_BATTLEORDER, GD_REGENERATION, GD_RESTORE, GD_EMERGENCYCALL }; int i; for (i = 0; i < 4; i++) skill->blockpc_start(sd, skill_id[i], time); } hercules uses skill->blockpc_start and skill->blockpc_end to just set sd->blockskill[skill_id] = true:false; so you can just hook to skill->blockpc_end to display the message for the guild master to display the time left in min:sec, when guild master use the skill, run DIFF_TICK function oh wait this is request section ....
-
1 point1.1 - plugin - update to latest revision - add gm_level_bypass @evilpuncker