Jump to content
  • 0

Cart Termination Miss Bug


funtwocrasher

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  143
  • Reputation:   4
  • Joined:  06/17/12
  • Last Seen:  

Did it occurred to you guys? When you cast CT on player it misses sometimes? I think CT never misses, if IT miss it should displayed 10dmg instead of miss. If you happen you fix this. Please share. Thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   111
  • Joined:  10/05/12
  • Last Seen:  

yes that s***s   and anybody say a word of it

 

current version is rathena SVN 17516 and i have this

gyv2.png
 

  • Cart Termination can miss based on the player's hit and the target's flee. However, when the skill "misses", a small damaged hit is still guaranteed from Weaponry Research. This means the player will always have a chance to stun their opponent whether their attack "misses" or deals full damage.


SOMETHING IS WRONG IN THE SCR / BATTLE.C  OF THE VERSION SVN 17516

 

THE WHOLE THING HAS BEEN CHANGED FROM 1 REVISION TO ANOTHER

THERES NO WAY TO FIND OUT WICH LINE WE HAVE TO EDIT IN ORDER TO APPLY THE DAMAGE OF THE WEAPONRESEARCH

 

this is battle.c line of a funcional bs_weaponresearch

THE WEAPON RESEARCH WORKS PERFECTLY HEARE

if( sd ) {
            // Weaponry Research hidden bonus
            if ((skill = pc_checkskill(sd,BS_WEAPONRESEARCH)) > 0)
                hitrate += hitrate * ( 2 * skill ) / 100;

            if( (sd->status.weapon == W_1HSWORD || sd->status.weapon == W_DAGGER) &&
               (skill = pc_checkskill(sd, GN_TRAINING_SWORD))>0 )
                hitrate += 3 * skill;
        }

        hitrate = cap_value(hitrate, battle_config.min_hitrate, battle_config.max_hitrate);

        if(rnd()%100 >= hitrate)
            wd.dmg_lv = ATK_FLEE;
        else
            flag.hit = 1;
    }    //End hit/miss calculation
this is  other  line in the same document where I found something about the bs_weaponresearch and shows the following
//Here ends flag.hit section, the rest of the function applies to both hitting and missing attacks
      else if(wd.div_ < 0) //Since the attack missed...
        wd.div_ *= -1;

    if(sd && (skill=pc_checkskill(sd,BS_WEAPONRESEARCH)) > 0)
        ATK_ADD(skill*2);
now this is the newer version, that LACKS DAMAGE APPLICATION
if(sd && (skill=pc_checkskill(sd,BS_WEAPONRESEARCH)) > 0) // weapon research bonus applies to all weapons
        damage += skill*2;
        
    if(sd->sc.data[SC_GN_CARTBOOST]) // cart boost adds mastery type damage
        damage += 10*sd->sc.data[SC_GN_CARTBOOST]->val1;

    return damage;
}
This is other line in the same document thatn mention bs_weaponresearch
if( sd ) {
        // Weaponry Research hidden bonus
        if ((skill = pc_checkskill(sd,BS_WEAPONRESEARCH)) > 0)
            hitrate += hitrate * ( 2 * skill ) / 100;

        if( (sd->status.weapon == W_1HSWORD || sd->status.weapon == W_DAGGER) &&
            (skill = pc_checkskill(sd, GN_TRAINING_SWORD))>0 )
            hitrate += 3 * skill;
    }

    hitrate = cap_value(hitrate, battle_config.min_hitrate, battle_config.max_hitrate);
    return (rnd()%100 < hitrate);
}
 
Edited by Patskie
Change to code
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...