What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Pulse() and while loops

verythaiguy

New Member
Joined
Jan 15, 2010
Messages
119
What if I want to implement in a pulse function a while loop that lasts longer than 1/8th of a second?? Is there a way to disable pulsing... One thign I don't understand is the decision for even using pulsing in the first place... why not just let us handle the while loop and return when combat is over... (like in omegabot). If you wanted to check other things while custom class combat was going on, just spawn the custom class as a new thread??
 
What if I want to implement in a pulse function a while loop that lasts longer than 1/8th of a second?? Is there a way to disable pulsing... One thign I don't understand is the decision for even using pulsing in the first place... why not just let us handle the while loop and return when combat is over... (like in omegabot). If you wanted to check other things while custom class combat was going on, just spawn the custom class as a new thread??
that pulse is going to execute till the code is finished. for example. i have this to not interupt casting.
while (Me.Casting != 0 || Me.ChanneledCasting != 0)
{
slog("Blizzard is casting");
Thread.Sleep(50);
}
its going to keep spamming blizzard is casting, and then finish running though the CC code. then an 1/8th of a second later its going to hit my code again, then start the process all over again.
dont worry about how long pulse is, its going to run the code however long it takes. to run though the code.
 
ru sure about that?? It waits till execution is done before pulsing again??? Or will it just pulse over and over regardless of if ur in a while loop or not?
 
What if I want to implement in a pulse function a while loop that lasts longer than 1/8th of a second?? Is there a way to disable pulsing... One thign I don't understand is the decision for even using pulsing in the first place... why not just let us handle the while loop and return when combat is over... (like in omegabot). If you wanted to check other things while custom class combat was going on, just spawn the custom class as a new thread??

Your Pulse() will run but the bot will be slowed down as a result.
 
Back
Top