funtwocrasher Posted September 1, 2013 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 143 Reputation: 4 Joined: 06/17/12 Last Seen: August 6, 2024 Share Posted September 1, 2013 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! Quote Link to comment Share on other sites More sharing options...
iraciz Posted September 28, 2013 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Share Posted September 28, 2013 (edited) yes that s***s and anybody say a word of it current version is rathena SVN 17516 and i have this 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 October 27, 2013 by Patskie Change to code Quote Link to comment Share on other sites More sharing options...
Question
funtwocrasher
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.