Jump to content
  • 0

Tarot Card Modification


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

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 ~

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

Not really good at src modification but you can play with pc_unequipitem.

Like this:

pc_unequipitem(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Not working ~

pc_unequipitem only have 3 syntax

Btw. Thanks ~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

 

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

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