Jump to content
  • 0
Tio Akima

Timer in Skill (looping FOR)

Question

Hi everyone, I'm doing a skill
In which he does some checks, cell by cell ..
However, this is very very fast.

I have a FOR () looping
Walking from cell to cell ...

But I wanted this FOR () with a delay
Doing the check more slowly

It's possible????


About the skill:

The skill makes a MOB walk on a line ... Then the skill checks cell by cell ...
Upon reaching the end of this line, the MOB dies.
But ... as this loooping is very fast, the MOB dies before reaching the end of the path ....

:'(

So, I need a delay in this FOR () so that the MOB can walk to the end and not die before ...

Some skills have this delay ... it has a certain delay to cause damage, etc ...
But I do not know how to do this ...

Is there anything related to skill_timerskill ????
Thanks

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You should check out WZ_METEOR for a good example of skill_addtimerskill

Structure: src, tick, target, x, y, skill_id, skill_lv, type, flag

If you see in WZ_METEOR in skill.c, it uses a for() loop, and the tick is i * 1000

Share this post


Link to post
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.   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...

×
×
  • Create New...

Important Information

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