Jump to content
  • 0
Sign in to follow this  
matheus00123

[Help] Skill Swap

Question

Hello

I'm trying to edit a skill from herc's own src, because I want to make a skill that changes the place players.
I
succeeded more not total, I made the custom skill in src as codigo
edited below plus it only takes the player to the position of the other
player but does not make the change of positions.

 

My code:

			if (( dstsd || dstmd ) && !(tstatus->mode&MD_PLANT) && battle->check_target(src,bl,BCT_ENEMY) > 0 ) {
				int x = src->x, y = src->y;

				if (unit->movepos(src, bl->x, bl->y, 0, 0)) {
					clif->skill_nodamage(src, src, skill_id, skill_lv, 1);
					clif->slide(src, bl->x, bl->y) ;
					clif->specialeffect(&sd->bl, 9, SELF); // Efeito após teletransportar
					sc_start(src, bl, SC_CONFUSION, 75, skill_lv, skill->get_time(skill_id, skill_lv));
				}
			}

Wanted to leave it in the same way as the video below, could someone give me a hint how to proceed with this?

 

Here's how I wanted it to be:

 

 

Thanks, and sorry for the spelling mistakes, because I'm using google translator.

 

Share this post


Link to post
Share on other sites

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

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.