ereinion
Member
I've created the following script to use when burning through my putty/camera uses of the day. However, when the script is called when fighting an adding machine, it jumps straight to using the 334-scrolls, instead of first puttying the monster. Can anyone here please help me see where I've gone wrong with the script?
Code:
void main(int rundenr, monster foe, string url) {
if (foe == $monster[some bad ascii art]) {
url = throw_items($item[spooky putty sheet], $item[4-d camera]);
url = attack();
return;
} else if (foe == $monster[rampaging adding machine]) {
url = throw_items($item[spooky putty sheet], $item[4-d camera]);
while(item_amount($item[334 scroll]) >= 2) {
url = throw_items($item[334 scroll], $item[334 scroll]);
}
while(item_amount($item[30669 scroll]) >= 1 && item_amount($item[668 scrolls]) >= 1) {
url = throw_items($item[30669 scroll], $item[668 scroll]);
}
return;
}
}
Last edited: