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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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