Magic Crasher

Started by cute_fenrir, Jul 18, 2016, 09:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cute_fenrir

as the tittle say, i would love to know how to make magic crasher damage bigger and not blocked by GTB, i mean magic crasher like xilero PK, its affected by endow, and hydra/skel worker, and the damage is bigger than default damage
when someone use gtb, all magic is reduced by 75/65% i dunno exactly, but magic crasher still does great damage, to balance the wizard class in high rate private server
its something like this
magic crasher damage is from matk, but not blocked by gtb/maya, and it can be amplified by using endow/elements/, hydras/skel workers and mind breaker

thx in advanced
sorry for making it a lil bit confusing

Zereges

This probably should go to your emulator's forum, or probably is answered there already.
Player of Phoenix Fury, Pestilence & Ekirei.

Tree of Savior: Zereges (Falconeer-Mergen-Ranger)

Ragnarok break now.
My EndlessTower Video

WoW (Drak'Thul): Zere, Shadow Priest, <Panta RheĆ®> (offline too)

My Anime List
My StackExchange

cute_fenrir

hmm it should not be here ? my bad, sorry then, i was searching for it in coding section but i didnt found it at all
if its in the wrong section
admins pls move it
thx

Blinzer

magic crasher is a mess of a skill. i wasted 20 minutes trying to find where it states that it scales off of MATK because everything in both source code and skill_db.txt indicates it scales off of ATK even though that's not the case, and still haven't found it. your best bet if you want to give it a ratio is to go to battle.c, and find the area where your other wizard spells are like this:

Spoiler
[close]

make a case for magic crasher as such, and provide it with a ratio which will look something like this:

case HW_MAGICCRASHER:
   skillratio += 50;
   break;

+= means it already starts off at 100%, so everything past the += is additional % of your MATK. In this case, 50%, so at all levels you would have 150% MATK. once you do this, you have to compile it. type 'make clean && make' in the terminal when you're in your hercules/rathena/whatever you use directory:



honestly though, i doubt this will work. there's a reason it's one of the few skills i haven't bothered changing. it's convoluted and not worth the effort.



Luxuri

Quote from: Blinzer on Jul 19, 2016, 01:27 PM
magic crasher is a mess of a skill. i wasted 20 minutes trying to find where it states that it scales off of MATK because everything in both source code and skill_db.txt indicates it scales off of ATK even though that's not the case, and still haven't found it.

battle.c in battle_calc_base_damage2 for pre-RE, status_get_weapon_atk for RE (on Hercules anyway).
In both functions, flag&4 indicates Magic Crasher. At least, that's what I remember after looking for it myself.

Blinzer

#5
Quote from: Luxuri on Jul 19, 2016, 06:49 PM
battle.c in battle_calc_base_damage2 for pre-RE, status_get_weapon_atk for RE (on Hercules anyway).
In both functions, flag&4 indicates Magic Crasher. At least, that's what I remember after looking for it myself.

Ah, then it all makes sense. That probably means what I told him to do works.


Spoiler
[close]

We confirm by testing first that magic crasher already does scale off of % modifiers, and we don't need to do anything for that. This is made obvious by the fact that in the skill.c, it's defined to follow the attack formula of physical attack skills already and not magic. Just to be sure, we double check our skill_db.txt to make sure that there isn't a special case which makes it ignore multipliers:

Spoiler

[close]

As we can see, in my skill_db.txt 0x08 is not defined, coherent with our in-game testing. This means the server lied to you when they said they "changed the skill". They just added a skill ratio and banked off the fact nobody knew what the properties of a useless skill were.

Spoiler
[close]

@luxuri, I kind of figured it had to have been this 4 flag since it's literally the only thing defined in pre-re(which is what i use), but because i didn't fully understand it i didn't want to be wrong and mislead someone. What I didn't find was this:

Spoiler
[close]

Which makes sense, because when I tested it in game it always seemed to take the low end of your MATK.