PDA

View Full Version : Spirit regen tracker



Lokrin
01-31-2012, 07:15 PM
Is there anything on the repo list that accurately tracks your spirit regen pulses? I ask because it would be extremely helpful to know right before your spirit is going to regen to avoid waiting around in the rift.

Gibreficul
03-28-2012, 08:05 PM
Is there anything on the repo list that accurately tracks your spirit regen pulses? I ask because it would be extremely helpful to know right before your spirit is going to regen to avoid waiting around in the rift.

Not exactly what you're asking for, but it's something I threw together out of curiosity to see how long the actual spirit pulses were taking. Maybe you'll find some use for it.


loop{
wait_until{spirit? < maxspirit}
myspirit = spirit?
t = Time.now
wait_until{spirit? > myspirit}
respond ""
echo "** Spirit gain, #{Time.now - t} seconds"
respond ""
}

There's some oddities with it still, I just don't care that much to make it any better than what it is.

Gibreficul
03-29-2012, 01:32 PM
OK, so there were some serious oddities/bugs in the previous, and I did take some time last night to revamp it. Here's what I came up with.


myspirit = spirit?
t = Time.now
loop{
wait_until{spirit? != myspirit}
if myspirit > spirit?
myspirit = spirit?
next
else
respond ""
respond "* Spirit gain, #{(Time.now - t).round} seconds"
respond ""
myspirit = spirit?
t = Time.now
end
}

Enjoy.

Lokrin
04-14-2012, 12:32 PM
Thanks Gib