-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeatfarm.ash
159 lines (149 loc) · 5.11 KB
/
meatfarm.ash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import <globals.ash>;
import <diet.ash>;
void get_temporary_meat_buffs(){
// Daily meat from hippy store
visit_url('shop.php?whichshop=hippy');
// Winklered from concert arena
cli_execute('concert Winklered');
// Rest in campground for snow fortified
if( get_property( 'timesRested') < 1)
visit_url('campground.php?action=rest');
// grab meat from chateau piggy bank
visit_url('place.php?whichplace=chateau&action=chateau_desk1');
// play pool
cli_execute('pool 1');cli_execute('pool 1');cli_execute('pool 1');
// summon meat demon
if( get_property('demonSummoned') == false){
acquire(3, 'thin black candle');
if( item_amount($item[scroll of ancient forbidden unspeakable evil]) < 1){
int item_price = mall_price($item[scroll of ancient forbidden unspeakable evil]);
int combine_price; combine_price += mall_price($item[tattered scrap of paper]);
combine_price += mall_price($item[inkwell]); combine_price += mall_price($item[disintegrating quill pen]);
float buff_profit = 30 * 100 * REG_TARGET_MPPMD - 864;
if( item_price < buff_profit || combine_price < buff_profit){
if( item_price < combine_price){
acquire(1, 'scroll of ancient forbidden unspeakable evil');
}else{
acquire(1, 'tattered scrap of paper'); acquire(1, 'inkwell'); acquire(1, 'disintegrating quill pen');
use(1, $item[disintegrating quill pen]);
}
cli_execute('summon 2');
}
}else{
cli_execute('summon 2');
}
}
// get dna potions
if( get_property('_dnaPotionsMade') == 0){
cli_execute('camp dnapotion 3');
use(3, $item[Gene Tonic: Fish]);
}
// legendary beat
use(1, $item[The Legendary Beat]);
}
/*
Eat to start the day
*/
if( my_inebriety() == 0){
day_drinking();
}
if( my_fullness() == 0){
morning_meal();
}
if( my_spleen_use() == 0){
spleening();
}
if ( get_property("_chocolatesUsed") == 0){
eat_choco_disco_ball();
}
/*
Cheat at Deck of Every Card
*/
if( get_property( '_deckCardsDrawn') < 15){
cli_execute( 'cheat knife');
cli_execute( 'cheat 1952');
cli_execute( 'cheat island');
}
/*
Buffs up via Buffy and the mall, then equips farming gear and farms Barf Mountain
*/
void get_regular_meat_buffs(int turns){
if( have_effect( $effect[Ode to Booze]) > 0){
cli_execute( "shrug ode");
}
effect[5] buffs;
buffs[0] = $effect[Cringle's Curative Carol]; buffs[1] = $effect[Polka of PLenty];
buffs[2] = $effect[Fat Leon's Phat Loot Lyric]; buffs[3] = $effect[Jingle Jangle Jingle];
buffs[4] = $effect[Empathy];
for i from 0 to count(buffs) - 1 {
if (have_effect( buffs[i]) < turns){
for j from have_effect( buffs[i]) to turns by 450{
chat_private('Buffy', to_string(buffs[i]));
}
}
}
equip( $item[Travoltan Trousers]);
acquire( (turns - have_effect( $effect[Wasabi Sinuses]))/10 + 1, 'Knob Goblin nasal spray');
acquire( (turns - have_effect( $effect[Heavy Petting]))/10 + 1, 'Knob Goblin pet-buffing spray');
if ( mall_price( $item[Uncle Greenspan's Bathroom Finance Guide]) < 25000){
acquire( (turns - have_effect( $effect[Buy! Sell! Buy! Sell!]))/100 + 1, "Uncle Greenspan's Bathroom Finance Guide");
}
boolean buffed_up;
// wait for buffy for 3 minutes, then give up
for i from 0 to 12 {
wait(15);
buffed_up = true;
for j from 0 to count(buffs) - 1 {
if( have_effect( buffs[j]) < turns){
buffed_up = false;
}
}
if( buffed_up){
break;
}else if( i == 12){
print( 'No response from Buffy');
abort();
}
}
}
void farm_barf_mountain(int turns){
get_regular_meat_buffs(turns);
outfit( 'meat');
equip( $item[astral pet sweater]);
int starting_adv = my_adventures();
while( my_adventures() > starting_adv - turns ){
if( adventure(turns - (starting_adv - my_adventures()), $location[barf mountain]) == false){
if( my_mp() <= my_maxmp() * 0.11){
cli_execute('nuns');
}else{
print('Mafia abort, unknown cause');
abort();
}
}
}
}
void farm_embezzlers(){
get_temporary_meat_buffs();
get_regular_meat_buffs(10);
outfit( 'embezzle');
if( get_property( '_photocopyUsed') == false){
if( faxbot( $monster[Knob Goblin Embezzler]) == false){
print( 'Failed to receive fax');
abort();
}
use(1, $item[photocopied monster]);
}
while( item_amount($item[Spooky Putty monster]) > 0){
use(1, $item[Spooky Putty monster]);
}
visit_url('place.php?whichplace=chateau&action=chateau_painting');
run_combat();
}
farm_embezzlers();
farm_barf_mountain(my_adventures());
while( my_fullness() < fullness_limit()){
pantsgiving_fullness();
farm_barf_mountain(2);
}
farm_barf_mountain(my_adventures());
nightcap();