-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStratiotiOfflineCalc.cpp
More file actions
330 lines (317 loc) · 8.67 KB
/
StratiotiOfflineCalc.cpp
File metadata and controls
330 lines (317 loc) · 8.67 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#include <locale.h>
#include <math.h>
#include <iostream>
using namespace std;
//fullscreen function
void fullscreen()
{
keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
}
int main(){
setlocale(LC_ALL,"turkish");
fullscreen(); //initiates fullscreen. can exit full screen with Alt+Enter
int numberOfMembers, numberOfFighters;
long long int Fdamage;
char type[70],name[50], answer;
char price;
MainMenu:
system("COLOR 0e");
printf("\033[1;34m");
printf(" _____ _ _ _ _ _ \n");
printf(" / ____| | | | (_) | | (_) \n");
printf(" | (___ | |_ _ __ __ _| |_ _ ___ | |_ _ \n");
printf(" \\___ \\| __| \'__/ _` | __| |/ _ \\| __| | \n");
printf(" ____) | |_| | | (_| | |_| | (_) | |_| | \n");
printf(" |_____/ \\__|_| \\__,_|\\__|_|\\___/ \\__|_| \n");
printf(" / ____| | | | | | | \n");
printf(" | | __ _| | ___ _ _| | __ _| |_ ___ _ __ \n");
printf(" | | / _` | |/ __| | | | |/ _` | __/ _ \\| '__|\n");
printf(" | |___| (_| | | (__| |_| | | (_| | || (_) | | \n");
printf(" \\_____\\__,_|_|\\___|\\__,_|_|\\__,_|\\__\\___\\|_| \n");
printf("\n");
printf("Welcome to the Stratioti Calculator\nv0.3 By 3rt4nm4n.\n\n");
printf("\033[0m");
printf("\033[1;31m");
printf("---> Write the name of the tool you want.. Like \"Per Member\", \"Max Work XP\" without quotation marks.. \n\n---> CTRL+C To EXIT\n\n");
printf("\033[0m");
printf("\033[01;33m");
printf("What would you like to do?\n\n");
printf("-War Payments-\n\n");
printf("Per Member\n\nPer Damage\n\n\n");
printf("-Daily Wages/Election Payments-\n\n");
printf("Total Amount\n\n\n");
printf("-Guides-\n\n");
printf("Weapons\n\n");
printf("Max Work XP\n\n");
printf("Gold Medicine Index\n\n");
printf("Your choice: ");
gets(type);
strlwr(type);
system("CLS");
if(strcmp(type, "per member")==0 || strcmp(type, "pd")==0)
{
Price:
printf("Alright.\nWhat was the price per 1kk damage?\n");
printf("a)9kkk\nb)10kkk\nc)11kkk\nd)12kkk\ne)Custom\n");
scanf("%c",&price);
int priceNum=0;
if(price=='a')
{
priceNum=9000;
}
else if(price=='b')
{
priceNum=10000;
}
else if(price=='c')
{
priceNum=11000;
}
else if(price=='d')
{
priceNum=12000;
}
else if(price=='e')
{
long long int customPrice;
printf("Enter the price per 1kk with 000's:");
scanf("%lli",&customPrice);
priceNum=customPrice/1000000;
}
else if(price!='a' && price!='b' && price!='c' && price!='d' && price!='e')
{
printf("You have made a mistake");
goto Price;
}
printf("What was the total damage made by the party?\n");
long long int totalDamage;
long long int result=0;
scanf("%lli",&totalDamage);
printf("Total Payment to Be Received: \n");
result=priceNum*totalDamage;
printf("%lli\n",result);
long long int amount;
printf("How many members are there?\n");
scanf("%d",&numberOfMembers);
amount=result/numberOfMembers;
printf("Amount Due=%lli", amount);
}
else if(strcmp(type, "per damage")==0 || strcmp(type, "pd")==0)
{
Price1:
printf("Alright.\nWhat was the price per 1kk damage?\n");
printf("a)9kkk\nb)10kkk\nc)11kkk\nd)12kkk\ne)Custom\n");
scanf("%c",&price);
int priceNum=0;
if(price=='a')
{
priceNum=9000;
}
else if(price=='b')
{
priceNum=10000;
}
else if(price=='c')
{
priceNum=11000;
}
else if(price=='d')
{
priceNum=12000;
}
else if(price=='e')
{
long long int customPrice;
printf("Enter the price per 1kk with 000's:");
scanf("%lli",&customPrice);
priceNum=customPrice/1000000;
}
else if(price!='a' && price!='b' && price!='c' && price!='d' && price!='e')
{
printf("You have made a mistake");
goto Price1;
}
printf("What was the total damage made by the party?\n");
long long int totalDamage;
long long int result=0;
scanf("%lli",&totalDamage);
printf("Total Payment to Be Received: \n");
result=priceNum*totalDamage;
printf("%lli\n",result);
printf("How many members are there?\n");
scanf("%d",&numberOfMembers);
printf("What is the number of fighters who fought in the war?\n");
scanf("%d",&numberOfFighters);
printf("In this case %d of members didn't join the war\n",numberOfMembers-numberOfFighters);
Sleep(1);
for(int i = 0;i<numberOfFighters;i++)
{
printf("\nName=");
getchar();
gets(name);
printf("\nDamage=");
scanf("%lli",&Fdamage);
long long int amount1;
amount1=priceNum*Fdamage;
printf("\nAmount due for %s : %lli\n\n",name,amount1);
printf("-------\n");
}
}
else if(strcmp(type, "total amount")==0 || strcmp(type, "ta")==0)
{
int dw;
printf("What is the daily wage/price per vote in kkk?\n");
scanf("%d",&dw);
printf("What is the number of green checked members?\n");
scanf("%d",&numberOfMembers);
long long int amount2;
amount2=numberOfMembers*dw;
printf("Total amount due required for daily wages is %llikkk\n",amount2);
}
else if(strcmp(type, "weapons")==0 || strcmp(type, "w")==0)
{
weapons:
printf("\n ___");
printf("\n");
printf(" __( )====::");
printf("\n");
printf("/~~~~~~~~~\\");
printf("\t\t\t\t");
printf("TANKS ALPHA DAMAGE = 10");
printf("\n");
printf("\\O.O.O.O.O/");
printf("\n\n");
//-------------
printf(" |\\ __");
printf("\n");
printf("..==========-");
printf("\t\t\t\t");
printf("FIGHTER AIRCRAFTS ALPHA DAMAGE = 75");
printf("\n");
printf(" ~~~");
printf("\n\n");
//-------------
printf(" /\\ ");
printf("\n");
printf(" / \\ ");
printf("\n");
printf(" | | ");
printf("\t\t\t\t\t");
printf("BALISTIC MISSILES ALPHA DAMAGE = 900");
printf("\n");
printf(" | | ");
printf("\n");
printf(" / == \\");
printf("\n");
printf(" |/**\\|");
printf("\n\n");
//-------------
printf(" /\\");
printf("\n");
printf(" \\ \\");
printf("\n");
printf(" /--\\");
printf("\t\t\t\t\t");
printf("HEAVY BOMBERS ALPHA DAMAGE = 800");
printf("\n");
printf(" \\--/");
printf("\n");
printf(" / /");
printf("\n");
printf(" \\/");
printf("\n\n");
//-------------
printf(" _~");
printf("\n");
printf(" _~ )_)_~");
printf("\n");
printf(" )_))_))_)");
printf("\t\t\t\t");
printf("BATTLESHIPS ALPHA DAMAGE = 2000");
printf("\n");
printf(" _!__!__!_");
printf("\n");
printf(" \\______t/");
printf("\n");
printf("~~~~~~~~~~~~~");
printf("\n\n");
//-------------
printf(" |");
printf("\t\t\t\t\t");
printf("LASER DRONES ALPHA DAMAGE = 3000");
printf("\n");
printf("---o=V=o---");
printf("\n");
printf("\n\n");
//-------------
printf(" ,-,");
printf("\n");
printf(" /.( ____");
printf("\t\t\t\t");
printf("MOON TANKS ALPHA DAMAGE = 2000");
printf("\n");
printf(" \\ { |\"\"\"\\-=");
printf("\n");
printf(" `-` (____)");
printf("\n\n");
//-------------
printf(" --o-- ");
printf("\n");
printf(" I");
printf("\n");
printf(" ----I----");
printf("\t\t\t\t");
printf("SPACE STATIONS ALPHA DAMAGE = 5000");
printf("\n");
printf(" I");
printf("\n");
printf(" =I=");
printf("\n\n");
}
else if(strcmp(type,"max work xp")==0 || strcmp(type, "mw")==0)
{
int el,we;
printf("Enter your education level please = ");
scanf("%d",&el);
we=80000+el*200;
printf("Your Limit For Work Experience Is %d\n\n",we);
}
else if(strcmp(type, "gold medicine index")==0 || strcmp(type, "gmi")==0)
{
printf("Medicine Index\tThe Amount of Energy That Naturally Fills in 10 mins\tTotal Time To Refill 300E Naturally\tGold Earning Daily\n");
printf("1\t\t3E\t\t\t\t\t\t\t16hrs 40mins\t\t\t\t43 Gold\n");
printf("2\t\t4E\t\t\t\t\t\t\t12hrs 30mins\t\t\t\t57 Gold\n");
printf("3\t\t5E\t\t\t\t\t\t\t10hrs \t\t\t\t72 Gold\n");
printf("4\t\t6E\t\t\t\t\t\t\t8hrs 20mins\t\t\t\t86 Gold\n");
printf("5\t\t7E\t\t\t\t\t\t\t7hrs 8mins\t\t\t\t100 Gold\n");
printf("6\t\t8E\t\t\t\t\t\t\t6hrs 15mins\t\t\t\t115 Gold\n");
printf("7\t\t9E\t\t\t\t\t\t\t5hrs 30mins\t\t\t\t129 Gold\n");
printf("8\t\t10E\t\t\t\t\t\t\t5hrs \t\t\t\t144 Gold\n");
printf("9\t\t11E\t\t\t\t\t\t\t4hrs 30mins\t\t\t\t158 Gold\n");
printf("10\t\t12E\t\t\t\t\t\t\t4hrs 10mins\t\t\t\t172 Gold\n");
printf("11\t\t16E\t\t\t\t\t\t\t3hrs 7mins\t\t\t\t230 Gold\n");
}
else
{
goto MainMenu;
}
printf("\nAnything else?\nY\nN\n\n");
scanf(" %c",&answer);
if(answer=='Y' || answer=='y')
{
printf("Going back to main menu");
Sleep(2);
system("CLS");
goto MainMenu;
}
printf("\033[0m");
return 0;
}