Fcuk Posted December 26, 2012 Posted December 26, 2012 i tried reverting back the Old devotion but unfortunately i failed ex. Pally 1 is Devoting Champ 1 when champ 1 use asura in Pally 2 . the Pally 1 and Champ 1 do not received any damage even if the Pally 2 uses Reflect shield and reflect set I want that to be Pally 1 will receive the damage of the reflect . Im using the latest rathena from here https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/ Quote
Patskie Posted December 31, 2012 Posted December 31, 2012 (edited) on your trunk/src/map/skill.c Remove these lines of codes clif_damage(d_bl, d_bl, gettick(), 0, 0, damage, 0, 0, 0); status_fix_damage(NULL, d_bl, damage, 0); And add these line of codes bool devo_flag = false; /* false = paladin devoing; true = player */ if ( src ) { struct status_change *tsc; tsc = status_get_sc(src); /* Per official standards, following skills should reflect at the bl */ if( (tsc->data[sC_KAITE] && attack_type == BF_MAGIC) || (tsc->data[sC_REFLECTDAMAGE] && attack_type != BF_MAGIC) ) devo_flag = true; } clif_damage( ( (devo_flag) ? bl:d_bl), ( (devo_flag) ? bl:d_bl), gettick(), 0, 0, damage, 0, 0, 0); status_fix_damage( ( (devo_flag) ? bl:NULL), ( (devo_flag) ? bl:d_bl), damage, 0, 0); Recompile your server. I never tested it. Try for yourself. DON'T FORGET TO BACK UP YOUR FILES. Edited December 31, 2012 by Traumatized Quote
jutaysxd Posted January 8, 2013 Posted January 8, 2013 on your trunk/src/map/skill.c Remove these lines of codes clif_damage(d_bl, d_bl, gettick(), 0, 0, damage, 0, 0, 0); status_fix_damage(NULL, d_bl, damage, 0); And add these line of codes bool devo_flag = false; /* false = paladin devoing; true = player */ if ( src ) { struct status_change *tsc; tsc = status_get_sc(src); /* Per official standards, following skills should reflect at the bl */ if( (tsc->data[sC_KAITE] && attack_type == BF_MAGIC) || (tsc->data[sC_REFLECTDAMAGE] && attack_type != BF_MAGIC) ) devo_flag = true; } clif_damage( ( (devo_flag) ? bl:d_bl), ( (devo_flag) ? bl:d_bl), gettick(), 0, 0, damage, 0, 0, 0); status_fix_damage( ( (devo_flag) ? bl:NULL), ( (devo_flag) ? bl:d_bl), damage, 0, 0); Recompile your server. I never tested it. Try for yourself. DON'T FORGET TO BACK UP YOUR FILES. is this working ? Sorry for my bad english Quote
Lighta Posted January 8, 2013 Posted January 8, 2013 ye look not so bad but vcc will probably complain for the devo_flag declaration not at begining of a scope. (so encapsulate all this with {} for easy fix) and you need to add a chk on tsc to avoid mapcrash, otherwise if src == BL_PET => tsc = null => tsc->data == segfault boom. rest look fine Quote
Fcuk Posted January 28, 2013 Author Posted January 28, 2013 not working . the paladin and the devoted character not receiving any reflect there is no damage on both of them Quote
jutaysxd Posted January 30, 2013 Posted January 30, 2013 @Fcuk this may help http://trac.rathena.org/changeset/15185/rathena Quote
chowking Posted May 29, 2013 Posted May 29, 2013 @fcuk and @iMicah just revert the devotion skill to a old revisionbut the trac is still down so, you'll have to wait it out Quote
Question
Fcuk
i tried reverting back the Old devotion but unfortunately i failed
ex. Pally 1 is Devoting Champ 1
when champ 1 use asura in Pally 2 . the Pally 1 and Champ 1 do not received any damage even if the Pally 2 uses Reflect shield and reflect set
I want that to be
Pally 1 will receive the damage of the reflect . Im using the latest rathena from here https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/
14 answers 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.