number of FREE disco rests

ki77bot

Member
Hi everybody,

I did a very quick search on that, but couldn't really find what I want to know. If the question has already been answered you might as well just throw the link at me. :)

Is there a variable that keeps track of already used disco rests (including the CRIMBCO skill?)...I just want to burn off MP in summons at the end of the day and need to know how many (if ANY at all) free disco rests are still available, don't want to risk wasting any precious adventures there.

Cheers,
ki77bot
 

Bale

Minion
PHP:
int free_rests = to_int(have_skill($skill[Disco Nap]))
	+ 2* to_int(have_skill($skill[Disco Power Nap]))
	+ to_int(have_skill($skill[Executive Narcolepsy]));
 

slyz

Developer
Taken from Universal Recovery:
PHP:
// Number of free Disco Rests
int disco = to_int(have_skill($skill[Disco Nap]))
	+ 2* to_int(have_skill($skill[Disco Power Nap]))
	+ to_int(have_skill($skill[Executive Narcolepsy]));

while ( get_property("timesRested").to_int() < disco ) cli_execute("rest");
 

ki77bot

Member
You guys are awesome :D

The combination of your answers has been exactly what I was looking for...I will try this.

Thanks a LOT!

Cheers,
ki77bot

EDIT: works like a champ!
 
Last edited:
Top