Jump to content
  • 0

Mob uses Tetravortex skill


Slyx

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   9
  • Joined:  03/05/18
  • Last Seen:  

Hello

I managed to make tetravortex skill work on mob skill such as Fenrir's  but the problem is the skill hits 2 times instead of 4 times. How do I increase the hit count on magic attack?

here is the code i implemented in skill.cpp

case WL_TETRAVORTEX:
skill_addtimerskill(src,tick,bl->id,0,0,skill_id,skill_lv,BF_MAGIC,flag);

case WL_TETRAVORTEX:
		if (src->type == BL_MOB){
			clif_skill_nodamage(src,target,skl->skill_id,skl->skill_lv,1);
			skill_attack(BF_MAGIC,src,src,target,skl->skill_id,skl->skill_lv,tick,skl->flag|SD_ANIMATION);
		}


     

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   14
  • Joined:  09/01/18
  • Last Seen:  

On 10/2/2018 at 3:01 PM, Slyx said:

Hello

I managed to make tetravortex skill work on mob skill such as Fenrir's  but the problem is the skill hits 2 times instead of 4 times. How do I increase the hit count on magic attack?

here is the code i implemented in skill.cpp


case WL_TETRAVORTEX:
skill_addtimerskill(src,tick,bl->id,0,0,skill_id,skill_lv,BF_MAGIC,flag);

case WL_TETRAVORTEX:
		if (src->type == BL_MOB){
			clif_skill_nodamage(src,target,skl->skill_id,skl->skill_lv,1);
			skill_attack(BF_MAGIC,src,src,target,skl->skill_id,skl->skill_lv,tick,skl->flag|SD_ANIMATION);
		}


     

Fenrir doesn't actually use the skill, she just cast and nothing happens,  because the Tetra Vortex have a if statement checking if the caster is a player. o_O

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   9
  • Joined:  03/05/18
  • Last Seen:  

@MathReaper

In official server fenrir does use tetra and it works by hitting the target 4 hits with neutral element.i guess i need to create a loop by using "for" command just like player's tetra

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