-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathInotia 5.cpp
5590 lines (5561 loc) · 139 KB
/
Inotia 5.cpp
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include<iostream>
#include<cstdio>
#include<iomanip>
#include<conio.h>
#include<cstring>
#include<windows.h>
#include<ctime>
#include<map>
using namespace std;
map<string,int> AMP;
map<string,int> SMP;
string s;
int qsqs[6001];
int uplevel=100;
int TD;
int assTD[2];
bool Is_first[12];
bool Can_go[12];
bool Can_into=true;
bool Is_end;
bool Is_up;
bool Is_change;
bool Wend;
bool Is_save;
string name;
string password="ZTLTQL";
int Wpass;
long long MP,maxMP,ATK,fang,LV=1,G=0,mu=50,gang=0,sheng=20,xilian=0,chou=500;
float baoji=2.5;
int stop_time=27;
long long jinbi,HP,maxHP,EXP,maxEXP;
int ch4;
int rate;
string Tm[5]={"2^31-1=?","101-102=1 移动一个数字,使得等式成立,移动的数字是___","大舅去二舅在三舅的土地租的四舅的房子告诉五舅说六舅去七舅家偷了八舅放在九舅的保险柜里的十舅的钱。 谁是小偷?土地是谁的?(用n表示n舅,中间不用空行)","10月24日是是谁的节日? 1,医生 2,建筑师 3,程序猿 4,数学家","著名数学家丢番图的墓志铭——坟中安葬着丢番图,多么令人惊讶,这里忠实地记录了他经历的道路,上帝给予的童年占六分之一,又过十二分之一,两鬓长胡,再过七分之一,燃起婚烟的蜡烛,五年之后天赐贵子,可怜迟到的宁馨儿,享年仅及其父之半,便进入冰冷的墓,悲伤只有用数论的研究去弥补,又过四年,他也走完了人生的旅途 请问丢番图一共活了多少岁"};
int answer[5]={2147483647,2,63,3,84};
int bag=0,bag1=0,bag2=0;
int choujin[10]={1000,2000,3000,4000,5500,6500,7500,9000,100,10000};
int chouG[10]={45,105,195,265,385,525,695,845,1055,1855};
string monster[22]={"SB","2B","花园精灵","花园恶魔","弯角龙","烈焰弯角龙","2B","SB","哥布林杀手","哥布林圣骑士","狼人","血色狼人","人马战士","人马狂战士","沼泽游魂","沼泽断头鬼","冤魂","骷髅王","海妖","海妖女王","石钟乳怪","巨岩魔王"};
int monsterjinbi[22]={0,0,156,222,117,158,0,0,157,209,175,239,206,282,221,308,263,347,293,379,500,99999};
int monsterHP[22]={0,0,1050,1450,1550,2050,0,0,2000,2650,2750,3250,3550,3850,4050,4450,5050,5950,6550,7550,7850,72950};
int monsterATK[22]={0,0,345,405,455,505,0,0,555,625,705,755,815,875,945,1005,1185,1335,1565,1915,2535,4955};
int monsterEXP[22]={0,0,20,45,35,65,60,0,0,90,90,120,125,180,240,380,450,485,515,585,645,0x3f3f3f3f};
string destin[12]={"SB","新手村","动人花园","阳光海滩","霜风部落","死亡森林","极冰之地","死寂沙漠","亡命沼泽","绝命地牢","沉没的大陆","石钟乳洞"};
int diffLV[12]={0,0,1,2,0,3,5,5,7,8,10,0x7f};
string rand_arms[3]={"格兰芬多之剑","黄金杯","魔法石"};
int rand_armsxing[3]={1500,780,888};
string legend_arms[4]={"绝云","焚寂","彗蚀","煌灭"};
int la_ATK[4]={2800,2650,3200,3700};
string ke[5]= {"金币*1000","金币*2000","金币*3000","金币*4000","金币*5000"};
string qie[5]= {"巨灵药水","元气恢复药水","特大生命药水","特大魔法药水","小瓶生命药水"};
string ka[5]= {"黑铁刀","魔术棒","青玉剑","罗马短剑","华为P30"};
int kaatk[5]= {380,450,270,400,1000};
string de[5]= {"精灵铠甲","嗜血者","古埃及胸甲","铁皮甲","幽灵板甲"};
int defang[5]= {250,350,550,450,900};
string ge[5]= {"绿宝石","龙之卷轴","钢铁*20","至圣的水晶","蓝宝石"};
string sai[5]= {"国王币*100","国王币*200","国王币*300","国王币*400","国王币*1000"};
string xiguan[5]= {"挖鼻屎","挖耳屎","抠脚趾","自言自语","咬手指"};
string juese;
string diaoluo1[4]= {"藏银刀","红缨枪","巨剑","恶灵法杖"};
int diaoluo1ATK[4]= {129,167,225,285};
string yaoshui[10]= {"00","00","00","00","00","00","00","00","00","00"},wuqi[10]= {"00","00","00","00","00","00","00","00","00","00"};
string daoju[10]= {"00","00","00","00","00","00","00","00","00","00"};
int xinneng[10],wuqiLV[10],yaoshuixiao[10];
string zhuangbeiwuqi="00",zhuangbeifangju="00";
int zhuangbeia=0,zhuangbeif=0;
bool Is_pct[10];
bool pct;
bool a_f[10];
string mission[10]={"前往‘接受任务&查看主线进度’查看第一个主线任务","前往霜风部落与长老交谈","击败巨岩魔王,拯救世界"};
int reward[3]={100,200,0x3f3f3f};
string skill[4][4]={"狂乱突袭","毁灭一击","断空撕裂斩","战神附体",
"圣光斩","痊愈之光","天之审判","勇者修炼",
"身藏不露","暗影一击","毒之深渊","游刃有余",
"烈焰火球","石魔召唤","九天玄雷","魔之奥秘",
};
int skillxn[4][4]={275,322,372,35,
227,375,300,35,
0,251,348,30,
266,0,358,40,
};
int needJB[4][4]={750,825,1030,920,
765,825,805,915,
770,800,1020,930,
795,1100,1000,995,
};
float needMP[4][4]={35,46,55,30,
38,50,60,30,
30,35,40,35,
40,55,70,40,
};
float reduceMP[4][4]={0.1,0.1,0.2,0.1,
0.1,0.1,0.1,0.2,
0.2,0.1,0.1,0.2,
0.2,0.1,0.1,0.2,
};
bool Is_xl[4];
int choosejn;
int color[6][2]={{14,9},{10,13},{12,15},{9,8},{7,14},{3,14}};
string map2[20]= {"########################",
"###O # # # # # #",
"## # # # # # # # # # #",
"# # # # # # #g# # # #",
"# # #g # # # # # # # #",
"# # # ## # # # # #g#",
"## #g # g # # # #",
"#g # # # ## ### # ## #",
"## # # # #",
"# # # # # ############",
"## # # # #B #",
"# # #g# # # ### #### #",
"## # # # # #g # ? # #",
"# g# # # # # # # # # #",
"#?# # # # # # # # # #",
"# g # # # # #S #",
"########################",
};
string map3[20]= {"########################",
"# # # ?# # #S #",
"## # #g# # # # # # # #",
"# g# # # # # # # # # # #",
"#?# # # # # # # # # # #",
"## # # #g# # # # # # #",
"# g# # # #g# # # # #",
"# # # # # #g#g#B# #",
"# #g# # ## # # # # # #",
"# # # # # # # # # # #",
"# # # # # # # # # # #",
"# # #g# # # # # #g# # #",
"# #g# # # # # # # # # #",
"# # # # # # #? # # #",
"# # # # # ##### #### #",
"#O# # # g #",
"########################",
};
string map4[20]= {"########################",
"# ###### M #",
"# ###### ########## #",
"# ## # # # #",
"# N ##### # ### ## #",
"## ##### ###### # #",
"## # H## ##### #",
"## # ## ### ##### #",
"## # ## L # #",
"## ### #### # # #",
"# #### ### # # #",
"## F### ######### # # #",
"## ### # ### # # #",
"# # ### ## # #",
"## ###### ########### #",
"## O ## #",
"##########S#############",
};
string map5[20]= {"########################",
"# # # # # # # #S #",
"# g ####### #",
"# ############B #",
"#g #### ###?#",
"########## ## g #",
"# g ######### #",
"# #### #####B g #",
"# g ############",
"######### # g #",
"# g g########## #",
"# ## # # ## #",
"# # # # # # ############",
"# # g #",
"# ####### ############ #",
"#O g g#",
"########################",
};
string map6[20]= {"########################",
"# # # ?#",
"#g######## # # # # ##",
"# # # # # g# # # #",
"# ##g## # # ## #g #",
"# # # # # # ## # # #",
"# # # # ## g## # # #",
"# # # # # #g# # ##",
"# # #g#g# # # # # #? #",
"# # # # ## # # # # # #",
"# ## # # # ##g# # #",
"# # # # # # # # ##",
"# # # # #g # # # # #",
"# ## # # ## # g # #",
"# # # # # # #### #",
"#O# # ## # # #S B#",
"########################",
};
string map7[20]= {"########################",
"#O # # # #",
"###### # ### #### ### #",
"# # # # # #",
"###### # ####### # ### #",
"# g # # #g # #",
"# #### #### # #### # #",
"# # # # # # #",
"###### # # ###### # # #",
"#? g # ##g #? # # #",
"###### # #### g # # #",
"# # # # # ## #B#",
"# # ### # # # # # # #",
"# ## # # # ## ## # # #",
"#g # # # # #g# # # #",
"# # # # #S#",
"########################",
};
string map8[20]= {"########################",
"#O#? g# ### #S #",
"# ## # # ### ## ### B #",
"## # # # #",
"#### ####g###### # ### #",
"# # ## # # ## # g # #",
"# g## # ## ##### #",
"# ##### ### g# # ###",
"# g # # ### # ##",
"##### ###### # ## ##",
"## # # ##### ##g #",
"## #### ## # ####",
"## # ## #g# # ## ##",
"##### # # # # ## # ##",
"# g ### # # #g##",
"#?##### ###### ##",
"########################",
};
string map9[20]= {"########################",
"#O ####g ?# ##",
"## # # ### ### ## ##",
"# # # ## g ## ##",
"# ## # ## # ######### ##",
"# g #### # # #S## ##",
"## #### ## #g# # # ##",
"## # # # ## # ## # ##",
"#g ## # ##### ## B##",
"# ##### ##g # #####",
"# g # #### # # # # #",
"# # # # ## # # # # #",
"# # #g ## ### ## ##g#",
"# # ##### # ## ### ## #",
"# # g# #? #",
"# ## #### # ### #",
"########################",
};
string map10[20]= {"##########S#############",
"# B # g #",
"# g g #",
"# ### ##",
"####### ###### ###g# # ",
"#? g # # # # # ",
"# #### g B ## g # ",
"#### ###### ### # ",
"#g # # # ## # # ",
"# # # g# # # ",
"#### #### ## #g### ",
"#g # # #g # # ",
"## ### ## ### #?# ",
"##### ## ### #### ### ",
"# # # # # # ## ",
"#O #g# # # ",
"####################### ",
};
void guangbiao(int x,int y) {
COORD pos;
pos.X=x;
pos.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
void tiaose(int mn) {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),mn);
// 1,深蓝色 2,绿色 3,浅蓝色 4,暗红色 5,暗粉色 6,棕色
// 7 ,淡白色 8,灰色 9,蓝色 10,绿色 11,亮蓝色 12,深红
// 13,深粉色 14,黄色 15,白色
}
bool check() {
for(int i=0; i<=bag2; i++) {
if(daoju[i]!="00") {
return true;
}
}
return false;
}
void Clear() {
guangbiao(1,5);
for(int i=1; i<=2000; i++) {
cout<<" ";
}
}
void say(string s)
{
for(int i=0;i<=s.size()-1;i++)
{
cout<<s[i];
Sleep(25);
}
}
void qsay(string s)
{
for(int i=0;i<=s.size()-1;i++)
{
cout<<s[i];
Sleep(10);
}
}
void Slowsay(string s)
{
for(int i=0;i<=s.size()-1;i++)
{
cout<<s[i];
Sleep(stop_time);
}
}
void HideCursor(int n)
{
if(Is_change)
{
return ;
}
CONSOLE_CURSOR_INFO cursor_info={1,n};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
}
void ShakeWindow(int move){
int SHAKE=120+move;
RECT rect;
HWND hwnd=GetForegroundWindow();
GetWindowRect(hwnd,&rect);
MoveWindow(hwnd,rect.left+SHAKE,rect.top,rect.right-rect.left,rect.bottom-rect.top,TRUE);//向右
Sleep(25);
MoveWindow(hwnd,rect.left+SHAKE,rect.top-SHAKE,rect.right-rect.left,rect.bottom-rect.top,TRUE);//向上
Sleep(25);
MoveWindow(hwnd,rect.left,rect.top-SHAKE,rect.right-rect.left,rect.bottom-rect.top,TRUE);
Sleep(25);
MoveWindow(hwnd,rect.left,rect.top,rect.right-rect.left,rect.bottom-rect.top,TRUE);
}
void Read()
{
system("cls");
Slowsay("请在文件夹中找到‘Inotia 5.txt’并打开它\n");
Sleep(1000);
Slowsay("复制里面所有的数据后,将它们全部输入进来(切勿输入多余的东东)\n");
getline(cin,name);
cin>>juese;
cin>>HP>>maxHP;
cin>>MP>>maxMP;
cin>>ATK;
cin>>fang;
cin>>EXP>>maxEXP;
cin>>LV;
cin>>jinbi;
cin>>G;
cin>>choosejn;
for(int i=1;i<=11;i++)
{
cin>>Is_first[i];
}
for(int i=1;i<=11;i++)
{
cin>>Can_go[i];
}
cin>>Can_into;
cin>>uplevel;
cin>>rate;
cin>>TD;
cin>>assTD[0]>>assTD[1];
cin>>bag>>bag1>>bag2;
for(int i=0;i<=9;i++)
{
cin>>yaoshui[i];
}
for(int i=0;i<=9;i++)
{
cin>>wuqi[i];
}
for(int i=0;i<=9;i++)
{
cin>>xinneng[i];
}
for(int i=0;i<=9;i++)
{
cin>>wuqiLV[i];
}
for(int i=0;i<=9;i++)
{
cin>>a_f[i];
}
for(int i=0;i<=9;i++)
{
cin>>Is_pct[i];
}
for(int i=0;i<=9;i++)
{
cin>>daoju[i];
}
for(int i=0;i<=9;i++)
{
cin>>yaoshui[i];
}
for(int i=0;i<=9;i++)
{
cin>>yaoshuixiao[i];
}
for(int i=0;i<=3;i++)
{
cin>>Is_xl[i];
}
cin>>zhuangbeiwuqi>>zhuangbeia;
cin>>zhuangbeifangju>>zhuangbeif;
cin>>pct;
cin>>mu>>sheng>>gang;
cin>>xilian;
cin>>chou;
Sleep(1500);
system("cls");
Slowsay("读取存档成功!\n");
Sleep(1000);
}
void POF()
{
freopen("Inotia 5.txt","w",stdout);
cout<<name<<endl;
cout<<juese<<endl;
cout<<HP<<endl;
cout<<maxHP<<endl;
cout<<MP<<endl;
cout<<maxMP<<endl;
cout<<ATK<<endl;
cout<<fang<<endl;
cout<<EXP<<endl;
cout<<maxEXP<<endl;
cout<<LV<<endl;
cout<<jinbi<<endl;
cout<<G<<endl;
cout<<choosejn<<endl;
for(int i=1;i<=11;i++)
{
cout<<Is_first[i]<<endl;
}
for(int i=1;i<=11;i++)
{
cout<<Can_go[i]<<endl;
}
cout<<Can_into<<endl;
cout<<uplevel<<endl;
cout<<rate<<endl;
cout<<TD<<endl;
cout<<assTD[0]<<endl;
cout<<assTD[1]<<endl;
cout<<bag<<endl;
cout<<bag1<<endl;
cout<<bag2<<endl;
for(int i=0;i<=9;i++)
{
cout<<yaoshui[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<wuqi[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<xinneng[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<wuqiLV[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<a_f[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<Is_pct[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<daoju[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<yaoshui[i]<<endl;
}
for(int i=0;i<=9;i++)
{
cout<<yaoshuixiao[i]<<endl;
}
for(int i=0;i<=3;i++)
{
cout<<Is_xl[i]<<endl;
}
cout<<zhuangbeiwuqi<<endl;
cout<<zhuangbeia<<endl;
cout<<zhuangbeifangju<<endl;
cout<<zhuangbeif<<endl;
cout<<pct<<endl;
cout<<mu<<endl;
cout<<sheng<<endl;
cout<<gang<<endl;
cout<<xilian<<endl;
cout<<chou<<endl;
}
void draw(string map[30],int k,int c) {
tiaose(color[c][0]);
cout<<"==============================\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"|| ||\n";
cout<<"==============================\n\n\n";
tiaose(15);
cout<<"所在地:"<<destin[k]<<endl;
cout<<"难度等级:";
if(diffLV[k]>=1&&diffLV[k]<=3)
{
tiaose(10);
}
if(diffLV[k]>=4&&diffLV[k]<=5)
{
tiaose(14);
}
if(diffLV[k]>=6&&diffLV[k]<=7)
{
tiaose(4);
}
if(diffLV[k]>=8&&diffLV[k]<=10)
{
tiaose(12);
}
cout<<diffLV[k]<<endl;
tiaose(color[c][1]);
guangbiao(3,2);
for(int i=0;i<=16;i++)
{
for(int j=0;j<=23;j++)
{
if(map[i][j]=='O')
{
tiaose(15);
cout<<'O';
tiaose(color[c][1]);
}
else
{
cout<<map[i][j];
}
}
guangbiao(3,i+3);
}
tiaose(15);
}
void jindu(int sum) {
system("cls");
time_t now=time(0);
char* dt=ctime(&now);
HideCursor(0);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),8);
cout<<"+============================================+"<<endl;
cout<<"| |"<<endl;
cout<<"+============================================+"<<endl;
guangbiao(1,1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12|1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13);
for(int i=0;i<22;i++)
{
Sleep(sum-5);
cout<<"█";
}
tiaose(14);
cout<<endl;
cout<<endl;
cout<<"艾诺迪亚5:巨岩魔王的觉醒 "<<dt;
cout<<endl;
cout<<endl;
HideCursor(1);
}
void The_end(int ch15) {
getline(cin,s);
HideCursor(0);
Is_end=true;
stop_time+=15;
Sleep(3000);
system("cls");
if(ch15==1) {
getline(cin,s);
system("cls");
Slowsay("………………\n");
Slowsay("………………\n");
Slowsay("………………\n");
Sleep(3000);
system("cls");
Slowsay("三个月后\n");
getline(cin,s);
system("cls");
Slowsay("原霜风部落,烈士公墓前……\n");
getline(cin,s);
Slowsay("昆迪将一束玫瑰放在了最中间一块墓碑上,走到了一旁");
getline(cin,s);
Slowsay("这块墓碑上写着:“这里安息着,我们最勇敢、可敬的英雄——");
Slowsay(name);
Slowsay(",公元前4997992——公元前4998014,享年22岁”\n");
getline(cin,s);
system("cls");
Slowsay("“");
Slowsay(name);
Slowsay(",我们回来看你了”");
Sleep(1000);
getline(cin,s);
system("cls");
Slowsay("“很抱歉,我们没能第一时间制作出解药,但因为你,人类没有失去最后的希望\n");
Sleep(1500);
Slowsay("“霜风部落的兽人们在你死后的半个月制作出了一种缓解药水,它有着巨大的能量,即使半个身子被僵化了,也能依靠自身力量重生!”");
getline(cin,s);
system("cls");
Slowsay("“杀死剩余的怪兽更不用说了,人类在两个月内就收复了被侵略的土地\n");
getline(cin,s);
system("cls");
Slowsay("呐,这是政府给你的勋章,勇敢的英雄,人类的救星,世界级的待遇……我就放这儿了\n");
getline(cin,s);
Slowsay("…………\n");
Sleep(1000);
Slowsay("我想说的就这么多了,以后有空再来看你,再见\n");
Sleep(1000);
getline(cin,s);
Sleep(1000);
system("cls");
}
if(ch15==2) {
system("cls");
Sleep(1500);
system("cls");
Sleep(3500);
Slowsay("历史已经过去,英雄不复存在\n");
Sleep(2000);
system("cls");
Slowsay("当");
Slowsay(name);
Slowsay("和昆迪、SuperHunter一起醒来时,世界已经恢复了和平\n");
Sleep(1000);
Slowsay("但是,几乎没有人知道他们干了些什么\n");
Sleep(2000);
system("cls");
Slowsay("霜风部落里,那些脱险的兽人们一起欢呼着,庆祝着这来之不易的胜利,");
Sleep(1000);
Slowsay("然而他们甚至并不知道是怎么脱险的\n");
Sleep(3000);
system("cls");
Slowsay("新手村内,响起了久违的欢笑声。\n");
Sleep(2000);
system("cls");
Slowsay("国界被推翻,刀枪被销毁。再也没有所谓的国家之分,整个地球成了一个小村庄,大家齐心协力,将地球恢复了五百万年前的平静\n");
Sleep(2000);
system("cls");
Sleep(2000);
Slowsay("但是,在某些人心灵深处,留下的那一丝淡淡的忧伤,将会永远伴随着他们……\n");
Sleep(3000);
}
if(ch15==3) {
tiaose(15);
Sleep(2000);
stop_time=55;
Slowsay("…………\n");
Slowsay("…………\n");
Sleep(2000);
system("cls");
Slowsay("“我看见你所说的那个玩家了……”\n");
Sleep(2000);
system("cls");
Slowsay("“");
Slowsay(name);
Slowsay("?”\n");
Sleep(2000);
system("cls");
Slowsay("“是的,小心,他现在已经达到了更高的境界,他能读懂我们的心思了”\n\n");
Sleep(1500);
Slowsay("“无伤大雅,他认为我们只是游戏中的一部分”\n");
Sleep(2000);
system("cls");
Slowsay("“我喜欢这个玩家,他玩得很好,没有放弃过”\n\n");
Sleep(1500);
system("cls");
Slowsay("“他以屏幕上出现的文字的形式阅读着我们的思想。”\n");
Sleep(2000);
system("cls");
Slowsay("“在他深陷游戏的梦境时,他总以这种方式想象出各种各样的事物。”\n");
Sleep(1500);
Slowsay("“哈,那个原始的界面。经历百万年的岁月,它依然在工作。但这个玩家在屏幕后,到底创造了什么真实的构造?”\n\n");
Sleep(2000);
Slowsay("“他与别的玩家一样,在现实里辛勤劳作,却在游戏里雕刻出一个真实的世界”\n");
Sleep(2000);
system("cls");
Slowsay("“不过,他还没有达到最高境界,为了达到最高境界,他得完成生命的长梦,而非游戏那短暂的浮梦”\n");
Sleep(2500);
system("cls");
Slowsay("“是的,他要自己完成,我们不能干涉”\n\n");
Sleep(1500);
Slowsay("“那就让他去吧,我们就在这儿看着他”\n");
Sleep(2000);
system("cls");
Slowsay("“你就是那个玩家,");
Slowsay(name);
Slowsay("”\n\n\n");
Sleep(2000);
Slowsay("“醒来吧”\n");
Sleep(2000);
system("cls");
}
if(ch15==4) {
Sleep(1000);
stop_time=50;
system("cls");
Slowsay("…………\n");
Slowsay("…………\n");
Sleep(2000);
system("cls");
Slowsay("两个月后,新手村内\n");
Sleep(1500);
system("cls");
Slowsay("一群衣冠不整、面呈菜色的人站在一块破破烂烂的墓碑前\n");
Sleep(2000);
system("cls");
Sleep(1000);
Slowsay("Here lies a nameless people,He is brave and strong\n");
Sleep(1500);
Slowsay("Despite his failure, he is still a hero in everyone's heart\n");
Sleep(1500);
Slowsay("Because of him, our world is full of warmth");
Sleep(2000);
system("cls");
Slowsay("昆迪从人群中走了上来,对着这块墓碑说道:");
Sleep(1000);
system("cls");
cout<<"“";
Slowsay(name);
Slowsay(",唉,没有办法,我们还是没能击败巨岩魔王,不过,你已经尽力了。放心,总有一天,一定还有一位武力高强的英雄会拯救世界的”\n");
Sleep(1000);
Slowsay("“现在,巨岩魔王已经将南方占领了,很快就要打到我们这儿来了”\n");
Sleep(1000);
system("cls");
Slowsay("“唔,既然这里是你的家乡,那么,就让你安息在这里吧,你的灵魂能守护这里的”\n");
Sleep(1000);
system("cls");
Slowsay("“我想说的就这么多了,我先走了,再见!”\n");
Sleep(1000);
system("cls");
Slowsay("昆迪他们走了,在这座荒凉的村子里,唯独一块破旧的墓碑格外显眼\n");
Sleep(1000);
Slowsay("那块墓碑高大地耸立着,远远望去,像一尊守护神的雕塑......\n");
Sleep(3000);
}
system("cls");
}
void xuetiao() {
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
cout<<"+==================================+"<<endl;
cout<<"| |"<<endl;
cout<<"+==================================+"<<endl;
guangbiao(1,1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12|1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13);
tiaose(2);
for(int i=0; i<17; i++) {
Sleep(20);
cout<<"█";
}
tiaose(15);
guangbiao(83,0);
cout<<"+==================================+"<<endl;
guangbiao(83,1);
cout<<"| |"<<endl;
guangbiao(83,2);
cout<<"+==================================+"<<endl;
guangbiao(84,1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14|1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13);
tiaose(4);
for(int i=1; i<=17; i++) {
Sleep(20);
cout<<"█";
}
tiaose(14);
guangbiao(1,3);
}
bool mengjing() {
system("cls");
Sleep(2000);
Slowsay("你突然发现你走在一条似曾相识的小路上\n\n");
Sleep(1500);
Slowsay("你旁边的景物竟是如此熟悉,但实在是记不起来在哪儿见过了\n");
Sleep(1500);
system("cls");
Sleep(1000);
Slowsay("“唔哈哈哈哈哈哈哈哈!”\n");
Sleep(1000);
system("cls");
Slowsay("这时,一声刺耳的奸笑声传来\n\n");
Sleep(1000);
Slowsay("一个身披斗篷,身体透明的“人”飞了过来\n");
Sleep(1000);
system("cls");
Slowsay("你心里一惊,问:“你是谁?”\n");
Sleep(2000);
Slowsay("“我是谁?你猜!哈哈~ O(∩_∩)O”\n");
Sleep(1000);
system("cls");
Slowsay("“你现在所在的地方就是你过去在梦中所曾经历过的地方”\n");
Sleep(1000);
Slowsay("“不过,想活着回去可不是那么容易的是哦,哈哈哈哈哈”\n");
Sleep(2000);
system("cls");
Slowsay("你心想:“这人是不是脑残啊,老是笑个没完没了”,不过你还是装模做样地问:“为什么?”\n");
Sleep(1000);
system("cls");
Slowsay("“因为嘛……………………你猜~”\n\n");
Sleep(1000);
Slowsay("“今天,本人心情好~只要你能答出下面这题,我就放你回去”\n");
Sleep(1000);
system("cls");
Slowsay("先有鸡还是先有蛋? 回答:1,鸡 2,蛋\n");
int a;
cin>>a;
bool q;
if(a!=1&&a!=2) {
Slowsay("哎呀呀,你敢不按题目要求作答?\n");
Sleep(1000);
system("cls");
}
if(a==1) {
Sleep(1000);
Slowsay("╭(╯^╰)╮,算你回答正确,回去吧~\n");
Sleep(1000);
Slowsay("一道金色的光芒笼罩了大地,当光芒消失后,你已经回到了刚刚的地方…………\n");
return true;
}
if(a==2) {
Sleep(1000);
Slowsay("哈哈,回答错误!!!!\n");
}
Slowsay("我要把你摄入死神拷问室,把你活活整死,哼哼~\n");
Sleep(2000);
system("cls");
Slowsay("你木有听清,便问:“是什烤火室是神马?”\n");
Sleep(1000);
Slowsay("“NQS!我要把你好好整整——kshdoadhdbncjksamkxha!”\n");
Sleep(1000);
system("cls");
Slowsay("这时,它的身体爆发出一道道紫色的光芒,吞噬了整个空间…………\n");
Sleep(1000);
Slowsay("接着,你感觉被一股无形的力量拉入了更深的一层……………………\n");
Sleep(3500);
system("cls");
Slowsay("当你再度睁开眼睛时,你发现你在一根巨大的圆型柱子旁,脚上扣着枷锁,手上戴着手铐\n");
Sleep(1000);
Slowsay("你还感到一股无形的力量正把你往柱子上摁,还把你往前推\n");
Sleep(1000);
Slowsay("你正在纳闷,突然后面传来一阵空洞的声音——");
Sleep(1000);
Slowsay("“哟,又来了一个新人了呀”\n");
Sleep(1000);
system("cls");
Slowsay("你猛地一转头,才发现后面有许多和自己一样被摁在墙上的人,只不过他们穿的衣服都破破烂烂的,肮脏的像个魔鬼似的\n");
Sleep(1000);
Slowsay("“你也是被它抓过来的吗?”\n");
Sleep(1000);
Slowsay("你说:“是的,不过它是谁?”\n");
Sleep(1500);
Slowsay("“传说中的光影盗梦者,在你熟睡或是注意力分散时会将你带入一个你曾在梦里去过的地方。如果幸运,你将会平安回归现实,如果不幸运,你就会被带到这儿来”\n");
Sleep(1000);
Slowsay("“你们是什么时候进来的?\n”");
Sleep(1500);
system("cls");
Slowsay("大概2000多年前吧,很奇怪,在这儿不用吃不用喝你都能活的好好的,不过每天都只能一直走,一直走,一直走……走到你心力交瘁也停不下来\n");
Sleep(1000);
Slowsay("“难道,你一直走了两千多年啦?!”\n");
Sleep(1000);
Slowsay("“是的”\n");
Sleep(2000);
Slowsay("“╮(╯▽╰)╭,人世间悲惨的事情太多了~~~”\n");
Sleep(1000);
Slowsay("不过,只要回答出墙上的那道题,我们就可以解放了,但是请记住,有且只有一次机会——知道答案后大声喊出就行了\n");
Sleep(1000);
Slowsay("你看了看墙上,上面写着——");
int app=rand()%5;
Slowsay(Tm[app]);
cout<<endl;
Sleep(1000);
int ans;
cin>>ans;
int sum=answer[app];
Sleep(1000);
Slowsay("你大声喊出了");
cout<<ans;
Sleep(500);
system("cls");
Sleep(1000);
Slowsay("突然,地动山摇\n");
Sleep(1000);
if(ans!=sum) {
Slowsay("一声刺耳而遥远的声音传来:");
Sleep(1000);
Slowsay("回答错误!!!!!\n");
Sleep(1000);
system("cls");
return false;
}
system("cls");
Sleep(1000);
Slowsay("哗啦——地面开裂,所有人都掉了下去……\n");
Sleep(2000);
system("cls");
Slowsay("当你晕晕乎乎地站起来时,发现四周一片漆黑\n");
Sleep(2000);
Slowsay("当你看见其他人也站起来时,突然闻到一股腐烂的臭气…………\n");
Sleep(3000);
char k;
ganma:
system("cls");
Slowsay("你要干嘛? 1,悄悄离开 2,原地不动\n");
cin>>k;
if(k!='1'&&k!='2') {
goto ganma;
}
if(k=='1') {
Sleep(1000);
Slowsay("你悄悄地离开了……\n");
Sleep(2000);
system("cls");
int klkl=rand()%2;
if(klkl==0) {
Slowsay("突然,你脚下一空,落入了无边黑暗……\n");
Sleep(1000);
system("cls");
return false;
}
if(klkl==1) {
Slowsay("你悄悄地往前走,这时,从后面突然传来一阵喊声:“少了一个人!”\n");
Sleep(2000);
Slowsay("紧接着,你感到一股拉力,把你使劲拉了回去……");
Sleep(1000);
Slowsay("啊啊啊啊啊啊啊啊啊啊啊啊——————————\n");
Sleep(2000);
system("cls");
Slowsay("突然,你发现了一个“人”站在你面前……\n");
}
} else {
Sleep(1000);
Slowsay("你正在纳闷儿,一个身影便飘了过来~\n");
Sleep(1000);
system("cls");
Sleep(1000);
}
Sleep(1000);
Slowsay("它身披黑色斗篷,黑色的帽子遮住了它的脸,却隐约有一道利剑一般的光从里面射出来\n");
Sleep(1000);
Slowsay("它手握镰刀,而露出来的手掌,却没有血肉,只是白森森的骨头……\n");
Sleep(1000);
system("cls");
Slowsay("这形象,使你联想到——死神!!\n");
Sleep(2000);
system("cls");
Slowsay("“哟,终于解放了,我这就带你们去地狱吧!”\n");
Sleep(1000);
Slowsay("你感到一股寒意,而别人却说:“对呀,我们是几千年前就到这里了,现在早就死了。走,咱们不用再接受酷刑了,去地狱吧!\n”");
Sleep(1000);
Slowsay("于是,你大喊:“喂,我还是活人呢,我才刚进来!”\n");
Sleep(1000);
Slowsay("“哎呀呀,别啰嗦了,走,出发吧!”\n");
Sleep(500);
Slowsay("“不,不要————”\n");
Sleep(2000);
system("cls");
Sleep(5000);
Slowsay("猛地睁开眼睛,呼~原来是一场梦啊\n");
Sleep(1000);