Timer in Skill (looping FOR)

Tio Akima

New member
Messages
349
Points
0
Age
36
Discord
TioAkima#0636
Github
Tio Akima
Emulator
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

 
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

 
Back
Top