have_outfit() not functioning properly?

muffins

Member
I am working on a basic "meat maintenence" script that borrows from the seltzer example on the wiki. However, it seems to be reporting that I have the knob elite uniform, when I don't (I only have the pants).

int mpmeat = 0;
string using = "";

void mpmeat() {
if(my_primestat() == $stat[mysticality] || my_class() == $class[ accordion thief ] && my_level() >= 9) {
mpmeat = ((my_maxmp()/((1.5*my_level())+4))*100);
using = "magical mystery juice";
}
else if(have_outfit("knob goblin elite guard uniform")) {
mpmeat = ((round(my_maxmp()/8)*80));
using = "knob goblin seltzer";
}
else {
mpmeat = ((round(my_maxmp()/3)*70));
using = "soda water";
}
}

void main() {
mpmeat();
print(mpmeat);
print("Using: " + using);
}

This currently prints "Using: knob goblin seltzer" as the last line, which would indicate to me that it may also be miscalculating the amount of meat needed to fully restore. Is anyone else using have_outfit() and running into this problem?

Also, if there any way to "grab" the skills you have active in your current mood?
 
Top