I was wondering how i can add a delay or something to a while or for loop? Using TFS 0.3.6pl1
This is just a small part of the script, but i would like that loop to repeat with a delay or in intervals. The way i had it set up (not the example) it would add mana2 together x amount of times and give the mana in 1 big chunk. I would like it to give it in intervals of like 1 second. Any help would be great, i do not understand a lot about loops in C++ as i just started learning C.
Code:
while (i == 0) do
doCreatureAddMana(cid, mana2)
doSendAnimatedText(getCreaturePosition(cid), '+'..(mana2), COLOR_BLUE)
i = i + 1
This is just a small part of the script, but i would like that loop to repeat with a delay or in intervals. The way i had it set up (not the example) it would add mana2 together x amount of times and give the mana in 1 big chunk. I would like it to give it in intervals of like 1 second. Any help would be great, i do not understand a lot about loops in C++ as i just started learning C.
Last edited: