Testudinata Request Buff Script. (ASH)

Nightmist

Member
Hahah well this scripts probably out of date with all the new prices being put into Testudinata but to use.
"Buff_BuyAmount( effect VarBuff, string VarBuffBot, int VarQty);"

VarBuff = $effect[Buff Name]
VarBuffBot = "Testudinata" (Well in this case anyway, I havent got round to adding other Buff-bots)
VarQty = The amount you want, note it only requests the nearest one so if your asking for say 8k turns of a buff then it will only request the highest amount it can find. (Most likely the 6k turns of buff, so be wary of asking for 1201 turns of something, chances are you will end up buying 6k worth)

example : Buff_BuyAmount( $effect[Elemental Saucesphere], "Testudinata" , my_adventures());
Will request the closest buff that has atleast the amount of turns you have.

Oh and before you ask, no I wont make it calculate and buy the smaller buffs multiple times because its cheaper... take it easy on the buffbots... flooding with small amounts isnt nice XD

Also note its untested, (A older version was tested and worked but this ver has been slightly modified to do a "did you get a refund eg. wrong prices" check)

Code:
void Buff_BuyBuff( int MeatQty, effect VarBuff, string VarBuffBot, int VarQty)
{
 int StartBuff;
 int EndBuff;
 int Timer;
 int StartMeat
 boolean SentMsg;
 SentMsg = false;
 StartBuff = have_effect( VarBuff);
 EndBuff = StartBuff + VarQty;
 Timer = 0;
 StartMeat = my_meat();
 if( my_meat() >= MeatQty)
 {
 cli_execute( "Send " + int_to_string(MeatQty) + " Meat to " + VarBuffBot);
 print( "sent " + int_to_string(MeatQty) + " Meat to " + VarBuffBot);
 SentMsg = true;
 }
 else
 {
 print( "Meat check failed. Buffs not requested.");
 }
 while( have_effect( VarBuff) < EndBuff && SentMsg == true)
 {
 cli_execute( "wait 120");
 cli_execute( "status refresh");
 if ( StartMeat == my_meat())
 {
  cli_execute( "abort Check your prices, seems you got your meat refunded.")
 }
 Timer = Timer + 1;
 if( have_effect( VarBuff) >= EndBuff)
 {
  print( "Buff has been successfully obtained.");
  break;
 }
 if( Timer == 300)
 {
  print( "Buff is taking longer then 600 Minutes (10 Hours), Canceling the Wait.");
  break;
 }
 }
}

//Current as at 9:33 p.m. 26/03/2006
void Buff_BuyAmount( effect VarBuff, string VarBuffBot, int VarQty)
{
 boolean Sent;
 Sent = false;
 if( VarBuff == $effect[Brawnee's Anthem of Absorption] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 70, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Brawnee's Anthem of Absorption] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 233, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Brawnee's Anthem of Absorption] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 934, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Brawnee's Anthem of Absorption] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 4673, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Aloysius' Antiphon of Aptitude] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 432, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Aloysius' Antiphon of Aptitude] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 1441, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Aloysius' Antiphon of Aptitude] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 5764, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Aloysius' Antiphon of Aptitude] && VarBuffBot == "Testudinata" && VarQty <= 3750 && Sent == false)
 {
 Buff_BuyBuff( 18013, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Astral Shell] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 122, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Astral Shell] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 408, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Astral Shell] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1635, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Astral Shell] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 8178, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Cletus's Canticle of Celerity] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 14, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Cletus's Canticle of Celerity] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 40, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Cletus's Canticle of Celerity] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 157, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Cletus's Canticle of Celerity] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 780, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Elemental Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 123, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Elemental Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 409, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Elemental Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1636, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Elemental Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 8179, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Empathy] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 210, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Empathy] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 702, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Empathy] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 2804, VarBuff, VarBuffBot, VarQty);
 }
 if( VarBuff == $effect[Empathy] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 14021, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Reptilian Fortitude] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 125, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Reptilian Fortitude] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 411, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Reptilian Fortitude] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1638, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Reptilian Fortitude] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 8181, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Ghostly Shell] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 52, VarBuff, VarBuffBot, VarQty);
 }
 if( VarBuff == $effect[Ghostly Shell] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 175, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Ghostly Shell] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 701, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Ghostly Shell] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 3505, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Jabañero Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 124, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jabañero Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 410, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jabañero Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1637, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jabañero Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 8180, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Jalapeño Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 35, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jalapeño Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 116, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jalapeño Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 467, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jalapeño Saucesphere] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 2336, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Magical Mojomuscular Melody] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 13, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Magical Mojomuscular Melody] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 39, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Magical Mojomuscular Melody] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 156, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Magical Mojomuscular Melody] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 779, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Moxious Madrigal] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 12, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Moxious Madrigal] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 38, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Moxious Madrigal] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 155, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Moxious Madrigal] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 778, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Ode to Booze] && VarBuffBot == "Testudinata")
 {
 Buff_BuyBuff( 11, VarBuff, VarBuffBot, 15);
 Sent = true;
 }

 if( VarBuff == $effect[Fat Leon's Phat Loot Lyric] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 105, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Fat Leon's Phat Loot Lyric] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 350, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Fat Leon's Phat Loot Lyric] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1402, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Fat Leon's Phat Loot Lyric] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 7010, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Polka of Plenty] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 46, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Polka of Plenty] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 158, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Polka of Plenty] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 623, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Polka of Plenty] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 3115, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Power Ballad of the Arrowsmith] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 23, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Power Ballad of the Arrowsmith] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 77, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Power Ballad of the Arrowsmith] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 311, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Power Ballad of the Arrowsmith] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 1557, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Psalm of Pointiness] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 151, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Psalm of Pointiness] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 506, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Psalm of Pointiness] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 2025, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Psalm of Pointiness] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 10126, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Stevedave's Shanty of Superiority] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 315, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Stevedave's Shanty of Superiority] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 1051, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Stevedave's Shanty of Superiority] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 4206, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Stevedave's Shanty of Superiority] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 17876, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Jackasses' Symphony of Destruction] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 198, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jackasses' Symphony of Destruction] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 662, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jackasses' Symphony of Destruction] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 2648, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Jackasses' Symphony of Destruction] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 13242, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }

 if( VarBuff == $effect[Tenacity of the Snapper] && VarBuffBot == "Testudinata" && VarQty <= 90 && Sent == false)
 {
 Buff_BuyBuff( 87, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Tenacity of the Snapper] && VarBuffBot == "Testudinata" && VarQty <= 300 && Sent == false)
 {
 Buff_BuyBuff( 292, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Tenacity of the Snapper] && VarBuffBot == "Testudinata" && VarQty <= 1200 && Sent == false)
 {
 Buff_BuyBuff( 1168, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
 if( VarBuff == $effect[Tenacity of the Snapper] && VarBuffBot == "Testudinata" && VarQty <= 6000 && Sent == false)
 {
 Buff_BuyBuff( 5842, VarBuff, VarBuffBot, VarQty);
 Sent = true;
 }
}
 
Top