yojimbos_law

boa farming

May 29th, 2018
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.73 KB | None | 0 0
  1. //you're probably not me, so let's comment this out.
  2. /*
  3. if(get_property("useDevProxyServer") != "true"){
  4. set_property("useDevProxyServer", "true");
  5. set_property("loginServerName", "devproxy.kingdomofloathing.com");
  6. cli_execute("login yojimboS_LAW");
  7. }
  8.  
  9. if(my_id() != "1775888"){
  10. abort("wrong account, idiot");
  11. }
  12. */
  13.  
  14. cli_execute("gc");
  15. boolean are_we_consuming_eggs = false;
  16. print_html("robort drinks disabled");
  17. print_html("stooper commented out");
  18. //wait(600);
  19.  
  20. //you're probably not a mallbot that buys pocket wishes and tries to ethically refund underpriced stuff,
  21. //so commenting this out.
  22. /*
  23. //parses yesterday's session logs for pocket wish purchases and logs all such purchases.
  24. cli_execute("run wish purchase recorder.ash");
  25. //records total amount below 49k paid for wishes and sends out balances larger than 10k meat.
  26. cli_execute("run payout.ash");
  27. //wait(69420);
  28. */
  29.  
  30. //seconds.
  31. int when_the_fuck_is_it = gametime_to_int() / 1000;
  32. if(get_property("_script_start_time") == ""){
  33. set_property("_script_start_time", when_the_fuck_is_it);
  34. }
  35.  
  36. if($item[portable mayo clinic].available_amount() > 0){
  37. cli_execute("use portable mayo clinic");
  38. }
  39.  
  40. //get_property("_dicey_mp_runs").to_int() == 0 &&
  41. if( have_effect($effect[Clumsy]) > 0){
  42. cli_execute("/shrug! clumsy");
  43. }
  44.  
  45. if(get_property("_turns_that_this_script_can_use_today") == ""){
  46. cli_execute("/shrug timer 1");
  47. wait(3);
  48. int min_duration = 69420;
  49. foreach i in my_effects(){
  50. if(i.have_effect() < min_duration && i.have_effect() > 0){
  51. min_duration = i.have_effect();
  52. }
  53. }
  54. if(min_duration < 10){
  55. set_property("_turns_that_this_script_can_use_today",3);
  56. }
  57. else{
  58. set_property("_turns_that_this_script_can_use_today",5);
  59. }
  60. }
  61. if(have_effect($effect[timer 1]) < get_property("_turns_that_this_script_can_use_today").to_int()){
  62. cli_execute("/timer "+(get_property("_turns_that_this_script_can_use_today").to_int()+1));
  63. }
  64. if(get_property("currentMood") != "apathetic"){
  65. set_property("currentMood","apathetic");
  66. }
  67.  
  68. set_property("battleAction","custom combat script");
  69.  
  70. set_auto_attack("(npzr bullshit");
  71. cli_execute("acquire 420 chipotle wasabi cilantro aioli");
  72. cli_execute("acquire 69 louder than bomb");
  73. /*
  74. base combat macro for this stupid script: https://pastebin.com/qJHSN8nN
  75. things left to do maybe eventually:
  76. 2-4 goth fights?
  77. equipment checks, class checks, path checks, better tracking of deaths
  78. */
  79.  
  80. //for funsies.
  81. void log_online_players(){
  82. //every 5 minutes.
  83. if(max(gametime_to_int() - get_property("_last_online_check").to_int(),get_property("_last_online_check").to_int() - gametime_to_int()) > 300000){
  84. string[int] online_players;
  85. file_to_map("online players.txt",online_players);
  86. set_property("message_index",get_property("message_index").to_int()+1);
  87. online_players[get_property("message_index").to_int()] = group_string(visit_url("login.php"), "There are currently.*?<b>(\\d+)</b>")[0][1].to_int()+" players logged in at "+gametime_to_int()+" on "+today_to_string();
  88. print(online_players[get_property("message_index").to_int()]);
  89. map_to_file(online_players, "online players.txt");
  90. set_property("_last_online_check",gametime_to_int());
  91. }
  92. }
  93.  
  94. //for excluding from daily mallbot under-priced purchase refunds.
  95. void log_mmg(){
  96. //every 20 seconds.
  97. if(max(gametime_to_int() - get_property("_last_mmg_check").to_int(),get_property("_last_mmg_check").to_int() - gametime_to_int()) > 20000){
  98. string[int][int][int] idiots_and_their_bets;
  99. file_to_map("known mmgers.txt", idiots_and_their_bets);
  100. string page_of_idiots = visit_url("bet.php");
  101. int[string] buttles;
  102. int last_bet_ID = get_property("last_bet_ID").to_int();
  103.  
  104. //sample line in table of bets:
  105. //<b>Dare Devil</b> (#3193713)</a></font></td><td>5,000 Meat</td><form style='display: inline' name='form95287715' method=post action='bet.php'><td align=right><input type=hidden name=pwd value=28784c89a945315a880642d415a5b332><input type=hidden name=action value='bet'><input type=hidden name=whichbet value='95287715'>
  106.  
  107. string[int][int] parsed_page_of_idiots = page_of_idiots.group_string("<b>([0-9a-zA-Z _]+)</b> \\(#(\\d+)\\).*?([0-9,]+) Meat.*?name=\'form([0-9]+)\'");
  108.  
  109. foreach i,j in parsed_page_of_idiots{
  110. //print(i+","+j+": "+parsed_page_of_idiots[i][j]);
  111. if(j==1){
  112. idiots_and_their_bets[parsed_page_of_idiots[i][4].to_int()][parsed_page_of_idiots[i][3].to_int()][parsed_page_of_idiots[i][2].to_int()] = parsed_page_of_idiots[i][1];
  113. print_html(parsed_page_of_idiots[i][4]+" "+parsed_page_of_idiots[i][3]+" "+parsed_page_of_idiots[i][2]+" "+parsed_page_of_idiots[i][1]);
  114. }
  115. }
  116.  
  117. //stored as betID betAmount idiotID idiot
  118. map_to_file(idiots_and_their_bets,"known mmgers.txt");
  119. file_to_map("actual mmgers.txt",buttles);
  120. foreach i,j,k in idiots_and_their_bets{
  121. if( i > last_bet_ID){
  122. buttles[idiots_and_their_bets[i][j][k]] += j;
  123. last_bet_ID = i;
  124. }
  125. //buttles[idiots_and_their_bets[i][j][k]] = true;
  126. }
  127. map_to_file(buttles, "actual mmgers.txt");
  128. set_property("last_bet_ID",last_bet_ID);
  129.  
  130. int[string] mmgers;
  131.  
  132. file_to_map("actual mmgers.txt", mmgers);
  133.  
  134. int[int] meats;
  135. foreach i in mmgers{
  136. meats[mmgers[i]] = mmgers[i];
  137. }
  138.  
  139. //sort meats by -value;
  140.  
  141. int county_thing;
  142. string[int][int] sorted_mmgers;
  143. foreach i in mmgers{
  144. foreach j in meats{
  145. if(mmgers[i] == meats[j]){
  146. sorted_mmgers[meats[j]][county_thing] = i;
  147. county_thing++;
  148. }
  149. }
  150. }
  151.  
  152. map_to_file(sorted_mmgers, "sorted mmgers.txt");
  153. set_property("_last_mmg_check",gametime_to_int());
  154. }
  155. }
  156.  
  157.  
  158.  
  159.  
  160. void summon_shit(){
  161.  
  162. cli_execute("cast * dice");
  163.  
  164. /*
  165. if(get_property("libram_parity").to_int() == 0){
  166. cli_execute("cast * dice");
  167. set_property("libram_parity", 1);
  168. }
  169. else{
  170. //cli_execute("cast * summon resolutions");
  171. cli_execute("cast * dice");
  172. set_property("libram_parity", 0);
  173. }
  174. */
  175. /*
  176. cli_execute("cast * summon party favor");
  177.  
  178.  
  179. //chance of rare = 1/2^([# of rares summoned]+1)
  180. // E[summons for rare #N] = \sum_{i=1}^{N+1}2^i = 2*(2^{N+1}-1)
  181. //E[rares in N summons] = log_2(N/2 + 1)-1
  182. //but who cares because we can't take a log in ASH.
  183.  
  184.  
  185. int favors_summoned = get_property("libramSummons").to_int()-get_property("_last_bricko_eye").to_int();
  186. int indexing_stuff = 0;
  187. int remaining = favors_summoned;
  188. while(remaining > (2**(1+indexing_stuff))){
  189. indexing_stuff++;
  190. remaining -= 2**indexing_stuff;
  191. }
  192. if(remaining >= 0){
  193. print("expected between "+(indexing_stuff)+" and "+(indexing_stuff+1)+" divine rares from "+favors_summoned+" summons");
  194. print("but got "+get_property("_favorRareSummons"));
  195. }
  196. */
  197. }
  198.  
  199.  
  200.  
  201.  
  202. void bjorn_stuff(){
  203. log_mmg();
  204. log_online_players();
  205. summon_shit();
  206. if(get_property("_garbageFireDropsCrown").to_int() < 3){
  207. if(my_bjorned_familiar() != $familiar[garbage fire]){
  208. bjornify_familiar($familiar[garbage fire]);
  209. }
  210. }
  211. else{
  212. if(get_property("_grimFairyTaleDropsCrown").to_int() < 2){
  213. if(my_bjorned_familiar() != $familiar[grim brother]){
  214. bjornify_familiar($familiar[grim brother]);
  215. }
  216. }
  217. else{
  218. if(get_property("_grimstoneMaskDropsCrown").to_int() < 1){
  219. if(my_bjorned_familiar() != $familiar[grimstone golem]){
  220. bjornify_familiar($familiar[grimstone golem]);
  221. }
  222. }
  223. else{
  224. if(my_bjorned_familiar()!= $familiar[misshapen animal skeleton]){
  225. bjornify_familiar($familiar[misshapen animal skeleton]);
  226. }
  227. }
  228. }
  229. }
  230. }
  231.  
  232. void use_plural_of_rain_man(){
  233. cli_execute("gc");
  234. log_mmg();
  235. while( my_rain() >= 50 && (my_inebriety() - inebriety_limit()) <= 0 ){
  236. if( !get_property("_chateauMonsterFought").to_boolean() && my_rain() <= 93 ){
  237. set_auto_attack("(npzr bullshit");
  238. visit_url("place.php?whichplace=chateau&action=chateau_painting");
  239. run_combat();
  240. //better safe than aborted, I guess:
  241. while(in_multi_fight()){
  242. run_combat();
  243. }
  244. }
  245. else{
  246. if(item_amount($item[photocopied monster]) == 1 && get_property("_photocopyUsed") == "false" ){
  247. set_auto_attack("(npzr bullshit");
  248. cli_execute("/use photocopied monster");
  249. run_combat();
  250. while(in_multi_fight()){
  251. run_combat();
  252. }
  253. }
  254. else{
  255. if(get_property("_turns_that_this_script_can_use_today").to_int() > 0){
  256. set_auto_attack("embezzler boa bullshit");
  257. cli_execute("/cast rain man");
  258. set_property("_turns_that_this_script_can_use_today",get_property("_turns_that_this_script_can_use_today").to_int()-1);
  259. //embezzler 530
  260. visit_url("choice.php?whichchoice=970&whichmonster=530&option=1&pwd");
  261. try{
  262. visit_url("main.php");
  263. }
  264. finally{
  265. run_combat("while !pastround 20; use dictionary; endwhile;");
  266. }
  267. while(in_multi_fight()){
  268. run_combat();
  269. }
  270. set_auto_attack("(npzr bullshit");
  271. }
  272. else{
  273. set_auto_attack("(npzr bullshit");
  274. cli_execute("/cast rain man");
  275. //witchess knight
  276. visit_url("choice.php?whichchoice=970&whichmonster=1936&option=1&pwd");
  277. //black crayon elf
  278. //visit_url("choice.php?whichchoice=970&whichmonster=1201&option=1&pwd");
  279. //Mob Penguin organizer
  280. //visit_url("choice.php?whichchoice=970&whichmonster=2037&option=1&pwd");
  281. run_combat();
  282. while(in_multi_fight()){
  283. run_combat();
  284. }
  285. cli_execute("cast cannelloni cocoon");
  286. bjorn_stuff();
  287. }
  288. }
  289. }
  290. }
  291. while( slash_count($item[spooky putty monster]) > 0 ){
  292. if(get_property("rkelly").to_int() == 0){
  293. while( (slash_count($item[spooky putty monster]) > 0 && get_property("_spoopiesfought").to_int() < 4 )){
  294. cli_execute("/use spooky putty monster");
  295. set_property("_spoopiesfought", get_property("_spoopiesfought").to_int() + 1 );
  296. run_combat();
  297. while(in_multi_fight()){
  298. run_combat();
  299. }
  300. }
  301. if(slash_count($item[spooky putty monster]) > 0 & get_property("_spoopiesfought").to_int() == 4 ){
  302. set_auto_attack("basically npzr bullshit");
  303. cli_execute("/use spooky putty monster");
  304. set_property("_spoopiesfought", get_property("_spoopiesfought").to_int() + 1 );
  305. run_combat();
  306. while(in_multi_fight()){
  307. run_combat();
  308. }
  309. set_auto_attack("(npzr bullshit");
  310. }
  311. if(slash_count($item[spooky putty sheet]) > 0 & get_property("_spoopiesfought").to_int() == 5 ){
  312. put_closet(1, $item[spooky putty sheet]);
  313. set_property("rkelly",1);
  314. }
  315. }
  316. }
  317. }
  318.  
  319.  
  320. void use_lightning_strikes(){
  321. log_mmg();
  322. summon_shit();
  323. while( my_lightning() > 89 ){
  324. set_auto_attack("hr sandworms");
  325. visit_url("inv_use.php?whichitem=2328&pwd");
  326. run_combat();
  327. while(in_multi_fight()){
  328. run_combat();
  329. }
  330. cli_execute("cast cannelloni cocoon");
  331. set_auto_attack("(npzr bullshit");
  332. }
  333. if( my_rain() > 70){
  334. use_plural_of_rain_man();
  335. }
  336. while( my_lightning() > 19 ){
  337. if(get_property("_firedJokestersGun") == "false"){
  338. cli_execute("equip offhand old school flying disc");
  339. cli_execute("equip weapon jokester\'s gun");
  340. set_property("_did_jokester_thingy","asdf");
  341. }
  342. set_auto_attack("hr sandworms");
  343. visit_url("inv_use.php?whichitem=2328&pwd");
  344. run_combat();
  345. while(in_multi_fight()){
  346. run_combat();
  347. }
  348. cli_execute("cast cannelloni cocoon");
  349. bjorn_stuff();
  350. set_auto_attack("(npzr bullshit");
  351. if(get_property("_did_jokester_thingy") != ""){
  352. cli_execute("outfit npzr bullshit");
  353. set_property("_did_jokester_thingy","");
  354. }
  355. }
  356. }
  357.  
  358. cli_execute("acquire 69 soft green echo eyedrop antidote");
  359.  
  360. if(have_effect($effect[insani tea]) != 0){
  361. cli_execute("/shrug! insani tea");
  362. }
  363. if(have_effect($effect[curse of randomness]) != 0){
  364. cli_execute("/shrug! curse of randomness");
  365. }
  366.  
  367. if(!get_property("breakfastCompleted").to_boolean()){
  368. if(get_property("libramSummons").to_int() == 0){
  369. while(get_property("_brickoEyeSummons").to_int() <3 ){
  370. cli_execute("cast summon brickos");
  371. }
  372. set_property("_last_bricko_eye",get_property("libramSummons"));
  373. while(get_property("_favorRareSummons").to_int() <4 ){
  374. cli_execute("cast summon party favor");
  375. }
  376. }
  377. cli_execute("breakfast");
  378. }
  379.  
  380. if(!get_property("_kgbLeftDrawerUsed").to_boolean()){
  381. cli_execute("briefcase collect");
  382. }
  383.  
  384. if(get_property("_deckCardsDrawn").to_int() == 0){
  385. cli_execute("cheat x of swords");
  386. cli_execute("cheat rope");
  387. // cli_execute("cheat x of cups");
  388. cli_execute("cheat year of plenty");
  389. }
  390. /*
  391. //if(get_property("_personal_high_top_tracking") <3 ){
  392. cli_execute("/use pump-up high-tops");
  393. cli_execute("/use pump-up high-tops");
  394. cli_execute("/use pump-up high-tops");
  395. //}
  396. */
  397. refresh_status();
  398.  
  399.  
  400. cli_execute("acquire 69 mayodiol");
  401. cli_execute("acquire 69 mayonex");
  402. cli_execute("acquire 69 special seasoning");
  403. cli_execute("acquire 69 milk of magnesium");
  404. if(get_property("_thanksgettingFoodsEaten").to_int() < 9 && my_fullness() < 7 && my_inebriety() < 11){
  405. if(have_effect($effect[got milk]) < 69){
  406. cli_execute("/use 11 milk of magnesium");
  407. }
  408. /*
  409. if(item_amount($item[warm gravy]) < 11 && item_amount($item[cashew]) < 69 ){
  410. cli_execute("acquire 11 cornucopia");
  411. cli_execute("use 11 cornucopia");
  412. }
  413. for i from 9171 to 9179{
  414. cli_execute("acquire 11 "+to_item(i));
  415. }
  416. for i from 9171 to 9179{
  417. if(!get_property("_timeSpinnerFoodAvailable").contains_text(i.to_string())){
  418. if(get_property("mayoInMouth") == "" && get_property("_this_tracks_mayodiol").to_int() < 4){
  419. use(1, $item[mayodiol]);
  420. set_property("_this_tracks_mayodiol",get_property("_this_tracks_mayodiol").to_int() + 1);
  421. }
  422. else{
  423. use(1, $item[mayonex]);
  424. }
  425. eat(1, to_item(i));
  426. }
  427. }
  428. */
  429. }
  430.  
  431. if(get_property("_infernoDiscoVisited") == "false"){
  432. cli_execute("outfit velvet");
  433. visit_url("place.php?whichplace=airport_hot&action=airport4_zone1");
  434. run_choice(7);
  435. }
  436. if(get_property("_dinseyGarbageDisposed") == "false"){
  437. cli_execute("acquire 11 bag of park garbage");
  438. if(get_property("choiceAdventure1067") != "7"){
  439. set_property("choiceAdventure1067",7);
  440. }
  441. visit_url("place.php?whichplace=airport_stench&action=airport3_tunnels");
  442. cli_execute("try;choice Waste Disposal");
  443. }
  444. if(get_property("_detectiveCasesCompleted") == "0"){
  445. cli_execute("run detective solver.ash");
  446. }
  447. if(get_property("_clipartSummons").to_int() == 0 ){
  448. for i from 1 to 3{
  449. //temps tempranillo.
  450. visit_url("campground.php?preaction=combinecliparts&action=bookshelf&clip1=09&clip2=04&clip3=04");
  451. }
  452. }
  453. if(get_property("_horsery") == ""){
  454. cli_execute("horsery meat");
  455. }
  456.  
  457. refresh_status();
  458.  
  459. int eggz1 = inebriety_limit() - my_inebriety() - 2;
  460. int eggz2 = fullness_limit() - my_fullness() - 1;
  461.  
  462. if(get_property("_foisissbsb") == ""){
  463. cli_execute("/buy sphygmayomanometer");
  464. set_property("_foisissbsb","aregatha");
  465. }
  466.  
  467. //cli_execute("acquire 11 toast with hot jelly");
  468. cli_execute("acquire 11 hot jelly");
  469. if(eggz1 > 0 && get_property("_sexy_toast") == ""){
  470. //use(1, $item[mayodiol]);
  471. //eat(1, $item[toast with hot jelly]);
  472. chew(1, $item[hot jelly]);
  473. set_property("_sexy_toast", "asdoiwbd");
  474. //eggz1 = eggz1 - 1;
  475. }
  476.  
  477.  
  478. cli_execute("acquire 69 spooky surprise egg");
  479. cli_execute("acquire 11 jumbo dr. lucifer");
  480. if(get_property("_jdl_consumption").to_int() <0 ){
  481. equip($slot[acc2],$item[sphygmayomanometer]);
  482. }
  483. if(eggz1 > 0){
  484. cli_execute("try; closet put * special seasoning");
  485. }
  486. while(eggz1 > 0 && get_property("_jdl_consumption").to_int() <0 ){
  487. use(1, $item[mayodiol]);
  488. cli_execute("cast cannelloni cocoon");
  489. bjorn_stuff();
  490. eat(1, $item[jumbo dr. lucifer]);
  491. while(my_mp() * 10 > my_maxmp()){
  492. summon_shit();
  493. }
  494. set_property("_jdl_consumption",get_property("_jdl_consumption").to_int()+1);
  495. eggz1 = eggz1 - 1;
  496. cli_execute("cast cannelloni cocoon");
  497. bjorn_stuff();
  498. }
  499. while(eggz1 > 0){
  500. use(1, $item[mayodiol]);
  501. eat(1, $item[spooky surprise egg]);
  502. eggz1 = eggz1 - 1;
  503. }
  504. if(eggz2 > 0){
  505. cli_execute("try; closet take * special seasoning");
  506. }
  507.  
  508. if(are_we_consuming_eggs){
  509. while(eggz2 > 0){
  510. use(1, $item[Mayonex] );
  511. eat(1, $item[spooky surprise egg]);
  512. eggz2 = eggz2 - 1;
  513. }
  514. }
  515. else{
  516. if(eggz2 >= 14 && !get_property("_affirmationCookieEaten").to_boolean()){
  517. cli_execute("acquire 11 frozen banquet; acquire 11 affirmation cookie; acquire 11 salad fork; acquire 11 dieting pill;");
  518. use(1, $item[Mayonex] );
  519. eat(1, $item[spaghetti breakfast]);
  520. //use(1, $item[Mayonex] );
  521. //eat(1, $item[affirmation cookie]);
  522. use(1, $item[Mayonex] );
  523. cli_execute("chew dieting pill; eat salad fork; eat frozen banquet;");
  524. }
  525. }
  526.  
  527.  
  528. while(get_property("_genieWishesUsed").to_int() < 3 && get_property("_holy_shit_stop_wishing").to_int() < 11){
  529. if(slash_count($item[genie bottle]) == 0){
  530. cli_execute("/uncloset genie bottle");
  531. }
  532. cli_execute("genie wish for more wishes");
  533. set_property("_holy_shit_stop_wishing",get_property("_holy_shit_stop_wishing").to_int()+1);
  534. }
  535.  
  536. if(get_property("_pottedTeaTreeUsed") == "false"){
  537. if(item_amount($item[cuppa royal tea]) < item_amount($item[cuppa mediocri tea])){
  538. cli_execute("teatree royal");
  539. }
  540. else{
  541. if(item_amount($item[cuppa mediocri tea]) < item_amount($item[cuppa voraci tea])){
  542. cli_execute("teatree mediocri");
  543. }
  544. else{
  545. if(item_amount($item[cuppa voraci tea]) < item_amount($item[cuppa sobrie tea]))
  546. {
  547. cli_execute("teatree voraci");
  548. }
  549. else{
  550. cli_execute("teatree sobrie");
  551. }
  552. }
  553. }
  554. }
  555.  
  556. if(get_property("_roboDrinks") == ""){
  557. //important ones: 2x lep, 1x fairy kind of, whatever thing heals, potato
  558. //unimportant one: candy because elohelecksdeerandom
  559. //alias ocrsrobort => robo feliz, single entendre, simepore, drive-by, mysterious island iced tea
  560. //cli_execute("ocrsrobort");
  561. //nerfedrobort => robo single entendre, simepore, drive-by, mysterious island iced tea
  562. //cli_execute("nerfedrobort");
  563. }
  564. /*
  565. if(get_property("_bittycar") != "soulcar" ){
  566. cli_execute("/use soulcar");
  567. }
  568. */
  569. if(get_property("_bittycar") != "meatcar" ){
  570. cli_execute("/use bittycar meatcar");
  571. }
  572. if(get_property("_pantogramModifier") == ""){
  573. cli_execute("acquire ten-leaf clover");
  574. cli_execute("acquire taco shell");
  575. cli_execute("/use portable pantogram");
  576. visit_url("choice.php?whichchoice=1270&option=1&m=1&e=1&s1=-1,0&s2=173,1&s3=24,1&pwd="+my_hash());
  577. }
  578.  
  579. if(get_property("_yeah_bb") == ""){
  580. while(available_choice_options().count() != 7){
  581. cli_execute("/use bastille battalion control rig");
  582. wait(3);
  583. visit_url("main.php");
  584. }
  585. while(last_choice() == 1313){
  586. visit_url("choice.php?whichchoice=1313&option=5");
  587. }
  588. while(available_choice_options().count() > 0 && last_choice() <= 1319 && last_choice() > 1313){
  589. run_choice(3);
  590. }
  591. if(last_choice() == 1316 && available_choice_options().count() == 0){
  592. set_property("_yeah_bb","asdfh");
  593. }
  594. }
  595.  
  596. // Looks like 57 pieces in all. 7,423 toddlers are training with 4 instructors in the boxing ring. It's impressive how efficient they are, what with that student-to-teacher ratio.
  597. //<font color=blue><b>[1,000,000 Meat]</b>
  598.  
  599. if(get_property("_child_abuse") == ""){
  600. string kids_bop;
  601. string daycare_state = get_property("daycare_state");
  602. int children_to_buy = 3 - get_property("_children_bought").to_int();
  603. int kids_iteration;
  604. //get into choice 1334.
  605. kids_bop = visit_url("place.php?whichplace=town_wrong&action=townwrong_boxingdaycare");
  606. //fight poor internet connection with idempotence
  607. while(!(kids_bop.contains_text("a door to a spa to your left")) && kids_iteration < 10){
  608. wait(10);
  609. kids_bop = visit_url("place.php?whichplace=town_wrong&action=townwrong_boxingdaycare");
  610. kids_iteration++;
  611. }
  612.  
  613. //grab daily thing.
  614. while(visit_url("choice.php?whichchoice=1334&option=1").length() < 69 && kids_iteration < 69){
  615. kids_iteration++;
  616. }
  617.  
  618. //get into choice 1336.
  619. while(kids_bop.contains_text("a door to a spa to your left") && kids_iteration < 69 ){
  620. kids_bop = visit_url("choice.php?whichchoice=1334&option=3");
  621. kids_iteration++;
  622. //record daycare state after we reach choice 1336
  623. if(kids_bop.contains_text("Hire an instructor")){
  624. daycare_state = kids_bop.substring(kids_bop.index_of("Looks like"),kids_bop.index_of("instructors")+12);
  625. }
  626. }
  627.  
  628. //scavenge for freeeee
  629. while(kids_bop.contains_text("[free]") && kids_bop.contains_text(daycare_state) && kids_iteration < 69 ){
  630. kids_bop = visit_url("choice.php?whichchoice=1336&option=2");
  631. kids_iteration++;
  632. //if we've scavenged successfully, update daycare state.
  633. if(kids_bop.contains_text(" adventure]") && !kids_bop.contains_text("[free]") && !kids_bop.contains_text(daycare_state)){
  634. daycare_state = kids_bop.substring(kids_bop.index_of("Looks like"),kids_bop.index_of("instructors")+12);
  635. }
  636. }
  637.  
  638. //buy some children, but only if they cost at least 100 meat and at most 10000 meat.
  639. while( children_to_buy > 0 && kids_iteration < 69 && kids_bop.contains_text("00 Meat]") && !kids_bop.contains_text("00,000 Meat]")){
  640. kids_bop = visit_url("choice.php?whichchoice=1336&option=1");
  641. kids_iteration++;
  642. //if daycare state changes, decrement children_to_buy, increment _children_bought, and update daycare_state.
  643. if(!((kids_bop.contains_text(daycare_state)) && kids_bop.contains_text("00 Meat]") )){
  644. children_to_buy += -1;
  645. set_property("_children_bought", get_property("_children_bought").to_int()+1);
  646. daycare_state = kids_bop.substring(kids_bop.index_of("Looks like"),kids_bop.index_of("instructors")+12);
  647. }
  648. //if we're done, be done.
  649. if(children_to_buy == 0){
  650. set_property("_child_abuse", "beyond!");
  651. set_property("daycare_state", daycare_state);
  652. }
  653. }
  654. }
  655. if(get_property("expressCardUsed") == "false" ){
  656. cli_execute("try;shrug ancient fortitude;");
  657. equip($slot[acc2],$item[sphygmayomanometer]);
  658. if(take_stash(1,$item[platinum yendorian express card])){
  659. set_property("stole_pyec", get_property("stole_pyec")+"totes");
  660. set_property("_stole_pyec","totes");
  661. set_property("passable_clan", get_clan_name());
  662. set_property("_passable_clan", get_clan_name());
  663. use(1,$item[platinum yendorian express card]);
  664. print("We have successfully stolen a pyec from "+get_property("_passable_clan"));
  665. }
  666. else{
  667. if(get_property("scrublords") != ""){
  668. set_property("scrublords", get_property("scrublords")+", "+get_clan_name());
  669. }
  670. else{
  671. set_property("scrublords", get_clan_name());
  672. }
  673. set_property("_scrublords",get_clan_name());
  674. print_html("We have failed to steal a pyec from "+get_property("_scrublords"));
  675. }
  676. while(my_mp() * 10 > my_maxmp()){
  677. summon_shit();
  678. }
  679. }
  680. if(get_property("_stole_pyec") == "totes" && get_property("_passable_clan") == get_clan_name()){
  681. if(put_stash(1,$item[platinum yendorian express card])){
  682. set_property("stole_pyec", get_property("stole_pyec").substring(5));
  683. print("We have successfully unstolen a pyec from "+get_property("_passable_clan"));
  684. }
  685. else{
  686. print("We have failed to unsteal a pyec from "+get_property("_passable_clan"));
  687. }
  688. }
  689.  
  690. //abort("line 552");
  691.  
  692. cli_execute("outfit npzr bullshit");
  693. if(my_familiar() != $familiar[feather boa constrictor]){
  694. cli_execute("familiar feather boa constrictor");
  695. }
  696. if(!(get_property("_mummeryUses").contains_text("3"))){
  697. cli_execute("mummery muscle");
  698. }
  699. if(equipped_item($slot[familiar]) != $item[loathing legion helicopter]){
  700. cli_execute("try;fold loathing legion helicopter");
  701. cli_execute("equip familiar loathing legion helicopter");
  702. }
  703. cli_execute("equip pants pantogram pants");
  704. /*
  705. if(my_path() == "Heavy Rains"){
  706. cli_execute("equip shirt fishbone corset");
  707. }
  708. else{
  709. cli_execute("equip shirt stephen\'s labcoat");
  710. }
  711. //cli_execute("equip weapon staff of the woodfire");
  712. cli_execute("equip weapon rope");
  713. if(my_path() == "Heavy Rains"){
  714. cli_execute("equip offhand thor's pliers");
  715. }
  716. else{
  717. cli_execute("equip offhand half a purse");
  718. }
  719. */
  720. if(slash_count($item[spooky putty monster]) > 0 || slash_count($item[spooky putty monster]) > 0 ){
  721. set_property("rkelly","");
  722. }
  723.  
  724.  
  725. if(get_property("_spoopiesfought").to_int() == 5 || (slash_count($item[spooky putty sheet]) > 0&& get_property("spookyPuttyCopiesMade").to_int() == 5)){
  726. //put_closet(1, $item[spooky putty sheet]);
  727. cli_execute("try; closet put spooky putty sheet");
  728. set_property("rkelly",1);
  729. }
  730.  
  731. /*
  732. if(get_property("_been_here_today") == ""){
  733. set_property("_been_here_today","asdfg");
  734. abort("it's mime time.");
  735. }
  736. */
  737.  
  738. if(item_amount($item[photocopied monster]) == 0 && get_property("_photocopyUsed") == "false" && get_property("_stop_bugging_faxbots") != "please"){
  739. //2047002812 = yojimbos_law's multis
  740. //set_property("_stop_bugging_faxbots","please");
  741. //cli_execute("faxbot black crayon ballsack elf");
  742. while(get_clan_id() != 2047002812){
  743. cli_execute("/whitelist yojimboS_LAW");
  744. }
  745. while(get_clan_id() == 2047002812 && item_amount($item[photocopied monster]) == 0){
  746. //gets witchess knight
  747. cli_execute("fax receive");
  748. }
  749. while(get_clan_id() == 2047002812 && item_amount($item[photocopied monster]) == 1 ){
  750. cli_execute("/whitelist e from hel");
  751. }
  752. }
  753.  
  754. string avoiding_human_interaction;
  755. if(get_property("_human_interaction_avoided") == ""){
  756. while(get_clan_id() != 90485){
  757. cli_execute("/whitelist bonus adventures from hell");
  758. }
  759. avoiding_human_interaction = visit_url("clan_viplounge.php?preaction=lovetester");
  760. if(!(avoiding_human_interaction.contains_text("You may still consult Madame Zatara about your relationship with a clanmate"))){
  761. set_property("_human_interaction_avoided","this is text");
  762. }
  763. while(avoiding_human_interaction.contains_text("You may still consult Madame Zatara about your relationship with a clanmate") && get_property("_human_interaction_avoided") == ""){
  764. avoiding_human_interaction = visit_url("choice.php?whichchoice=1278&which=1&q1=pizza&q2=batman&q3=thick&option=1&whichid=cheesefax&pwd="+my_hash());
  765. if(!(avoiding_human_interaction.contains_text("You may still consult Madame Zatara about your relationship with a clanmate"))){
  766. set_property("_human_interaction_avoided","this is text");
  767. }
  768. if(avoiding_human_interaction.contains_text("already waiting on your results with")){
  769. wait(5);
  770. }
  771. }
  772. while(get_clan_id() == 90485){
  773. cli_execute("/whitelist e from hel");
  774. }
  775. }
  776.  
  777. use_lightning_strikes();
  778. use_plural_of_rain_man();
  779.  
  780. while( get_property("_witchess_tracking_suuuucks").to_int() < 5){
  781. visit_url("campground.php?action=witchess");
  782. if(available_choice_options()[1] == "Examine the shrink ray"){
  783. //visit_url("choice.php?whichchoice=1181&option=1&pwd");
  784. run_choice(1);
  785. set_property("_witchess_tracking_suuuucks", get_property("_witchess_tracking_suuuucks").to_int() + 1);
  786. }
  787. if(available_choice_options()[1] == "" && available_choice_options()[2] == "Play Witchess"){
  788. set_property("_witchess_tracking_suuuucks" , 5);
  789. }
  790. //knight.
  791. visit_url("choice.php?whichchoice=1182&option=1&piece=1936&pwd="+my_hash(),false);
  792. run_combat();
  793. while(in_multi_fight()){
  794. run_combat();
  795. }
  796. }
  797.  
  798. if(my_path() == "Heavy Rains"){
  799. cli_execute("equip offhand thor's pliers");
  800. }
  801. else{
  802. cli_execute("equip offhand HOA regulation book");
  803. }
  804.  
  805. string combat_tracking_bullshit;
  806. int turncount_fuckup_finder = my_turncount();
  807. string party_check;
  808. while(get_property("_party_preference_whatever").to_int() < 10 && turncount_fuckup_finder == my_turncount()){
  809. combat_tracking_bullshit = get_property("_lastCombatStarted");
  810. visit_url("adventure.php?snarfblat=528");
  811. visit_url("main.php");
  812. while(available_choice_options().count() > 0 && last_choice() == 1322){
  813. visit_url("choice.php?whichchoice=1322&option=2&pwd");
  814. }
  815. while(available_choice_options().count() > 0 && last_choice() == 1324){
  816. visit_url("choice.php?whichchoice=1324&option=5&pwd");
  817. }
  818. while(in_multi_fight()){
  819. run_combat();
  820. }
  821. if(combat_tracking_bullshit != get_property("_lastCombatStarted")){
  822. set_property("_party_preference_whatever", get_property("_party_preference_whatever").to_int() + 1 );
  823. }
  824. if(get_property("_party_preference_whatever").to_int() == 10){
  825. party_check = "";
  826. party_check = visit_url("place.php?whichplace=town_wrong");
  827. while(party_check.length() < 6969){
  828. party_check = visit_url("place.php?whichplace=town_wrong");
  829. wait(5);
  830. }
  831. if(party_check.contains_text("nparty_free.gif")){
  832. set_property("_party_preference_whatever", get_property("_party_preference_whatever").to_int() - 1 );
  833. }
  834. }
  835. cli_execute("cast cannelloni cocoon");
  836. bjorn_stuff();
  837. }
  838. if(turncount_fuckup_finder != my_turncount()){
  839. abort("your shitty shit party code is shit, you shit.");
  840. }
  841.  
  842. use_lightning_strikes();
  843. use_plural_of_rain_man();
  844.  
  845. while(get_property("_snojoFreeFights").to_int() < 10){
  846. adv1(to_location(460),-1, "" );
  847. while(in_multi_fight()){
  848. run_combat();
  849. }
  850. cli_execute("cast cannelloni cocoon");
  851. bjorn_stuff();
  852. }
  853.  
  854. use_lightning_strikes();
  855. use_plural_of_rain_man();
  856.  
  857. cli_execute("acquire 69 lynyrd snare");
  858. if(get_property("_lynyrdSnareUses").to_int() < 3){
  859. set_auto_attack("(npzr bullshit");
  860. }
  861. while(get_property("_lynyrdSnareUses").to_int() < 3){
  862. /*
  863. cli_execute("/use lynyrd snare");
  864. run_combat();
  865. while(in_multi_fight){
  866. run_combat();
  867. }
  868. cli_execute("cast cannelloni cocoon");
  869. bjorn_stuff();
  870. */
  871. visit_url("inv_use.php?whichitem=7204&pwd");
  872. run_combat();
  873. while(in_multi_fight()){
  874. run_combat();
  875. }
  876. }
  877.  
  878. if(get_property("_globster_globs").to_int() <3 ){
  879. set_auto_attack("(npzr bullshit");
  880. }
  881. while(get_property("_globster_globs").to_int() <3 ){
  882. if(my_familiar() != $familiar[god lobster]){
  883. cli_execute("familiar god lobster");
  884. }
  885. if(equipped_item($slot[familiar]) != $item[god lobster\'s crown] && available_amount($item[god lobster\'s crown]) > 0){
  886. cli_execute("equip familiar god lobster\'s crown");
  887. }
  888. else{
  889. if(equipped_item($slot[familiar]) != $item[god lobster\'s robe] && available_amount($item[god lobster\'s robe]) > 0){
  890. cli_execute("equip familiar god lobster\'s robe");
  891. }
  892. else{
  893. if(equipped_item($slot[familiar]) != $item[god lobster\'s rod] && available_amount($item[god lobster\'s rod]) > 0){
  894. cli_execute("equip familiar god lobster\'s rod");
  895. }
  896. else{
  897. if(equipped_item($slot[familiar]) != $item[god lobster\'s ring] && available_amount($item[god lobster\'s ring]) > 0){
  898. cli_execute("equip familiar god lobster\'s ring");
  899. }
  900. else{
  901. if(equipped_item($slot[familiar]) != $item[god lobster\'s scepter] && available_amount($item[god lobster\'s scepter]) > 0){
  902. cli_execute("equip familiar god lobster\'s scepter");
  903. }
  904. }
  905. }
  906. }
  907. }
  908. visit_url("main.php?fightgodlobster=1");
  909. set_property("_globster_globs",get_property("_globster_globs").to_int()+1);
  910. visit_url("fight.php?action=macro&macrotext=while !hppercentbelow 69; attack; endwhile;");
  911. //if(equipped_item($slot[familiar]) == $item[god lobster\'s crown]){
  912. //visit_url("choice.php?whichchoice=1310&option=3");
  913. visit_url("choice.php");
  914. cli_execute("try;choice experience;");
  915. //}
  916. /*
  917. else{
  918. visit_url("choice.php?whichchoice=1310&option=1");
  919. }
  920. */
  921. visit_url("choice.php");
  922. }
  923. if(my_familiar() != $familiar[feather boa constrictor]){
  924. cli_execute("familiar feather boa constrictor");
  925. }
  926. if(equipped_item($slot[familiar]) != $item[loathing legion helicopter]){
  927. cli_execute("try;fold loathing legion helicopter");
  928. cli_execute("equip familiar loathing legion helicopter");
  929. }
  930.  
  931. use_lightning_strikes();
  932. use_plural_of_rain_man();
  933.  
  934. cli_execute("acquire 69 seal-blubber candle");
  935. cli_execute("acquire 69 figurine of a wretched-looking seal");
  936. if(get_property("_sealsSummoned").to_int() < 10){
  937. cli_execute("equip weapon gnawed-up dog bone");
  938. set_property("_change_me_back","asdfg");
  939. }
  940. while(get_property("_sealsSummoned").to_int() < 10){
  941. visit_url("inv_use.php?whichitem=3902&checked=1&pwd");
  942. run_combat();
  943. while(in_multi_fight()){
  944. run_combat();
  945. }
  946. cli_execute("cast cannelloni cocoon");
  947. bjorn_stuff();
  948. }
  949.  
  950. //cli_execute("equip weapon staff of the woodfire");
  951. if(get_property("_change_me_back") != ""){
  952. cli_execute("equip weapon rope");
  953. if(my_path() == "Heavy Rains"){
  954. cli_execute("equip offhand thor's pliers");
  955. }
  956. else{
  957. cli_execute("equip offhand half a purse");
  958. }
  959. }
  960.  
  961. if( get_property("_eldritchHorrorEvoked") == "false" ){
  962. cli_execute("/cast evoke eldritch horror");
  963. //use_skill(1, $skill[evoke eldritch horror]);
  964. if(last_monster() == $monster[Eldritch Tentacle]){
  965. run_combat();
  966. while(in_multi_fight()){
  967. run_combat();
  968. }
  969. }
  970. if(visit_url("fight.php").length() > 69 && last_monster() != $monster[Eldritch Tentacle]){
  971. print("fight.php length before combat macro: "+visit_url("fight.php").length());
  972. visit_url("fight.php?action=macro&macrotext=while !pastround 10;attack;endwhile;");
  973. print("fight.php length after combat macro: "+visit_url("fight.php").length());
  974. cli_execute("cast cannelloni cocoon");
  975. set_property("_eldritchHorrorEvoked", true);
  976. }
  977. }
  978.  
  979. use_lightning_strikes();
  980. use_plural_of_rain_man();
  981.  
  982. if( get_property("_eldritchTentacleFought") == "false" ){
  983. visit_url("place.php?whichplace=forestvillage&action=fv_scientist");
  984. if(available_choice_options().count() > 0){
  985. //run_choice(2);
  986. visit_url("choice.php?whichchoice=1201&option=2&pwd");
  987. if(last_monster() == $monster[Eldritch Tentacle]){
  988. run_combat();
  989. while(in_multi_fight()){
  990. run_combat();
  991. }
  992. }
  993. if(visit_url("fight.php").length() > 69 && last_monster() != $monster[Eldritch Tentacle]){
  994. print("fight.php length before combat macro: "+visit_url("fight.php").length());
  995. visit_url("fight.php?action=macro&macrotext=while !pastround 10;attack;endwhile;");
  996. print("fight.php length after combat macro: "+visit_url("fight.php").length());
  997. cli_execute("cast cannelloni cocoon");
  998. set_property("_eldritchTentacleFought", true);
  999. }
  1000. }
  1001. }
  1002.  
  1003.  
  1004. if(get_property("_salad_pills_used").to_int() < 20 ){
  1005. cli_execute("/closet * daily affirmation: think win-lose");
  1006. cli_execute("/uncloset * power pill");
  1007. cli_execute("/closet * miniature power pill");
  1008. //cli_execute("acquire 69 power pill");
  1009. cli_execute("acquire 420 drum machine");
  1010. }
  1011. while(get_property("_salad_pills_used").to_int() < 20 ){
  1012. set_property("salad_pills_un", slash_count($item[power pill]) );
  1013. int salad_counter = 0;
  1014. while(get_property("salad_pills_un").to_int() == 0 && salad_counter < 10){
  1015. wait(5);
  1016. set_property("salad_pills_un", slash_count($item[power pill]) );
  1017. salad_counter++;
  1018. }
  1019. salad_counter = 0;
  1020. visit_url("inv_use.php?whichitem=2328&pwd");
  1021. run_combat();
  1022. set_property("salad_pills_deux", slash_count($item[power pill]) );
  1023. while(get_property("salad_pills_deux").to_int() == 0 && salad_counter < 10){
  1024. wait(5);
  1025. set_property("salad_pills_deux", slash_count($item[power pill]) );
  1026. salad_counter++;
  1027. }
  1028. set_property("_salad_pills_used", get_property("_salad_pills_used").to_int() + get_property("salad_pills_un").to_int() - get_property("salad_pills_deux").to_int() );
  1029. while(in_multi_fight()){
  1030. run_combat();
  1031. }
  1032. print("salad pills used: "+get_property("_salad_pills_used"));
  1033. cli_execute("cast cannelloni cocoon");
  1034. bjorn_stuff();
  1035. }
  1036.  
  1037. use_lightning_strikes();
  1038. use_plural_of_rain_man();
  1039.  
  1040. if(get_property("_salad_pills_used").to_int() >= 20 && get_property("_hard_to_track_free_kills_used").to_int() < 4){
  1041. cli_execute("/closet * power pill");
  1042. }
  1043.  
  1044. while(get_property("_hard_to_track_free_kills_used").to_int() < 3 ){
  1045. set_property("spices_un", slash_count($item[spices]) );
  1046. visit_url("inv_use.php?whichitem=2328&pwd");
  1047. run_combat();
  1048. set_property("spices_deux", slash_count($item[spices]) );
  1049. set_property("_hard_to_track_free_kills_used", get_property("_hard_to_track_free_kills_used").to_int() + ( get_property("spices_deux").to_int() - get_property("spices_un").to_int() + 2 ) / 3 );
  1050. while(in_multi_fight()){
  1051. run_combat();
  1052. }
  1053. print("hard to track free kills used: "+get_property("_hard_to_track_free_kills_used"));
  1054. cli_execute("cast cannelloni cocoon");
  1055. bjorn_stuff();
  1056. }
  1057. if(get_property("_hard_to_track_free_kills_used").to_int() == 3 ){
  1058. cli_execute("/closet replica bat-oomerang");
  1059. }
  1060. while(get_property("_hard_to_track_free_kills_used").to_int() == 3 ){
  1061. set_property("spices_un", slash_count($item[spices]) );
  1062. visit_url("inv_use.php?whichitem=2328&pwd");
  1063. run_combat();
  1064. set_property("spices_deux", slash_count($item[spices]) );
  1065. set_property("_hard_to_track_free_kills_used", get_property("_hard_to_track_free_kills_used").to_int() + ( get_property("spices_deux").to_int() - get_property("spices_un").to_int() + 2 ) / 3 );
  1066. while(in_multi_fight()){
  1067. run_combat();
  1068. }
  1069. print("hard to track free kills used: "+get_property("_hard_to_track_free_kills_used"));
  1070. cli_execute("cast cannelloni cocoon");
  1071. bjorn_stuff();
  1072. }
  1073. if(slash_count($item[power pill]) == 0 ){
  1074. cli_execute("/uncloset * power pill");
  1075. }
  1076. if(slash_count($item[replica bat-oomerang]) == 0 ){
  1077. cli_execute("/uncloset replica bat-oomerang");
  1078. }
  1079.  
  1080.  
  1081. use_lightning_strikes();
  1082. use_plural_of_rain_man();
  1083.  
  1084. if(get_property("_glarkCableUses").to_int() == 0 ){
  1085. cli_execute("acquire 69 glark cable");
  1086. }
  1087. while(get_property("_glarkCableUses").to_int() < 5){
  1088. adv1(to_location(385),-1,"");
  1089. while(in_multi_fight()){
  1090. run_combat();
  1091. }
  1092. cli_execute("cast cannelloni cocoon");
  1093. bjorn_stuff();
  1094. }
  1095.  
  1096.  
  1097. if(get_property("_drunkPygmyBanishes").to_int() == 0){
  1098. cli_execute("acquire 69 bowl of scorpions");
  1099. }
  1100. while(get_property("_drunkPygmyBanishes").to_int() < 11){
  1101. adv1(to_location(344),-1,"");
  1102. while(in_multi_fight()){
  1103. run_combat();
  1104. }
  1105. cli_execute("cast cannelloni cocoon");
  1106. bjorn_stuff();
  1107. }
  1108.  
  1109. //&& get_property("_marco_polo").to_int() >= 10
  1110. while(get_property("_timeSpinnerMinutesUsed").to_int() < 8 ){
  1111. cli_execute("/use time-spinner");
  1112. run_choice(1);
  1113. //3 more pygmy drunks
  1114. visit_url("choice.php?whichchoice=1196&monid=1431&option=1&pwd");
  1115. run_combat();
  1116. while(in_multi_fight()){
  1117. run_combat();
  1118. }
  1119. cli_execute("cast cannelloni cocoon");
  1120. bjorn_stuff();
  1121. }
  1122.  
  1123.  
  1124. use_lightning_strikes();
  1125. use_plural_of_rain_man();
  1126.  
  1127. //fuck literally everything about the following.
  1128. if(get_property("_machineTunnelsAdv").to_int() < 5){
  1129. cli_execute("familiar machine elf");
  1130. }
  1131. //while(get_property("_elf_free_fights").to_int() < 5 ){
  1132. while(get_property("_machineTunnelsAdv").to_int() < 5 ){
  1133. if(!in_multi_fight()){
  1134. visit_url("adventure.php?snarfblat=458");
  1135. }
  1136. if(available_choice_options().count() > 0){
  1137. run_choice(6);
  1138. }
  1139. else{
  1140. //set_property("_elf_free_fights",get_property("_elf_free_fights").to_int()+1);
  1141. run_combat();
  1142. if(in_multi_fight()){
  1143. //set_property("_elf_free_fights",get_property("_elf_free_fights").to_int()+1);
  1144. run_combat();
  1145. }
  1146. }
  1147. cli_execute("cast cannelloni cocoon");
  1148. bjorn_stuff();
  1149. }
  1150. if(my_familiar() != $familiar[feather boa constrictor]){
  1151. cli_execute("familiar feather boa constrictor");
  1152. if(equipped_item($slot[familiar]) != $item[loathing legion helicopter]){
  1153. cli_execute("try;fold loathing legion helicopter");
  1154. cli_execute("equip familiar loathing legion helicopter");
  1155. }
  1156. }
  1157.  
  1158. if(!get_property("_loveTunnelUsed").to_boolean()){
  1159. equip($slot[acc2],$item[sphygmayomanometer]);
  1160. cli_execute("cast cannelloni cocoon");
  1161. visit_url("place.php?whichplace=town_wrong&action=townwrong_tunnel");
  1162. visit_url("choice.php?whichchoice=1222&option=1&pwd");
  1163. visit_url("choice.php?whichchoice=1223&option=1&pwd");
  1164. run_combat();
  1165. visit_url("choice.php?whichchoice=1224&option=1&pwd");
  1166. visit_url("choice.php?whichchoice=1225&option=1&pwd");
  1167. run_combat();
  1168. visit_url("choice.php?whichchoice=1226&option=1&pwd");
  1169. visit_url("choice.php?whichchoice=1227&option=1&pwd");
  1170. run_combat();
  1171. visit_url("choice.php?whichchoice=1228&option=1&pwd");
  1172. while(my_mp() * 10 > my_maxmp()){
  1173. summon_shit();
  1174. }
  1175. //equip($slot[acc2],$item[over-the-shoulder Folder Holder]);
  1176. //equip($slot[acc2],$item[mime army insignia (infantry)]);
  1177. cli_execute("outfit npzr bullshit");
  1178. }
  1179.  
  1180. use_lightning_strikes();
  1181. use_plural_of_rain_man();
  1182.  
  1183. if(get_property("_gingerbreadCityTurns").to_int() == 0){
  1184. //just attempts to run away
  1185. set_auto_attack("zzzzzzz runaway");
  1186. cli_execute("familiar stomping boots");
  1187. set_property("choiceAdventure1203", 4);
  1188. set_property("choiceAdventure1215", 1);
  1189. set_property("choiceAdventure1204", 1);
  1190. //set clock forward.
  1191. adv1($location[Gingerbread Civic Center], -1, "" );
  1192. //run away 3 times.
  1193. for i from 7 to 9{
  1194. adv1($location[Gingerbread Civic Center], -1, "" );
  1195. }
  1196. //grab candy
  1197. adv1($location[Gingerbread Train Station], -1, "" );
  1198. //run away 4 times
  1199. for i from 11 to 14{
  1200. adv1($location[Gingerbread Civic Center], -1, "" );
  1201. }
  1202. set_auto_attack("(npzr bullshit");
  1203. cli_execute("familiar feather boa constrictor");
  1204. cli_execute("equip familiar loathing legion helicopter");
  1205. //use 5 gingerbread cigarettes...
  1206. for i from 15 to 19{
  1207. adv1($location[Gingerbread Upscale Retail District], -1, "" );
  1208. while(in_multi_fight()){
  1209. run_combat();
  1210. }
  1211. }
  1212. //...to get more gingerbread cigarettes
  1213. adv1($location[Gingerbread Civic Center], -1, "" );
  1214. }
  1215.  
  1216. if(my_path() == "Heavy Rains"){
  1217. cli_execute("equip offhand thor's pliers");
  1218. }
  1219. else{
  1220. cli_execute("equip offhand HOA regulation book");
  1221. }
  1222.  
  1223. cli_execute("acquire 69 bricko ooze");
  1224. while(get_property("_brickoFights").to_int() < 10){
  1225. visit_url("inv_use.php?whichitem=4474&checked=1&pwd");
  1226. run_combat();
  1227. while(in_multi_fight()){
  1228. run_combat();
  1229. }
  1230. cli_execute("cast cannelloni cocoon");
  1231. bjorn_stuff();
  1232. }
  1233.  
  1234. /*
  1235. if(get_property("_mayflySummons").to_int() < 30 && equipped_item($slot[acc2]) != $item[mayfly bait necklace] && item_amount($item[mayfly bait necklace]) > 0){
  1236. cli_execute("try;equip acc2 mayfly bait necklace");
  1237. }
  1238. */
  1239.  
  1240. if(get_property("_goth_slash_hipster_tracking").to_int() < 7 && get_property("_mayflySummons").to_int() < 30){
  1241. cli_execute("familiar artistic goth kid");
  1242. set_auto_attack("none");
  1243. cli_execute("outfit goth mayfly latte");
  1244. }
  1245.  
  1246. int crayons;
  1247. int iteration_county_thing;
  1248. buffer page_text;
  1249. while(get_property("_mayflySummons").to_int() < 30 && my_familiar()==$familiar[artistic goth kid] && have_effect($effect[timer 1]) > 0 && iteration_county_thing < 69){
  1250.  
  1251. if( get_property("_latteDrinkUsed").to_boolean() && get_property("_latteRefillsUsed").to_int() <3 ){
  1252. cli_execute("latte refill salt norwhal vanilla");
  1253. }
  1254.  
  1255. crayons = slash_count($item[crayon shavings]);
  1256. //menagerie level 1
  1257. page_text = visit_url("adventure.php?snarfblat=51");
  1258. if(page_text.length() > 6969){
  1259. //basic elemental
  1260. if(last_monster().id == 87){
  1261. //work around pickpocket bug.
  1262. visit_url("fight.php?action=steal");
  1263. //gulp latte.
  1264. if( !get_property("_latteDrinkUsed").to_boolean() ){
  1265. visit_url("fight.php?action=skill&whichskill=7303");
  1266. }
  1267. //mayflies.
  1268. visit_url("fight.php?action=skill&whichskill=7024");
  1269. //work around tracking potentially being off
  1270. iteration_county_thing++;
  1271. if(iteration_county_thing >= 69){
  1272. set_property("_mayflySummons",69420);
  1273. visit_url("fight.php?action=macro&macrotext=use louder than bomb;");
  1274. }
  1275. }
  1276. else{
  1277. //not basic elemental
  1278. if(last_monster().id == 88){
  1279. visit_url("fight.php?action=macro&macrotext=skill snokebomb;");
  1280. }
  1281. else{
  1282. //other not basic elemental
  1283. if(last_monster().id == 89){
  1284. visit_url("fight.php?action=macro&macrotext=use louder than bomb;");
  1285. }
  1286. else{
  1287. if(last_monster().manuel_name.to_lower_case().contains_text("crayon")){
  1288. //pickpocket crayon shavings so they don't wash away and ruin tracking.
  1289. visit_url("fight.php?action=steal");
  1290. visit_url("fight.php?action=macro&macrotext=while !pastround 10; attack; endwhile;");
  1291. visit_url("main.php");
  1292. if(last_monster().manuel_name.to_lower_case().contains_text("eldritch")){
  1293. visit_url("fight.php?action=macro&macrotext=while !pastround 10; attack; endwhile;");
  1294. }
  1295. }
  1296. else{
  1297. abort("UR?");
  1298. }
  1299. }
  1300. }
  1301. }
  1302. }
  1303. if(crayons < slash_count($item[crayon shavings])){
  1304. set_property("_goth_slash_hipster_tracking", get_property("_goth_slash_hipster_tracking").to_int()+1);
  1305. }
  1306. print("We think we've used up "+get_property("_goth_slash_hipster_tracking")+" goth fights");
  1307. print("We think we've used up "+get_property("_mayflySummons")+" mayfly summons");
  1308. while(my_mp() * 10 > my_maxmp()){
  1309. summon_shit();
  1310. }
  1311. waitq(1);
  1312. }
  1313.  
  1314. if( ( get_property("_mayflySummons").to_int() >= 30 || get_property("_goth_slash_hipster_tracking").to_int() >= 7 ) && !is_wearing_outfit("npzr bullshit") ){
  1315. cli_execute("outfit npzr bullshit");
  1316. cli_execute("familiar feather boa");
  1317. }
  1318.  
  1319. use_lightning_strikes();
  1320. use_plural_of_rain_man();
  1321.  
  1322.  
  1323. //abort("this is where I apply effects I want to pyec before commenting out line 858 of this script.");
  1324.  
  1325. if(get_property("rkelly").to_int() == 1){
  1326. take_closet(1, $item[spooky putty sheet]);
  1327. set_property("rkelly", 0 );
  1328. }
  1329.  
  1330.  
  1331. set_auto_attack("none");
  1332.  
  1333. //cli_execute("run dice mp thingy.ash");
  1334. //note that this won't work for you because custom outfits.
  1335. //edit accordingly if you want to use it.
  1336.  
  1337. int elemental_count = 0;
  1338. boolean elchecktrified = false;
  1339. if(get_property("_dicey_mp_runs").to_int() == 0 && get_property("_alotted_snojo_bander_runs").to_int() == 0){
  1340. cli_execute("familiar bandersnatch");
  1341. cli_execute("equip familiar kill screen");
  1342. cli_execute("outfit dice mp");
  1343. cli_execute("acquire 11 insani tea");
  1344. cli_execute("acquire 11 concoction of clumsiness");
  1345. cli_execute("acquire 11 ancient medicinal herbs");
  1346. if(have_effect($effect[polka of plenty]) > 0){
  1347. cli_execute("shrug polka of plenty");
  1348. cli_execute("cast ode to booze");
  1349. }
  1350. if(have_effect($effect[insani tea]) == 0){
  1351. cli_execute("use 1 insani tea");
  1352. }
  1353. if(have_effect($effect[clumsy]) == 0){
  1354. cli_execute("shrug ancient fortitude");
  1355. cli_execute("use 1 concoction of clumsiness");
  1356. cli_execute("chew 1 ancient medicinal herbs");
  1357. }
  1358. //this is how many bander runs we're able to use here. this preference should only be set once/day.
  1359. set_property("_alotted_snojo_bander_runs", ((Numeric_Modifier("Familiar Weight") + familiar_weight( my_familiar() ) ) / 5) - get_property("_banderRunaways").to_int());
  1360. cli_execute("cast cannelloni cocoon");
  1361. bjorn_stuff();
  1362. }
  1363.  
  1364. //this block is for if the script needs to be rerun after aborting for some stupid reason.
  1365. if(get_property("_dicey_mp_runs").to_int() > 0 && get_property("_dicey_mp_runs").to_int() < (get_property("_alotted_snojo_bander_runs").to_int() - 1)){
  1366. cli_execute("familiar bandersnatch");
  1367. cli_execute("equip familiar kill screen");
  1368. cli_execute("outfit dice mp");
  1369. if(have_effect($effect[polka of plenty]) > 0){
  1370. cli_execute("shrug polka of plenty");
  1371. cli_execute("cast ode to booze");
  1372. }
  1373. if(have_effect($effect[insani tea]) == 0){
  1374. cli_execute("use 1 insani tea");
  1375. }
  1376. if(have_effect($effect[clumsy]) == 0){
  1377. cli_execute("shrug ancient fortitude");
  1378. cli_execute("use 1 concoction of clumsiness");
  1379. cli_execute("chew 1 ancient medicinal herbs");
  1380. }
  1381. cli_execute("cast cannelloni cocoon");
  1382. bjorn_stuff();
  1383. }
  1384.  
  1385. //this block adventures until we've used all but one of our free runs. off-by-one errors are scary, so the last free run remains unused. timer 1 check makes script abort if a turn is spent.
  1386. while(get_property("_dicey_mp_runs").to_int() < (get_property("_alotted_snojo_bander_runs").to_int() - 1) && get_property("_banderRunaways").to_int() < (Numeric_Modifier("Familiar Weight") + familiar_weight( my_familiar() ) ) / 5 && have_effect($effect[timer 1]) > 0 ){
  1387. visit_url("adventure.php?snarfblat=460");
  1388. elchecktrified = false;
  1389. elemental_count = 0;
  1390. foreach i in last_monster().random_modifiers{
  1391. if(i == "foul-mouthed" || i == "filthy" || i == "hot" || i == "wet" || i == "haunted"){
  1392. //these each do some percent of your maxhp in damage, seemingly bounded from above by 2% if you have 90% elemental resistance, each round.
  1393. elemental_count++;
  1394. }
  1395. if(i == "electrified"){
  1396. //monster is full of mp and pain.
  1397. elchecktrified = true;
  1398. }
  1399. if(i == "hilarious"){
  1400. //monster breaks mafia's tracking of free runs. this has like a 1/buhjillion chance of wasting a free run (by incrementing twice) if the runaway message has no salad in it.
  1401. set_property("_banderRunaways", get_property("_banderRunaways").to_int()+1);
  1402. }
  1403. }
  1404. if(!elchecktrified){
  1405. visit_url("fight.php?action=runaway");
  1406. }
  1407. else{
  1408. visit_url("fight.php?action=macro&macrotext=while !hppercentbelow " + (elemental_count * 2 + 20).to_string() +";attack;endwhile;runaway;");
  1409. }
  1410. set_property("_dicey_mp_runs",get_property("_dicey_mp_runs").to_int()+1);
  1411. cli_execute("cast cannelloni cocoon");
  1412. bjorn_stuff();
  1413. while(my_mp() * 10 > my_maxmp()){
  1414. summon_shit();
  1415. }
  1416. summon_shit();
  1417. if(get_property("_dicey_mp_runs").to_int() == (get_property("_alotted_snojo_bander_runs").to_int() - 1) && && have_effect($effect[timer 1]) > 0){
  1418. set_property("_did_dice_with_no_issues", "ebgrgwrg");
  1419. }
  1420. }
  1421.  
  1422. if(have_effect($effect[timer 1]) == 0 && get_property("_did_dice_with_no_issues") == ""){
  1423. abort("dice is fucked");
  1424. }
  1425.  
  1426. if(have_effect($effect[ode to booze]) > 0){
  1427. cli_execute("shrug ode to booze");
  1428. cli_execute("cast polka of plenty");
  1429. }
  1430.  
  1431. if(have_effect($effect[insani tea]) > 0 || have_effect($effect[Clumsy]) > 0){
  1432. cli_execute("try;shrug insani tea;");
  1433. cli_execute("/shrug! clumsy");
  1434. }
  1435.  
  1436.  
  1437. cli_execute("familiar stooper");
  1438.  
  1439. refresh_status();
  1440. eggz1 = inebriety_limit() - my_inebriety();
  1441. eggz2 = fullness_limit() - my_fullness() - 1;
  1442.  
  1443. //if(are_we_consuming_eggs){
  1444. while(eggz1 > 0){
  1445. use(1, $item[mayodiol]);
  1446. eat(1, $item[spooky surprise egg]);
  1447. eggz1 = eggz1 - 1;
  1448. }
  1449. while(eggz2 >= 0){
  1450. //use(1, $item[Mayonex] );
  1451. eat(1, $item[spooky surprise egg]);
  1452. eggz2 = eggz2 - 1;
  1453. }
  1454. //}
  1455.  
  1456.  
  1457. /*
  1458. cli_execute("/familiar disembodied hand");
  1459. cli_execute("/equip shirt General Sage's Lonely Diamonds Club Jacket");
  1460. */
  1461. cli_execute("outfit optimalest");
  1462. set_auto_attack("none");
  1463. equip($slot[acc1],$item[sphygmayomanometer]);
  1464.  
  1465. if(inebriety_limit() == my_inebriety()){
  1466. cli_execute("/drink everfull glass");
  1467. }
  1468.  
  1469. when_the_fuck_is_it = gametime_to_int() / 1000;
  1470.  
  1471. if(get_property("_script_runs_thiiiiis_long") == ""){
  1472. //seconds.
  1473. set_property("_script_runs_thiiiiis_long", when_the_fuck_is_it - get_property("_script_start_time").to_int());
  1474. }
  1475. /*
  1476. metric
  1477. fuckton
  1478. of
  1479. whitespace
  1480. */
  1481.  
  1482. cli_execute("sell * really dense meat stack");
  1483. cli_execute("sell * meat stack");
  1484. cli_execute("sell * knob goblin visor");
  1485. cli_execute("sell * gold nuggets");
  1486. cli_execute("sell * Mickey Mantle");
  1487. cli_execute("use * ancient vinyl coin purse");
  1488. cli_execute("sell * decomposed boot");
  1489. cli_execute("sell * dollar-sign bag");
  1490. cli_execute("use * duct tape wallet");
  1491. cli_execute("use * fat wallet");
  1492. cli_execute("sell * half of a gold tooth");
  1493. cli_execute("sell * huge gold coin");
  1494. cli_execute("sell * leather bookmark");
  1495. cli_execute("sell * massive gemstone");
  1496. cli_execute("use * old coin purse");
  1497. cli_execute("use * old leather wallet");
  1498. cli_execute("sell * pile of gold coins");
  1499. cli_execute("use * pixel coin");
  1500. cli_execute("use * pixellated moneybag");
  1501. cli_execute("use * shiny stones");
  1502. cli_execute("use * solid gold jewel");
  1503. cli_execute("use * stolen meatpouch");
  1504. cli_execute("sell * BRICKO pearl");
  1505. cli_execute("use * Gathered Meat-Clip");
  1506. cli_execute("use * d8");
  1507. cli_execute("use * d6");
  1508. cli_execute("sell * generic healing potion");
  1509. cli_execute("sell * generic mana potion");
  1510.  
  1511. cli_execute("familiar feather boa constrictor");
  1512. //you probably don't have a mallbot.
  1513. //cli_execute("run mallbot.ash");
Advertisement
Add Comment
Please, Sign In to add comment