Thats the point of DoAfter, what it does is makes a temporary timer.
With MC, like poromenos said, MC waits for your script to finish before doing anything. This includes recieving output from the server, or input, or anything.
MC is funcionining correctly with the notes. Youre doing your loops, and each time you loop, youre making a temporary timer with the spellname, and then going back up and starting over.
All DoAfter does is makes the old proccess of creating a self destructing timer with temporary flags and the like a bit easier.
As for reacting, your current situation wont allow any input from the server until the script is done, so you wouldnt be able to react at all.
If youre simply trying to cast a spell every X, with wheres being sent, there are more efficient ways. If I knew all the details, Id supply a solution. Is it spell every 3 seconds? and where every 9? or the other way around, and then you have a trigger to tell you when youre past your mana limit? or... |