PDA

View Full Version : Need help with a combat-script to use putty/4-d camera



ereinion
08-03-2010, 10:07 PM
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?


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;
}
}

Bale
08-03-2010, 10:39 PM
Mafia will not use your CCS for the Adding Machine. There's a good bit discussion about this, so search the forum for reasons.

ereinion
08-03-2010, 10:52 PM
Ah, I see. I guess I should have done a search before posting a new thread.

Anyways, thanks a lot for providing the information.