#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int g = 150, x = 300, f = 10, kj = 0, chuan = 0;
int xue = 300, ff = f;
int bag[41];
void slowout(char* p) {
while (1) {
if (*p != 0)
printf("%c", *p++);
else
break;
Sleep(100);
}
}
int zhandou(int g1, int x1, int f1, int q, int shan, int fang, char boss[20]) {
int k = 0;
x = xue;
ff = f;
while (1) {
int cc = g - f1;
if (cc <= 0)cc = 0;
x1 -= cc;
printf("你向%s攻击,%s扣了%d滴血,\
还剩%d滴血\n", boss, boss, cc, x1 < 0 ? 0 : x1);
if (x1 <= 0) {
k++;
break;
}
Sleep(1000);
if (rand() % fang)printf("%s十分恼怒,防御+%d\n", boss, q), f1 += q;
else printf("%s气势低沉,防御-%d\n", boss, q), f1 -= q;
Sleep(1000);
printf("%s向你扑来\n", boss);
Sleep(1000);
int ccc = g1 - f;
if (ccc < 0)ccc = 0;
x -= ccc;
printf("%s向你发动攻击,你扣了%d滴血,\
还剩%d滴血\n", boss, ccc, x < 0 ? 0 : x);
if (x <= 0) {
printf("你已死亡!\n");
Sleep(1000);
break;
}
Sleep(1000);
if (rand() % 2)printf("你十分恼怒,防御+%d\n", q), f += q;
else printf("你气势低沉,防御-%d\n", q), f -= q;
Sleep(1000);
}
f = ff;
return k;
}
int main() {
char name[20];
int vip, a, b, c, d, e, u, v, w, x, y, z, wuqi = 0, key = 0, sys = 0, yhk = 0, kc = 0, slb = 0;
int exp = 0, money = 300, lv = 1, lv1 = 1;
for (int i = 1; i <= 40; i++)
bag[i] == 0;
int xie = 0, chuan = 0, xz[21];
for (int i = 0; i <= 20; i++)
xz[i] = 0;
printf("歹");
Sleep(500);
printf("徒");
Sleep(500);
printf("逃");
Sleep(500);
printf("亡\n");
Sleep(500);
printf("1.5.1正式版\n");
Sleep(500);
printf("作者:cyka blyat!\n\n");
Sleep(3000);
system("cls");
system("color 70");
Sleep(1000);
slowout("在2999年,S城……\n");
Sleep(1000);
slowout("这是一座充满未知的神秘城市…………\n");
Sleep(1000);
slowout("某一天……\n");
Sleep(1000);
Sleep(1000);
slowout("警察A:这都快半年了,S城一直平安无事,你说我们俩在这里天天转悠,够无聊的。\n");
Sleep(1000);
slowout("警察B:哎,咋们也是为了混口饭吃,不容易啊!\n");
Sleep(1000);
slowout("警察A:算了,巡逻巡逻吧。\n");
Sleep(1000);
slowout("突然,惊天动地一声巨响,两名警察应声倒地\n");
Sleep(1000);
slowout("烟雾中,你出现了~\n\n\n");
Sleep(1000);
slowout("请输入你的名字:");
cin >> name;
system("cls");
printf("确认名字:你的名字是%s\n", name);
Sleep(1000);
slowout("下面正式开始游戏~//大力支持作者//\n\n\n\n\n");
Sleep(1000);
printf("你,%s是一名S城的普通歹徒,然而,你想干出一番大事业。\n", name);
Sleep(1000);
Sleep(1000);
Sleep(1000);
goto a1;
a1: {
while (exp > 500) {
exp -= 500;
lv += 1;
}
if (lv - lv1 == 1) {
slowout("你升级了!\n");
xue += 100;
g += 50;
f += 20;
lv1++;
}
if (lv > lv1 && lv - lv1 != 1) {
int eeeee = lv - lv1;
slowout("你连升了");
cout << eeeee;
slowout("级!\n");
xue += 100 * eeeee;
g += 50 * eeeee;
f += 20 * eeeee;
lv1 += eeeee;
}
slowout("现在你要去哪里\n");
printf("1.大街 2.商店 3.矿场 4.实验室 5.省警察局 6.银行 7.查看背包 8.试炼场 9.黑市 10.开启VIP 11.饭店 12.抽奖机\n");
cin >> a;
}
if (a == 1) {
int dajie;
srand((unsigned)time(NULL));
dajie = rand() % 10;
if (dajie >= 0 && dajie <= 4) {
printf("大街上走来了一个路人\n");
Sleep(1000);
printf("是否打他? 1.是 2.否\n");
cin >> b;
if (b == 1) {
if (zhandou(100, 350, 0, 10, 1, 2, "路人")) {
int luren;
luren = rand() % 10;
printf("胜利!\n");
Sleep(1000);
printf("获得50金币,30经验\n");
money += 50;
exp += 30;
if (luren >= 0 && luren <= 4) {
printf("恭喜获得:小瓶攻击药水*1\n");
bag[1]++;
}
else {
printf("没有获得物品\n");
}
}
}
goto a1;
}
if (dajie > 4 && dajie <= 6) {
printf("大街上过来了一名警察\n");
Sleep(1000);
printf("是否攻击?1.是 2.否\n");
cin >> b;
if (b == 1) {
if (zhandou(200, 700, 50, 5, 1, 2, "警察")) {
int police;
police = rand() % 10;
printf("胜利!\n");
Sleep(1000);
printf("获得100金币,80经验\n");
money += 100;
exp += 80;
if (police >= 0 && police <= 3) {
printf("恭喜获得:中瓶攻击药水*1\n");
bag[2]++;
}
if (police > 3 && police <= 6) {
printf("恭喜获得:长刀*1\n");
bag[7]++;
}
else printf("没有获得任何物品\n");
goto a1;
}
}
goto a1;
}
if (dajie > 6 && dajie <= 8) {
printf("安全。\n");
goto a1;
}
if (dajie == 9) {
printf("大街上来了一辆装甲车\n");
Sleep(1000);
printf("是否攻击?1.是 2.否\n");
cin >> b;
if (b == 1) {
if (zhandou(850, 3000, 660, 0, 1, 2, "装甲车")) {
printf("你胜利了!\n");
Sleep(1000);
printf("获得600金币,500经验!!!\n");
money += 600;
exp += 500;
Sleep(1000);
printf("你有资格驾驶这辆装甲车!\n");
bag[13]++;
}
}
goto a1;
}
}
if (a == 2) {
slowout("黑店老板:你要做甚么? 1.购买 2.抢劫\n");
cin >> c;
if (c == 1) {
int shangdian[16];
for (int aaaaa = 1; aaaaa <= 15; aaaaa++)
shangdian[aaaaa] = 0;
slowout("黑店老板:你要买啥类?\n");
Sleep(1000);
printf("1.长刀 200¥\n");
printf("2.青龙偃月刀 666¥\n");
printf("3.开启实验室的钥匙 500¥\n");
printf("4.银行卡(别想了,里面没钱) 300¥\n");
printf("5.手枪 800¥\n");
printf("6.机关枪 1000¥\n");
printf("7.98K 1999¥\n");
printf("8.熔炼炉 650¥\n");
printf("9.树皮/木头/白纸/碳(随机) 100¥\n");
printf("10.黑市入场券 100¥\n");
printf("11.挖矿镐 150¥\n");
printf("12.黑市终身贵宾卡 9999¥\n");
printf("13.等离子大炮 2000¥\n");
printf("14. 高级装甲车升级道具 999999¥\n");
printf("15.退出\n");
cin >> b;
shangdian[b] == 1;
slowout("黑店老板:你要买几个?\n");
cin >> kj;
int sdm = 0, j;
for (int i = 1; i <= 14; i++) {
if (b == 1) {
sdm == 200;
j = 1;
}
if (b == 2) {
sdm == 666;
j = 8;
}
if (b == 3) {
sdm == 500;
j = 0;
}
if (b == 4) {
sdm == 300;
j = -1;
}
if (b == 5) {
sdm == 800;
j = 9;
}
if (b == 6) {
sdm == 1000;
j = 10;
}
if (b == 7) {
sdm == 1999;
j = 11;
}
if (b == 8) {
sdm == 650;
j = 20;
}
if (b == 9) {
sdm == 100;
j = -2;
}
if (b == 10) {
sdm == 100;
j = 21;
}
if (b == 11) {
sdm == 150;
j = 31;
}
if (b == 12) {
sdm == 9999;
j = 22;
};
if (b == 13) {
sdm == 2000;
j = 12;
}
if (b == 14) {
sdm == 999999;
j = -3;
}
if (shangdian[i] == 1)
if (money < sdm * kj)
slowout("黑店老板:钱都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
if (j != -3 && j != 0 && j != -1 && j != -2) {
bag[j] = 1;
money -= sdm * kj;
}
else {
if (j == 0)
if (money < sdm * kj)
slowout("黑店老板:钱都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
sys = 1;
money -= sdm * kj;
}
if (j == -1)
if (money < sdm * kj)
slowout("黑店老板:钱都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
yhk = 1;
money -= sdm * kj;
}
if (j == -2)
if (money < sdm * kj)
slowout("黑店老板:钱都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
{ {
if (money < 100 * kj)slowout("黑店老板:钱都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
money -= 100 * kj;
int dian;
for (int ss = 1; ss <= kj; ss++) {
dian = rand() % 15;
if (dian <= 4) {
slowout("获得树皮\n");
bag[16]++;
}
if (dian > 4 && dian <= 7) {
slowout("获得木头\n");
bag[17]++;
}
if (dian > 7 && dian <= 11) {
slowout("获得白纸\n");
bag[18]++;
}
if (dian > 11) {
slowout("获得碳\n");
bag[19]++;
}
}
}
}
}
}
if (j == -3)
if (money < sdm * kj && bag[13] < kj)
slowout("黑店老板:钱(车)都没有?来人,打出去!\n");
else {
slowout("购买成功!\n");
bag[14] += kj;
money -= sdm * kj;
bag[13] -= kj;
}
}
}
}
for (int aaaaa = 1; aaaaa <= 15; aaaaa++)
shangdian[aaaaa] = 0;
}
if (c == 2) {
slowout("黑店老板:来人呀!抢劫了!\n");
Sleep(1000);
printf("一名持枪警察冲了过来!你没有办法,只能迎战!\n");
Sleep(1000);
if (zhandou(400, 700, 50, 10, 1, 2, "持枪警察")) {
printf("你把黑店老板狠揍了一顿,并且抢到了600金币\n");
money += 600;
}
else {
printf("抢劫没抢成,反倒赔了200金币!\n");
money -= 200;
}
}
Sleep(1000);
goto a1;
}
if (a == 3) {
if (kc == 1) {
slowout("欢迎来到属于你的矿场!你要做什么?\n");
printf("1.挖矿 2.退出\n");
cin >> b;
if (b == 1) {
if (bag[31] == 0)
slowout("你没有挖矿镐!\n");
if (bag[31] > 0) {
printf("挖矿开始!\n");
Sleep(3000);
int wk;
wk = rand() % 13;
if (wk == 0 || wk == 1 || wk == 2 || wk == 3) {
slowout("挖中青铜矿*1\n");
bag[26]++;
}
if (wk == 4 || wk == 5) {
slowout("挖中铁矿*1\n");
bag[27]++;
}
if (wk == 6) {
slowout("挖中金矿*1\n");
bag[28]++;
}
if (wk == 7) {
slowout("运气超赞,挖中钻石矿*1\n");
bag[29]++;
}
if (wk == 8) {
slowout("运气爆棚,挖中翡翠矿*1,但是由于太过坚硬,废了一把稿子\n");
bag[30]++;
bag[31]--;
}
if (wk > 8) {
slowout("运气太差,啥也没挖到,稿子还断了\n");
bag[31]--;
}
}
}
}
if (kc == 0) {
slowout("你进入矿场\n");
slowout("你看见许多劳工在不停地干活,而监工们却十分清闲,如果有劳工停了一下,他们还用鞭子抽打\n");
slowout("你虽是歹徒,却也看不下去了\n");
printf("%s:", name);
slowout("你们这样太过分了,民主平等年代怎么还会有这种事!\n");
slowout("监工:哪里来的乡巴佬,多管闲事!\n");
printf("%s:", name);
slowout("(怒)我是歹徒,不是乡巴佬!\n");
if (zhandou(350, 800, 100, 10, 1, 2, "矿场监工"))
slowout("另一名监工冲了过来\n");
else {
slowout("没实力就不要装B!\n");
Sleep(1000);
goto a1;
}
if (zhandou(400, 900, 200, 10, 1, 2, "矿场监工"))
slowout("监工找来了总监工\n");
else {
slowout("没实力就不要装B!\n");
Sleep(1000);
goto a1;
}
slowout("总监工:竟敢扰乱矿场秩序,老子杀了你!\n");
if (zhandou(600, 1200, 250, 5, 1, 2, "矿场总监工"))
slowout("矿场主出现了!\n");
else {
slowout("没实力就不要装B!\n");
Sleep(1000);
goto a1;
}
slowout("矿场主:乡巴佬,你不要自寻死路!\n");
printf("%s:", name);
slowout("(暴怒)再说一遍,老子不是乡巴佬!\n");
if (zhandou(800, 2000, 200, 10, 1, 2, "矿场主"))
slowout("你干掉了矿场主,所有劳工都自由了!\n");
else {
slowout("没实力就不要装B!\n");
Sleep(1000);
goto a1;
}
slowout("所有劳工:感谢您救了我们,以示报答,这个矿场属于您了!\n");
system("cls");
kc = 1;
}
Sleep(1000);
goto a1;
}
if (a == 4) {
if (sys < 1)
slowout("你没有钥匙,进不去!\n");
else {
slowout("你要研制些甚么?\n");
Sleep(1000);
printf("1.小瓶/中瓶/大瓶攻击药水 需要:①50¥/100¥/150¥ ②树皮*1/*2/*4\n");
printf("2.小瓶/中瓶/大瓶增血药水 需要:①50¥/100¥/200¥ ②木头*1/*2/*3\n");
printf("3.小瓶/中瓶/大瓶经验药水 需要 ①500¥/1000¥/2000¥ ②碳*3/*6/*9\n");
printf("4.退出\n");
printf("更多研制内容敬请期待……\n");
if (bag[20] > 0) {
cin >> b;
if (b == 1) {
printf("小瓶/中瓶/大瓶?\n");
cin >> c;
slowout("你要研制几瓶?\n");
cin >> kj;
if (c == 1) {
if (money < 50 * kj && bag[16] < kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 50 * kj) {
slowout("研制成功!\n");
bag[16] -= kj;
bag[1] += kj;
}
else {
slowout("研制成功!\n");
money -= 50 * kj;
bag[1] += kj;
}
}
}
if (c == 2) {
if (money < 100 * kj && bag[16] < 2 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 100 * kj) {
slowout("研制成功!\n");
bag[16] -= 2 * kj;
bag[2] += kj;
}
else {
slowout("研制成功!\n");
money -= 100 * kj;
bag[2] += kj;
}
}
}
if (c == 3) {
if (money < 150 * kj && bag[16] < 4 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 150 * kj) {
slowout("研制成功!\n");
bag[16] -= 4 * kj;
bag[3] += kj;
}
else {
slowout("研制成功!\n");
money -= 150 * kj;
bag[3] += kj;
}
}
}
}
if (b == 2) {
printf("小瓶/中瓶/大瓶?\n");
cin >> c;
if (c == 1) {
if (money <= 50 * kj && bag[17] < kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 50 * kj) {
slowout("研制成功!\n");
bag[17] -= kj;
bag[4] += kj;
}
else {
slowout("研制成功!\n");
money -= 50 * kj;
bag[4] += kj;
}
}
}
if (c == 2) {
if (money <= 100 * kj && bag[17] < 2 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 100 * kj) {
slowout("研制成功!\n");
bag[17] -= 2 * kj;
bag[5] += kj;
}
else {
slowout("研制成功!\n");
money -= 100 * kj;
bag[5] += kj;
}
}
}
if (c == 3) {
if (money <= 200 * kj && bag[17] < 3 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 200 * kj) {
slowout("研制成功!\n");
bag[17] -= 3 * kj;
bag[6] += kj;
}
else {
slowout("研制成功!\n");
money -= 200 * kj;
bag[6] += kj;
}
}
}
}
if (b == 3) {
printf("小瓶/中瓶/大瓶?\n");
cin >> c;
slowout("你要研制几瓶?\n");
cin >> kj;
if (c == 1) {
if (money <= 500 * kj && bag[19] < kj * 3)
slowout("钱(或材料)不够!\n");
else {
if (money < 500 * kj) {
slowout("研制成功!\n");
bag[19] -= 3 * kj;
bag[34] += kj;
}
else {
slowout("研制成功!\n");
money -= 500 * kj;
bag[34] += kj;
}
}
}
if (c == 2) {
if (money <= 1000 * kj && bag[19] < 6 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 1000 * kj) {
slowout("研制成功!\n");
bag[19] -= 6 * kj;
bag[35] += kj;
}
else {
slowout("研制成功!\n");
money -= 1000 * kj;
bag[35] += kj;
}
}
}
if (c == 3) {
if (money <= 1500 * kj && bag[19] < 9 * kj)
slowout("钱(或材料)不够!\n");
else {
if (money < 1500 * kj) {
slowout("研制成功!\n");
bag[19] -= 9 * kj;
bag[36] += kj;
}
else {
slowout("研制成功!\n");
money -= 1500 * kj;
bag[36] += kj;
}
}
}
}
}
else slowout("你没有炼药炉\n");
}
Sleep(1000);
goto a1;
}
if (a == 5) {
slowout("你确定要闯进去吗?不要作死! 1.确定 2.算了\n");
cin >> b;
if (b == 1) {
slowout("你走到门口,门卫拦住了你\n");
if (zhandou(200, 600, 50, 5, 1, 2, "门卫"))
slowout("战斗胜利,继续前进!\n");
else {
slowout("你都还没进门就嗝屁了~告诉过你不要作死!\n");
goto a1;
}
Sleep(1000);
slowout("你走了进去,一名拿着青龙偃月刀(从哪儿冒出来的?)的警察拦住了你\n");
if (zhandou(650, 800, 80, 10, 1, 2, "警察"))
slowout("战斗胜利,继续前进!\n");
else {
slowout("才第二关诶!你这个菜鸟水平也敢进省警察局?\n");
goto a1;
}
Sleep(1000);
slowout("你继续前进,一名铁甲警察掏出手枪对准了你!\n");
if (zhandou(600, 1000, 400, 15, 1, 2, "铁甲警察"))
slowout("战斗胜利,继续前进!\n");
else {
slowout("你也不赖了,可战力还需提高!\n");
goto a1;
}
Sleep(1000);
slowout("你就要走到省警察局大楼的门口了,忽然,一名凭空出现的警察掏出了98K!\n");
if (zhandou(1000, 1100, 150, 10, 1, 2, "警察"))
slowout("战斗胜利,继续前进!\n");
else {
slowout("你完蛋了,变强后再来吧!\n");
goto a1;
}
Sleep(1000);
slowout("你走到了大楼门口,省警察局局长出现了!\n");
slowout("局长:大胆歹徒,竟敢闯入省警察局,我要让你有去无回!\n");
slowout("省警察局局长派出了一名保镖!\n");
if (zhandou(900, 1800, 300, 20, 1, 2, "局长保镖"))
slowout("局长:什么?!你赢了!走着瞧!\n");
else {
slowout("你凉了……\n");
goto a1;
}
Sleep(1000);
slowout("局长:没想到你这么难打,只好派出我的精英保镖了!\n");
if (zhandou(1100, 2200, 450, 20, 1, 2, "精英保镖"))
slowout("局长:你这么厉害?!看来只能请求支援了!\n");
else {
slowout("……你失败了,下次再来吧!\n");
goto a1;
}
Sleep(1000);
slowout("局长:呼叫上级,呼叫上级,请求支援!\n");
slowout("一辆超强装甲车开了过来~\n");
slowout("你有一次逃跑的机会,是否逃跑?1.逃跑 2.继续战斗!\n");
cin >> c;
if (c == 1) {
slowout("你溜了,作者表示很鄙视,但还是奖励你800金币,1000经验\n");
money += 800;
exp += 1000;
goto a1;
}
if (zhandou(1200, 4000, 800, 0, 1, 2, "超强装甲车"))
slowout("局长:纳尼!只能使出终极武器了!\n");
else {
slowout("NO 作 NO die!\n");
goto a1;
}
Sleep(1000);
slowout("一辆坦克说来就来了……\n");
slowout("你已无法逃跑,决一死战吧!\n");
if (zhandou(2000, 7500, 1000, 0, 1, 2, "坦克"))
slowout("局长:这……这怎么可能!\n");
else {
slowout("你被坦克轰死了~\n");
goto a1;
}
Sleep(1000);
slowout("局长:我要亲自上,干掉你这个家伙!呃啊啊啊啊啊啊啊\n");
slowout("局长进入了暴怒状态,血量暴增!\n");
if (zhandou(1100, 15000, 0, 100, 1, 2, "省警察局局长"))
slowout("你把省警察局局长干掉了!你占领了整个省警察局!\n");
else {
slowout("唉,都最后一关了,真是遗憾!\n");
goto a1;
}
Sleep(1000);
system("cls");
slowout("你成功占领了省警察局,任务完成,游戏成功!\n\n\n\n\n\n\n\n\n");
slowout("请不要关闭游戏,不然你会后悔的");
Sleep(5000);
system("cls");
slowout("此时……国防部……\n");
slowout("国防部部长:什么?!一个歹徒就把省警察局给占了?警察局的人都干什么吃的?!\n");
slowout("国防部议员:部长,省警察局有很多的弹药和武器,我认为现在可以发射导弹,炸掉警察局,也炸掉那歹徒的老巢\n");
slowout("国防部部长:嗯……好,就这样办!\n");
slowout("导弹发射系统:准备发射导弹,准备发射导弹,目标:S城,省警察局。倒计时开始\n");
Sleep(1000);
printf("五 ");
Sleep(1000);
printf("四 ");
Sleep(1000);
printf("三 ");
Sleep(1000);
printf("二 ");
Sleep(1000);
printf("一\n");
Sleep(1000);
printf("歹徒逃亡第二部,敬请期待!\n");
Sleep(3000);
return 0;
}
Sleep(1000);
goto a1;
}
if (a == 6) {
slowout("前台:你要在银行作甚么? 1.存钱 2.抢银行\n");
cin >> b;
if (b == 1) {
if (yhk < 1) slowout("你没有银行卡,存不了钱!\n");
else {
slowout("你要存多少钱?\n");
cin >> c;
if (c > money)
slowout("前台:小伙子,你没有那么多钱!\n");
else {
printf("存钱成功!\n");
Sleep(1000);
money -= c;
printf("等待中……\n");
Sleep(10000);
int cunqian;
cunqian = rand() % 10;
if (cunqian <= 1) {
slowout("运气不错,收获利息1.5倍!\n");
c *= 1.5;
money += c;
}
if (cunqian > 1 && cunqian <= 4) {
slowout("运气不错,收获利息1.2倍!\n");
c *= 1.2;
money += c;
}
if (cunqian > 4 && cunqian <= 7) {
slowout("很遗憾,运气不好,存的钱只剩一半了\n");
c *= 0.5;
money += c;
}
if (cunqian > 7)
slowout("很遗憾,运气不好,存的钱都打水漂了\n");
}
}
}
if (b == 2) {
slowout("前台:喂,110吗?这里有人抢银行啊!你们快来啊!\n");
Sleep(1000);
printf("一名防弹持枪警察冲了过来!\n");
Sleep(1000);
if (zhandou(900, 1500, 300, 15, 1, 2, "防弹持枪警察")) {
int qiang;
qiang = rand() % 10;
if (qiang <= 4) {
slowout("抢银行成功了!获得1000元\n");
money += 1000;
}
if (qiang > 4 && qiang <= 7) {
slowout("抢银行成功了!获得2000元\n");
money += 2000;
}
if (qiang > 7 && qiang <= 9) {
slowout("抢银行成功了!获得3000元\n");
money += 3000;
}
if (qiang > 9) {
slowout("抢银行成功了!获得5000元\n");
money += 5000;
}
}
else {
slowout("抢银行没成功,你被警察带走了……你被关了一个月,还被罚了500金币\n");
money -= 500;
slowout("一个月后……\n");
}
}
Sleep(1000);
goto a1;
}
if (a == 7) {
printf("1.查看属性 2.查看武器 3.查看药水 4.查看其它\n");
cin >> b;
if (b == 1) {
b1:
system("cls");
printf("%s\n", name);
printf("等级:%d\n", lv);
printf("金币:%d\n", money);
printf("经验:%d\n", exp);
printf("血量:%d\n", xue);
printf("攻击:%d\n", g);
printf("防御:%d\n", f);
printf("试炼币:%d\n", slb);
printf("请输入0退出\n");
cin >> c;
if (c == 0) {
system("cls");
goto a1;
}
else
goto b1;
}
if (b == 2) {
b2://7.长刀 8.青龙偃月刀(乱入) 9.手枪 10.机关枪 11.98K
//12.等离子大炮 13.装甲车 14.高级装甲车 15.坦克
system("cls");
printf("7.长刀*%d\n8.青龙偃月刀*%d\n9.手枪*%d\n10.机关枪*%d\n11.98K*%d\n", bag[7], bag[8], bag[9], bag[10], bag[11]);
printf("12.等离子大炮*%d\n13.装甲车*%d\n14.高级装甲车*%d\n15.坦克*%d\n", bag[12], bag[13], bag[14], bag[15]);
printf("输入1穿上装备,输入2卸下装备,输入0退出\n");
cin >> c;
if (c == 0) {
system("cls");
goto a1;
}
if (c == 1) {
slowout("请输入要穿上的装备。\n");
cin >> d;
if (bag[d] == 0) {
slowout("抱歉,你没有这件装备!\n");
goto b2;
}
if (chuan == 1) {
slowout("你已经穿上装备了!请先卸下原有装备!\n");
goto b2;
}
if (bag[d] > 0 && chuan == 0) {
slowout("装备成功!\n");
chuan = 1;
system("cls");
wuqi = d;
if (d == 7) {
xue += 150;
g += 100;
f += 20;
xz[7] == 1;
}
if (d == 8) {
xue += 200;
g += 200;
f += 35;
xz[8] == 1;
}
if (d == 9) {
xue += 200;
g += 250;
f += 50;
xz[9] == 1;
}
if (d == 10) {
xue + 220;
g += 330;
f += 60;
xz[10] == 1;
}
if (d == 11) {
xue += 230;
g += 400;
f += 60;
xz[11] == 1;
}
if (d == 12) {
xue += 250;
g += 600;
f += 80;
xz[12] == 1;
}
if (d == 13) {
xue += 400;
g += 700;
f += 300;
xz[13] == 1;
}
if (d == 14) {
xue += 420;
g += 700;
f += 380;
xz[14] == 1;
}
if (d == 15) {
xue += 650;
g += 1000;
f += 500;
xz[15] == 1;
}
}
}
if (c == 2) {
slowout("请输入你要卸下的装备\n");
cin >> d;
if (wuqi != d) {
slowout("你还没有穿这件装备!\n");
goto b2;
}
if (wuqi == d) {
slowout("成功卸下装备!\n");
chuan = 0;
if (d == 7) {
xue -= 150;
g -= 100;
f -= 20;
xz[7] == 0;
}
if (d == 8) {
xue -= 200;
g -= 200;
f -= 35;
xz[8] == 0;
}
if (d == 9) {
xue -= 200;
g -= 250;
f -= 50;
xz[9] == 0;
}
if (d == 10) {
xue -= 220;
g -= 330;
f -= 60;
xz[10] == 0;
}
if (d == 11) {
xue -= 230;
g -= 400;
f -= 60;
xz[11] == 0;
}
if (d == 12) {
xue -= 250;
g -= 600;
f -= 80;
xz[12] == 0;
}
if (d == 13) {
xue -= 400;
g -= 700;
f -= 300;
xz[13] == 0;
}
if (d == 14) {
xue -= 420;
g -= 700;
f -= 380;
xz[14] == 0;
}
if (d == 15) {
xue -= 650;
g -= 1000;
f -= 500;
xz[15] == 0;
}
goto b2;
}
}
else goto b2;
}
if (b == 3) {
b3:
system("cls");
printf("1.小瓶攻击药水*%d\n2.中瓶*%d\n3.大瓶*%d\n", bag[1], bag[2], bag[3]);
printf("4.小瓶增血药水*%d\n5.中瓶*%d\n6.大瓶*%d\n", bag[4], bag[5], bag[6]);
printf("7.小瓶经验药水*%d\n8.中瓶*%d\n9.大瓶*%d\n", bag[34], bag[35], bag[36]);
printf("输入1喝下药水,输入0退出\n");
cin >> c;
if (c == 0) {
system("cls");
goto a1;
}
if (c == 1) {
slowout("请输入药水序号\n");
cin >> d;
slowout("请输入要使用的数量\n");
cin >> e;
if (d != 7 && d != 8 && d != 9)
if (e > bag[d] || e <= 0) {
slowout("你没有那么多药水!\n");
goto b3;
}
if (d == 7 || d == 8 || d == 9)
if (e > bag[27 + d] || e <= 0) {
slowout("你没有那么多药水!\n");
goto b3;
}
if (d != 7 && d != 8 && d != 9)
if (e <= bag[d] && e > 0) {
slowout("成功喝下药水\n");
bag[d] -= e;
if (d == 1)
g += 10 * e;
if (d == 2)
g += 20 * e;
if (d == 3)
g += 35 * e;
if (d == 4)
xue += 40 * e;
if (d == 5)
xue += 75 * e;
if (d == 6)
xue += 100 * e;
system("cls");
}
if (d == 7 || d == 8 || d == 9)
if (e <= bag[d + 27] && e > 0) {
bag[d + 27] -= e;
if (d == 7)
exp += 500 * e;
if (d == 8)
exp += 1000 * e;
if (d == 9)
exp += 2000 * e;
}
goto a1;
}
}
if (b == 4) {
b4:
system("cls");
printf("树皮*%d\n木头*%d\n白纸*%d\n碳*%d\n熔炼炉*%d\n", bag[16], bag[17], bag[18], bag[19], bag[20]);
/*21.黑市入场券 22.黑市终身贵宾卡 23.黑市交易券 24.试炼券 25.抽奖券*/
printf("黑市入场券*%d\n黑市终身贵宾卡*%d\n试炼1.2倍经验符*%d\n试炼券*%d\n抽奖券*%d\n", bag[21], bag[22], bag[23], bag[24], bag[25]);
/*26.青铜矿 27.铁矿 28.金矿 29.钻石矿 30.翡翠矿 31.挖矿镐*/
printf("青铜矿*%d\n铁矿*%d\n金矿*%d\n钻石矿*%d\n翡翠矿*%d\n挖矿镐*%d\n", bag[26], bag[27], bag[28], bag[29], bag[30], bag[31]);
printf("输入0退出\n");
cin >> c;
if (c == 0) {
system("cls");
goto a1;
}
else goto b4;
}
Sleep(1000);
goto a1;
}
if (a == 8) {
slowout("请选择模式,1为战斗试炼场,2为商店,3抢劫\n");
cin >> c;
if (c == 1)
if (bag[24] == 0) {
slowout("你没有试炼券\n");
Sleep(1000);
goto a1;
}
else {
slowout("即将迎来您的对手:小猪佩奇\n");
{
printf("试炼场上来了一只小猪佩奇\n");
Sleep(1000);
printf("是否攻击?1.是 2.否\n");
cin >> b;
if (b == 1) {
if (zhandou(250, 3000, 560, 0, 1, 2, "小猪佩奇")) {
printf("你胜利了!\n");
Sleep(1000);
printf("获得500试炼币!!!\n");
slb += 500;
Sleep(1000);
{
printf("试炼场上来了一辆火箭\n");
Sleep(1000);
printf("是否攻击?1.是 2.否\n");
cin >> b;
if (b == 1) {
if (zhandou(1550, 1, 2000, 0, 1, 2, "火箭")) {
printf("你胜利了!\n");
Sleep(1000);
printf("获得2000试炼币!!!\n");
slb += 2000;
Sleep(1000);
}
}
}
goto a1;
}
}
}
Sleep(1000);
goto a1;
}
if (c == 2) {
slowout("商店老板:你要买啥类?\n");
Sleep(1000);
printf("1. 坦克 23333¥\n");
printf("2. 退出\n");
cin >> b;
if (b == 1) {
slowout("商店老板:你要买几个?\n");
cin >> kj;
if (slb < 23333 * kj)
slowout("没钱还来买东西\n");
else {
slowout("购买成功\n");
bag[15] += kj;
slb -= 23333 * kj;
}
}
goto a1;
}
if (c == 3) {
slowout("商店老板:抢劫了,救命啊\n");
slowout("一名未来战士小跑而来,你避无可避,只能迎战\n");
if (zhandou(1780, 12200, 1220, 10, 1, 2, "未来战士"))
slowout("你干掉了未来战士,获得了2000试炼币!\n");
else {
slowout("没实力就不要装B!\n");
Sleep(1000);
goto a1;
}
Sleep(1000);
slb += 2000;
goto a1;
}
}
if (a == 9) {
if (bag[22] == 0) {
slowout("黑衣人:您好,黑市是秘密地点,请问您有黑市入场券吗?\n");
printf("1.进入(消耗黑市入场券*1) 2.算了\n");
cin >> b;
if (b == 1) {
if (bag[21] == 0)
slowout("入场券不足。\n");
else {
bag[21]--;
int hs;
hs = rand() % 3;
if (hs == 0) {
printf("今日上架:\n");
printf("1.500¥ 交换 300经验\n");
printf("2.碳*2 交换 中瓶攻击药水*4\n");
printf("3.小瓶增血药水*3 交换 金币*400\n");
cin >> c;
if (c == 1) {
if (money < 500)
slowout("钱不够!\n");
else {
printf("交易成功,获得300经验\n");
exp += 300;
money -= 500;
}
}
if (c == 2) {
if (bag[19] < 2)
slowout("材料不足。\n");
else {
printf("交易成功,获得中瓶攻击药水*4\n");
bag[19] -= 2;
bag[2] += 4;
}
}
if (c == 3) {
if (bag[4] < 3)
slowout("药水不足\n");
else {
printf("交易成功,获得金币*400\n");
bag[4] -= 3;
money += 400;
}
}
}
if (hs > 0)
printf("黑市歇业中……\n");
}
}
}
if (bag[22] > 0) {
slowout("黑衣人:啊,您有终身贵宾卡!赶快迎接!\n");
printf("%s", name);
slowout("大摇大摆地走了进去。\n");
printf("贵宾上架:\n");
printf("1.金币*100 交换 抽奖券*3\n");
printf("2.钻石矿*1 交换 金币*1000\n");
printf("3.小瓶攻击药水*2 交换 大瓶增血药水*5\n");
cin >> c;
if (c == 1) {
if (money < 100)
slowout("金币不足!\n");
else {
slowout("交易成功,获得抽奖券*3\n");
money -= 100;
bag[25] += 3;
}
}
if (c == 2) {
if (bag[29] == 0)
slowout("钻石矿不足。\n");
else {
slowout("交易成功,获得金币*1000\n");
money += 1000;
bag[29]--;
}
}
if (c == 3) {
if (bag[1] < 2)
slowout("药水不足。\n");
else {
slowout("交易成功,获得大瓶增血药水*5\n");
bag[1] -= 2;
bag[6] += 5;
}
}
}
Sleep(1000);
goto a1;
}
if (a == 10) {
if (vip != 1) {
system("cls");
printf("-----------VIP模式特权:-------------\n");
printf(" 1.超高金币 \n");
printf(" 2.超高生命值 \n");
printf(" 3.超高攻击力 \n");
printf(" 4.抽奖券*20\n");
printf(" 5.直接拥有最强武器——坦克\n");
Sleep(5000);
printf("请输入密码:");
cin >> d;
if (d == 20080411) {
for (int ii = 1; ii <= 5; ii++) {
system("color 10");
system("color 20");
system("color 30");
system("color 40");
system("color 50");
system("color 60");
system("color 70");
system("color 80");
system("color 90");
system("color a0");
system("color b0");
system("color c0");
system("color d0");
system("color e0");
system("color f0");
}
slowout("恭喜密码正确!成功开启VIP模式!!!\n");
money += 99999;
xue += 9999;
g += 999;
bag[25] += 20;
bag[15]++;
vip = 1;
Sleep(1000);
system("color 9e");
system("cls");
goto a1;
}
else {
slowout("不晓得密码就别开启了,你只配玩普通模式!\n");
Sleep(1000);
system("cls");
goto a1;
}
}
else {
slowout("你已经是VIP了!\n");
goto a1;
}
}
if (a == 11) {
slowout("境泽:欢迎光临真香饭店,我是店长境泽。你要点什么?\n");
printf(" 真香菜单\n");
printf("1.独家秘制招牌真香蛋炒饭 300¥\n");
printf("2.宫保鸡丁 150¥\n");
printf("3.鱼香肉丝 180¥\n");
printf("4.番茄炒蛋 200¥\n");
printf("0.退出\n");
cin >> b;
int fd;
if (b == 1) {
if (money < 300)
slowout("你的钱不够!\n");
else {
printf("%s:真香!\n", name);
money -= 300;
Sleep(1000);
slowout("获得150经验\n");
exp += 150;
fd = rand() % 5;
if (fd == 0) {
slowout("你元气爆棚,加血500滴,加攻击力200点,加防御力80点!\n");
g += 200;
xue += 500;
f += 80;
}
if (fd == 1) {
slowout("你感觉全身充满了力量,加攻击力200点,防御力50点!\n");
g += 200;
f += 50;
}
if (fd == 2) {
slowout("你奇迹般地获得了2张试炼券!\n");
bag[24] += 2;
}
}
}
if (b == 2) {
if (money < 150)
slowout("你的钱不够!\n");
else {
printf("%s:味道不错!\n", name);
money -= 150;
Sleep(1000);
slowout("加经验80点\n");
exp += 80;
fd = rand() % 3;
if (fd == 0) {
slowout("你运气很好,获得黑市终身贵宾卡一张!\n");
bag[22]++;
}
if (fd == 1) {
slowout("你奇迹般地获得了3张抽奖券!\n");
bag[25] += 3;
}
}
}
if (b == 3) {
if (money < 180)
slowout("你的钱不够!\n");
else {
printf("%s:太好吃了!", name);
money -= 180;
Sleep(1000);
slowout("获得经验80点\n");
exp += 80;
fd = rand() % 2;
if (fd == 0) {
slowout("你从鱼香肉丝中获得了神奇的力量,血量加300滴!\n");
xue += 300;
}
}
}
if (b == 4) {
if (money < 200)
slowout("你的钱不够!\n");
else {
printf("%s:DELICIOUS!\n", name);
money -= 200;
Sleep(1000);
slowout("获得经验100点\n");
exp += 100;
fd = rand() % 2;
if (fd == 0) {
slowout("你瞬间爆发出神力,加攻击力200点,防御力30点!\n");
g += 200;
f += 30;
}
}
}
Sleep(1000);
goto a1;
}
if (a == 12) {
slowout("欢迎来到抽奖机!拥有抽奖券即有机会获得以下惊喜大礼!\n");
printf("1.试炼券*3 2.50000金币 3.试炼券*2 4.黑市入场券*3 5.2000经验\n");
printf("6.100000金币 7.大瓶增血药水*10 8.钻石矿*5(终极大奖)\n");
printf("1.开始抽奖(消耗抽奖券*1)2.退出\n");
cin >> b;
if (b == 1) {
if (bag[25] == 0)
slowout("抽奖券不足!\n");
else {
printf("正在抽奖中……\n");
bag[25]--;
Sleep(5000);
int cj;
cj = rand() % 11;
if (cj == 1) {
slowout("获得试炼券*3\n");
bag[24] += 3;
}
if (cj == 2) {
slowout("获得50000金币\n");
money += 50000;
}
if (cj == 3) {
slowout("获得试炼券*2\n");
bag[24] += 2;
}
if (cj == 4) {
slowout("获得黑市入场券*3\n");
bag[22] += 3;
}
if (cj == 5) {
slowout("获得20000经验\n");
exp += 20000;
}
if (cj == 6) {
slowout("获得100000金币\n");
money += 100000;
}
if (cj == 7 || cj == 8) {
slowout("获得大瓶增血药水*10\n");
bag[6] += 10;
}
if (cj == 9) {
slowout("抽中大奖:钻石矿*5\n");
bag[29] += 5;
}
}
}
Sleep(1000);
goto a1;
}
if (a > 12 || a < 1) {
slowout("输出错误\n");
goto a1;
}
return 0;
}