Jump to content
  • 0

Mob uses Tetravortex skill


Question

Posted

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);
		}


     

2 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted

@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

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