做游戏网站用什么软件,2015做哪个网站能致富,intitlt 山西大同网站建设,神童预言新冠2023结束大家好#xff0c;今天zty带来的是斗破苍穹的 2.11.6 版本#xff0c;这个版本主要更新了#xff1a;1、背包 2、将退出游戏改到了设置里面 3、如果不逃跑不会停止战斗。废话不多说#xff0c; 先赞后看 养成习惯
code
#includestdio.h
#includeiostrea… 大家好今天zty带来的是斗破苍穹的 2.11.6 版本这个版本主要更新了1、背包 2、将退出游戏改到了设置里面 3、如果不逃跑不会停止战斗。废话不多说 先赞后看 养成习惯
code
#includestdio.h
#includeiostream
#includectime
#includebits/stdc.h
#includeconio.h
#includetime.h
#includecmath
#includewindows.h //SLEEP函数
using namespace std;
int shen0;
int ui0;
int sheng1;
void SetColorAndBackground(int ForgC, int BackC) {WORD wColor ((BackC 0x0F) 4) (ForgC 0x0F);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), wColor);
}
void Bling() {for(int i0; i5; i) {system(color 1A);Sleep(20);if(sheng1) if(sheng1) Beep(1200,50);system(color 2B);Sleep(20);system(color 3C);Sleep(20);system(color 4D);Sleep(20);if(sheng1) Beep(1200,50);system(color 5D);Sleep(20);system(color 6E);Sleep(20);system(color 7F);Sleep(20);if(sheng1) Beep(1200,50);}
}
void Start() {if(sheng1) Beep(3200,50);system(color 8E);cout ■ ■ \n;Sleep(50);cout ■ ■ ■■■■ ■■■■■ \n;Sleep(50);cout ■ ■ ■ ■ ■ ■ ■ \n;Sleep(50);cout ■ ■ ■ ■ ■ \n;Sleep(50);cout ■■■■■■ ■■■■ ■ ■■■ \n;Sleep(50);cout ■ ■ ■ ■ ■ ■ ■ \n;Sleep(50);cout ■ ■■■ ■ ■ ■ \n;Sleep(50);cout ■ ■ ■ ■ ▆▆▆▆▆▆▆▆▆ \n;Sleep(50);cout ▆ ▆ \n;Sleep(50);cout 欢迎来到 [斗破苍穹] ■ ■ ■ ■ \n;Sleep(50);cout ▆▆▆▆▆▆▆▆ ■ ▆▆▆▆▆ ■ \n;Sleep(50);cout zty郑桐羽出品 ■ ■ ■ \n;Sleep(50);cout ▆ ▆▆▆▆▆ \n;Sleep(50);cout 2.11.6 正式版 ▆■ ■▆ ■ \n;Sleep(50);cout ▆ ▆▆▆ ▆ ▆▆▆▆▆ \n;Sleep(50);cout 新增 合成台功能 ■ ■ ■ \n;Sleep(50);cout ■■■ ▆ ■ \n;Sleep(50);cout zty出品必属精品 ■ ■ ■ \n;Sleep(50);cout ▆▆▆ \n;Sleep(50);cout 努力通关吧 \n;Sleep(50);cout \n;Sleep(50);cout 输入“1 ”下一页 \n\n;Sleep(50);
A:char y_getch();if(y1) return;else goto A;
}
void Start2() {system(color 8E);system(cls);if(sheng1) Beep(3200,50);cout \n;Sleep(50);cout ■ ■■■ ■■■ ■ ■ \n;Sleep(50);cout ■■ ■ ■ ■ ■ ■ \n;Sleep(50);cout ■ ■ ■ ■ ■ \n;Sleep(50);cout ■ ■■ ■ ■ ■ \n;Sleep(50);cout ■ ■ ■ ■ ■ ■ \n;Sleep(50);cout ■■■ ■■ ■■■ \n;Sleep(50);cout ■ \n;Sleep(50);cout ■ ■ \n;Sleep(50);cout 欢迎来到 [斗破苍穹] ■ ■ \n;Sleep(50);cout ■■ \n;Sleep(50);cout zty工作室出品 ■ \n;Sleep(50);cout ■ ■ ■ ■■■■ \n;Sleep(50);cout 2.11.6 正式版 ■■■■■ ■ ■ \n;Sleep(50);cout ■ ■■■■ \n;Sleep(50);cout 新增 合成台功能 ■ ■ ■ \n;Sleep(50);cout ■■■■■ ■■■ ■■■ \n;Sleep(50);cout zty出品必属精品 ■ ■ ■ ■ \n;Sleep(50);cout ■■■ ■■■ \n;Sleep(50);cout 努力通关吧 \n;Sleep(50);cout \n;Sleep(50);cout 输入“1 ”开始游戏 \n\n;Sleep(50);
A:char y_getch();if(y1) return;else goto A;
}
int boss10,boss20;
struct Player { //玩家结构体并初始化playerchar name[21];int attack;int defense;int health;long int max_health;int level;int exp;int range_exp;long int max_exp;
} player {勇者,100,80,200,200,1,0,0,100};
struct Enemy {//怪的结构体,并初始化各种怪char name[20];char wupin[20];int attack;int defense;int health;int money;long int exp;int wupin_sign;int wupinpro;int double_attack;int miss;
}
//怪拿格伦石人举例
// 怪变量 怪名 掉落的装备 攻 防 血 金币 经验 掉落装备编号 掉落概率 真伤被防御后的破甲伤害 不能改
// gl {格伦石人,石铠甲, 30, 150,1000,500, 250, 11, 7, 1, 0},
gl {格伦石人,石铠甲,30,150,1000,500,250,11,7,1,0},
zhizhu {洞穴蜘蛛,蜘蛛毒剑,140,20,250,400,200,12,5,1,0},
ymr {野蛮人,粗制石剑,20,20,150,100,50,13,5,1,0},
nz {牛仔,战斗马甲,80,20,250,500,250,14,10,1,0},
strongman {森林巨人,传说圣甲,50,50,580,200,100,1,5,1,0},
witch {兽人,重甲,35,55,250,50,50,2,4,1,1},
xiyi {毒蜴,鳞片,20,25,80,30,35,3,8,2,2},
huolong {喷火龙,巨龙晶石,40*5,50*5,200*5,200*5,100*5,4,4,2,0},
lion {皇家士兵,尚方宝剑,100,30,380,200,100,5,5,1,0},
horse {独眼巨人,碧血战锤,50,22,360,50,50,6,5,1,1},
bee {剑客,西洋剑,27,11,60,30,35,7,5,2,2},
bossno1 {凋零女巫,凋零通行证,1400,500,15000,10000,5000,15,10,1,0},
dljs {凋零巨兽,凋零之心,1200,700,20000,10000,500,10,7,1,0},
pika {皮卡超人,\0,300,40*8,1000,2000,1000,0,0,1,0},
dapika {雷霆皮卡,雷霆之刃,350,40*10,1500,3000,2000,8,6,6,0},
cl {熔岩飞龙,\0,450,50*10,2000,3500,2500,0,0,1,0},
jl {裂凯金龙,龙鳞,500,40*20,5000,8000,4500,9,6,6,1},
gst {凋零共生体,命令之书,1800,65*10,15000,20000,1000,16,10,1,0},
dlkl {凋零骷髅,凋零之骨,3000,30*10,12000,20000,1000,0,0,1,0},
dlfb {.*凋零风暴*.,\0,9000,1500,49000,0,500000,17,10,1,0},
guai {\0,\0,0,0,0,0,0,0,0,0,0};
struct Place {int bar,hotel,forest1,forest2,forest3,grass1,grass2,grass3,te1,te2,te3,te4;
} place {1,2,3,4,5,6,7,8,9,10,11,12};
int max_exp0;
int htsr;
int he0;
int choose_number0,s0,strongman_arm0,battle0,money500,place_sign10;
int cao3,jijiubao3,baiyao3,superbaiyao3,miansi1,boom3,dubiao2,yuanzidan1;
int fang0,fang110,fang1n0,fang2120,fang2n0,fang340,fang3n0,fang4100,fang4n0,fang5600,fang5n0,fang6150,fang6n0,fang760,fang7n0,fang4X550,fang4Xn0,mfang1000,mfangn0;
int gong0,gong110,gong1n0,gong220,gong2n0,gong345,gong3n0,gong4100,gong4n0,gong5300,gong5n0,gong6150,gong6n0,gong745,gong7n0,gong4X500,gong4Xn0,mgong1000,mgongn0;
int jingyancao0,jingyanbao0,jingyanshi0,htmmcs5;
int diaolingxinhave0,diaolingxin0,mingshu0,zhadan0;
char gongname[20]无,fangname[20]无;
char proof;
int lp0,ll0;
void AddWupin(int);
int AttackResult();
void BattleAct(); // ____
void ChooseWupin(); // /___/|
void DisplayState(); // | |/
void OrdinaryAct(); //▔▔
int SuiJi();
int SuiJi100();
void WhetherLevelUp();
void SlowDisplay(char *);
int main() {if(sheng1) Beep(1200,100);MessageBox(NULL, 欢迎来到斗破苍穹 2.11.6 正式版 , 斗破苍穹 游戏开始提示, MB_OK);int i0,j0,k0;Start();Bling();Start2();Bling();int kaishi;char player_name[21];
//Sleep(100);system(color A3);
//Sleep(50);system(color E4);
//Sleep(50);system(color B3);
//Sleep(50);system(color E4);
//Sleep(50);system(color 34);
//Sleep(50);system(color E3);
//Sleep(50);system(color 54);
//Sleep(50);system(color E3);
//Sleep(50);system(color 43);
//Sleep(50);system(color E4);
//Sleep(50);system(color 93);
//Sleep(50);system(color E4);
//Sleep(50);system(color C3);
//Sleep(50);system(color E4);
//Sleep(50);system(color D3);
//Sleep(50);system(color E4);
//Sleep(50);system(color F3);
//Sleep(50);system(color E4);
//Sleep(50);system(color 8E);
//printf( _________________________________ );system(color 8E);
//printf( /________________________________/| );system(color 8E);
//printf( _.*^--{|欢迎来到 [斗破苍穹] 2.11.1 正式版|}--^*. );system(color 8E);
//printf( ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ \n);system(color 8E);
//如果想使用外挂名字请输入“zty ”。Sleep(300);if(sheng1) Beep(1200,100);system(cls);printf(这里是斗破苍穹(苍穹世界)! 契晋赫苟国的漓嘉茜公主被神秘人绑架了!\n\n\n 伟大的勇者啊~拿起你的武器,营救公主!\n\n\n输入你的名字: (20个字符)\n\n\n);system(color 8E);scanf(%s,player_name);Sleep(300);strncpy(player.name,player_name,20);if(strcmp(player.name,zty)0) {if(sheng1) Beep(5200,300);printf(\n\n\n封印多年的官方血统啊!你终于觉醒了!\n\n\nzty你成为了天选之人请你救出公主吧\n\n\n);player.attack99999;player.defense99999;player.health999999;player.max_health999999;system(pause);}getchar();OrdinaryAct();return 0;
}
int SuiJi() {srand((unsigned)time(NULL));return rand()%10;
}
int SuiJi100() {srand((unsigned)time(NULL));return rand()%100;
}
void ChooseWupin() { //选择物品 并使用if(sheng1) Beep(1200,100);printf(物品: 1,止血草%d个 2,急救包%d个 3,云南白药%d个 4,超级云南白药%d个 5,手雷%d个 6,毒标%d个 7,手抛式原子弹%d个 8,经验草%d个 9,经验包%d个 10,经验石%d个 11,巨龙晶石%d个 12,免死金牌%d个 13,凋零之心%d个 14,毁灭炸弹%d个 0,返回\n\n\n,cao,jijiubao,baiyao,superbaiyao,boom,dubiao,yuanzidan,jingyancao,jingyanbao,jingyanshi,strongman_arm,miansi,diaolingxin,zhadan);system(color 8A);switch(scanf(%d,choose_number),choose_number) {case 1:if(cao0) {printf(使用止血草,HP增加120\n\n\n);system(color 8A);if(sheng1) Beep(1200,100);cao--;if(player.health120player.max_health)player.healthplayer.max_health;else player.health120;} else printf(没有止血草了\n\n\n);system(color 8A);break;case 2:if(jijiubao0) {printf(使用急救包,HP增加180\n\n\n);system(color 8A);if(sheng1) Beep(1200,100);jijiubao--;if(player.health180player.max_health)player.healthplayer.max_health;else player.health180;} else printf(没有急救包了\n\n\n);system(color 8A);break;case 3:if(baiyao0) {printf(使用云南白药,HP增加240\nz\n\n);system(color 8A);if(sheng1) Beep(1200,100);baiyao--;if(player.health240player.max_health)player.healthplayer.max_health;else player.health240;} else printf(没有云南白药了\n\n\n);system(color 8A);break;case 4:if(superbaiyao0) {printf(使用超级云南白药,HP增加400\n\n\n);system(color 8A);if(sheng1) Beep(1200,100);superbaiyao--;if(player.health400player.max_health)player.healthplayer.max_health;else player.health400;} else printf(没有超级云南白药了\n\n\n);system(color 8A);break;case 5:if(battle) { //在战斗中(battle1),否则(battle0)不能使用攻击性物品if(boom0) {printf(使用手雷,敌人HP减少100\n\n\n);system(color 84);if(sheng1) Beep(1200,100);boom--;guai.health-100;AttackResult();}} else printf(非战斗状态,不能使用手雷!\n\n\n);system(color 84);break;case 6:if(battle) { //在战斗中(battle1),否则(battle0)不能使用攻击性物品if(dubiao0) {printf(使用毒标,敌人HP减少200\n\n\n);system(color 84);if(sheng1) Beep(1200,100);dubiao--;guai.health-200;AttackResult();}} else printf(非战斗状态,不能使用毒标!\n\n\n);system(color 84);break;case 7:if(battle) { //在战斗中(battle1),否则(battle0)不能使用攻击性物品if(yuanzidan0) {printf(使用手抛式原子弹,敌人HP减少1500\n\n\n);system(color 84);if(sheng1) Beep(1200,100);yuanzidan--;guai.health-1500;AttackResult();}} else printf(非战斗状态,不能使用手抛式原子弹!\n\n\n);system(color 84);break;case 8:if(jingyancao0 player.level200) {printf(使用经验草,等级增加3级\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);jingyancao--;player.max_healthplayer.max_health60;player.attack9;player.defense6;player.level3;player.healthplayer.max_health;printf(等级%d\n,player.level);system(color 8E);if(sheng1) Beep(1200,100);} else if(jingyancao1) {printf(没有经验草了\n\n\n);system(color 8E);} else printf(等级超过200级,修为太高无法使用。\n\n\n);system(color 8E);break;case 9:if(jingyanbao0 player.level200) {if(player.level197player.level200) {int sheng;sheng100-player.level;player.levelsheng;jingyanbao--;player.max_healthplayer.max_healthsheng*20;player.attacksheng*3;player.defensesheng*2;player.healthplayer.max_health;printf(使用经验包,等级增加%d级,sheng);system(color 8E);if(sheng1) Beep(1200,100);printf(等级%d\n,player.level);system(color 8E);} else {printf(使用经验包,等级增加5级\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);jingyanbao--;player.max_healthplayer.max_health100;player.attack15;player.defense10;player.level5;player.healthplayer.max_health;printf(等级%d\n,player.level);system(color 8E);}} else if(jingyanbao1) {printf(没有经验包了);system(color 8E);} else printf(等级超过200级,修为太高无法使用。\n\n\n);system(color 8E);break;case 10:if(jingyanshi0 player.level200) {if(player.level192player.level200) {int sheng;sheng100-player.level;player.levelsheng;player.max_healthsheng*20;player.attacksheng*3;player.defensesheng*2;player.healthplayer.max_health;printf(使用经验石,等级增加%d级\n,sheng);system(color 8E);if(sheng1) Beep(1200,100);printf(等级%d\n,player.level);system(color 8E);} else {printf(使用经验石,等级增加10级\n);system(color 8E);if(sheng1) Beep(1200,100);jingyanshi--;player.max_healthplayer.max_health200;player.attack30;player.defense20;player.level10;player.healthplayer.max_health;}} else if(jingyanshi1) {printf(没有经验石了\n\n\n);system(color 8E);} else printf(等级超过200级,修为太高无法使用。\n\n\n);system(color 8E);break;case 11:if(strongman_arm0 player.level500) {if(player.level482player.level500) {int sheng;sheng500-player.level;player.levelsheng;player.max_healthplayer.max_healthsheng*20;player.attacksheng*3;player.defensesheng*2;player.healthplayer.max_health;printf(使用巨龙晶石,等级增加%d级,sheng);system(color 8E);if(sheng1) Beep(1200,100);printf(等级%d\n,player.level);system(color 8E);} else {printf(使用巨龙晶石,等级增加20级\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);strongman_arm--;player.max_healthplayer.max_health400;player.attack60;player.defense40;player.healthplayer.max_health;player.level20;printf(等级%d\n,player.level);system(color 8E);}} else if(strongman_arm1) {printf(没有巨龙晶石了。\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);} else printf(等级超过500级,修为太高无法使用。\n\n\n);system(color 8E);break;case 12:if(miansi0) {if(sheng1) Beep(1200,100);cout使;Sleep(50);cout用;Sleep(50);cout免;Sleep(50);cout死;Sleep(50);cout金;Sleep(50);cout牌;Sleep(50);coutHP;Sleep(50);cout满;Sleep(50);system(color 8b);miansi--;if(player.health999999player.max_health)player.healthplayer.max_health;else player.health999999;} else printf(没有免死金牌了\n\n\n);system(color 8b);break;break;case 13:if(diaolingxin0) {printf(使用凋零之心\nHP上限100 攻击100\n\n\n);system(color 8b);if(sheng1) Beep(1200,100);diaolingxin--;player.max_health100;player.attack100;} else printf(没有凋零之心了\n\n\n);system(color 8b);break;case 14:if(battle) { //在战斗中(battle1),否则(battle0)不能使用攻击性物品if(zhadan0) {printf(使用毁灭炸弹,敌人HP减少15000\n\n\n);system(color 84);if(sheng1) Beep(1200,100);zhadan--;guai.health-15000;AttackResult();}}case 0:break;default:printf(ChooseWupin error!\n\n\n);}
}
int AttackResult() { //攻击结果:判断是否获胜 是否获得物品 和 是否升级if(guai.health0) {printf(战斗胜利!获得金币%d,经验%d\n\n\n,guai.money,guai.exp);system(color 8C);if(sheng1) Beep(1200,100);player.expguai.exp;player.range_expguai.exp;moneyguai.money;sSuiJi();if(sguai.wupinpro) {cout从;Sleep(100);if(sheng1) Beep(1200,100);cout敌;Sleep(100);cout人;Sleep(100);cout尸;Sleep(100);cout骸;Sleep(100);cout中;Sleep(100);cout发;Sleep(100);cout现;Sleep(100);system(color 8C);printf(%s\n\n\n,guai.wupin);AddWupin(guai.wupin_sign);}WhetherLevelUp();if(strcmp(guai.name,.*凋零风暴*.)0) {printf(结束了\n\n);if(sheng1) Beep(1200,100);system(color 8C);}return 1; //攻击有结果了返回1,否则返回0,用于判断是否继续做战斗行为} else {int sSuiJi();if((guai.attacks-player.defense/3)0) {player.health-1;printf(%s反击,你的HP减少了 1\n\n,guai.name);system(color 8C);} else {player.health-guai.attacks-player.defense/3;printf(%s反击,你的HP减少了%d\n\n,guai.name,guai.attacks-player.defense/3);system(color 8C);}if(player.health0) {battle0;printf(%s战死!金币掉落%d\n\n\n,player.name,player.level*500);system(color CC);money-player.level*500;player.healthplayer.max_health/5;OrdinaryAct();//return 1;}}return 0;
}
void AddWupin(int wupin_sign) {switch(wupin_sign) {case 1:fang4n;if(sheng1) Beep(1200,100);break;case 2:fang3n;if(sheng1) Beep(1200,100);break;case 3:lp;if(sheng1) Beep(1200,100);break;case 4:strongman_arm;if(sheng1) Beep(1200,100);break;case 5:gong4n;if(sheng1) Beep(1200,100);break;case 6:gong3n;if(sheng1) Beep(1200,100);break;case 7:gong2n;if(sheng1) Beep(1200,100);break;case 8:gong5n;if(sheng1) Beep(1200,100);break;case 9:ll;if(sheng1) Beep(1200,100);break;case 10:diaolingxin;if(sheng1) Beep(1200,100);break;case 11:fang6n;if(sheng1) Beep(1200,100);break;case 12:gong6n;if(sheng1) Beep(1200,100);break;case 13:gong7n;if(sheng1) Beep(1200,100);break;case 14:fang7n;if(sheng1) Beep(1200,100);break;case 15:diaolingxinhave;if(sheng1) Beep(1200,100);boss1;break;case 16:mingshu;if(sheng1) Beep(1200,100);break;case 17:boss2;if(sheng1) Beep(1200,100);break;default:printf(AddWupin error\n\n\n);}}
void WhetherLevelUp() {int i0,j0;int l1player.range_exp/150;int l2player.range_exp/300;int l3player.range_exp/600;if(player.level15l10) { //15级以下,经验足够 都满足则升级if(l11) {printf(%s,player.name);printf( 升级!\n\n\n攻击力3, 防御力2, HP上限20\n\n\n);system(color 8E);player.expplayer.expguai.exp-(player.expguai.exp)%100;player.attack3;player.defense2;player.max_health20;player.healthplayer.max_health;player.level;player.range_exp0;player.expplayer.max_exp;player.max_exp100;} else {printf(好厉害!连升%d级!,l1);system(color 8E);printf(攻击力%d, 防御力%d, HP上限%d\n\n\n,3*l1,2*l1,20*l1);system(color 8E);player.exp(player.expguai.exp) || player.exp-((player.expguai.exp) || player.exp)%100;player.attack3*l1;player.defense2*l1;player.max_health20*l1;player.healthplayer.max_health;player.levell1;player.range_exp0;player.expplayer.max_exp;player.max_exp100*l1;}} else if(player.level40l20) {if(l21) {printf(%s,player.name);printf( 升级!\n\n\n攻击力3, 防御力2, HP上限20\n\n\n);system(color 8E);player.expplayer.expguai.exp-(player.expguai.exp)%100;player.attack3;player.defense2;player.max_health20;player.healthplayer.max_health;player.level;player.range_exp0;player.expplayer.max_exp;player.max_exp300;} else {printf(好厉害!连升%d级!,l2);system(color 8E);printf(攻击力%d, 防御力%d, HP上限%d\n\n\n,3*l2,2*l2,20*l2);system(color 8E);player.expplayer.expguai.exp-(player.expguai.exp)%100;player.attack3*l2;player.defense2*l2;player.max_health20*l2;player.healthplayer.max_health;player.levell2;player.range_exp0;player.expplayer.max_exp;player.max_exp300*l2;}} else if(l30) {if(l31) {printf(%s,player.name);printf( 升级!\n\n\n攻击力3, 防御力2, HP上限20\n\n\n);system(color 8E);player.expplayer.expguai.exp-(player.expguai.exp)%100;player.attack3;player.defense2;player.max_health20;player.healthplayer.max_health;player.level;player.range_exp0;player.expplayer.max_exp;player.max_exp600;} else {printf(好厉害!连升%d级!,l3);printf(攻击力%d, 防御力%d, HP上限%d\n\n\n,3*l3,2*l3,20*l3);system(color 8E);player.expplayer.expguai.exp-(player.expguai.exp)%100;player.attack3*l3;player.defense2*l3;player.max_health20*l3;player.healthplayer.max_health;player.levell3;player.range_exp0;player.expplayer.max_exp;player.max_exp600*l3;}}
}
void OrdinaryAct() { //正常行为菜单while(1) {
// \(1000);
// system(cls);if(ui0) {system(cls);puts();system(color 8E);printf(要做什么?\n\n 1,移动 2,道具 3,对话 4,查看状态 \n\n 5,装备 6,关于游戏 7,后台 8,合成台 \n\n 9,设置 10,打开背包 \n\n);system(color 8E);if(sheng1) Beep(1200,100);puts();system(color 8E);} else {system(cls);puts();system(color 8E);printf(要做什么?\n\n1,移动 2,道具 3,对话 4,查看状态 5,装备 6,关于游戏 7,后台 8,合成台 9,设置 10,背包\n\n\n\n);system(color 8E);puts();system(color 8E);}switch(scanf(%d,choose_number),choose_number) {case 1: //显示移动菜单printf(要去哪里?\n\n\n);system(color 8E);cout1,小郑子酒吧 ;Sleep(150);if(sheng1) Beep(1200,100);cout2,诺亚方舟酒店 ;Sleep(150);if(sheng1) Beep(1200,100);cout3,北朝商会 ;Sleep(150);if(sheng1) Beep(1200,100);cout4,红玉拍卖行 ;Sleep(150);if(sheng1) Beep(1200,100);cout5,冒险荒野\n\n\n;Sleep(150);system(color 8E);if(sheng1) Beep(1200,100);switch(scanf(%d,choose_number),choose_number) {case 1:place_signplace.bar; //记录目前位置-酒吧break;case 2:place_signplace.hotel; //进入旅店printf(金币%d,money);system(color 8E);printf(要开房吗? 200个金币 \n 1,是 0,否\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);choose_number1;switch(scanf(%d,choose_number),choose_number) {case 1:if(money-2000) { //判断钱是否够printf(Sorry,你的钱不够~\n\n\n);system(color 8E);printf(金币%d,money);system(color 8E);} else {printf(好好休息\nHP满\n第二天了\n\n);system(color 8E);if(sheng1) Beep(1200,100);printf(金币%d\n,money);system(color 8E);money-200; //花费200住店费player.healthplayer.max_health; //体力满}break;case 0:printf(下次再来!\n\n\n);system(color 8E);break;default:printf(hotel talk error!\n\n\n);system(color 8E);}place_sign0;break;case 3:int yongju,gong,fang;printf(请问您要购买什么类型的物品\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);cout1,攻击装备 ;Sleep(50);cout2,防御装备 ;Sleep(50);cout3,一次性伤害武器\n\n\n;Sleep(50);scanf(%d,yongju);switch(yongju) {case 1:printf(请问您要购买什么武器?\n\n\n 1,匕首300 2西洋剑500 3碧血战锤1000\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);scanf(%d,gong);switch(gong) {case 1:if(money300) {gong1n;moneymoney-300;printf (匕首1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(匕首:%d个\n,gong1n);system(color 8E);printf(金币%d\n,money);system(color 8E);break;} else {printf(钱不够!\n);system(color 8E);printf(金币%d\n,money);system(color 8E);break;}case 2:if(money500) {gong2n;moneymoney-500;printf (西洋剑1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(西洋剑:%d个\n,gong2n);system(color 8E);printf(金币%d\n,money);system(color 8E);break;} else {printf(钱不够!\n);system(color 8E);if(sheng1) Beep(1200,100);printf(金币%d\n,money);system(color 8E);break;}case 3:if(money1000) {gong3n;moneymoney-1000;printf (碧血战锤1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(碧血战锤:%d个\n,gong3n);system(color 8E);printf(金币%d\n,money);system(color 8E);break;} else {printf(钱不够!\n);system(color 8E);printf(金币%d\n,money);system(color 8E);break;}default:printf(对不起我们只会打造以上武器。);system(color 8E);break;}break;case 2:int fang;printf(请问您要购买什么防具?\n\n\n 1,布衣300 2鳞甲500 3重甲1000\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);scanf(%d,fang);switch(fang) {case 1:if(money300) {fang1n;moneymoney-300;printf (布衣1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(布衣:%d个\n,fang1n);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n);system(color 8E);printf(金币%d\n,money);system(color 8E);}break;case 2:if(money500) {fang2n;moneymoney-500;printf (鳞甲1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(鳞甲:%d个\n,fang2n);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n);system(color 8E);printf(金币%d,money);system(color 8E);}break;case 3:if(money1000) {fang3n;moneymoney-1000;printf (重甲1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(重甲:%d个\n,fang3n);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n);system(color 8E);printf(金币%d\n,money);system(color 8E);}default:printf(对不起我们只会打造以上防具。);system(color 8E);break;}printf(金币%d\n,money);system(color 8E);break;case 3:printf(请问您要购买什么一次性伤害武器\n 1,手雷 2毒镖 3手抛式原子弹\n\n\n);system(color 8E);int yi;scanf(%d,yi);switch(yi) {case 1:if(money300 boom5) {boom;moneymoney-300;printf(手雷1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(手雷%d\n,boom);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n);system(color 8E);printf(金币%d,money);system(color 8E);}break;case 2:if(money600 dubiao9999999) {dubiao;moneymoney-600;printf(毒镖1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(毒镖%d\n,dubiao);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n);system(color 8E);printf(金币%d\n,money);system(color 8E);}break;case 3:if(money1000 yuanzidan5) {yuanzidanyuanzidan1;moneymoney-1000;printf(手抛式原子弹1\n);system(color 8E);if(sheng1) Beep(1200,100);printf(手抛式原子弹%d\n,yuanzidan);system(color 8E);printf(金币%d\n,money);system(color 8E);} else {printf(钱不够!\n\n\n);system(color 8E);printf(金币%d\n,money);system(color 8E);}break;}}break;case 4:if(sheng1) Beep(1200,100);printf (欢迎您光临本拍卖行请问您要卖什么东西\n\n);system(color 8E);printf(攻击装备: 1,匕首:%d个 2,西洋剑:%d个 3,粗制石剑:%n 4,碧血战锤:%d个 5,蜘蛛毒剑:%n个 6,尚方宝剑:%d个 7,皮卡大剑%d个\n,gong1n,gong2n,gong7n,gong3n,gong6n,gong4n,gong5n);system(color 8E);printf(防御装备: 8,布衣:%d个 9,鳞甲:%d个 10,战斗马甲:%d个 11,重甲:%d个 12,石铠甲:%d个 13,传说圣甲:%d个 14,金龙铠%d个 15巨龙晶石:%d个\n 0,返回\n\n\n,fang1n,fang2n,fang7n,fang3n,fang6n,fang4n,fang5n,strongman_arm);system(color 8E);int pai,shu,i;scanf(%d,pai);system(color 8E);switch(pai) {case 1:printf(请问您要出售几件);system(color 8E);scanf(%d,shu);if(gong1nshu) {gong1ngong1n-shu;moneymoneyshu*240;printf(匕首%d\n,gong1n);system(color 8E);if(sheng1) Beep(1200,100);printf(金币%d\n,money);system(color 8E);break;} else {printf(装备数不够无法出售\n);system(color 8E);break;}break;case 2:printf(请问您要出售几件\n);system(color 8E);scanf(%d,shu);if(gong2nshu) {gong2ngong2n-shu;moneymoneyshu*400;printf(西洋剑%d\n,gong2n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 3:printf(请问您要出售几件\n);system(color 8E);scanf(%d,shu);if(gong7nshu) {gong7ngong7n-shu;moneymoneyshu*800;printf(粗制石剑%d\n,gong7n);printf(金币%d\n,money);if(sheng1) Beep(1200,100);break;} else {printf(装备数不够无法出售\n);break;}case 4:printf(请问您要出售几件\n);scanf(%d,shu);if(gong3nshu) {gong3ngong3n-shu;moneymoneyshu*800;printf(碧血战锤%d\n,gong3n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 5:printf(请问您要出售几件\n);system(color 8E);scanf(%d,shu);if(gong6nshu) {gong6ngong6n-shu;moneymoneyshu*1000;printf(蜘蛛毒剑%d\n,gong6n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 6:printf(请问您要出售几件\n);scanf(%d,shu);if(gong4nshu) {gong4ngong4n-shu;moneymoneyshu*1500;printf(尚方宝剑%d\n,gong4n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 7:printf(请问您要出售几件\n);scanf(%d,shu);if(gong5nshu) {gong5ngong5n-shu;moneymoneyshu*3000;printf(皮卡大剑%d\n,gong5n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 8:printf(请问您要出售几件\n);scanf(%d,shu);if(fang1nshu) {fang1nfang1n-shu;moneymoneyshu*240;printf(布衣%d\n,fang1n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 9:printf(请问您要出售几件\n);scanf(%d,shu);if(fang2nshu) {fang2nfang2n-shu;moneymoneyshu*500;printf(鳞甲%d\n,fang2n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 10:printf(请问您要出售几件\n);scanf(%d,shu);if(fang7nshu) {fang7nfang7n-shu;moneymoneyshu*1000;printf(战斗马甲%d\n,fang7n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 11:printf(请问您要出售几件\n);scanf(%d,shu);if(fang3nshu) {fang3nfang3n-shu;moneymoneyshu*800;printf(重甲%d\n,fang3n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}break;case 12:printf(请问您要出售几件\n);scanf(%d,shu);if(fang6nshu) {fang6nfang6n-shu;moneymoneyshu*2000;printf(石凯甲%d\n,fang6n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 13:printf(请问您要出售几件\n);scanf(%d,shu);if(fang4nshu) {fang4nfang4n-shu;moneymoneyshu*1500;printf(传说圣甲%d\n,fang4n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 14:printf(请问您要出售几件\n);scanf(%d,shu);if(fang5nshu) {fang5nfang5n-shu;moneymoneyshu*3000;printf(金龙铠%d\n,fang5n);if(sheng1) Beep(1200,100);printf(金币%d\n,money);break;} else {printf(装备数不够无法出售\n);break;}case 15:printf(请问您要出售几颗);scanf(%d,shu);if(strongman_armshu) {strongman_armstrongman_arm-shu;moneymoneyshu*4000;printf(巨龙晶石%d\n,strongman_arm);if(sheng1) Beep(1200,100);printf(金币%d\n,money);} else {printf(晶石数不够无法出售\n);break;}break;case 0:break;break;default:printf(没有该装备无法出售\n);break;}break;case 5:int yewai;while(1) {puts();printf(要去哪冒险呢);system(color 8c);if(sheng1) Beep(1200,100);printf(\n\n);cout1,神秘沼泽 危险程度:★\n\n;Sleep(50);system(color 8c);cout2,星耀草原 危险程度:★★★\n\n;Sleep(50);cout3,诡异森林 危险程度:★★★\n\n;Sleep(50);cout4,荒漠矿场 危险程度:★★★★\n\n;Sleep(50);cout5,炽热炎洞 危险程度:★★★★★\n\n;Sleep(50);cout6,皮卡营地 危险程度:★★★★★★\n\n;Sleep(50);cout7,花朵宫殿 危险程度:★★★★★★\n\n;Sleep(50);cout8,熔岩龙穴 危险程度:★★★★★★★\n\n;Sleep(50);cout9,凋零宇宙 危险程度:★★★★★★★★\n\n;Sleep(50);cout0,离开\n;Sleep(150);system(color 8c);puts();scanf(%d,yewai);switch(yewai) {case 1:battle1;while(battle1) {system(cls);place_signplace.forest1;sSuiJi();if(s7) {guaixiyi;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s9) {guaiwitch;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else {printf(这里安全\n\n\n);}}break;case 3:battle1;while(battle1) {system(cls);place_signplace.forest2;sSuiJi();if(s4) {guaiwitch;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s7) {battle1;guaistrongman;printf(横冲直撞的%s扑了过来!\n\n\n,guai.name);BattleAct();} else {battle1;guaizhizhu;printf(可怕的%s爬了过来!\n\n\n,guai.name);BattleAct();}}break;case 5:battle1;while(battle1) {system(cls);place_signplace.forest3;sSuiJi();if(s3) {guaistrongman;printf(横冲直撞的%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s5) {guaihuolong;printf(炽热的%s拍打着翅膀扑了过来!\n\n\n,guai.name);BattleAct();} else if(s8) {guaigl;printf(全身长满矿石的%s扑了过来!\n\n\n,guai.name);BattleAct();} else {guaizhizhu;printf(可怕的%s扑爬了过来!\n\n\n,guai.name);BattleAct();}}break;case 2:battle1;while(battle1) {system(cls);place_signplace.grass1;sSuiJi();if(s3) {guaibee;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s5) {battle1;guaihorse;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s8) {guaiymr;printf(横冲直撞的%s扑了过来!\n\n\n,guai.name);BattleAct();} else {guainz;printf(帅气但令人讨厌的%s向你开枪!\n\n\n,guai.name);BattleAct();}}break;case 4:battle1;while(battle1) {system(cls);place_signplace.grass2;sSuiJi();if(s5) {guaihorse;printf(%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s7) {guailion;printf(%s举着尚方宝剑拦住了你!\n\n\n,guai.name);BattleAct();} else {guaigl;printf(全身长满矿石的%s扑了过来!\n\n\n,guai.name);BattleAct();}}break;case 6:battle1;while(battle1) {system(cls);sSuiJi();if(s7) {guaipika;printf(你感到了强烈的电流涌入全身%s走了过来!\n\n\n,guai.name);BattleAct();} else if(s9) {guaidapika;printf(天空一声巨响三道闪电劈到%s的身上%s手持雷霆之刃冲了过来!\n\n\n,guai.name,guai.name);BattleAct();} else {printf(这里安全\n\n\n);}}break;case 8:battle1;while(battle1) {system(cls);sSuiJi();if(s3) {guaicl;printf(一条飞龙横卧洞内你定睛一看是%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s8 s4) {guaihuolong;printf(炽热的%s拍打着翅膀扑了过来!\n\n\n,guai.name);BattleAct();} else {guaijl;printf(一条金光闪闪的飞龙盘旋空中是传说中的%s扑了过来!\n\n\n,guai.name);BattleAct();}}break;case 7:battle1;while(battle1) {system(cls);place_signplace.grass3;sSuiJi();if(s5) {guailion;printf(%s举着尚方宝剑拦住了你!\n\n\n,guai.name);BattleAct();} else if(s7||boss10) {if(strongman_arm1) {printf(神秘老人:\n\n\n 哈哈,年轻人,做的不错,不过...嘿嘿,你上当啦!巨龙晶石我要了,公主你也别想带走!\n\n\n);guaibossno1;printf(瞬间你被一团黑雾笼罩你被拉入了凋零幻境%s向你发起攻击!\n\n\n,guai.name);BattleAct();} else printf(神秘老人:\n\n\n 年轻人,你好啊.如果你有巨龙晶石,我可以告诉你公主的下落哦~\n\n\n);} else {guainz;printf(帅气但令人讨厌的%s向你开枪!\n\n\n,guai.name);BattleAct();}}break;case 9:battle1;while(battle1) {system(cls);sSuiJi();if(diaolingxinhave!0) {if(s1boss20) {guaidlfb;printf(一个巨大的黑暗物体周围环绕着大量的由破碎方块组成的黑色颗粒云环的%s向你发起攻击!\n\n\n,guai.name);BattleAct();} else if(s2 s4) {guaidlkl;printf(手持凋零剑的黑色凶恶%s扑了过来!\n\n\n,guai.name);BattleAct();} else if(s5s7) {guaigst;printf(一个巨大的触手向你打来你挡了下来%s扑了过来!\n\n\n,guai.name);BattleAct();} else {guaidljs;printf(一只巨大的猛兽%s冲了过来!\n\n\n,guai.name);BattleAct();}}if(diaolingxinhave0) {cout你没有击败过凋零女巫请去花朵宫殿击败凋零女巫。 endl;}}break;if(yewai!0) {system(cls);printf(该区域为未知区域无法进入。\n\n\n);system(color 8E);break;}}if(yewai0) {system(cls);break;printf(已离开荒野。);system(color 8E);if(sheng1) Beep(1200,100);}}}break;case 2:ChooseWupin();break; //显示道具,并可以使用.case 3: //对话选项if(sheng1) Beep(1200,100);if(place_signplace.bar) {printf(要和谁说话?\n\n\n1,红发女郎 2,赏金猎人 3,酒吧老板 4,药品商人\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);//显示对话人物switch(scanf(%d,choose_number),choose_number) {case 1:printf(红发女郎:\n\n\n 吧台边那个Hunter好帅啊!(~脸红~)\n\n\n听说他经常外出打猎,外面的路他应该很熟悉的!\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);break;case 2:if(fang1n1gong1n1) {printf(赏金猎人:\n\n\n 你要救公主啊!好胆量!\n\n\n 不过外面的世界很险恶,而且越深越危险,这是匕首和布衣,对你会有些帮助的,拿去吧!\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);printf(%s心想:哇,这位大叔人真好啊!\n\n\n),player.name);gong1n;fang1n;} else printf(赏金猎人:\n\n\n 加油吧,年轻人!\n\n\n 不要被外面世界所吓倒!\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);break;case 3:printf(要喝点什么?\n\n\n 1,二锅头25金币 HP20 2,伏特加80金币 HP50 3,人头马面150金币 HP100 0,返回\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);choose_number1;while(choose_number) {switch(scanf(%d,choose_number),choose_number) {case 1:if(money25) {printf(钱不够!);system(color 8E);if(sheng1) Beep(1200,100);} else {if(player.health20player.max_health) {printf(HP20.);system(color 8E);money-25;if(sheng1) Beep(1200,100);player.health20;} else {printf(HP满了);system(color 8E);if(sheng1) Beep(1200,100);player.healthplayer.max_health;}}break;case 2:if(money80) {printf(钱不够!);system(color 8E);} else {if(player.health50player.max_health) {printf(HP50.);system(color 8E);if(sheng1) Beep(1200,100);money-80;player.health50;} else {printf(HP满了);system(color 8E);if(sheng1) Beep(1200,100);player.healthplayer.max_health;}}break;case 3:if(money150) {printf(钱不够!);system(color 8E);if(sheng1) Beep(1200,100);} else {if(player.health100player.max_health) {printf(HP100.);system(color 8E);if(sheng1) Beep(1200,100);money-150;player.health100;} else {printf(HP满了);system(color 8E);if(sheng1) Beep(1200,100);player.healthplayer.max_health;}}break;case 0:printf(下次再来!\n);system(color 8E);break;default:printf(输入错误\n\n\n);system(color 8E);break;}break;}break;case 4:printf(你要干什么\n\n\n 1买东西 2聊天 \n\n\n);system(color 8E);if(sheng1) Beep(1200,100);int mai;scanf(%d,mai);if(mai1) {printf(买点什么呢\n1,止血草100 HP60\n2急救包150 HP80 \n3云南白药250 HP120\n4超级云南白药400 HP200 \n5经验草150 经验300 \n6经验包600 经验600\n7经验石500 经验1000 \n0,拜拜\n);system(color 8E);if(sheng1) Beep(1200,100);int dongxi;scanf(%d,dongxi);switch(dongxi) {case 1:if(money100cao6) {cao;moneymoney-100;printf (止血草1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 2:if(money150jijiubao10) {jijiubao;moneymoney-150;printf (急救包1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 3:if(money250baiyao10) {baiyao;moneymoney-250;printf (云南白药1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 4:if(money400superbaiyao10) {superbaiyao;moneymoney-400;printf (超级云南白药1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 5:if(money150) {jingyancao;moneymoney-150;printf (经验草1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 6:if(money300) {jingyanbao;moneymoney-300;printf (经验包1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;case 7:if(money500) {jingyanshi;moneymoney-500;printf (经验石1\n);system(color 8E);if(sheng1) Beep(1200,100);} else {printf(钱不够!\n);system(color 8E);}break;}case 0:printf(金币%d\n,money);system(color 8E);printf(再见欢迎下次再来\n);system(color 8E);if(sheng1) Beep(1200,100);break;}if(mai2) {printf(药品商人去去去老子没时间陪你聊。\n);system(color 8E);}}} else if(place_signplace.hotel)printf(“老板娘!我...”\n\n\n“我忙着呢没空理你~”\n\n\n);else printf(这里好像没人可以聊天\n\n\n);system(color 8E);break;case 4:DisplayState();break; //显示状态case 5: //装备if(sheng1) Beep(1200,100);printf(攻击装备: 1,匕首:%d个 2,西洋剑:%d个 3,粗制石剑:%d个 4,碧血战锤:%d个 5,蜘蛛毒剑:%d个 6,尚方宝剑:%d个 7,雷霆之刃%d个 8,X尚方宝剑X%d个 9,命令之剑%d个\n\n\n,gong1n,gong2n,gong7n,gong3n,gong6n,gong4n,gong5n,gong4Xn,mgongn);system(color 8E);printf(防御装备: 10,布衣:%d个 11,鳞甲:%d个 12,战斗马甲:%d个 13,重甲:%d个 14,石铠甲:%d个 15,传说圣甲:%d个 16,金龙铠:%d个 17,X传说圣甲X:%d个 18,命令之甲:%d个\t\t0,返回\n\n\n,fang1n,fang2n,fang7n,fang3n,fang6n,fang4n,fang5n,fang4Xn,mfangn);system(color 8E);printf(选择要装备的武器或防具:\n\n\n);system(color 8E);switch(scanf(%d,choose_number),choose_number) {case 1:if(gong1n1) {printf(拿起了匕首\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);gonggong1;strcpy(gongname,匕首);system(color 8E);} else printf(你没有匕首可以装备\n\n\n);system(color 8E);break;case 2:if(gong2n1) {printf(拿起了西洋剑\n\n\n);system(color 8E);if(sheng1) Beep(1200,100);gonggong2;strcpy(gongname,西洋剑);system(color 8E);} else printf(你没有西洋剑可以装备\n\n\n);system(color 8E);break;case 3:if(gong7n1) {printf(拿起了粗制石剑\n\n\n);gonggong7;strcpy(gongname,粗制石剑);} else printf(你没有粗制石剑可以装备\n\n\n);if(sheng1) Beep(1200,100);break;case 4:if(gong3n1) {printf(拿起了碧血战锤\n\n\n);gonggong3;strcpy(gongname,碧血战锤);} else printf(你没有碧血战锤可以装备\n\n\n);if(sheng1) Beep(1200,100);break;case 5:if(gong6n1) {printf(拿起了蜘蛛毒剑\n\n\n);gonggong6;strcpy(gongname,蜘蛛毒剑);} else printf(你没有蜘蛛毒剑可以装备\n\n\n);if(sheng1) Beep(1200,100);break;case 6:if(gong4n1) {printf(拿起了尚方宝剑\n\n\n);gonggong4;strcpy(gongname,尚方宝剑);} else printf(你没有尚方宝剑可以装备\n\n\n);if(sheng1) Beep(1200,100);break;case 7:if(gong5n1) {printf(拿起了雷霆之刃\n\n\n);if(sheng1) Beep(1200,100);gonggong5;strcpy(gongname,雷霆之刃);} else printf(你没有雷霆之刃可以装备\n\n\n);break;case 8:if(gong4Xn1) {printf(拿起了X尚方宝剑X\n\n\n);if(sheng1) Beep(1200,100);gonggong4X;strcpy(gongname,X尚方宝剑X);} else printf(你没有X尚方宝剑X可以装备\n\n\n);break;case 9:if(mgongn1) {printf(拿起了命令之剑\n\n\n);if(sheng1) Beep(1200,100);gongmgong;strcpy(gongname,命令之剑);} else printf(你没有命令之剑可以装备\n\n\n);break;case 10:if(fang1n1) {printf(穿上了布衣\n\n\n);if(sheng1) Beep(1200,100);fangfang1;strcpy(fangname,布衣);} else printf(你没有布衣可以装备\n\n\n);break;case 11:if(fang2n1) {printf(穿上了鳞甲\n\n\n);if(sheng1) Beep(1200,100);fangfang2;strcpy(fangname,鳞甲);} else printf(你没有鳞甲可以装备\n\n\n);break;case 12:if(fang7n1) {printf(穿上了战斗马甲\n\n\n);if(sheng1) Beep(1200,100);fangfang7;strcpy(fangname,战斗马甲);} else printf(你没有战斗马甲可以装备\n\n\n);break;case 13:if(fang3n1) {printf(穿上了重甲\n\n\n);if(sheng1) Beep(1200,100);fangfang3;strcpy(fangname,重甲);} else printf(你没有重甲可以装备\n\n\n);break;case 14:if(fang6n1) {printf(穿上了石铠甲\n\n\n);if(sheng1) Beep(1200,100);fangfang6;strcpy(fangname,石凯甲);} else printf(你没有石凯甲可以装备\n\n\n);break;case 15:if(fang4n1) {if(sheng1) Beep(1200,100);printf(穿上了传说圣甲\n\n\n);fangfang4;strcpy(fangname,传说圣甲);} else printf(你没有传说圣甲可以装备\n\n\n);break;case 16:if(fang5n1) {printf(穿上了金龙铠\n\n\n);if(sheng1) Beep(1200,100);fangfang5;strcpy(fangname,金龙铠);} else printf(你没有金龙铠可以装备\n\n\n);break;case 17:if(fang4Xn1) {printf(穿上了X传说圣甲X\n\n\n);if(sheng1) Beep(1200,100);fangfang4X;strcpy(fangname,X传说圣甲X);} else printf(你没有X传说圣甲X可以装备\n\n\n);break;case 18:if(mfangn1) {printf(穿上了命令之甲\n\n\n);if(sheng1) Beep(1200,100);fangmfang;strcpy(fangname,命令之甲);} else printf(你没有命令之甲可以装备\n\n\n);break;case 0:printf(未更换装备\n\n\n);break;default:printf(change error!);}break;case 6:if(sheng1) Beep(1200,100);printf( 您好欢迎您玩斗破苍穹苍穹世界。);cout为了给您更好的游戏体验;Sleep(250);coutzty时不时会优化本游戏;Sleep(250);cout优化后会尽快发布在网上。;Sleep(250);cout关于外挂方面;Sleep(250);cout开启外挂的方式是设定勇者姓名时;Sleep(250);cout输入;Sleep(250);cout“;Sleep(250);coutz;Sleep(250);coutt;Sleep(250);couty;Sleep(250);cout”;Sleep(250);cout不包括双引号。;Sleep(250);cout我们在;Sleep(250);cout2.;Sleep(250);cout11.;Sleep(250);cout5;Sleep(250);cout版本内容;Sleep(250);cout的基础上进行添加;Sleep(250);cout主要内容为新增背包和将退出游戏改到了设置里面还有如果不逃跑是不会停止战斗;Sleep(250);cout已更新完毕;Sleep(250);cout希望大家喜欢。;
// cout在这里要感谢;
// Sleep(250);
// cout吴;
// Sleep(250);
// cout昊;
// Sleep(250);
// cout同学;
// Sleep(250);
// cout他给了我许多宝贵的建议;
// Sleep(250);
// cout谢;
// Sleep(250);
// cout谢;
// Sleep(250);cout\n\n;Sleep(250);system(color 8E);break;case 8:if(sheng1) Beep(1200,100);printf(合成台 0:退出\n\n);system(color 8E);cout命令之书:mingshu\n1 命令之剑 需要材料1*X尚方宝剑X 3*命令之书\n\n;Sleep(150);if(sheng1) Beep(1200,100);cout2X尚方宝剑X 需要材料1* 尚方宝剑 1*命令之书\n\n;Sleep(150);if(sheng1) Beep(1200,100);cout3 命令之甲 需要材料1*X传说圣甲X 3*命令之书\n\n;Sleep(150);if(sheng1) Beep(1200,100);cout4X传说圣甲X 需要材料1* 传说圣甲 1*命令之书\n\n;Sleep(150);if(sheng1) Beep(1200,100);cout5 毁灭炸弹 需要材料5*手抛原子弹 3*命令之书\n\n;Sleep(150);if(sheng1) Beep(1200,100);cout6 金龙铠 需要材料5*龙鳞 \n\n;Sleep(150);if(sheng1) Beep(1200,100);cout7 鳞甲 需要材料5*鳞片 \n\n;Sleep(150);if(sheng1) Beep(1200,100);cinhe;if(he1)if(he1gong4Xn1mingshu3) {gong4Xn--;mingshu-3;mgongn;cout恭喜获得命令之剑\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he2)if(he2gong4n1mingshu1) {gong4n--;mingshu--;gong4Xn;cout恭喜获得X尚方宝剑X\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he3)if(he3fang4Xn1mingshu3) {fang4Xn--;mingshu-3;mfangn;cout恭喜获得命令之甲\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he4)if(he4fang4n1mingshu1) {fang4n--;mingshu--;fang4Xn;cout恭喜获得X传说圣甲X\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he5)if(he5yuanzidan5mingshu3) {yuanzidan-5;mingshu-3;zhadan;cout恭喜获得毁灭炸弹\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he6)if(he6ll5) {ll-5;fang5n;cout恭喜获得金龙铠\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he7)if(he7lp5) {lp-5;fang2n;cout恭喜获得鳞甲\n;if(sheng1) Beep(1200,100);} else cout材料不足\n\n;if(he0) break;break;case 9:system(cls);cout设置 0:退出\n\n;cout1:声音 ;if(sheng1) cout开\n;else cout关\n;cout\n2:UI界面 ;if(ui1) cout老版;else cout新版;cout\n\n3,退出游戏;cinshen;if(shen1) {if(sheng1) sheng0;else sheng1;}if(shen2) {if(ui1) ui0;else ui1;}if(shen3) {printf(确定退出游戏?(Y/N)\n\n\n);system(color 8E);getchar();proofgetchar();if(proofy||proofY) {printf(按回车退出);system(color 8E);getchar();return;} else if(proofn||proofN)printf(继续游戏!\n\n\n);else printf(继续!\n\n\n);}if(shen0) break;break;case 7:if(sheng1) Beep(1200,100);int mi;cout*【后台 开挂 测试Bug】*\n密码;cinmi;if(mi%201209130mi!0) {cout输入正确欢迎进入后台\n\n\n后台服务\n\n1.金币加999999\n\n2.血量上限加9999\n\n3.现有血量加9999\n\n4.攻击加9999\n\n5.防御加9999\n\n0.退出\n\n\n\n endl;cinhtsr;if(htsr1) {cout成功获得效果 *金币加999999\n;if(sheng1) Beep(1200,100);money999999;}if(htsr2) {cout成功获得效果 *血量加9999\n;if(sheng1) Beep(1200,100);player.health9999;}if(htsr3) {cout成功获得效果 *血量上限加9999\n;if(sheng1) Beep(1200,100);player.max_health9999;}if(htsr4) {cout成功获得效果 *攻击加9999\n;if(sheng1) Beep(1200,100);player.attack9999;}if(htsr5) {cout成功获得效果 *防御加9999\n;if(sheng1) Beep(1200,100);player.defense9999;}if(htsr0) {cout成功退出\n;if(sheng1) Beep(1200,100);continue;}} else {cout输入错误请检查endl;continue;}break;case 10:system(cls);printf(物品:止血草:%d个 急救包:%d个 云南白药:%d个 超级云南白药:%d个 手雷:%d个 毒标:%d个 手抛式原子弹:%d个 经验草:%d个经验包:%d个 经验石:%d个 巨龙晶石:%d个 免死金牌:%d个 凋零之心:%d个 毁灭炸弹:%d个 \n合成材料:鳞片:%d个 龙鳞:%d个 命令之书:%d个\n,cao,jijiubao,baiyao,superbaiyao,boom,dubiao,yuanzidan,jingyancao,jingyanbao,jingyanshi,strongman_arm,miansi,diaolingxin,zhadan,lp,ll,mingshu);printf(攻击装备: 匕首:%d个 西洋剑:%d个 粗制石剑:%d个 碧血战锤:%d个 蜘蛛毒剑:%d个 尚方宝剑:%d个 雷霆之刃%d个 X尚方宝剑X%d个 命令之剑%d个\n,gong1n,gong2n,gong7n,gong3n,gong6n,gong4n,gong5n,gong4Xn,mgongn);system(color 8E);printf(防御装备: 布衣:%d个 鳞甲:%d个 12,战斗马甲:%d个 重甲:%d个 石铠甲:%d个 传说圣甲:%d个 金龙铠:%d个 X传说圣甲X:%d个 命令之甲:%d个\t\t\n\n\n,fang1n,fang2n,fang7n,fang3n,fang6n,fang4n,fang5n,fang4Xn,mfangn);system(color 8E);system(pause);break;}}
}
void DisplayState() {printf(%s 攻击力:%d%d%d 防御力:%d%d%d HP:%d/%d \n\n\n,player.name,player.attack,gong,player.attackgong,player.defense,fang,player.defensefang,player.health,player.max_health);printf(武器: %s 防具: %s \n\n\n,gongname,fangname);printf(等级:%d 经验:%d/%d 还需要%d经验升级 金币:%d \n\n\n,player.level,player.exp,player.max_exp,player.max_exp-player.exp,money);system(pause);
}
void BattleAct() {while(1) {puts();if(sheng1) Beep(1200,100);printf(要怎么办?\n\n\n 1,攻击 2,使用物品 3,查看状态 4,逃跑\n\n\n);switch(scanf(%d,choose_number),choose_number) {case 1:sSuiJi();printf(%s攻击! %sHP减少%d\n\n\n,player.name,guai.name,player.attacksgong-guai.defense/3);guai.health-player.attacksgong-guai.defense/3;if(AttackResult())return; //如果攻击有结果(敌人或玩家战死)退出函数else continue;case 2:ChooseWupin();break; //选择物品,可以使用,战斗中允许使用攻击性物品case 3:DisplayState();break; //显示状态case 4:sSuiJi();if(s4) { //40%的概率可以逃跑printf(%s逃跑了~\n\n\n,player.name);if(sheng1) Beep(1200,100);battle0;return;} else printf(%s逃跑失败!\n\n\n,player.name);if(sheng1) Beep(200,100);break;default:printf(输入错误,重新输入!\n\n\n);if(sheng1) Beep(200,100);}}
}
void printf(char *p) {while(1) {if(*p!0)printf(%c,*p);elsebreak;Sleep(100);}
}
我的赞呢你看见了吗
作者zty郑桐羽呀
联系方式不挂了有事私信