Jump to content
  • 0

Devotion skill


Fcuk

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

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/

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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 by Traumatized
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   1
  • Joined:  09/29/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

not working . the paladin and the devoted character not receiving any reflect

there is no damage on both of them

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

that is default in my revision

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

bump!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/07/13
  • Last Seen:  

I'm having the same problem, can anyone do this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  178
  • Reputation:   16
  • Joined:  06/25/12
  • Last Seen:  

@fcuk and @iMicah

 

just revert the devotion skill to a old revision

but the trac is still down so, you'll have to wait it out

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...