Jump to content
  • 0

devotion_rdamage:


Question

Posted

Hi,

i wonder if anyone know how to make this "devotion_rdamage: 100" effective to Magical Reflection too
cause i tested this.. pally only absorb physical reflection. not magical... 
anyone know how to make this effectiv to magical too?

Thank you  ^_^

3 answers to this question

Recommended Posts

Posted
	if( tsc && tsc->data[SC_DEVOTION] && skill_id != PA_PRESSURE ) {
		struct status_change_entry *sce = tsc->data[SC_DEVOTION];
		struct block_list *d_bl = map_id2bl(sce->val1);

		if( d_bl && (
			(d_bl->type == BL_MER && ((TBL_MER*)d_bl)->master && ((TBL_MER*)d_bl)->master->bl.id == bl->id) ||
			(d_bl->type == BL_PC && ((TBL_PC*)d_bl)->devotion[sce->val2] == bl->id)
			) && check_distance_bl(bl, d_bl, sce->val3) )
		{
			if(!rmdamage){
				clif_damage(d_bl,d_bl, gettick(), 0, 0, damage, 0, 0, 0);
				status_fix_damage(NULL,d_bl, damage, 0);
			} else {//Reflected magics are done directly on the target not on paladin
				//This check is only for magical skill.
				//For BF_WEAPON skills types track var rdamage and function battle_calc_return_damage
				clif_damage(bl,bl, gettick(), 0, 0, damage, 0, 0, 0);
				status_fix_damage(bl,bl, damage, 0);
			}
		}
		else {
			status_change_end(bl, SC_DEVOTION, INVALID_TIMER);
			if( !dmg.amotion )
				status_fix_damage(src,bl,damage,dmg.dmotion);
		}
	}

Edit that code :D

Posted
	if( tsc && tsc->data[SC_DEVOTION] && skill_id != PA_PRESSURE ) {
		struct status_change_entry *sce = tsc->data[SC_DEVOTION];
		struct block_list *d_bl = map_id2bl(sce->val1);

		if( d_bl && (
			(d_bl->type == BL_MER && ((TBL_MER*)d_bl)->master && ((TBL_MER*)d_bl)->master->bl.id == bl->id) ||
			(d_bl->type == BL_PC && ((TBL_PC*)d_bl)->devotion[sce->val2] == bl->id)
			) && check_distance_bl(bl, d_bl, sce->val3) )
		{
			if(!rmdamage){
				clif_damage(d_bl,d_bl, gettick(), 0, 0, damage, 0, 0, 0);
				status_fix_damage(NULL,d_bl, damage, 0);
			} else {//Reflected magics are done directly on the target not on paladin
				//This check is only for magical skill.
				//For BF_WEAPON skills types track var rdamage and function battle_calc_return_damage
				clif_damage(bl,bl, gettick(), 0, 0, damage, 0, 0, 0);
				status_fix_damage(bl,bl, damage, 0);
			}
		}
		else {
			status_change_end(bl, SC_DEVOTION, INVALID_TIMER);
			if( !dmg.amotion )
				status_fix_damage(src,bl,damage,dmg.dmotion);
		}
	}

Edit that code :D

 

Ohw hi, 

Thanks for your reply ...

i'm asking if anyone Know HOW TO MAKE it :) cause i don't know how and im not a pro-scripter :) hehehe

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...