#include <cstdlib>
#include <bits/stdc++.h>
#include <windows.h>
#include <time.h>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <conio.h>
#include <string>
#include <stdio.h>
#include<random>
#include <thread>
#include <atomic>
#include <ctime>
#include <iomanip>
#include <map>
#include <vector>
#include <chrono>
using std::cout;
using std::string;
using namespace std;
long long zhujuegongji=20,zhujueshengming=20,sxsm=20,zhujuefangyv=20;//主角设置
int zidongcundang=0;//自动存档
string htmm,htmm2;//后台密码
int zuanshi=0;//钻石
string wq="无";//武器
string yst="没有",yyf="没有",ykz="没有",yxz="没有",yd="没有",yq="没有";//主角用的武器【例如:用手套...】
int baoji=0,fangyv=0,fangyv2=0,baojizhi=3,fangyvzhi=3,fangyv2zhi=3,msboos;//攻击防御
long long sjsjb=0,sjsjb2=0,qhs=100;//金币
int gwzhi=0,ntgs=0,gljs=0,zxem=0,ssw=0,hmg=0,hp=0,ayns=0,wr=0,wrdwhq=0,sxks=0,ymbh=0,bylyw=0,jdbh=0,nmzzs=0,nmzzsss=0;//怪物
int htz=0;//商店进阶
int hst=0,pldhyf=0,cqdhkz=0,hx=0,hr=0,sdjj=0,biaoji=0;//商店
int htmmpd=0,htmmcs=5;//后台密码判断
int xbfllq1=0,xbfllq2=0,xbfllq3=0,xbfllq4=0;//新兵
int dhmpd=0,dhmpd2=0;//兑换码
int dflxjlzhi=0;//东风来袭
int gjflcs=0;//挂机福利
int houst=0,dmy=0,ckz=0,ptxz=0,gj=0,llys=0,llyscs=0,mtz=0,biaoji2=0;//商店2
int wqsp=0;//武器碎片
int wqcjiang;//武器抽奖
int suijishujingbicjy,wqspcjy;//抽奖得到的金币和武器碎片
int tlbcj=0,tsccj=0,tccj=0,ptjccj=0;//抽奖重复问题
int ptjc=0,tc=0,tsc=0,tlb=0;//武器碎片换武器里的武器
int hrgj=0,gjgj=0,ptjcgj=0,tcgj=0,tscgj=0,tlbgj=0,wjzdgj=0,lmdgj=0,msrgj=0; //武器强化附加攻击
int jishu4=0,jishu5=0,jishu6=0,jishu7=0,jishu8=0;//计数多少(用来做输出武器名字的)
int wjzd=0;//无尽战刀
int lmd=0,msr=0;//猎魔刀、魔神刃
int chuanshuoxianding=0,shishixianding=0;
int cszs=4,yzzs=6,ptzs=7,sszs=1,xdzs=0;//总游戏装备
int chuanshuo=tlb+wjzd+lmd+msr;
int yongzhe=houst+dmy+ckz+ptxz+gj+tc;
int putong=hst+pldhyf+cqdhkz+hx+sdjj+ptjc;
int shishi=tsc;
int zzb=cszs+yzzs+ptzs+sszs;
int wjxyzb=chuanshuo+yongzhe+putong+shishi+chuanshuoxianding+shishixianding;
int xdzb=chuanshuoxianding+shishixianding;
//必调类
void color(int a);//颜色
void gotoxy(short x, short y);//移动光标
//开始类
void ksq();//开始前界面
void ks();//开始界面
void lb();//礼包
//战斗类
void zd();//战斗页面
void gwck();//怪物查看
void kszd();//开始战斗
void huosheng();//战斗获胜界面
void zt();//状态
//商店类
void sd();//商店
void sd1();//商店1
void sd2();//商店2
void sd3();//回收商店
void cjzs();//成就展示
void xssc();//限时商城
//后台类
void ht();//后台
void kg();//后台开挂部分
//杂物类
void bb();//背包
void sz();//设置
void hhzj();//辉煌战绩
void lqsm();//领取生命
void wddj();//我的道具
//公告类
void gg();//公告
void gxgg();//更新公告
void sjgg();//赛季公告
void sngg();//赛年公告
int zidonggengxin=0;//自动更新
//活动类
void hd();//活动
void xbfl();//新兵福利
void dhm();//兑换码
void dflx();//东风来袭
void gg();//公告
void yxzl();//元宵之礼
void gjfl();//挂机福利
//武器打造类
void wqdz();//武器打造
void wqfj();//武器分解
void wqqh();//武器强化
void wqcj();//武器抽奖
void wqfj2();//武器分解
void fjspdhwq();//分解碎片兑换武器
void wqyfdq();//武器衣服大全
void wqspcjz();//武器碎片抽奖中
//存档类
void bccd();//保存存档
void drcd();//读入存档
//战令类
void zl();//战令
//AI类
void AIWD();//AI问答
void gotoxy(short x, short y)
{
COORD position = { x, y };
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut, position);
}
void color (int a) {//颜色函数
SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), a);
}
//第一次 炽焰狂欢 —— 盛夏灼烧季 祈愿活动
// 全局状态
int cyb=0;//炽焰币
int qyb=0;//祈愿币
int cyzj=0;//炽焰战甲
int qycs=0;
int qycj;
int cjcs=0;//抽奖次数
int dkym=0;//打开页面
void qy();//祈愿
void cj();//抽奖
// 平台适配宏
#ifdef _WIN32
#define CLEAR_SCREEN() system("cls")
#else
#define CLEAR_SCREEN() system("clear")
#include <termios.h>
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#endif
class ActivityController {
private:
const time_t START = createTime(2025,5,6,10,0,0);
const time_t END = createTime(2025,6,6,9,59,59);
bool activityActive = false;
// 时间戳生成器(本地时区)
time_t createTime(int y, int m, int d, int h, int min, int s) {
tm t = {0};
t.tm_year = y - 1900;
t.tm_mon = m - 1;
t.tm_mday = d;
t.tm_hour = h;
t.tm_min = min;
t.tm_sec = s;
return mktime(&t);
}
// 获取当前时间
time_t currentTime() {
time_t now;
time(&now);
return now;
}
// 显示过渡信息
void showTransition(const string& msg) {
system("cls");
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout << " ╭───────────────────────────────────────╮\n";
cout << " │ 系统提示 │\n";
cout << " │───────────────────────────────────────│\n";
cout << " │ 祈 愿 未 开 启 │\n";
cout << " │ │\n";
cout << " │本次祈愿开启时间: │\n";
cout << " │ 2025年5月6日 10:00:00 │\n";
cout << " │本次祈愿结束时间: │\n";
cout << " │ 2025年6月6日 09:59:59 │\n";
cout << " ╰───────────────────────────────────────╯\n\n\n\n\n\n\n\n\n\n";
system("pause"); // 停留2秒
ks();
}
public:
void run() {
while(true) {
time_t now = currentTime();
if(now < START) {
if(activityActive) ks();
showTransition("活动倒计时: " + formatTime(START - now));
activityActive = false;
continue;
}
if(now > END) {
if(activityActive) ks();
showTransition("活动已结束");
activityActive = false;
continue;
}
if(!activityActive) {
system("cls");
qy(); // 进入活动框架
activityActive = true;
}
Sleep(1000); // 每秒检测
}
}
private:
// 时间格式化
string formatTime(time_t diff) {
int days = diff / 86400;
int hours = (diff % 86400) / 3600;
int mins = (diff % 3600) / 60;
return to_string(days) + "天"
+ to_string(hours) + "小时"
+ to_string(mins) + "分钟";
}
};
//限时商城
void ks()//开始页面
{
color(62);
system("cls");
cout<<endl<<endl;
if(zidongcundang!=0)bccd();
//drcd();
cout<<" ============================= 勇者斗恶龙 V3.0.3 ============================="<<endl
<<" 我的金币:"<<sjsjb<<" 我的钻石:"<<zuanshi<<endl<<endl;
if(zidongcundang==0)
{
cout<<" 1、战斗 9、保存存档(按0开启自动存档) "<<endl<<endl;
}
if(zidongcundang!=0)
{
cout<<" 1、战斗 9、自动存档已开启 "<<endl<<endl;
}
cout<<" 2、状态 10、战绩 "<<endl<<endl;
cout<<" 3、背包 11、读档 "<<endl<<endl;
cout<<" 4、商店 12、领取生命 "<<endl<<endl
<<" 5、活动 13、公告 "<<endl<<endl
<<" 6、设置 14、我的道具 "<<endl<<endl
<<" 7、武器打造 15、AI 智能问答(测试中) "<<endl<<endl
<<" 8、仓库 16、祈愿"<<endl;
string a1and4xz;
cin>>a1and4xz;
if(a1and4xz!="0"&&a1and4xz!="1"&&a1and4xz!="2"&&a1and4xz!="3"&&a1and4xz!="4"&&a1and4xz!="5"&&a1and4xz!="6"&&a1and4xz!="7"&&a1and4xz!="8"&&a1and4xz!="9"&&a1and4xz!="10"&&a1and4xz!="11"&&a1and4xz!="12"&&a1and4xz!="13"&&a1and4xz!="1111"&&a1and4xz!="14"&&a1and4xz!="15"&&a1and4xz!="16")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
ks();
}
if(a1and4xz=="0")
{
system("cls");
zidongcundang+=1;
if(zidongcundang!=0)bccd();
ks();
}
if(a1and4xz=="1")
{
system("cls");
zd();
}
if(a1and4xz=="2")
{
system("cls");
zt();
}
if(a1and4xz=="3")
{
system("cls");
bb();
}
if(a1and4xz=="4")
{
system("cls");
sd();
}
if(a1and4xz=="1111")
{
system("cls");
ht();
}
if(a1and4xz=="5")
{
system("cls");
hd();
}
if(a1and4xz=="6")
{
system("cls");
sz();
}
if(a1and4xz=="7")
{
system("cls");
wqdz();
}
if(a1and4xz=="8")
{
system("cls");
wqyfdq();
}
if(a1and4xz=="9")
{
system("cls");
bccd();
}
if(a1and4xz=="10")
{
system("cls");
hhzj();
}
if(a1and4xz=="11")
{
system("cls");
drcd();
}
if(a1and4xz=="12")
{
system("cls");
lqsm();
}
if(a1and4xz=="13")
{
system("cls");
gg();
}
if(a1and4xz=="14")
{
system("cls");
wddj();
}
if(a1and4xz=="15")
{
system("cls");
AIWD();
}
if(a1and4xz=="16")
{
system("cls");
//qy();
// 初始化界面
system("cls");
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursorInfo;
GetConsoleCursorInfo(hOut, &cursorInfo);
cursorInfo.bVisible = false;
SetConsoleCursorInfo(hOut, &cursorInfo);
// 启动活动控制器
ActivityController().run();
}
}
void wddj()
{
color(60);
cout<<"===================================================================================================="<<endl
<<"|| 我的道具 ||"<<endl
<<"===================================================================================================="<<endl
<<" 拥有力量药水:"<<llyscs<<"瓶 "<<endl
<<" 拥有生命药水:"<<sdjj<<"瓶"<<endl
<<"===================================================================================================="<<endl;
system("pause");
ks();
}
void zd()//战斗
{
color(60);
cout<<"====================================\n";
cout<<" 战斗 \n";
cout<<"====================================\n";
cout<<"【1.怪物查看 2.开始战斗 3.返回】\n";
string zdxz1and2;
cin>>zdxz1and2;
if(zdxz1and2=="1")
{
system("cls");
gwck();
}
if(zdxz1and2=="2")
{
system("cls");
kszd();
}
if(zdxz1and2=="3")
{
system("cls");
Sleep(700);
ks();
}
if(zdxz1and2!="1"&&zdxz1and2!="2"&&zdxz1and2!="3")
{
cout<<"别乱输!";
Sleep(700);system("cls");
zd();
}
}
void AIWD()
{
system("cls");
system("color F1");
cout<<"***********************************************************************************************"<<endl
<<"*** AI 智能问答(测试版) ***"<<endl
<<"*** (按211退出) ***"<<endl
<<"***********************************************************************************************"<<endl
<<" &我猜你会问以下几个问题:"<<endl
<<" > 1.勇者斗恶龙这款游戏什么时候开始测试研发的?"<<endl
<<" > 2.游戏里面怎么获取金币?"<<endl
<<" > 3.抽奖概率问题"<<endl
<<" > 4.没有生命了该怎么领取生命?"<<endl<<endl<<endl
<<" 请输入>>";
string q;
cin>>q;
if(q!="1"&&q!="2"&&q!="3"&&q!="4"&&q!="211")
{
cout<<"输入错误,请重新输入!"<<endl;
Sleep(1500);
AIWD();
}
if(q=="211")
{
ks();
}
if(q=="1")
{
cout<<endl<<endl<<endl
<<"问:勇者斗恶龙这款游戏什么时候开始测试研发的?"<<endl
<<"答:勇者斗恶龙这款游戏在2024年10月27日正式上线"<<endl<<endl<<endl;
system("pause");
AIWD();
}
if(q=="2")
{
cout<<endl<<endl<<endl
<<"问:游戏里面怎么获取金币?"<<endl
<<"答:可以通过游戏内打怪"<<endl<<endl<<endl;
system("pause");
AIWD();
}
if(q=="3")
{
cout<<endl<<endl<<endl
<<"问:抽奖概率问题"<<endl
<<"答:具体请看抽奖介绍"<<endl<<endl<<endl;
system("pause");
AIWD();
}
if(q=="4")
{
cout<<endl<<endl<<endl
<<"问:没有生命了该怎么领取生命?"<<endl
<<"答:可以在领取生命中领取,每一分钟领取两点生命力"<<endl
<<" 注:领取生命只能停留在领取生命页面,否则领取无效"<<endl<<endl<<endl;
system("pause");
AIWD();
}
}
void qy()//祈愿
{
system("cls");
system("color F0");
srand((int)time(0));
if(zidongcundang==1)bccd();
int q=0;
int baodi=100;
if(cjcs<200)
{
baodi=200;
}
else
{
baodi=100;
}
cout<<" ***************************************************************************************"<<endl
<<" 炽焰狂欢 —— 盛夏灼烧季 "<<endl
<<" 炽焰币:"<<cyb<<" 我的祈愿币"<<qyb<<endl
<<" 抽奖次数:"<<cjcs<<endl
<<" ***************************************************************************************"<<endl
<<" 按 0 退出"<<endl<<endl;
if(cyzj==0)
{
cout<<" 1、炽焰战甲 *688炽焰币兑换"<<endl<<endl<<endl<<endl<<endl<<endl;
}
if(cyzj==1)
{
cout<<" 1、炽焰战甲 *已拥有"<<endl<<endl<<endl<<endl<<endl<<endl;
}
if(cjcs==0)
{
cout<<" 2、单抽(首次 6 祈愿币) 3、十连抽(首次 99 祈愿币)"<<endl;
}
if(cjcs!=0)
{
cout<<" 2、单抽( 10 祈愿币/次) 3、十连抽( 100 祈愿币)"<<endl;
}
string qysr;
cin>>qysr;
if(qysr!="0"&&qysr!="1"&&qysr!="2"&&qysr!="3"&&qysr!="4")
{
cout<<"输入错误,请重新输入!"<<endl;
Sleep(1500);
qy();
}
if(qysr=="0")
{
system("cls");
ks();
}
if(qysr=="1")
{
if(cyzj==1)
{
cyb+=688,qycs++,cjcs++;
cout<<"已拥有此装备!已为您自动兑换成 688 炽焰币!";
Sleep(1500);
}
if(cyzj==0)
{
if(cyb>=688)
{
cyb-=688;
cyzj=1;
cout<<"兑换成功!";
Sleep(1500);
qy();
}
cout<<"炽焰币不足,兑换失败!";
Sleep(1500);
qy();
}
}
if(qysr=="2")
{
if(cjcs==0)
{
if(qyb<6)
{
cout<<"祈愿币不足!"<<endl;
Sleep(1500);
qy();
}
int qycj1;
int suijicyb;
suijicyb=rand()%5;
qyb-=6,qycs++,cjcs++;
qycj1=rand()%100;
if(qycj1==baodi)
{
cout<<" 恭喜你,抽到 【炽焰战甲】"<<endl;
cyzj=1;
Sleep(1500);
qy();
}
else
{
cout<<" 恭喜你,抽到了 "<<suijicyb<<" 个炽焰币";
cyb+=suijicyb;
Sleep(1500);
qy();
}
}
if(cjcs>0)
{
if(qyb<10)
{
cout<<"祈愿币不足!"<<endl;
Sleep(1500);
qy();
}
int qycj1;
qyb-=10,qycs++,cjcs++;
qycj1=rand()%100;
if(qycj1>99)
{
int suijiwqsp;
suijiwqsp=rand()%5;
cout<<"恭喜你,抽到 "<<suijiwqsp<<" 武器碎片"<<endl;
wqsp+=suijiwqsp;
Sleep(1500);
qy();
}
if(80<qycj1&&qycj1<=99)
{
int suijicyb;
suijicyb=rand()%3;
cout<<"恭喜你,抽到 "<<suijicyb<<" 炽焰币"<<endl;
cyb+=suijicyb;
Sleep(1500);
qy();
}
if(60<qycj1&&qycj1<=80)
{
int suijiwjzd;
int suijicyb;
suijicyb=rand()%20;
int WJZD=99;
suijiwjzd=rand()%100;
if(wjzd!=0)
{
cout<<"恭喜你,抽到"<<suijicyb <<"金币";
sjsjb+=suijicyb;
Sleep(1500);
qy();
}
if(wjzd==0)
{
if(suijiwjzd==WJZD)
{
wjzd=1;
cout<<"恭喜你,抽到无尽战刀!"<<endl;
Sleep(1500);
}
else
{
cout<<"恭喜你,抽到"<<suijicyb <<"炽焰币";
cyb+=suijicyb;
Sleep(1500);
qy();
}
}
}
if(40<qycj1&&qycj1<=60)
{
int suijitsc;
int suijijb;
int TSC=50;
suijijb=rand()%100;
suijitsc=rand()%200;
if(tsc!=0)
{
cout<<"恭喜你,抽到"<<suijijb <<"金币";
sjsjb+=suijijb;
Sleep(1500);
qy();
}
if(tsc==0)
{
if(suijitsc==TSC)
{
tsc=1;
cout<<"恭喜你,抽到天神锤!"<<endl;
Sleep(1500);
qy();
}
else
{
cout<<"恭喜你,抽到"<<suijijb <<"金币";
sjsjb+=suijijb;
Sleep(1500);
qy();
}
}
}
if(0<=qycj1&&qycj1<=40)
{
int suijijb;
suijijb=rand()%200;
cout<<"恭喜你,抽到 "<<suijijb<<" 金币";
sjsjb+=suijijb;
Sleep(1500);
qy();
}
}
}
if(qysr=="3")
{
int suijijb1;
int suijijb2;
int suijijb3;
int suijijb4;
int suijicyb1;
int suijicyb2;
int suijicyb3;
int suijiwqsp1;
int suijiwqsp2;
int suijiwqsp3;
int BD;
BD=rand()%200;
suijijb1=rand()%20;
suijijb2=rand()%20;
suijijb3=rand()%30;
suijijb4=rand()%30;
suijicyb1=rand()%3;
suijicyb2=rand()%4;
suijicyb3=rand()%5;
suijiwqsp1=rand()%10;
suijiwqsp2=rand()%15;
suijiwqsp3=rand()%20;
if(cjcs==1)
{
if(qyb<99)
{
cout<<"祈愿币不足!";
Sleep(1500);
qy();
}
cjcs+=10,qycs+=10,qyb-=99;
cout<<"抽到 "<<suijijb1 <<"个金币"<<endl
<<"抽到 "<<suijijb2 <<"个金币"<<endl
<<"抽到 "<<suijijb3 <<"个金币"<<endl
<<"抽到 "<<suijijb4 <<"个金币"<<endl
<<"抽到 "<<suijicyb1 <<"个炽焰币"<<endl
<<"抽到 "<<suijicyb2 <<"个炽焰币"<<endl
<<"抽到 "<<suijicyb3 <<"个炽焰币"<<endl
<<"抽到 "<<suijiwqsp1 <<"个武器碎片"<<endl
<<"抽到 "<<suijiwqsp2 <<"个武器碎片"<<endl
<<"抽到 "<<suijiwqsp3 <<"个武器碎片"<<endl;
if(BD==baodi)
{
cout<<"\n\n\n";
cout<<" 【大奖】"<<endl
<<"————————————————————————————————————————————————————————"<<endl;
cout<<" 恭喜你,抽到 【炽焰战甲】"<<endl;
cyzj=1;
Sleep(1500);
qy();
}
sjsjb+=suijijb1+suijijb2+suijijb3+suijijb4;
cyb+=suijicyb1+suijicyb2+suijicyb3;
wqsp+=suijiwqsp1+suijiwqsp2+suijiwqsp3;
system("pause");
qy();
}
if(qyb<100)
{
cout<<"祈愿币不足!"<<endl;
Sleep(1500);
qy();
}
cjcs+=10,qycs+=10,qyb-=100;
cout<<"抽到 "<<suijijb1 <<"个金币"<<endl
<<"抽到 "<<suijijb2 <<"个金币"<<endl
<<"抽到 "<<suijijb3 <<"个金币"<<endl
<<"抽到 "<<suijijb4 <<"个金币"<<endl
<<"抽到 "<<suijicyb1 <<"个炽焰币"<<endl
<<"抽到 "<<suijicyb2 <<"个炽焰币"<<endl
<<"抽到 "<<suijicyb3 <<"个炽焰币"<<endl
<<"抽到 "<<suijiwqsp1 <<"个武器碎片"<<endl
<<"抽到 "<<suijiwqsp2 <<"个武器碎片"<<endl
<<"抽到 "<<suijiwqsp3 <<"个武器碎片"<<endl;
BD=rand()%200;
if(BD==baodi)
{
cout<<"\n\n\n";
cout<<" 【大奖】"<<endl
<<"————————————————————————————————————————————————————————"<<endl;
cout<<" 恭喜你,抽到 【炽焰战甲】"<<endl;
cyzj=1;
Sleep(1500);
qy();
}
sjsjb+=suijijb1+suijijb2+suijijb3+suijijb4;
cyb+=suijicyb1+suijicyb2+suijicyb3;
wqsp+=suijiwqsp1+suijiwqsp2+suijiwqsp3;
system("pause");
qy();
}
if(qysr=="4")
{
system("cls");
cout<<" \n\n\n\n\n请输入你下要兑换的数量( 60 钻石兑换 6 个)"<<endl;
int userNumber; // 用来存储用户输入的数字
// 提示用户输入
cout << "请输入需要兑换多少祈愿币(写整数): ";
// 读取用户输入
cin >> userNumber;
// 计算结果
int result = userNumber * 10;
// 输出结果
cout << "需要钻石数量:" << userNumber << " × 10 = " << result << endl;
if(result>zuanshi)
{
cout<<"钻石不足,兑换失败!"<<endl;
Sleep(1500);
qy();
}
zuanshi-=result;
qyb+=userNumber;
cout<<"兑换成功!"<<endl;
Sleep(1500);
system("cls");
cout<<"已成功兑换 "<<userNumber<<" 个祈愿币"<<endl;
Sleep(1500);
qy();
}
}
// 显示当前概率设置
//std::cout << "\n(当前中奖率:" << WIN_RATE * 100 << "%)" << std::endl;
void gwck()//怪物查看
{
color(62);
cout<<"1.退出 2.前往战斗 \n";
cout<<"------------------------------------------------------------------------\n";
cout<<"【1级怪物】牛头怪兽 头脑简单,傻乎乎的没有攻击性 |属性:攻击1,生命10 \n";
if(ntgs==0)
cout<<"【2级怪物】 请先打败2级之前的怪物才能查看3级怪物! \n";
else
cout<<"【2级怪物】格伦巨石 Ta是个没有感情的石头,伤害较高.|属性:攻击6,生命12 \n";
if(gljs==0 || ntgs==0)
cout<<"【3级怪物】 请先打败3级之前的怪物才能查看3级怪物! \n";
else
cout<<"【3级怪物】泽西恶魔 Ta是个噩魔!! |属性:攻击27,生命60,防御25 \n";
if(gljs==0 || ntgs==0 || zxem==0)
cout<<"【4级怪物】 请先打败4级之前的怪物才能查看4级怪物! \n";
else
cout<<"【4级怪物】蛇神王 Ta是一条毒蛇王!! |属性:攻击32,生命50,防御26 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0)
cout<<"【5级人物】 请先打败5级之前的怪物才能查看5级人物! \n";
else
cout<<"【5级人物】黑玫瑰 她心狠手辣,什么事情都干都出 |属性:攻击35,生命80,防御21 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0)
cout<<"【6级人物】 请先打败6级之前的怪物才能查看6级人物! \n";
else
cout<<"【6级人物】琥珀 他天生就喜欢玩火。 |属性:攻击50,生命90,防御25 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0)
cout<<"【7级人物】 请先打败7级之前的怪物才能查看7级人物! \n";
else
cout<<"【7级人物】暗夜女神 极乐园的手下成员之一 |属性:攻击65,生命110,防御30 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0)
cout<<"【8级人物】 请先打败8级之前的怪物才能查看8级人物! \n";
else
cout<<"【8级人物】王戎 极乐园的手下成员之一 |属性:攻击82,生命70,防御25 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0)
cout<<"【9级人物】 请先打败9级之前的怪物才能查看9级人物! \n";
else
cout<<"【9级人物】王戎的未婚妻 身手敏捷,比男人还厉害 |属性:攻击55,生命110,防御20 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0)
cout<<"【10级怪物】 请先打败10级之前的怪物才能查看10级怪物! \n";
else
cout<<"【10级怪物】嗜血狂狮 凶猛无比,匿名组织的宠物之一 |属性:攻击80,生命100,防御20 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0 || ymbh==0)
cout<<"【11级怪物】 请先打败11级之前的怪物才能查看11级怪物! \n";
else
cout<<"【11级怪物】幽冥白虎 凶猛无比,匿名组织的爱宠 |属性:攻击120,生命190,防御50 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0 || ymbh==0 || bylyw==0)
cout<<"【12级怪物】 请先打败12级之前的怪物才能查看12级怪物! \n";
else
cout<<"【12级怪物】八翼雷鹰王 匿名组织小队长,从没露过面 |属性:攻击140,生命230,防御60 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0 || ymbh==0 || bylyw==0 || jdbh==0)
cout<<"【13级怪物】 请先打败13级之前的怪物才能查看13级怪物! \n";
else
cout<<"【13级怪物】极地冰狐 曾是人类,但有实验变成了狐狸 |属性:攻击150,生命260,防御65 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0 || ymbh==0 || bylyw==0 || jdbh==0 || nmzzs==0)
cout<<"【14级人类】 请先打败14级之前的怪物才能查看14级人类! \n";
else
cout<<"【14级人类】匿名组织S 幕后主手之一 |属性:攻击190,生命300,防御70 \n";
if(gljs==0 || ntgs==0 || zxem==0 || hmg==0 || hp==0 || ayns==0 || wr==0 || wrdwhq==0 || sxks==0 || ymbh==0 || bylyw==0 || jdbh==0 || nmzzs==0 || nmzzsss==0)
cout<<"【15级人类】 请先打败14级之前的怪物才能查看14级人类! \n";
else
cout<<"【15级人类】匿名组织SSS 最后的幕后主手 |属性:攻击220,生命320,防御90 \n";
string gwcktc;
cin>>gwcktc;
if(gwcktc=="1")
{
color(60);
Sleep(700);
system("cls");
zd();
}
if(gwcktc=="2")
{
color(60);
Sleep(700);
system("cls");
kszd();
}
if(gwcktc!="2"&&gwcktc!="1")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
color(30);
gwck();
}
if(gwcktc!="1" && gwcktc!="2")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
gwck();
}
}
void kszd()//开始战斗
{
color(62);
if(sxsm==0||sxsm<0)
{
Sleep(2000);
system("cls");
cout<<"你没血量了!你可以购买生命药水(血量不足又没有钱可以去开始界面的领取生命中领取一些)\n";
Sleep(2000);
system("cls");
zd();
}
cout<<"输入怪物等级[1到15级]\n";
cout<<">>>";
string gwdjzd;
cin>>gwdjzd;
string gwmz;
int gwsm=0,gwgj=0,gwfy=0;
if(gwdjzd!="1"&&gwdjzd!="2"&&gwdjzd!="3"&&gwdjzd!="4"&&gwdjzd!="5"&&gwdjzd!="6"&&gwdjzd!="7"&&gwdjzd!="8"&&gwdjzd!="9"&&gwdjzd!="10"&&gwdjzd!="11"&&gwdjzd!="12"&&gwdjzd!="13"&&gwdjzd!="14"&&gwdjzd!="15")
{
cout<<"别乱输!";
Sleep(1000);
system("cls");
kszd();
}
if(gwdjzd=="1")
{
gwmz="牛头怪兽";
gwsm+=5;
gwgj+=1;
}
if(gwdjzd=="2")
{
gwmz="格伦巨石";
gwsm+=10;
gwgj+=3;
}
if(gwdjzd=="3")
{
gwmz="泽西恶魔";
gwsm+=60;
gwgj+=27;
gwfy+=25;
}
if(gwdjzd=="4")
{
gwmz="蛇神王";
gwsm+=50;
gwgj+=32;
gwfy+=26;
}
if(gwdjzd=="5")
{
gwmz="黑玫瑰";
gwsm+=80;
gwgj+=35;
gwfy+=21;
}
if(gwdjzd=="6")
{
gwmz="琥珀";
gwsm+=90;
gwgj+=50;
gwfy+=25;
}
if(gwdjzd=="7")
{
gwmz="暗夜女神";
gwsm+=110;
gwgj+=65;
gwfy+=30;
}
if(gwdjzd=="8")
{
gwmz="王戎";
gwsm+=70;
gwgj+=82;
gwfy+=25;
}
if(gwdjzd=="9")
{
gwmz="王戎的未婚妻";
gwsm+=130;
gwgj+=75;
gwfy+=40;
}
if(gwdjzd=="10")
{
gwmz="嗜血狂狮";
gwsm+=120;
gwgj+=100;
gwfy+=40;
}
if(gwdjzd=="11")
{
gwmz="幽冥白虎";
gwsm+=190;
gwgj+=120;
gwfy+=50;
}
if(gwdjzd=="12")
{
gwmz="八翼雷鹰王";
gwsm+=220;
gwgj+=140;
gwfy+=40;
}
if(gwdjzd=="13")
{
gwmz="极地冰狐";
gwsm+=260;
gwgj+=150;
gwfy+=65;
}
if(gwdjzd=="14")
{
gwmz="匿名组织S";
gwsm+=300;
gwgj+=190;
gwfy+=70;
}
if(gwdjzd=="15")
{
gwmz="匿名组织SSS";
gwsm+=320;
gwgj+=220;
gwfy+=90;
}
for(int i=1;i<=9999;i++)
{
if(gwsm==0||gwsm<0)
{
if(gwdjzd=="1")ntgs++,gwzhi=1;
if(gwdjzd=="2")gljs++;
if(gwdjzd=="3")zxem++;
if(gwdjzd=="4")ssw++;
if(gwdjzd=="5")hmg++;
if(gwdjzd=="6")hp++;
if(gwdjzd=="7")ayns++;
if(gwdjzd=="8")wr++;
if(gwdjzd=="9")wrdwhq++;
if(gwdjzd=="10")sxks++;
if(gwdjzd=="11")ymbh++;
if(gwdjzd=="12")bylyw++;
if(gwdjzd=="13")jdbh++;
if(gwdjzd=="14")nmzzs++;
if(gwdjzd=="15")nmzzsss++;
Sleep(2000);
system("cls");
huosheng();
}
cout<<"_____________________________________________________\n";
cout<<"*&&PK开始!你与"<<gwmz<<"战斗,现在是第"<<i<<"回合&&*\n";
cout<<"-----------------------------------------------------\n";
cout<<"怪物攻击力:"<<gwgj<<" 你的攻击力:"<<zhujuegongji<<endl;
cout<<"怪物生命:"<<gwsm<<" 你的生命:"<<sxsm<<endl;
cout<<"怪物防御:"<<gwfy<<" 你的防御:"<<zhujuefangyv<<endl;
cout<<"=====================================================\n";
cout<<"1.战斗 2.逃跑 3.使用道具\n";
cout<<"输入>>>";
string zhandouandtaopao;
cin>>zhandouandtaopao;
if(zhandouandtaopao=="1")
{
srand((int)time(0));
for (int i=0;i<2;i++)
{
baoji+=rand()%3;
}
for (int i=0;i<2;i++)
{
fangyv+=rand()%3;
}
for (int i=0;i<2;i++)
{
fangyv2+=rand()%3;
}
system("cls");
if(fangyv>fangyvzhi)
{
if(zhujuefangyv==0||fangyv==0)
{
cout<<"\n\t虽然你使用了防御,但是你防御了怪物的0点伤害!\n";
}
if(zhujuefangyv!=0&&fangyv!=0)
{
cout<<"\n\t你使用了防御!砰的一声怪物的攻击被你防御了!\n";
}
if(zhujuefangyv<gwgj&&zhujuefangyv!=0)
{
sxsm+=zhujuefangyv;
}
if(zhujuefangyv>gwgj&&zhujuefangyv!=0)
{
sxsm+=gwgj;
}
fangyv-=2;
}
if(fangyv2>=fangyv2zhi)
{
cout<<"\n\t怪物使用了防御!怪物赶紧躲掉了你的攻击,防御了"<<gwfy<<"点血\n";
gwsm+=gwfy;
fangyv2-=4;
}
if(baoji>=baojizhi)
{
cout<<"\n\t怪物使用了重击!砰的一声巨响你被打掉了"<<baoji<<"点血\n";
sxsm-=baoji;
baoji-=4;
}
gwsm-=zhujuegongji;
sxsm-=gwgj;
cout<<"\n你们打的不可开交,你们越打越累,就暂停休息了...\n";
cout<<"其中,你的生命剩下:"<<sxsm<<"点"<<endl;
cout<<"怪物生命剩下:"<<gwsm<<"点"<<endl<<endl<<endl;
system("pause");
baojizhi+=2;
fangyvzhi+=2;
fangyv2zhi+=2;
}
if(zhandouandtaopao=="2")
{
Sleep(700);
system("cls");
zd();
}
if(zhandouandtaopao=="3")
{
string sr;
cout<<"0.返回\n";
cout<<"111.力量药水\n";
cout<<"输入>>>";
cin>>sr;
if(sr=="0")
{
system("pause");
}
if(sr=="111")
{
if(llys>0)
{
gwsm-=200;
llys-=1;
cout<<"你使用了力量药水!怪物一下子扣除了200点生命~\n";
}
else
{
cout<<"力量药水数量不够了哦~可前往黑市购买喔\n";
}
system("pause");
}
}
if(zhandouandtaopao!="1"&&zhandouandtaopao!="2"&&zhandouandtaopao!="3")
{
cout<<"别乱输!\n";
i=i-1;
}
if(sxsm==0||sxsm<0)
{
Sleep(2000);
system("cls");
cout<<"你输了!你可以尝试升级装备和恢复血量!(血量不足又没有钱可以去开始界面的领取生命中领取一些)\n";
Sleep(2000);
system("cls");
zd();
}
}
}
void huosheng()//获胜
{
color(62);
if(sxsm==0||sxsm<0)
{
cout<<"你输了!你可以尝试升级装备和恢复血量!(血量不足又没有钱可以去开始界面的领取生命中领取一些)\n";
Sleep(2000);
system("cls");
zd();
}
srand((int)time(0));
for (int i=0;i<3;i++)
{
sjsjb2+=rand()%50;
}
sjsjb+=sjsjb2;
cout<<"\n\n\n\n\n\n";
cout<<"===========================================================\n";
cout<<"恭喜你获胜了!";
cout<<"此次你的生命还有"<<sxsm;
cout<<"点,你获得了"<<sjsjb2<<"金币!\n";
cout<<"你总共有"<<sjsjb<<"金币!\n";
cout<<"===========================================================\n";
cout<<"1.返回 2.继续战斗\n";
string huoshengsr;
cin>>huoshengsr;
sjsjb2=0;
if(huoshengsr=="1")
{
Sleep(700);
system("cls");
zd();
}
if(huoshengsr=="2")
{
Sleep(700);
system("cls");
kszd();
}
if(huoshengsr!="1"&&huoshengsr!="2")
{
cout<<"别乱输!\n";
}
}
void zt()//状态
{
color(61);
cout<<"==================================\n";
cout<<" 我的状态\n";
cout<<"==================================\n";
cout<<"总生命:"<<zhujueshengming<<"\n";
cout<<"现在拥有的生命:"<<sxsm<<"(血量不足又没有钱可以去开始界面的领取生命中领取一些)\n";
cout<<"防御:"<<zhujuefangyv<<"[有几率防御敌人的攻击]\n";
cout<<"攻击:"<<zhujuegongji<<"\n";
cout<<"==================================\n\n\n\n\n\n\n\n\n\n\n";
system("pause");
ks();
}
void sd()
{
system("cls");
color(61);
string sdsr;
cout<<" **************欢迎进入商店**************"<<endl
<<" |> 1、初级商店 <|"<<endl
<<" ----------------------------------------"<<endl
<<" |> 2、中级商店 <|"<<endl
<<" ----------------------------------------"<<endl
<<" |> 3、回收商店 <|"<<endl
<<" ----------------------------------------"<<endl
<<" |> 4、限时商城 <|"<<endl
<<" ----------------------------------------"<<endl
<<" |> 0、 退 出 <|"<<endl
<<" ----------------------------------------"<<endl
<<" 请输入>>>";
cin>>sdsr;
if(sdsr=="1"){system("cls");sd1();}
if(sdsr=="2"){system("cls");sd2();}
if(sdsr=="3"){system("cls");sd3();}
if(sdsr=="0"){system("cls");ks();}
if(sdsr=="4"){system("cls");xssc();}
if(sdsr!="1"&&sdsr!="2"&&sdsr!="0"&&sdsr!="3"&&sdsr!="4"){cout<<"输入错误,请重新输入……";Sleep(1500);system("cls");sd();}
}
void xssc()
{
}
void sd1()//商店
{
color(61);
if(zidongcundang==1)bccd();
string mdx;
cout<<"============================================================\n";
cout<<" 初级商店\n";
cout<<"你好啊,欢迎来到商店! 211.退出\n";
cout<<"你需要些什么呢? 我的钱包:"<<sjsjb<<"元\n";
cout<<"============================================================\n";
if(hst==0)
cout<<"1.黑手套 *39元 |生命加5点\n";
if(hst==1)
cout<<"1.黑手套 已卖光\n";
if(pldhyf==0)
cout<<"2.破了的黑衣服 *109元|生命加10点\n";
if(pldhyf==1)
cout<<"2.破了的黑衣服 已卖光\n";
if(cqdhkz==0)
cout<<"3.残缺的黑裤子 *90元 |防御加9点\n";
if(cqdhkz==1)
cout<<"3.残缺的黑裤子 已卖光\n";
if(hx==0)
cout<<"4.黑鞋 *50元 |生命加5点\n";
if(hx==1)
cout<<"4.黑鞋 已卖光\n";
if(hr==0)
cout<<"5.黑刃 *200元|攻击加20\n";
if(hr==1)
cout<<"5.黑刃 已卖光\n";
cout<<"6.生命药水 *30元 |生命恢复加满\n";
cout<<"输入>>>";
cin>>mdx;
if(mdx=="1")
{
if(hst==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb>=39)
{
sjsjb-=39,htz++,hst++,sdjj++,putong++;
cout<<"\n成功够买黑手套!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(1000);
system("cls");
sd1();
}
else
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="2")
{
if(pldhyf==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb>=109)
{
sjsjb-=109,htz++,pldhyf++,sdjj++,putong++;
cout<<"\n成功够买破了的黑衣服!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(1000);
system("cls");
sd1();
}
else
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="3")
{
if(cqdhkz==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb>=90)
{
sjsjb-=90,htz++,cqdhkz++,sdjj++,putong++;
cout<<"\n成功够买残缺的黑裤子!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(1000);
system("cls");
sd1();
}
else
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="4")
{
if(hx==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb>=50)
{
sjsjb-=50,htz++,hx++,sdjj++,putong++;
cout<<"\n成功够买黑鞋!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(1000);
system("cls");
sd1();
}
else
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="5")
{
if(hr==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb>=200)
{
if(biaoji<=0)htz++;
sjsjb-=200,hr++,sdjj++,biaoji++,putong++;
cout<<"\n成功够买黑刃!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(1000);
system("cls");
sd1();
}
if(sjsjb<200)
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="6")
{
if(sjsjb>=10)
{
sjsjb-=30,sdjj++;
sxsm=(zhujueshengming-sxsm)+sxsm;
cout<<"\n成功够买生命药水!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
cout<<"生命已经自动加满了!!\n";
Sleep(1000);
system("cls");
sd1();
}
else
{
cout<<"您钱不够,下次再来吧!\n";
Sleep(2000);system("cls");
ks();
}
}
if(mdx=="211")
{
Sleep(700);
system("cls");
sd();
}
if(mdx!="211"&&mdx!="1"&&mdx!="2"&&mdx!="3"&&mdx!="4"&&mdx!="5"&&mdx!="6")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
sd1();
}
}
void sd2()//商店2
{
string mdx2;
color(61);
if(zidongcundang==1)bccd();
cout<<"============================================================\n";
cout<<" 中级商店\n";
cout<<"你好啊,欢迎来到商店! 211.退出\n";
cout<<"你需要些什么呢? 我的钱包:"<<sjsjb<<"元\n";
cout<<"============================================================\n";
if(houst==0)
cout<<"1.厚手套 *199元 | 生命加10点 \n";
if(houst==1)
cout<<"1.厚手套 已卖光\n";
if(dmy==0)
cout<<"2.大棉衣 *250元 | 生命加20点 \n";
if(dmy==1)
cout<<"2.大棉衣 已卖光\n";
if(ckz==0)
cout<<"3.长裤子 *240元 | 防御加17点 \n";
if(ckz==1)
cout<<"3.长裤子 已卖光\n";
if(ptxz==0)
cout<<"4.普通鞋子 *210元 | 生命加11点 \n";
if(ptxz==1)
cout<<"4.普通鞋子 已卖光\n";
if(gj==0)
cout<<"5.干将 *400元 | 攻击加30点 \n";
if(gj==1)
cout<<"5.干将 已卖光 \n";
if(llyscs<=5)
cout<<"6.力量药水 *500元 | 可对Boss造成200点伤害(限购5瓶)还剩"<<5-llyscs<<"瓶 \n";//
if(llyscs>5)
cout<<"6.力量药水 已卖光\n";
if(wjzd==0)
cout<<"7.无尽战刀 *4500元 | 攻击力加155点"<<endl;
if(wjzd==1)
cout<<"7.无尽战刀 已卖光"<<endl;
if(lmd==0)
cout<<"8.猎魔刀 *500元 | 攻击力加125点"<<endl;
if(lmd==1)
cout<<"8.猎魔刀 已卖光"<<endl;
if(msr==0)
cout<<"9.魔神刃 *700元 | 攻击力加120点,防御力增加20点"<<endl;
if(msr==1)
cout<<"9.魔神刃 已卖光"<<endl;
cout<<"输入>>>";
cin>>mdx2;
if(mdx2=="1")
{
if(houst==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<199)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
sjsjb-=199,houst++,mtz++,yongzhe++;
cout<<"\n成功够买厚手套!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="2")
{
if(dmy==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<250)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
sjsjb-=250,dmy++,mtz++,yongzhe++;
cout<<"\n成功够买大棉衣!您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="3")
{
if(ckz==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<240)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
sjsjb-=240,ckz++,mtz++,yongzhe++;
cout<<"\n成功够买长裤子您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="4")
{
if(ptxz==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<210)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
sjsjb-=210,ptxz++,mtz++,yongzhe++;
cout<<"\n成功够买普通鞋子您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="5")
{
if(sjsjb<400)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
if(biaoji2<=0)mtz++;
sjsjb-=400,gj++,biaoji2++,yongzhe++;
cout<<"\n成功够买干将您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="6")
{
if(sjsjb<250)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
ks();
}
if(llyscs>=5)
{
cout<<"购买次数已上限~\n";
Sleep(700);system("cls");
ks();
}
sjsjb-=250,llys++,llyscs++,msboos++,chuanshuo++;
cout<<"\n成功够买力量药水您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="7")
{
if(wjzd==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<4500)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
sd2();
}
sjsjb-=4500,wjzd++,chuanshuo++;
cout<<"\n成功够买无尽战刀您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="8")
{
if(lmd==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<500)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
sd2();
}
sjsjb-=500,lmd++,chuanshuo++;
cout<<"\n成功够买猎魔刀您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="9")
{
if(msr==1)
{
cout<<"该商品已卖光!请购买别的商品!\n";
Sleep(1000);
system("cls");
sd2();
}
if(sjsjb<700)
{
cout<<"您钱不够\n";
Sleep(700);system("cls");
sd2();
}
sjsjb-=700,msr++,chuanshuo++;
cout<<"\n成功够买魔神刃您还剩下"<<sjsjb<<"元,欢迎再买!\n";
Sleep(700);system("cls");
sd2();
}
if(mdx2=="211")
{
system("cls");
sd();
}
if(mdx2!="211"&&mdx2!="1"&&mdx2!="2"&&mdx2!="3"&&mdx2!="4"&&mdx2!="5"&&mdx2!="6"&&mdx2!="7"&&mdx2!="8"&&mdx2!="9")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
sd2();
}
}
void sd3(){
system("cls");
color(61);
if(zidongcundang==1)bccd();
string sd3sr;
cout<<"============================================================\n";
cout<<" 回收商店\n";
cout<<"你好啊,欢迎来到回收商店! 211.退出\n";
cout<<"你需要卖出什么呢?(除生命药水、力量药水外,其他商店购买的物品均可以回收) 我的钱包:"<<sjsjb<<"元\n";
cout<<"============================================================\n";
if(hst>0)
{
cout<<"1、黑手套 原价:39元 卖出价:29元"<<endl;
}
if(hst<=0)
{
cout<<"1、黑手套 原价:39元 卖出价:29元 您未拥有"<<endl;
}
if(pldhyf>0)
{
cout<<"2、破了的黑衣服 原价:109元 卖出价:99元"<<endl;
}
if(pldhyf<=0)
{
cout<<"2、破了的黑衣服 原价:109元 卖出价:99元 您未拥有"<<endl;
}
if(cqdhkz>0)
{
cout<<"3、残缺的黑裤子 原价:90元 卖出价:80元"<<endl;
}
if(cqdhkz<=0)
{
cout<<"3、破了的黑衣服 原价:109元 卖出价:99元 您未拥有"<<endl;
}
if(hx>0)
{
cout<<"4、黑鞋 原价:90元 卖出价:80元"<<endl;
}
if(hx<=0)
{
cout<<"4、黑鞋 原价:90元 卖出价:80元 您未拥有"<<endl;
}
if(hr>0)
{
cout<<"5、黑刃 原价:200元 卖出价:190元"<<endl;
}
if(hr<=0)
{
cout<<"5、黑刃 原价:200元 卖出价:190元 您未拥有"<<endl;
}
if(houst>0)
{
cout<<"6、厚手套 原价:199元 卖出价:189元"<<endl;
}
if(houst<=0)
{
cout<<"6、厚手套 原价:199元 卖出价:189元 您未拥有"<<endl;
}
if(dmy>0)
{
cout<<"7、大棉衣 原价:250元 卖出价:240元"<<endl;
}
if(dmy<=0)
{
cout<<"7、大棉衣 原价:250元 卖出价:240元 您未拥有"<<endl;
}
if(ckz>0)
{
cout<<"8、长裤子 原价:240元 卖出价:230元"<<endl;
}
if(ckz<=0)
{
cout<<"8、长裤子 原价:240元 卖出价:230元 您未拥有"<<endl;
}
if(ptxz>0)
{
cout<<"9、普通鞋子 原价:210元 卖出价:200元"<<endl;
}
if(ptxz<=0)
{
cout<<"9、普通鞋子 原价:210元 卖出价:200元 您未拥有"<<endl;
}
if(gj>0)
{
cout<<"10、干将 原价:400元 卖出价:390元"<<endl;
}
if(gj<=0)
{
cout<<"10、干将 原价:400元 卖出价:390元 您未拥有"<<endl;
}
if(wjzd>0)
{
cout<<"11、无尽战刀 原价:4500元 卖出价:4490元"<<endl;
}
if(wjzd<=0)
{
cout<<"11、无尽战刀 原价:4500元 卖出价:4490元 您未拥有"<<endl;
}
if(lmd>0)
{
cout<<"12、猎魔刀 原价:500元 卖出价:490元"<<endl;
}
if(lmd<=0)
{
cout<<"12、猎魔刀 原价:500元 卖出价:490元 您未拥有"<<endl;
}
if(msr>0)
{
cout<<"13、魔神刃 原价:700元 卖出价:690元"<<endl;
}
if(msr<=0)
{
cout<<"13、魔神刃 原价:700元 卖出价:690元 您未拥有"<<endl;
}
string mdx3;
cin>>mdx3;
if(mdx3=="1")
{
if(hst>0)
{
cout<<"是否卖出黑手套?"<<endl;
cout<<"1、是 2、否"<<endl;
string m1;
cin>>m1;
if(m1=="1")
{
sjsjb+=29;
hst-=1,putong--;
cout<<"黑手套已卖出!";
Sleep(1500);
sd3();
}
if(m1=="2")
{
sd3();
}
if(m1!="1"&&m1!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(hst<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="2")
{
if(pldhyf>0)
{
cout<<"是否卖出破了的黑衣服?"<<endl;
cout<<"1、是 2、否"<<endl;
string m2;
cin>>m2;
if(m2=="1")
{
sjsjb+=99;
pldhyf-=1,putong--;
cout<<"破了的黑衣服已卖出!";
Sleep(1500);
sd3();
}
if(m2=="2")
{
sd3();
}
if(m2!="1"&&m2!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(pldhyf<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="3")
{
if(cqdhkz>0)
{
cout<<"是否卖出残缺的黑裤子?"<<endl;
cout<<"1、是 2、否"<<endl;
string m3;
cin>>m3;
if(m3=="1")
{
sjsjb+=80;
cqdhkz-=1,putong--;
cout<<"残缺的黑裤子已卖出!";
Sleep(1500);
sd3();
}
if(m3=="2")
{
sd3();
}
if(m3!="1"&&m3!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(cqdhkz<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="4")
{
if(hx>0)
{
cout<<"是否卖出黑鞋?"<<endl;
cout<<"1、是 2、否"<<endl;
string m4;
cin>>m4;
if(m4=="1")
{
sjsjb+=80;
hx-=1,putong--;
cout<<"黑鞋已卖出!";
Sleep(1500);
sd3();
}
if(m4=="2")
{
sd3();
}
if(m4!="1"&&m4!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(hx<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="5")
{
if(hr>0)
{
cout<<"是否卖出黑刃?"<<endl;
cout<<"1、是 2、否"<<endl;
string m5;
cin>>m5;
if(m5=="1")
{
sjsjb+=190;
hr-=1,putong--;
cout<<"黑刃已卖出!";
Sleep(1500);
sd3();
}
if(m5=="2")
{
sd3();
}
if(m5!="1"&&m5!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(hr<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="6")
{
if(houst>0)
{
cout<<"是否卖出厚手套?"<<endl;
cout<<"1、是 2、否"<<endl;
string m7;
cin>>m7;
if(m7=="1")
{
sjsjb+=189;
hst-=1,yongzhe--;
cout<<"厚手套已卖出!";
Sleep(1500);
sd3();
}
if(m7=="2")
{
sd3();
}
if(m7!="1"&&m7!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(houst<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="7")
{
if(dmy>0)
{
cout<<"是否卖出大棉衣?"<<endl;
cout<<"1、是 2、否"<<endl;
string m8;
cin>>m8;
if(m8=="1")
{
sjsjb+=240;
dmy-=1,putong--;
cout<<"大棉衣已卖出!";
Sleep(1500);
sd3();
}
if(m8=="2")
{
sd3();
}
if(m8!="1"&&m8!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(dmy<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="8")
{
if(ckz>0)
{
cout<<"是否卖出长裤子?"<<endl;
cout<<"1、是 2、否"<<endl;
string m9;
cin>>m9;
if(m9=="1")
{
sjsjb+=200;
ckz-=1,yongzhe--;
cout<<"长裤子已卖出!";
Sleep(1500);
sd3();
}
if(m9=="2")
{
sd3();
}
if(m9!="1"&&m9!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(ckz<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="9")
{
if(ptxz>0)
{
cout<<"是否卖出普通鞋子?"<<endl;
cout<<"1、是 2、否"<<endl;
string m10;
cin>>m10;
if(m10=="1")
{
sjsjb+=200;
ptxz-=1,yongzhe--;
cout<<"普通鞋子已卖出!";
Sleep(1500);
sd3();
}
if(m10=="2")
{
sd3();
}
if(m10!="1"&&m10!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(ptxz<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="10")
{
if(gj>0)
{
cout<<"是否卖出干将?"<<endl;
cout<<"1、是 2、否"<<endl;
string m11;
cin>>m11;
if(m11=="1")
{
sjsjb+=390;
gj-=1,yongzhe--;
cout<<"干将已卖出!";
Sleep(1500);
sd3();
}
if(m11=="2")
{
sd3();
}
if(m11!="1"&&m11!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(gj<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="11")
{
if(wjzd>0)
{
cout<<"是否卖出无尽战刀?"<<endl;
cout<<"1、是 2、否"<<endl;
string m12;
cin>>m12;
if(m12=="1")
{
sjsjb+=4490;
wjzd-=1,chuanshuo--;
cout<<"无尽战刀已卖出!";
Sleep(1500);
sd3();
}
if(m12=="2")
{
sd3();
}
if(m12!="1"&&m12!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
}
if(mdx3=="12")
{
if(lmd>0)
{
cout<<"是否卖出猎魔刀?"<<endl;
cout<<"1、是 2、否"<<endl;
string m12;
cin>>m12;
if(m12=="1")
{
sjsjb+=490;
lmd-=1,chuanshuo--;
cout<<"猎魔刀已卖出!";
Sleep(1500);
sd3();
}
if(m12=="2")
{
sd3();
}
if(m12!="1"&&m12!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
if(lmd<=0)
{
cout<<"您未拥有此类商品!";
Sleep(1500);
sd3();
}
}
if(mdx3=="13")
{
if(wjzd>0)
{
cout<<"是否卖出魔神刃?"<<endl;
cout<<"1、是 2、否"<<endl;
string m12;
cin>>m12;
if(m12=="1")
{
sjsjb+=690;
msr-=1,chuanshuo--;
cout<<"魔神刃已卖出!";
Sleep(1500);
sd3();
}
if(m12=="2")
{
sd3();
}
if(m12!="1"&&m12!="2")
{
cout<<"无效输入!"<<endl;
Sleep(1500);
sd3();
}
}
}
if(mdx3=="211")
{
sd();
}
if(mdx3!="1"&&mdx3!="2"&&mdx3!="3"&&mdx3!="4"&&mdx3!="5"&&mdx3!="6"&&mdx3!="7"&&mdx3!="8"&&mdx3!="9"&&mdx3!="10"&&mdx3!="11"&&mdx3!="12"&&mdx3!="13"&&mdx3!="211")
{
cout<<"输入错误,请重新输入!";
Sleep(1500);
sd3();
}
}
void cjzs()
{
system("cls");
cout<<endl<<endl<<endl<<endl<<endl
<<" 装 备 成 就"<<endl
<<" ——————————————————————————————————————————————————————————————————————————————————————"<<endl
<<" 按【0】退出"<<endl
<<" * * * * "<<endl
<<" * * * * * * * * "<<endl
<<" * * * * * * * * "<<endl
<<" * * * * * * * * "<<endl
<<" * * * * * * * * "<<endl
<<" * * * * * * * * "<<endl
<<" * * * * "<<endl
<<" 1、普通:"<<putong<<" / "<<ptzs <<" 2、勇者:"<<yongzhe<<" / "<<yzzs<<" 3、史诗:"<<shishi<<" / "<<sszs<<" 4、传说:"<<chuanshuo<<" / "<<cszs<<endl
<<endl<<endl<<endl
<<" 5、总装备数:"<<wjxyzb<<" / "<<zzb<<endl;
string cjzssr;
cin>>cjzssr;
if(cjzssr!="0"&&cjzssr!="1"&&cjzssr!="2"&&cjzssr!="3"&&cjzssr!="4")
{
cout<<"输入错误,请重新输入!";
Sleep(1500);
cjzs();
}
if(cjzssr=="0"){
sd();
}
if(cjzssr=="1")
{
system("cls");
cout<<endl<<endl<<endl<<endl<<endl
<<" 普通"<<endl
<<" "<<putong<<" / "<<ptzs<<endl
<<"——————————————————————————————————————————————————————————————————————————"<<endl;
if(hst==1)
cout<<" 黑手套 *已拥有\n";
if(pldhyf==1)
cout<<" 破了的黑衣服 *已拥有\n";
if(cqdhkz==1)
cout<<" 残缺的黑裤子 *已拥有\n";
if(hx==1)
cout<<" 黑鞋 *已拥有 \n";
if(hr==1)
cout<<" 黑刃 *已拥有\n";
if(ptjc==1)
cout<<" 普通军刺 *已拥有\n\n\n\n";
if(hst==0)
cout<<" 黑手套 *未拥有\n";
if(pldhyf==0)
cout<<" 破了的黑衣服 *未拥有\n";
if(cqdhkz==0)
cout<<" 残缺的黑裤子 *未拥有\n";
if(hx==0)
cout<<" 黑鞋 *未拥有 \n";
if(hr==0)
cout<<" 黑刃 *未拥有\n";
if(ptjc==0)
cout<<" 普通军刺 *未拥有\n\n\n\n\n\n\n\n";
system("pause");
cjzs();
}
if(cjzssr=="2")
{
system("cls");
cout<<endl<<endl<<endl<<endl<<endl
<<" 勇者"<<endl
<<" "<<yongzhe<<" / "<<yzzs<<endl
<<"——————————————————————————————————————————————————————————————————————————"<<endl;
if(houst==1)
cout<<" 厚手套 已拥有\n";
if(dmy==1)
cout<<" 大棉衣 已拥有\n";
if(ckz==1)
cout<<" 长裤子 已拥有\n";
if(ptxz==1)
cout<<" 普通鞋子 已拥有\n";
if(gj==1)
cout<<" 干将 已拥有\n";
if(tc==1)
cout<<" 铁锤 已拥有\n\n\n\n";
if(houst==0)
cout<<" 厚手套 未拥有\n";
if(dmy==0)
cout<<" 大棉衣 未拥有\n";
if(ckz==0)
cout<<" 长裤子 未拥有\n";
if(ptxz==0)
cout<<" 普通鞋子 未拥有\n";
if(gj==0)
cout<<" 干将 未拥有\n";
if(tc==0)
cout<<" 铁锤 未拥有\n\n\n\n\n\n\n\n";
system("pause");
cjzs();
}
if(cjzssr=="3")
{
system("cls");
cout<<endl<<endl<<endl<<endl<<endl
<<" 史诗"<<endl
<<" "<<shishi<<" / "<<sszs<<endl
<<"——————————————————————————————————————————————————————————————————————————"<<endl;
if(tsc==1)
cout<<" 天神锤 已拥有\n\n\n\n";
if(tsc==0)
cout<<" 天神锤 未拥有\n\n\n\n\n\n\n\n";
system("pause");
cjzs();
}
if(cjzssr=="4")
{
system("cls");
cout<<endl<<endl<<endl<<endl<<endl
<<" 传说"<<endl
<<" "<<chuanshuo<<" / "<<cszs<<endl
<<"——————————————————————————————————————————————————————————————————————————"<<endl;
if(tlb==1)
cout<<" 螳螂臂 已拥有\n";
if(wjzd==1)
cout<<" 无尽战刀 已拥有\n";
if(lmd==1)
cout<<" 猎魔刀 已拥有\n";
if(msr==1)
cout<<" 魔神刃 已拥有\n\n\n\n";
if(tlb==0)
cout<<" 螳螂臂 未拥有\n";
if(wjzd==0)
cout<<" 无尽战刀 未拥有\n";
if(lmd==0)
cout<<" 猎魔刀 未拥有\n";
if(msr==0)
cout<<" 魔神刃 未拥有\n\n\n\n\n\n\n\n";
system("pause");
cjzs();
}
}
void ht()//后台
{
using namespace std;
color(62);
if(htmmpd==1)
{
system("cls");
kg();
}
if(htmmcs!=5&&htmmcs!=4&&htmmcs!=3&&htmmcs!=2&&htmmcs!=1)
{
cout<<"您的次数用光!\n";
Sleep(1000);
system("cls");
ks();
}
cout<<"=====*【后台管理 简称开挂 测试Bug】*=================================\n";
cout<<"请输入管理者密码 想退出就在管理密码那输入211\n";
cout<<"=====================================================================\n";
gotoxy(0,3);
cout<<"管理密码:";
gotoxy(10,3);
/*这是一段类似于我们输入密码时,用*号屏蔽我们输入的密码的测试代码*/
char c;
char password[32];
int i = 0;
string pd;
while (1)
{
c = _getch();
if (c == '\r')
{
password[i] = '\0';
break;
}
if (c == '\b')
{
if (i > 0)
{
i--;
printf("\b \b");
password[i] = '\0';
continue;
}
}
else
{
printf("*");
password[i] = c;
pd+=password[i];
if (i < 32) i++;
}
}
printf("\n\n");
if (i > 0)
{
if(pd=="lzwxhn")htmmpd++;
if(pd=="211")
{
Sleep(2000);
system("cls");
ks();
}
}
if(htmmpd==1)
{
cout<<"输入正确!\n";
Sleep(700);
system("cls");
kg();
}
if(htmmpd!=1)
{
htmmcs-=1;
cout<<"输入错误!请检查!您还剩"<<htmmcs<<"次输入机会\n";
Sleep(1000);
system("cls");
ht();
}
if(htmmcs!=5&&htmmcs!=4&&htmmcs!=3&&htmmcs!=2&&htmmcs!=1)
{
Sleep(700);
system("cls");
gotoxy(30,30);
cout<<"次数用光!\n";
Sleep(1000);
system("cls");
ks();
}
Sleep(2000);
system("cls");
}
void kg()//后台进入后 => 开挂
{
color(62);
cout<<"欢迎进入后台!\n";
cout<<"后台服务:\n";
cout<<"=======================\n";
cout<<"1.金币加9999\n";
cout<<"2.血量加9999\n";
cout<<"3.现有血量加9999\n";
cout<<"4.攻击加9999\n";
cout<<"5.防御加9999\n";
cout<<"6.强化石加9999\n";
cout<<"7.武器碎片加9999\n";
cout<<"8.钻石加9999\n";
cout<<"211.退出\n";
cout<<"=======================\n";
cout<<"输入>>>";
string htsr;
cin>>htsr;
if(htsr=="1")
{
cout<<"成功获得效果 *金币加9999\n";
sjsjb+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="2")
{
cout<<"成功获得效果 *血量加9999\n";
zhujueshengming+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="3")
{
cout<<"成功获得效果 *现有血量加9999\n";
sxsm+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="4")
{
cout<<"成功获得效果 *攻击加9999\n";
zhujuegongji+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="5")
{
cout<<"成功获得效果 *防御加9999\n";
zhujuefangyv+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="6")
{
cout<<"成功获得效果 *强化石加9999\n";
qhs+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="7")
{
cout<<"成功获得效果 *武器碎片加9999\n";
wqsp+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="8")
{
cout<<"成功获得效果 *钻石加9999\n";
zuanshi+=9999;
Sleep(1000);
system("cls");
kg();
}
if(htsr=="211")
{
cout<<"成功退出\n";
Sleep(1000);
system("cls");
ks();
}
if(htsr!="211"&&htsr!="1"&&htsr!="2"&&htsr!="3"&&htsr!="4"&&htsr!="5"&&htsr!="6"&&htsr!="7"&&htsr!="8")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
kg();
}
}
void bb()//背包
{
string bbxz;
if(zidongcundang==1)bccd();
color(63);
cout<<"=====================================================================\n";
cout<<" 我的背包\n";
cout<<"=====================================================================\n";
cout<<"--------- --------- \n";
cout<<"| 手套 | | 裤子 | \n";
cout<<" "<<yst<<" "<<ykz<<" \n";
cout<<"| | | | \n";
cout<<"--------- --------- \n";
cout<<"=====================================================================\n";
cout<<"--------- --------- \n";
cout<<"| 衣服 | | 鞋子 | \n";
cout<<" "<<yyf<<" "<<yxz<<" \n";
cout<<"| | | | \n";
cout<<"--------- --------- \n";
cout<<"=====================================================================\n";
cout<<"--------- --------- \n";
cout<<"| 刀 | | 枪 | \n";
cout<<" "<<yd<<" "<<yq<<" \n";
cout<<"| | | | \n";
cout<<"--------- --------- \n";
cout<<"=====================================================================\n";
cout<<"注:可以在“仓库”中换你使用的东西!\n\n\n\n\n\n\n\n";
system("pause");
ks();
}
void ldzl()//劳动节之礼品
{
system("cls");
cout<<"******************************************************************************************"<<endl
<<" 开黑杰之礼 "<<endl
<<"******************************************************************************************"<<endl
<<"| |"<<endl
<<"| 时间未到 此窗口将在2025.5.1日逐区开启 |"<<endl
<<"| |"<<endl
<<"******************************************************************************************"<<endl;
system("pause");
hd();
}
void hd()//活动
{
system("cls");
if(zidongcundang==1)bccd();
color(61);
cout<<"========================================| * * \n";
cout<<" 活动 211.退出 | * * \n";
cout<<"========================================| * * \n";
cout<<"1.新兵福利 | 夏 | * * \n";
cout<<"2.兑换码 | 日 | * * \n";
cout<<"3.春风来袭 | 来 | * * \n";
cout<<"4.挂机福利 | 袭 | * * \n";
cout<<"5.武器碎片兑换 | 蝉 | * * * * * * * \n";
cout<<"6.开黑杰之礼 | 声 | * * * * * * * * * * * * \n";
cout<<" | 阵 | * * * * * * * \n";
cout<<" | 阵 | * * * * * \n";
cout<<" | | ******* \n";
cout<<" | | * * * \n";
cout<<"========================================| * \n";
cout<<"输入>>>";
string hdxz;
cin>>hdxz;
if(hdxz=="211")
{
Sleep(2000);system("cls");
color(60);
ks();
}
if(hdxz=="1")
{
Sleep(2000);
system("cls");
xbfl();
}
if(hdxz=="2")
{
Sleep(2000);
system("cls");
dhm();
}
if(hdxz=="3")
{
Sleep(1000);
system("cls");
dflx();
}
if(hdxz=="4")
{
Sleep(1000);
system("cls");
gjfl();
}
if(hdxz=="5")
{
Sleep(1000);
system("cls");
fjspdhwq();
}
if(hdxz=="6")
{
Sleep(1500);
ldzl();
}
if(hdxz!="1"&&hdxz!="2"&&hdxz!="3"&&hdxz!="4"&&hdxz!="5"&&hdxz!="6"&&hdxz!="211")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
hd();
}
}
void sz()//设置
{
cout<<"__ 设置中心 211.退出 __\n";
cout<<"__ 画质 高清 __\n";
cout<<"__ 画面 彩色RPG __\n";
cout<<"输入>>>";
string shezhishuru;
cin>>shezhishuru;
if(shezhishuru=="211")
{
Sleep(2000);
system("cls");
ks();
}
if(shezhishuru!="211")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
sz();
}
}
void xbfl()//新兵福利
{
color(62);
cout<<"新兵福利 211.退出\n";
cout<<"====================================================================\n";
if(xbfllq1!=1)
cout<<"1.登录游戏 奖励*10金币 领取输入1\n";
if(xbfllq1!=0)
cout<<"1.登录游戏 奖励*10金币 已领取!\n";
if(xbfllq2!=1)
cout<<"2.打败1级Boss一次 奖励*20金币 领取输入2\n";
if(xbfllq2!=0)
cout<<"2.打败1级Boss一次 奖励*20金币 已领取!\n";
if(xbfllq3!=1)
cout<<"3.去黑市买一次装备 奖励*30金币 领取输入3\n";
if(xbfllq3!=0)
cout<<"3.去黑市买一次装备 奖励*30金币 已领取\n";
if(xbfllq4!=1)
cout<<"4.获得金币一次 奖励*10金币 领取输入4\n";
if(xbfllq4!=0)
cout<<"4.获得金币一次 奖励*10金币 已领取!\n";
cout<<"====================================================================\n";
cout<<"输入>>>";
string xbflsr;
cin>>xbflsr;
if(xbflsr=="211")
{
Sleep(2000);system("cls");
hd();
}
if(xbflsr=="1")
{
if(xbfllq1!=0)
{
cout<<"已领取!请勿重复!\n";
Sleep(2000);system("cls");
xbfl();
}
sjsjb+=10,xbfllq1++;
cout<<"领取成功!\n";
Sleep(2000);system("cls");
xbfl();
}
if(xbflsr=="2")
{
if(xbfllq2!=0)
{
cout<<"已领取!请勿重复!\n";
Sleep(2000);system("cls");
xbfl();
}
if(gwzhi==0)
{
cout<<"没有达到条件!\n";
Sleep(2000);system("cls");
xbfl();
}
if(gwzhi!=0)
{
sjsjb+=20,xbfllq2++;
cout<<"领取成功!\n";
Sleep(2000);system("cls");
xbfl();
}
}
if(xbflsr=="3")
{
if(xbfllq3!=0)
{
cout<<"已领取!请勿重复!\n";
Sleep(2000);system("cls");
xbfl();
}
if(sdjj==0)
{
cout<<"没有达到条件!\n";
Sleep(2000);system("cls");
xbfl();
}
if(sdjj!=0)
{
sjsjb+=30,xbfllq3++;
cout<<"领取成功!\n";
Sleep(2000);system("cls");
xbfl();
}
}
if(xbflsr=="4")
{
if(xbfllq4!=0)
{
cout<<"已领取!请勿重复!\n";
Sleep(2000);system("cls");
xbfl();
}
if(sjsjb==0)
{
cout<<"没有达到条件!\n";
Sleep(2000);system("cls");
xbfl();
}
if(sjsjb>0)
{
sjsjb+=10,xbfllq4++;
cout<<"领取成功!\n";
Sleep(2000);system("cls");
xbfl();
}
}
if(xbflsr!="211"&&xbflsr!="1"&&xbflsr!="2"&&xbflsr!="3"&&xbflsr!="4")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
xbfl();
}
if(zidongcundang==1)bccd();
}
void dflx()//东风来袭 //每个季节换一次。。函数名就不必了
{
if(zidongcundang==1)bccd();
cout<<" 秋日来袭!\n";
cout<<"================================\n";
cout<<" 领 奖励:100金币 \n";
cout<<" 取 领取输入1 \n";
cout<<" 好 退出输入211 \n";
cout<<" 礼 \n";
cout<<"================================\n";
cout<<"输入>>>";
string dflxjl;
cin>>dflxjl;
if(dflxjl=="211")
{
Sleep(700);system("cls");
hd();
}
if(dflxjl=="1")
{
if(dflxjlzhi!=0)
{
cout<<"已领取!";
Sleep(700);system("cls");
dflx();
}
dflxjlzhi++,sjsjb+=100;
cout<<"领取成功!100金币已收入您的囊中!\n";
Sleep(1000);
system("cls");
dflx();
}
if(dflxjl!="211"&&dflxjl!="1")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
dflx();
}
}
void dhm()//兑换码
{
color(62);
if(zidongcundang==1)bccd();
cout<<"------------------>兑换码<------------------\n";
cout<<"_____| 请输入兑换码! 211.退出 |_____\n";
cout<<"输入:";
string dhmsr;
cin>>dhmsr;
if(dhmsr=="211")
{
Sleep(1000);system("cls");
hd();
}
if(dhmsr!="lzyyds"&&dhmsr!="yxnb"&&dhmsr!="211")
{
cout<<"兑换码错误!\n";
Sleep(2000);
system("cls");
dhm();
}
if(dhmsr=="cnyyds")
{
if(dhmpd==1)
{
cout<<"已兑换!\n";
Sleep(1000);
system("cls");
dhm();
}
dhmpd++,sjsjb+=100;
cout<<"成功兑换!\n";
cout<<"获得奖励*100金币\n";
Sleep(2000);
system("cls");
dhm();
}
if(dhmsr=="yxnb")
{
if(dhmpd2==1)
{
cout<<"已兑换!\n";
Sleep(1000);
system("cls");
dhm();
}
dhmpd2++,sjsjb+=50;
cout<<"成功兑换!\n";
cout<<"获得奖励*50金币\n";
Sleep(2000);
system("cls");
dhm();
}
}
void gg()//公告
{
system("cls");
color(62);
cout<<"*******************************************************************"<<endl
<<" 公告栏 "<<endl
<<"*******************************************************************"<<endl
<<" |> 1、更新公告 <| "<<endl
<<" --------------------- "<<endl
<<" |> 2、赛季公告 <| "<<endl
<<" --------------------- "<<endl
<<"*******************************************************************"<<endl;
cout<<" [211退出]"<<endl;
string ggsr;
cin>>ggsr;
if(ggsr=="1")
{
system("cls");
gxgg();
}
if(ggsr=="2")
{
system("cls");
sjgg();
}
if(ggsr=="211")
{
Sleep(1000);system("cls");
ks();
}
if(ggsr!="211"&&ggsr!="1"&&ggsr!="2")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
gg();
}
}
void gxgg()
{
color(62);
cout<<"***************************************************************************************"<<endl
<<"*** 更新公告 版本号:3.0.3 ***"<<endl
<<"***************************************************************************************"<<endl
<<"| *更新时间:2025.5.4日 5:00-6:00全服不停机更新 |"<<endl
<<"| |"<<endl
<<"| *更新内容: |"<<endl
<<"| 1、上架祈愿抽奖活动 |"<<endl
<<"| 上架[炽焰狂欢 —— 盛夏灼烧季]祈愿活动 |"<<endl
<<"| 可兑换 炽焰战甲 活动准备 |"<<endl
<<"| 属性:生命增加500,防御力增加1200 |"<<endl
<<"| 首次可使用60钻石抽奖 |"<<endl
<<"| |"<<endl
<<"| 2、修复了已知BUG |"<<endl
<<"| |"<<endl
<<"| 3、对部分功能进行优化 |"<<endl
<<"| 优化了一些繁琐的功能 |"<<endl
<<"| |"<<endl
<<"***************************************************************************************"<<endl;
system("pause");
gg();
}
void sjgg()
{
color(62);
cout<<"***************************************************************************************"<<endl
<<"*** S2赛季 冰流不息 公告 版本号:3.0.3 ***"<<endl
<<"***************************************************************************************"<<endl
<<"|亲爱的勇者: |"<<endl
<<"|我们计划在2025年1月24日6:00-8:00对全服进行不停机更新。 |"<<endl
<<"|[更新时间]2025年1月24日6:00-8:00 |"<<endl
<<"|[更新方式]不停机更新 |"<<endl
<<"|此次为不停机更新,勇者们可以正常进入[维护期间可能会有短暂入口维护的情况]; |"<<endl
<<"|维护时已经登入游戏的玩家不受任何影响。 |"<<endl
<<"|[更新范围]全服 |"<<endl
<<"|[更新内容] |"<<endl
<<"|赛季相关 |"<<endl
<<"|1、装备优化:调整装备的伤害 ; |"<<endl
<<"|2、上新了回收商店; |"<<endl
<<"|3、修复了已知BUG; |"<<endl
<<"***************************************************************************************"<<endl;
system("pause");
gg();
}
class Time //挂机福利
{
public:
Time(){hour=minute=second=0;menu();}
void menu();
void xuanze();
private:
void settime();
void chongzhi(){second=0;minute=0;hour=0;}
double hour;
double minute;
double second;
};
void Time::settime( ) //挂机福利
{
second++;
if(second==60)
{
second=0;
minute++;
sjsjb+=10,gjflcs++;
}
else if(minute==60)
{
minute=0;
hour++;
}
Sleep(1000);
}
void Time::menu() //挂机福利
{
system("cls");
cout<<"a.退出--------------->挂机福利<--------------------\n";
cout<<" 60秒10金币~到了时间会自动领取哦!! \n";
cout<<" 今日一共领取了"<<gjflcs<<"次,还剩下"<<10-gjflcs<<"次\n";
cout<<"下一次奖励还剩下"<<60-second<<"秒";
}
void Time::xuanze() //挂机福利
{
char key;
while(1)
{
if(kbhit())
{
key=getch();
if(key=='a'||key=='A')
{
Sleep(500);
system("cls");
hd();
}
else if(key==' ')
{
xuanze();
}
}
settime();
menu();
}
}
void gjfl()//挂机福利
{
if(gjflcs==10)
{
cout<<"挂机领奖剩余次数不足!";
Sleep(500);
system("cls");
hd();
}
Time te;
te.menu();
te.xuanze();
}
void wqdz()//武器打造
{
cout<<"\t\t_>>==============================<<__\n";
cout<<"\t\t_>>> 铁匠铺&武器打造 <<<__\n";
cout<<"\t\t_>>> 211.退出 <<<<__ \n";
cout<<"\t\t>>>>>>>>===========================<<<<<<<<\n";
cout<<"\t\t1.武器分解 2.武器强化 3.武器抽奖\n";
cout<<"\t\t=============================================\n";
cout<<"\t\t输入>>>";
string wqdzsr;
cin>>wqdzsr;
if(wqdzsr=="1")
{
Sleep(700);system("cls");
wqfj();
}
if(wqdzsr=="2")
{
Sleep(700);system("cls");
wqqh();
}
if(wqdzsr=="3")
{
Sleep(700);system("cls");
wqcj();
}
if(wqdzsr=="211")
{
Sleep(700);system("cls");
ks();
}
if(wqdzsr!="1"&&wqdzsr!="2"&&wqdzsr!="3"&&wqdzsr!="211")
{
cout<<"\t\t\n别乱输!\n";
Sleep(700);
system("cls");
wqdz();
}
}
void wqfj()//武器分解
{
cout<<"=======<武器店&武器分解>>>>>>>>\n";
cout<<"|| ||211.退出|| || ||\n";
cout<<"|| || || || ||\n";
cout<<"==<><>==<><><><>==<><><==<><>==\n";
cout<<"1.武器分解 2.分解碎片兑换武器\n";
cout<<"==<><>==<><><><>==<><><==<><>==\n";
cout<<"|| || || || ||\n";
cout<<"|| || || || ||\n";
cout<<"==<><>==<><><><>==<><><==<><>==\n";
cout<<"输入>>>";
string wqfjsr;
cin>>wqfjsr;
if(wqfjsr=="1")
{
Sleep(700);system("cls");
wqfj2();
}
if(wqfjsr=="2")
{
Sleep(700);system("cls");
fjspdhwq();
}
if(wqfjsr=="211")
{
Sleep(700);system("cls");
wqdz();
}
if(wqfjsr!="211"&&wqfjsr!="1"&&wqfjsr!="2")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
wqfj();
}
}
void wqfj2()//武器分解进入后 => 武器分解2
{
string wqfj2sr;
cout<<"========================>>>>\n";
cout<<"你拥有的武器:";
if(tsc!=0)cout<<" 天神锤";
if(hr!=0)cout<<" 黑刃";
if(gj!=0)cout<<" 干将";
if(tlb!=0)cout<<" 螳螂臂";
if(tc!=0)cout<<" 铁锤";
if(ptjc!=0)cout<<" 普通军刺";
cout<<"\n";
cout<<"============================>>>>\n";
cout<<"1.分解武器 2.商店 211.退出\n";
cout<<"输入>>>";
cin>>wqfj2sr;
if(wqfj2sr!="211"&&wqfj2sr!="1"&&wqfj2sr!="2")
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
wqfj2();
}
if(wqfj2sr=="211")
{
Sleep(500);system("cls");
wqfj();
}
if(wqfj2sr=="2")
{
Sleep(700);system("cls");
sd();
}
if(wqfj2sr=="1")
{
if(wq=="无")
{
cout<<"\n您没武器,请您有武器后再来!\n";
Sleep(1000);system("cls");
wqfj2();
}
cout<<"\n您拥有"<<wq<<",请您输入武器名字然后分解!\n";
cout<<"输入>>>";
string fj;
cin>>fj;
if(fj!="黑刃"&&fj!="干将")
{
cout<<"\n输入错误!\n";
Sleep(900);system("cls");
wqfj2();
}
if(fj=="黑刃")
{
if(hr!=0)
{
hr--,wqsp+=45;
cout<<"成功分解!您获得了45个武器碎片!您还剩"<<hr<<"个黑刃[您可以在武器店重新购买武器呦!]\n";
Sleep(4000);system("cls");
wqfj2();
}
}
if(fj=="干将")
{
if(gj!=0)
{
gj--,wqsp+=100;
cout<<"成功分解!您获得了100个武器碎片!您还剩"<<gj<<"个干将[您可以在武器店重新购买武器呦!]\n";
Sleep(4000);system("cls");
wqfj2();
}
}
}
}
void fjspdhwq()//武器分解碎片兑换武器
{
cout<<"你拥有的武器碎片为:"<<wqsp;
cout<<"\n<<<<<===========================================\n";
cout<<"211.退出 兑换武器:\n";
cout<<"||============||============||=============||=============||\n";
cout<<"|| 普通 || 精英 || 紫色 || 传说 ||\n";
cout<<"|| 普通军刺 || 铁锤 || 天神锤 || 螳螂臂 ||\n";
cout<<"||*300武器碎片||*800武器碎片||*1300武器碎片||*3000武器碎片||\n";
cout<<"|| 伤害26 || 伤害50 || 伤害98 || 伤害130 ||\n";
cout<<"============================================================\n";
cout<<"输入武器名字即可购买>>>";
string wqspdhwq;
cin>>wqspdhwq;
if(wqspdhwq=="211")
{
system("cls");
wqfj2();
}
else if(wqspdhwq=="普通军刺")
{
if(wqsp<300)
{
cout<<"您的武器碎片不够!\n";
Sleep(1000);system("cls");
fjspdhwq();
}
wqsp-=300,ptjc++;
cout<<"\n\n成功兑换!您还有个"<<wqsp<<"武器碎片!欢迎再兑换!\n";
Sleep(2000);system("cls");
fjspdhwq();
}
else if(wqspdhwq=="铁锤")
{
if(wqsp<800)
{
cout<<"您的武器碎片不够!\n";
Sleep(1000);system("cls");
fjspdhwq();
}
wqsp-=800,tc++;
cout<<"\n\n成功兑换!您还有个"<<wqsp<<"武器碎片!欢迎再兑换!\n";
Sleep(2000);system("cls");
fjspdhwq();
}
else if(wqspdhwq=="天神锤")
{
if(wqsp<1300)
{
cout<<"您的武器碎片不够!\n";
Sleep(1000);system("cls");
fjspdhwq();
}
wqsp-=1300,tsc++;
cout<<"\n\n成功兑换!您还有个"<<wqsp<<"武器碎片!欢迎再兑换!\n";
Sleep(2000);system("cls");
fjspdhwq();
}
else if(wqspdhwq=="螳螂臂")
{
if(wqsp<3000)
{
cout<<"您的武器碎片不够!\n";
Sleep(1000);system("cls");
fjspdhwq();
}
wqsp-=3030,tlb++;
cout<<"\n\n成功兑换!您还有个"<<wqsp<<"武器碎片!欢迎再兑换!\n";
Sleep(2000);system("cls");
fjspdhwq();
}
else
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
fjspdhwq();
}
}
void wqqh()//武器强化
{
cout<<"您拥有的强化石:"<<qhs<<"\n";
cout<<"=================================================\n";
cout<<"你拥有:";
int jishu2=0;
if(hr!=0){cout<<" 黑刃";}
if(gj!=0){cout<<" 干将";}
if(ptjc!=0){cout<<" 普通军刺";}
if(tc!=0){cout<<" 铁锤";}
if(tsc!=0){cout<<" 天神锤";}
if(tlb!=0){cout<<" 螳螂臂";}
cout<<endl;
cout<<"=================================================\n";
cout<<"价格表:\n";
cout<<"武器名:黑刃 干将 普通军刺 铁锤 天神锤 螳螂臂\n";
cout<<"强化石:100 200 250 360 420 600 \n";
cout<<"=================================================\n";
cout<<"每次强化加2攻击,最多强化10次!\n";
cout<<"211.退出 输入武器名字即可强化<只能是一个武器!>\n";
cout<<">>>";
string qhwqjqhs;
cin>>qhwqjqhs;
if(qhwqjqhs=="211")
{
system("cls");
wqdz();
}
if(qhwqjqhs=="黑刃")
{
if(qhs<100)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(hr==0)
{
cout<<"等您拥有黑刃然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
hrgj+=2,qhs-=100;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
if(qhwqjqhs=="干将")
{
if(qhs<200)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(gj==0)
{
cout<<"等您拥有干将然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
gjgj+=2,qhs-=200;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
if(qhwqjqhs=="普通军刺")
{
if(qhs<250)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(ptjc==0)
{
cout<<"等您拥有普通军刺然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
ptjcgj+=2,qhs-=250;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
if(qhwqjqhs=="铁锤")
{
if(qhs<360)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(tc==0)
{
cout<<"等您拥有铁锤然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
tcgj+=2,qhs-=360;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
if(qhwqjqhs=="天神锤")
{
if(qhs<420)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(tsc==0)
{
cout<<"等您拥有天神锤然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
tscgj+=2,qhs-=420;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
if(qhwqjqhs=="螳螂臂")
{
if(qhs<600)
{
cout<<"您强化石不够!下次在来吧!";
Sleep(2000);system("cls");
wqqh();
}
if(tlb==0)
{
cout<<"等您拥有螳螂臂然后在来吧!";
Sleep(2000);system("cls");
wqqh();
}
tlbgj+=2,qhs-=600;
cout<<"强化成功!";
Sleep(2000);system("cls");
wqqh();
}
else
{
cout<<"别乱输!\n";
Sleep(700);
system("cls");
fjspdhwq();
}
}
void wqcj()//武器抽奖
{
cout<<"\t\tEse.退出 你拥有的武器碎片:"<<wqsp<<endl;
cout<<"\t\t=====================================\n";
cout<<"\t\t 武器抽奖--非酋大转盘!\n";
cout<<"\t\t=====================================\n";
cout<<"\t\t200武器碎片抽一次! 抽奖池:\n";
cout<<"\t\t1.螳螂臂 1%的概率 2.天神锤 5%的概率\n";
cout<<"\t\t3.铁锤 10%的概率 4.普通军刺 20%的概率\n";
cout<<"\t\t5.武器碎片1~200 50%的概率\n";
cout<<"\t\t6.金币1~200 70%的概率 \n";
cout<<"\t\t=====================================\n";
cout<<"\t\t按下回车即可开始转盘!Ese退出转盘!\n";
cout<<"\t\t=====================================\n";
if(zidongcundang==1)bccd();
srand((int)time(0));
char cj;
while(1)
{
cj=_getch();
if(cj=='\r')
{
break;
}
if(cj==27)
{
system("cls");
wqdz();
}
}
if(wqsp>200)
{
for(int i=0;i<2;i++)
{
wqsp=wqsp-200;
wqcjiang=rand()%100;
if(wqcjiang>99)
{
if(tlbcj!=0)
{
cout<<"你抽到了重复的螳螂臂,已经自动换成2000武器碎片!";
wqsp+=2000;
Sleep(3000);system("cls");
wqcj();
}
cout<<"你抽到了螳螂臂!!!";
tlb++,tlbcj++,chuanshuo++;
Sleep(3000);system("cls");
wqcj();
}
if(wqcjiang>95&&wqcjiang<=99)
{
if(tsccj!=0)
{
cout<<"你抽到了重复的天神锤,已经自动换成1000武器碎片!";
wqsp+=1000;
Sleep(3000);system("cls");
wqcj();
}
cout<<"你抽到了天神锤!!!";
tsc++,tsccj++,shishi++;
Sleep(3000);system("cls");
wqcj();
}
if(wqcjiang>90&&wqcjiang<=95)
{
if(tccj!=0)
{
cout<<"你抽到了重复的铁锤,已经自动换成500武器碎片!";
wqsp+=500;
Sleep(3000);system("cls");
wqcj();
}
cout<<"你抽到了铁锤哦!!!";
tc++,tccj++,yongzhe++;
Sleep(3000);system("cls");
wqcj();
}
if(wqcjiang>80&&wqcjiang<=90)
{
if(ptjc!=0)
{
cout<<"你抽到了重复的普通军刺,已经自动换成300武器碎片!";
wqsp+=300;
Sleep(3000);system("cls");
wqcj();
}
cout<<"你抽到了普通军刺!!!";
ptjc++,ptjccj++,putong++;
Sleep(3000);system("cls");
wqcj();
}
if(wqcjiang>50&&wqcjiang<=80)
{
wqspcjy=rand()%200;
cout<<"你抽到了武器碎片*"<<wqspcjy;
wqsp+=wqspcjy;
Sleep(3000);system("cls");
wqcj();
}
if(wqcjiang>0&&wqcjiang<=50)
{
suijishujingbicjy=rand()%200;
cout<<"你抽到了金币*"<<suijishujingbicjy;
sjsjb+=suijishujingbicjy;
Sleep(3000);system("cls");
wqcj();
}
}
}
if(wqsp<200)
{
cout<<"\t\t武器碎片不够!";
Sleep(1000);system("cls");
wqdz();
}
}
void wqyfdq()//武器衣服大全
{
int zjxygj=20,zjxysm=20,zjxyfy=20;
if(yst=="黑手套"){zhujueshengming=zjxysm;zhujueshengming+=5;}
if(yst=="厚手套"){zhujueshengming=zjxysm;zhujueshengming+=10;}
if(yyf=="破了的黑衣服"){zhujueshengming=zjxysm;zhujueshengming+=10;}
if(yyf=="大棉衣"){zhujueshengming=zjxysm;zhujueshengming+=20;}
if(ykz=="残缺的黑裤子"){zhujuefangyv+=9;}
if(ykz=="长裤子"){zhujuefangyv=zjxyfy;zhujuefangyv+=17;}
if(yxz=="黑鞋"){zhujueshengming=zjxysm;zhujueshengming+=5;}
if(yxz=="普通鞋子"){zhujueshengming=zjxysm;zhujueshengming+=11;}
if(yd=="黑刃"){zhujuegongji=zjxygj;zhujuegongji+=hrgj;zhujuegongji+=20;}
if(yd=="干将"){zhujuegongji=zjxygj;zhujuegongji+=gjgj;zhujuegongji+=30;}
if(yd=="普通军刺"){zhujuegongji=zjxygj;zhujuegongji+=ptjcgj;zhujuegongji+=26;}
if(yd=="铁锤"){zhujuegongji=zjxygj;zhujuegongji+=tcgj;zhujuegongji+=50;}
if(yd=="天神锤"){zhujuegongji=zjxygj;zhujuegongji+=tscgj;zhujuegongji+=98;}
if(yd=="螳螂臂"){zhujuegongji=zjxygj;zhujuegongji+=tlbgj;zhujuegongji+=130;}
if(yd=="无尽战刀"){zhujuegongji=zjxygj;zhujuegongji+=wjzdgj;zhujuegongji+=135;}
if(yd=="猎魔刀"){zhujuegongji=zjxygj;zhujuegongji+=lmdgj;zhujuegongji+=125;}
if(yd=="魔神刃"){zhujuegongji=zjxygj;zhujuefangyv=zjxyfy;zhujuegongji+=msrgj;zhujuegongji+=120;zhujuefangyv+=20;}
color(62);
string wq2;
string wq;
cout<<"211.退出\n";
cout<<"==========================================================\n";
cout<<"你拥有"<<"\n||手套:";
if(hst==1){cout<<"黑手套";jishu4+=2;}
if(jishu4==2)cout<<"和";
if(houst==1){cout<<"厚手套";jishu4+=2;}
cout<<"\n||衣服:";
if(pldhyf==1){cout<<"破了的黑衣服";jishu5+=2;}
if(jishu5==2)cout<<"和";
if(dmy==1){cout<<"大棉衣";jishu5+=2;}
cout<<"\n||裤子:";
if(cqdhkz==1){cout<<"残缺的黑裤子";jishu6+=2;}
if(jishu5==2)cout<<"和";
if(dmy==1){cout<<"长裤子";jishu6+=2;}
cout<<"\n||鞋子:";
if(hx==1){cout<<"黑鞋";jishu8+=2;}
if(jishu8==2)cout<<"和";
if(ptxz==1){cout<<"普通鞋子";jishu8+=2;}
cout<<"\n||刀:";
if(hr!=0){cout<<"黑刃";jishu7+=2;}
if(jishu7==2)cout<<"和";
if(gj!=0){cout<<"干将";jishu7+=2;}
if(jishu7==4)cout<<"和";
if(ptjc!=0){cout<<"普通军刺";jishu7+=2;}
if(jishu7==6)cout<<"和";
if(tc!=0){cout<<"铁拳";jishu7=2;}
if(jishu7==8)cout<<"和";
if(tsc!=0){cout<<"天神锤";jishu7+=2;}
if(jishu7==10)cout<<"和";
if(tlb!=0){cout<<"螳螂臂";jishu7+=2;}
if(wjzd!=0){cout<<"无尽战刀";jishu7+=2;}
if(jishu7==10)cout<<"和";
if(lmd!=0){cout<<"猎魔刀";jishu7+=2;}
if(jishu7==12)cout<<"和";
if(msr!=0){cout<<"魔神刃";jishu7+=2;}
cout<<"\n||枪:";
cout<<"\n";
cout<<"======================================================================\n";
cout<<"请输入你要上阵的武器衣服的名字!(只能是一个武器武器后面的“和”字不算)\n";
cout<<">>>";
string thwq;
cin>>thwq;
if(thwq=="211")
{
system("cls");
ks();
}
if(thwq!="破了的黑衣服"&&thwq!="黑手套"&&thwq!="残缺的黑裤子"&&thwq!="黑刃"&&thwq!="黑鞋"&&thwq!="厚手套"&&thwq!="大棉衣"&&thwq!="长裤子"&&thwq!="干将"&&thwq!="普通鞋子"&&thwq!="铁锤"&&thwq!="普通军刺"&&thwq!="螳螂臂"&&thwq!="天神锤"&&thwq!="无尽战刀"&&thwq!="猎魔刀"&&thwq!="魔神刃")
{
cout<<"别乱输!";
Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="黑手套")
{
if(hst!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yst="黑手套";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="破了的黑衣服")
{
if(pldhyf!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yyf="破了的黑衣服";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="残缺的黑裤子")
{
if(cqdhkz!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
ykz="残缺的黑裤子";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="黑刃")
{
if(hr!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="黑刃";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="黑鞋")
{
if(hx!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yxz="黑鞋";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="厚手套")
{
if(houst!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yst="厚手套";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="大棉衣")
{
if(dmy!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yyf="大棉衣";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="长裤子")
{
if(ckz!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
ykz="长裤子";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="干将")
{
if(gj!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="干将";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="普通鞋子")
{
if(ptxz!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yxz="普通鞋子";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="普通军刺")
{
if(ptjc!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="普通军刺";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="铁锤")
{
if(tc!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="铁锤";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="天神锤")
{
if(tsc!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="天神锤";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="螳螂臂")
{
if(tlb!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="螳螂臂";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="无尽战刀")
{
if(wjzd!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="无尽战刀";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="猎魔刀")
{
if(lmd!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="猎魔刀";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
if(thwq=="魔神刃")
{
if(msr!=1)
{
cout<<"您并不拥有!";
Sleep(2000);system("cls");
wqyfdq();
}
yd="魔神刃";
cout<<"上阵成功!";Sleep(2000);
system("cls");
wqyfdq();
}
}
void bccd()//保存存档
{
//主要要写入:主角现在生命,总生命,攻击,防御,装备(全部),武器碎片,强化石..........
char line[256];
fstream myFile;
myFile.open("存档.txt", ios::out);
if (myFile.is_open())
{
myFile << zhujuegongji<<"\n";
myFile << zhujueshengming<<"\n";
myFile << sxsm<<"\n";
myFile << zhujuefangyv<<"\n";
myFile << wq<<"\n";
myFile << yst<<"\n";
myFile << yyf<<"\n";
myFile << ykz<<"\n";
myFile << yxz<<"\n";
myFile << yd<<"\n";
myFile << yq<<"\n";
myFile << baoji<<"\n";
myFile << fangyv<<"\n";
myFile << fangyv2<<"\n";
myFile << baojizhi<<"\n";
myFile << fangyvzhi<<"\n";
myFile << msboos<<"\n";
myFile << sjsjb<<"\n";
myFile << sjsjb2<<"\n";
myFile << qhs<<"\n";
myFile << gwzhi<<"\n";
myFile << ntgs<<"\n";
myFile << gljs<<"\n";
myFile << zxem<<"\n";
myFile << ssw<<"\n";
myFile << hmg<<"\n";
myFile << hp<<"\n";
myFile << ayns<<"\n";
myFile << wr<<"\n";
myFile << wrdwhq<<"\n";
myFile << sxks<<"\n";
myFile << ymbh<<"\n";
myFile << bylyw<<"\n";
myFile << jdbh<<"\n";
myFile << nmzzs<<"\n";
myFile << nmzzsss<<"\n";
myFile << htz<<"\n";
myFile << hst<<"\n";
myFile << pldhyf<<"\n";
myFile << cqdhkz<<"\n";
myFile << hx<<"\n";
myFile << hr<<"\n";
myFile << sdjj<<"\n";
myFile << biaoji<<"\n";
myFile << xbfllq1<<"\n";
myFile << xbfllq2<<"\n";
myFile << xbfllq3<<"\n";
myFile << xbfllq4<<"\n";
myFile << dhmpd<<"\n";
myFile << dhmpd2<<"\n";
myFile << dflxjlzhi<<"\n";
myFile << houst<<"\n";
myFile << dmy<<"\n";
myFile << ckz<<"\n";
myFile << ptxz<<"\n";
myFile << gj<<"\n";
myFile << llys<<"\n";
myFile << llyscs<<"\n";
myFile << mtz<<"\n";
myFile << biaoji2<<"\n";
myFile << wqsp<<"\n";
myFile << wqcjiang<<"\n";
myFile << suijishujingbicjy<<"\n";
myFile << wqspcjy<<"\n";
myFile << tlbcj<<"\n";
myFile << tsccj<<"\n";
myFile << tccj<<"\n";
myFile << ptjccj<<"\n";
myFile << ptjc<<"\n";
myFile << tc<<"\n";
myFile << tsc<<"\n";
myFile << tlb<<"\n";
myFile << hrgj<<"\n";
myFile << gjgj<<"\n";
myFile << tcgj<<"\n";
myFile << tscgj<<"\n";
myFile << tlbgj<<"\n";
myFile << jishu4<<"\n";
myFile << jishu5<<"\n";
myFile << jishu6<<"\n";
myFile << jishu7<<"\n";
myFile << jishu8<<"\n";
myFile << gjflcs<<"\n";
myFile << zuanshi<<"\n";
myFile << wjzd<<"\n";
myFile << lmd<<"\n";
myFile << msr<<"\n";
myFile <<zidongcundang<<"\n";
myFile <<dkym<<"\n";
myFile <<cyzj<<"\n";
myFile <<cjcs<<"\n";
myFile <<qyb<<"\n";
myFile <<cyb<<"\n";
myFile <<zidonggengxin<<"\n";
myFile <<putong<<"\n";
myFile <<yongzhe<<"\n";
myFile <<chuanshuo<<"\n";
myFile <<shishi<<"\n";
myFile <<shishixianding<<"\n";
myFile <<chuanshuoxianding<<"\n";
myFile << qycs <<"\n";
myFile.close();
}
// cout<<"成功保存存档,记得常来保存!";
// Sleep(2000);
system("cls");
}
void drcd()//读入存档
{
string line;
fstream myFile;
int s=0;
myFile.open("存档.txt", ios::in); // read,读
if (myFile.is_open())
{
while (getline(myFile, line))
{
string str(line);
s++;
if(s==1)
zhujuegongji = atoi(str.c_str());
if(s==2)
zhujueshengming = atoi(str.c_str());
if(s==3)
sxsm = atoi(str.c_str());
if(s==4)
zhujuefangyv = atoi(str.c_str());
if(s==5)
wq = str;
if(s==6)
yst = str;
if(s==7)
yyf = str;
if(s==8)
ykz = str;
if(s==9)
yxz = str;
if(s==10)
yd = str;
if(s==11)
yq = str;
if(s==12)
baoji = atoi(str.c_str());
if(s==13)
fangyv = atoi(str.c_str());
if(s==14)
fangyv2 = atoi(str.c_str());
if(s==15)
baojizhi = atoi(str.c_str());
if(s==16)
fangyvzhi = atoi(str.c_str());
if(s==17)
msboos = atoi(str.c_str());
if(s==18)
sjsjb = atoi(str.c_str());
if(s==19)
sjsjb2 = atoi(str.c_str());
if(s==20)
qhs = atoi(str.c_str());
if(s==21)
gwzhi = atoi(str.c_str());
if(s==22)
ntgs = atoi(str.c_str());
if(s==23)
gljs = atoi(str.c_str());
if(s==24)
zxem = atoi(str.c_str());
if(s==25)
ssw = atoi(str.c_str());
if(s==26)
hmg = atoi(str.c_str());
if(s==27)
hp = atoi(str.c_str());
if(s==28)
ayns = atoi(str.c_str());
if(s==29)
wr = atoi(str.c_str());
if(s==30)
wrdwhq = atoi(str.c_str());
if(s==31)
sxks = atoi(str.c_str());
if(s==32)
ymbh = atoi(str.c_str());
if(s==33)
bylyw = atoi(str.c_str());
if(s==34)
jdbh = atoi(str.c_str());
if(s==35)
nmzzs = atoi(str.c_str());
if(s==36)
nmzzsss = atoi(str.c_str());
if(s==37)
htz = atoi(str.c_str());
if(s==38)
hst = atoi(str.c_str());
if(s==39)
pldhyf = atoi(str.c_str());
if(s==40)
cqdhkz = atoi(str.c_str());
if(s==41)
hx = atoi(str.c_str());
if(s==42)
hr = atoi(str.c_str());
if(s==43)
sdjj = atoi(str.c_str());
if(s==44)
biaoji = atoi(str.c_str());
if(s==45)
xbfllq1 = atoi(str.c_str());
if(s==46)
xbfllq2 = atoi(str.c_str());
if(s==47)
xbfllq3 = atoi(str.c_str());
if(s==48)
xbfllq4 = atoi(str.c_str());
if(s==49)
dhmpd = atoi(str.c_str());
if(s==50)
dhmpd2 = atoi(str.c_str());
if(s==51)
dflxjlzhi = atoi(str.c_str());
if(s==52)
houst = atoi(str.c_str());
if(s==53)
dmy = atoi(str.c_str());
if(s==54)
ckz = atoi(str.c_str());
if(s==55)
ptxz = atoi(str.c_str());
if(s==56)
gj = atoi(str.c_str());
if(s==57)
llys = atoi(str.c_str());
if(s==58)
llyscs = atoi(str.c_str());
if(s==59)
mtz = atoi(str.c_str());
if(s==60)
biaoji2 = atoi(str.c_str());
if(s==61)
wqsp = atoi(str.c_str());
if(s==62)
wqcjiang = atoi(str.c_str());
if(s==63)
suijishujingbicjy = atoi(str.c_str());
if(s==64)
wqspcjy = atoi(str.c_str());
if(s==65)
tlbcj = atoi(str.c_str());
if(s==66)
tsccj = atoi(str.c_str());
if(s==67)
tccj = atoi(str.c_str());
if(s==68)
ptjccj = atoi(str.c_str());
if(s==69)
ptjc = atoi(str.c_str());
if(s==70)
tc = atoi(str.c_str());
if(s==71)
tsc = atoi(str.c_str());
if(s==72)
tlb = atoi(str.c_str());
if(s==73)
hrgj = atoi(str.c_str());
if(s==74)
gjgj = atoi(str.c_str());
if(s==75)
tcgj = atoi(str.c_str());
if(s==76)
tscgj = atoi(str.c_str());
if(s==77)
tlbgj = atoi(str.c_str());
if(s==78)
jishu4 = atoi(str.c_str());
if(s==79)
jishu5 = atoi(str.c_str());
if(s==80)
jishu6 = atoi(str.c_str());
if(s==81)
jishu7 = atoi(str.c_str());
if(s==82)
jishu8 = atoi(str.c_str());
if(s==83)
gjflcs = atoi(str.c_str());
if(s==84)
zuanshi = atoi(str.c_str());
if(s==85)
wjzd = atoi(str.c_str());
if(s==86)
lmd = atoi(str.c_str());
if(s==87)
msr = atoi(str.c_str());
if(s==88)
zidongcundang = atoi(str.c_str());
if(s==89)
dkym = atoi(str.c_str());
if(s==90)
cyzj = atoi(str.c_str());
if(s==91)
cjcs = atoi(str.c_str());
if(s==92)
qyb = atoi(str.c_str());
if(s==93)
cyb = atoi(str.c_str());
if(s==94)
zidonggengxin = atoi(str.c_str());
if(s==95)
putong = atoi(str.c_str());
if(s==96)
yongzhe = atoi(str.c_str());
if(s==94)
chuanshuo = atoi(str.c_str());
if(s==94)
shishi = atoi(str.c_str());
if(s==94)
shishixianding = atoi(str.c_str());
if(s==94)
chuanshuoxianding = atoi(str.c_str());
if(s==95)
qycs = atoi(str.c_str());
/*myFile <<putong<<"\n";
myFile <<yongzhe<<"\n";
myFile <<chuanshuo<<"\n";
myFile <<shishi<<"\n";
myFile <<shishixianding<<"\n";
myFile <<chuanshuoxianding<<"\n";*/
}
myFile.close();
}
system("cls");
ksq();
}
void hhzj()//辉煌战绩
{
color(62);
int s=0;
string hhzjsr;
s=ntgs+gljs+zxem+ssw+hmg+hp+ayns+wr+wrdwhq+sxks+ymbh+bylyw+jdbh+nmzzs+nmzzsss;
cout<<"211.退出\n";
cout<<"=======================<<<辉煌战绩>>>==================\n";
cout<<"亲爱的冒险家,这次旅途,您一共击杀了怪物/人类:\n";
cout<<"[1级]牛头怪兽 "<<ntgs<<" 次\n";
cout<<"[2级]格伦巨石 "<<gljs<<" 次\n";
cout<<"[3级]泽西恶魔 "<<zxem<<" 次\n";
cout<<"[4级]蛇神王 "<<ssw<<" 次\n";
cout<<"[5级]黑玫瑰 "<<hmg<<" 次\n";
cout<<"[6级]琥珀 "<<hp<<" 次\n";
cout<<"[7级]暗夜女神 "<<ayns<<" 次\n";
cout<<"[8级]王戎 "<<wr<<" 次\n";
cout<<"[9级]王戎的未婚妻 "<<wrdwhq<<" 次\n";
cout<<"[10级]嗜血狂狮 "<<sxks<<" 次\n";
cout<<"[11级]幽冥白虎 "<<ymbh<<" 次\n";
cout<<"[12级]八翼雷鹰王 "<<bylyw<<" 次\n";
cout<<"[13级]极地冰狐 "<<jdbh<<" 次\n";
cout<<"[14级]匿名组织S "<<nmzzs<<" 次\n";
cout<<"[15级]匿名组织SSS "<<nmzzsss<<" 次\n";
cout<<"总共击杀了全部怪物/人类 "<<s<<" 次!\n";
cout<<"不愧是顶级杀手!\n";
cout<<"======================================================\n\n\n\n\n\n\n\n\n";
system("pause");
ks();
}
class Time1 //领取生命
{
public:
Time1(){hour=minute=second=0;menu1();}
void menu1();
void xuanze1();
private:
void settime1();
void chongzhi1(){second=0;minute=0;hour=0;}
double hour;
double minute;
double second;
};
void Time1::settime1( ) //领取生命
{
second++;
if(second==60)
{
second=0;
minute++;
if(sxsm+2>=zhujueshengming) sxsm=zhujueshengming;
else sxsm=sxsm+2;
}
else if(minute==60)
{
minute=0;
hour++;
}
Sleep(1000);
}
void Time1::menu1() //领取生命
{
system("cls");
cout<<"a.退出--------------->挂机福利(领取生命)<--------------------\n";
cout<<" 60秒2生命~到了时间会自动领取哦!! \n";
cout<<" 挂机领取生命不限次数呦,我可真贴心!~\n";
cout<<"下一次奖励还剩下"<<60-second<<"秒";
}
void Time1::xuanze1() //领取生命
{
char key;
while(1)
{
if(kbhit())
{
key=getch();
if(key=='a'||key=='A')
{
Sleep(500);
system("cls");
ks();
}
else if(key==' ')
{
xuanze1();
}
}
settime1();
menu1();
}
}
void lqsm()//领取生命
{
if(sxsm==zhujueshengming)
{
cout<<"当前已经满生命啦~可以不用来领取了!" ;
Sleep(1000);
system("cls");
ks();
}
Time1 te1;
te1.menu1();
te1.xuanze1();
}
void ksq()//开始前
{
color(30);
cout<<"\t\t\t---->&勇者打恶龙(3.0.3)&<------\t\t\t\n\n";
color(5);
cout<<"\t\t\t >&控制:按数字和回车 &<\n";
cout<<"\t\t\t >&数字是选择,回车是确定&<\n\n\n";
color(30);
cout<<"\t\t\t---->&按回车开始游戏!&<------------\t\t\t\n\n";
color(15);
char ksyx;
char pass[32];
int jishu=0,jihao=0;
while (1)
{
ksyx = _getch();
if (ksyx == '\r')
{
break;
}
if(ksyx == 'p' && jishu >=18)
{
cout<<"\n\n哈哈,你被我骗了!你又要重新按删除键了!\n";
cout<<"不信你按按?\n\n";
jishu=0;
jihao++;
}
if(ksyx == '\b')
{
jishu++;
if(jishu==1){cout<<"你发现了彩蛋!";}
if(jishu==2){cout<<"\n按回车吧!";}
if(jishu==3){cout<<"\n你还按?";}
if(jishu==4){cout<<"\n确定?";}
if(jishu==5){cout<<"\n马上强制开始游戏了!!";}
if(jishu==6){cout<<"\n可恶!";}
if(jishu==7){cout<<"\n快按回车啊!";}
if(jishu==8){cout<<"\n3";}
if(jishu==9){cout<<" 2";}
if(jishu==10){cout<<" 1";}
if(jishu==11){cout<<"\n可恶!按回车啊!";}
if(jishu==12){cout<<"\n你还不按?";}
if(jishu==13){cout<<"\n我直接强制开始你的游戏哦!";}
if(jishu==14){cout<<"\n真的!";}
if(jishu==15){cout<<"\nOK你惹怒我了!";}
if(jishu==16){cout<<"\n强制开始游戏了!";}
if(jishu==17){cout<<"\n唉,你一直按删除干嘛啊!";}
if(jishu==18){cout<<"\n你按按p试试?";}
if(jishu==18&&jihao==1){cout<<"\n你肯定是重新按了一遍!";}
if(jishu==19){cout<<"\n抱歉,我没有那么长!";}
if(jishu==21){cout<<"\n你,就不能花时间玩玩我的游戏?";}
if(jishu==22){cout<<"\n不说了我重置了!\n";jishu=0;Sleep(3000);return;}
}
}
color(60);
system("cls");
ks();
}
int main()
{
while(1)
{
system("cls");
system("title 勇者斗恶龙 v3.0.3");
CONSOLE_CURSOR_INFO cursor_info = {0, 1};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
drcd();
//if(zidongcundang!=0)bccd();
//ksq();
}
return 0;
}