Jump to content
  • 0

Tarot Card Modification


Question

Posted

Hi ~ rAthena.

I just need some help :)

How can i edit the skill Tarot Card instead of breaking the item it will only unequip it?
 

case 3:	// 1000 damage, random armor destroyed
	{
		status_fix_damage(src, bl, 1000, 0, skill_id);
		clif_damage(src,bl,tick,0,0,1000,0,DMG_NORMAL,0);
		if( !status_isdead(bl) ) {
			int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT };
			skill_break_equip(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
		}
	}
break;

Thanks ~

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hi ~ rAthena.

I just need some help :)

How can i edit the skill Tarot Card instead of breaking the item it will only unequip it?

 

case 3:	// 1000 damage, random armor destroyed
	{
		status_fix_damage(src, bl, 1000, 0, skill_id);
		clif_damage(src,bl,tick,0,0,1000,0,DMG_NORMAL,0);
		if( !status_isdead(bl) ) {
			int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT };
			skill_break_equip(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
		}
	}
break;

Thanks ~

 

Try doing this:

skill_strip_equip(src,bl, where[rnd()%5], 10000, skill_lv, skill_get_time(skill_id,skill_lv));

EDIT: Tested and working.

Edited by Scylla
  • Upvote 1
  • 0
Posted

 

Hi ~ rAthena.

I just need some help :)

How can i edit the skill Tarot Card instead of breaking the item it will only unequip it?

 

case 3:	// 1000 damage, random armor destroyed
	{
		status_fix_damage(src, bl, 1000, 0, skill_id);
		clif_damage(src,bl,tick,0,0,1000,0,DMG_NORMAL,0);
		if( !status_isdead(bl) ) {
			int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT };
			skill_break_equip(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
		}
	}
break;

Thanks ~

 

Try doing this:

skill_strip_equip(src,bl, where[rnd()%5], 10000, skill_lv, skill_get_time(skill_id,skill_lv));

EDIT: Tested and working.

 

Thanks for your help ~ too damn to realize :( hahaha

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