• Announcements

    • Emistry

      Rules and Regulations - Script/Database/Source Release   11/17/2016

      In all sub-forums of this section , you are still bound to follow the rAthena Board Rules. Topic Author: Do not release scripts that are not of your own creation unless you can provide evidence of explicit permission from the original author to do so. Attempt to post your script in the proper section. If you're not certain as to where to post it, feel free to ask one of the Moderators. Your script release should contain at the very least a 3-4 sentences description or summary that clearly states what your script does. Do not use [ quote ] or [ code ] tags to release your script. Attempt to have multiple hosts for your scripts as to prevent dead links. 3 or more links are ideal. Your script should not contain any malicious code or produce the name of any servers in game where it will be visible to other players. Your script release should be tested, polished, map-server error free, and debugged fully or to a certain extent prior to release. Links to your script should directly provide the script without the need for registration.    Member: Do not create topics in this section asking for support or requesting for scripts. You're not allowed to bump your topics if you're not providing any new updates prior to your previous post. Do not post anything irrelevant contents in the topic.  If the link for the release isn't available, PM the author for any backup link. Do not judge others script as being too simple.    Everyone: Violate these rules may result in immediate deletion of the topic/post, warning increase, and restriction of posting abilities for a certain period of time. On future offenses, member is to receive an increase in the warn level and have their posting abilities restricted for a certain period of time to be determined by the Moderators handling the case.
      * rAthena Staff reserves the right to add to and change the rules at any time. It is your duty to keep up with any changes and follow them to the best of your ability.   Your cooperation in this regard will be highly appreciated. Thank you.
goddameit

Critical hit on Magic [2]

Recommended Posts

(Not only magic, but also all damage skill)

Picture preview : http://goo.gl/91vrl

Video preview :



Introduction : hmm... let skill attack also has critical hit. (damage x2)

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

Download :
Critical_hit_on_Magic_2.patch

Critical_hit_on_Magic_1.patch

Critical_hit_on_Magic.patch

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

qiDdD.jpg

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

Update :

1. Show Full hit combo

2. Fix exp not gain and

int skill_mcri_hit(int tid, unsigned int tick, int id, intptr_t data)
{
struct mob_data *md = (struct mob_data *)data;
struct tmp_data *tmpd;
tmpd = &md->tmpd;
if(tmpd!=NULL)
{
switch(1) // 1 = red ; 2 = blue
{
Edited by goddameit
  • Upvote 2
  • MVP 1

Share this post


Link to post
Share on other sites

Brian's guide :

If you use TortoiseSVN, one easy way is:

  • checkout a working copy of the rAthena SVN trunk
  • do all your "Find and Replace" edits that you listed in your topic
  • then to generate the .diff file: right-click the /trunk folder --> TortoiseSVN --> Create Patch
  • Select all files, and click OK
  • enter a name for the file, and Save!

Share this post


Link to post
Share on other sites

Brian's guide :

If you use TortoiseSVN, one easy way is:

  • checkout a working copy of the rAthena SVN trunk
  • do all your "Find and Replace" edits that you listed in your topic
  • then to generate the .diff file: right-click the /trunk folder --> TortoiseSVN --> Create Patch
  • Select all files, and click OK
  • enter a name for the file, and Save!

thx. later do it.

---------

edit :

done

Edited by goddameit

Share this post


Link to post
Share on other sites

Hmmm, I could have sworn I posted an additional reply? I suppose it got lost in translation!

Anyway, in it I had mentioned there was a bug with this fix. When scoring criticals with abilities that have effects, such as spells and things like finger offensive, the effect does not occur and the sprite animation repeats. It acts a little weird when casting on a target and they die mid-attack (with a multi-hitting attack). It sort of makes them "auto target" random stuff until the "attack" animation finishes.

Also, every hit is a crit if one is... Is there a way to change this so crits are checked for each attack on multi-hitting skills, like thunderbolt?

I tried messaging goddameit, but no response. :(

Edited by Vach

Share this post


Link to post
Share on other sites

bug in latest revision..

Yes, I was also going to past that this morning but didn't get around to it. Due to the new size modifications to monsters via "mob_once_spawn_sub" there is a compile error among what could potentially be other errors.

Uninstalling for now........

Share this post


Link to post
Share on other sites

@Vach

I already fix the problem. heres the code, change the error.

md = mob_once_spawn_sub(src, src->m, src->x, src->y, "--en--",1083,"", SZ_SMALL, AI_NONE);
Edited by Yurika

Share this post


Link to post
Share on other sites

@Vach

I already fix the problem. heres the code, change the error.

md = mob_once_spawn_sub(src, src->m, src->x, src->y, "--en--",1083,"", SZ_SMALL, AI_NONE);

Oh! Yea, I saw similarities in the code and knew this would fix it... but based on how this forces the size to small and the other issues with this I was talking about earlier... I'd rather see if Goddameit will update it himself before I start messing with it.

Thanks though. :)

Share this post


Link to post
Share on other sites

goddameit, I suggest this, for only all magic skill works..

if ( (src->type == BL_PC || battle_get_master(src)->type == BL_PC) && attack_type == BF_MAGIC )

ahmm, how can i change the blue critical?

Edited by Yurika

Share this post


Link to post
Share on other sites

I like the blue critical myself, I don't mind that it looks slightly off... only thing is how it repeats and doesn't bounce like the other criticals; but like you said that's a client issue.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now