Jump to content

  •  

Photo

[Help] Skill Swap


  • Please log in to reply
1 reply to this topic

#1 matheus00123

matheus00123

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 06 February 2017 - 01:15 AM

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.

 



#2 matheus00123

matheus00123

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 06 February 2017 - 08:00 PM

uP!






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 14 user(s)