1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
|
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
/*VARIABLES*/
float menuoption;
float minecraftoption;
int mobdetail;
int mobdetailzombie;
int mobdetailzombiepigman;
int mobdetailskeleton;
int mobdetailspider;
int mobdetailcavespider;
int mobdetailspiderjockey;
int hostile_passive;
int main()
{
start:
cout << string(300, '\n');
cout<<("Welcome to my c++ file! Please select one of the following options.\n\n1-Minecraft") << endl << endl;
cout<<("\nCHOICE: ") << endl << endl;
cin>> menuoption;
if(menuoption==1)
{
/*MINECRAFT*/
cout << string(300, '\n');
cout<<("Thank you for choosing the minecraft option.\n\nPlease select what you want to do") << endl << endl;
cout<<("\n1-Minecraft Item ID's, 2-Mob details") << endl << endl;
cout<<("\nCHOICE: ") << endl << endl;
cin>> minecraftoption;
if(minecraftoption==1)
{
/*MINECRAFT ID'S*/
cout << string(300, '\n');
}
else if(minecraftoption==2)
{
/*MOB DETAILS*/
/*Passive or Hostile*/
cout<< string(300, '\n');
cout<<("Please select one of the following options:\n\n1 - Passive, 2 - Hostile\n\n");
cout<<("CHOICE: ");
cin>> hostile_passive;
if(hostile_passive==2)
{
cout << string(300, '\n');
cout<<("0-zombie, 1-zombie pigman, 2-skeleton, 3-spider, 4-cave spider, 5-spider jockey,6-creeper, 7-slime, 8-silverfish, 9-witch, 10-enderman, 11-ghast, 12-blaze\n13-magma cube, 14-wither skeleton, 15-wither");
cout<<("\n\nPlease state the mob you want to look up: ");
cin>> mobdetail;
if(mobdetail==0)
{
/*zombie*/
<- <- <- <- <- <- <- <- <-
cout << string(300, '\n');
cout<<("\n\nName - Zombie\n");
cout<<("Found - Cave systems and at night\n");
cout<<("Drops - Rotton Flesh, Iron Ignot, carrot, potato.\n");
cout<<("Rare drops - Iron shovel, Iron sword, random aromor.\n");
cout<<("Experiance - 5\n");
cout<<("Attack strength(hp16-20) - easy - 2, normal - 3, hard - 4.\n");
cout<<("Attack strength(hp11-15) - easy - 3, normal - 4, hard - 6.\n");
cout<<("Attack strength(hp6-10) - easy - 3, normal - 5, hard - 7.\n");
cout<<("Attack strength(hp1-5) - easy - 4, normal - 6, hard - 9.\n");
cout<<("Health - 20.\n");
cout<<("Do you want to continue? 1 - yes, 0 - no: ");
cin>> mobdetailzombie;
if(mobdetailzombie==0)
{
cout << string(300, '\n');
}
if(mobdetailzombie==1)
{
cout << string(300, '\n');
goto start;
}
}
if(mobdetail==1)
{
/*zombie pigman*/
<- <- <- <- <- <- <- <- <-
cout << string(300, '\n');
cout<<("\n\nName - Zombie Pigman\n");
cout<<("Found - Dimely lit areas in the Nether, and when a pig is struck by lightening.\n");
cout<<("Drops - Rotton flesh, gold nugget.\n");
cout<<("Rare drops - Golden Sword, Random Armor.\n");
cout<<("Experiance - 5.\n");
cout<<("Attack strength - easy - 5, normal - 9, hard - 13.\n");
cout<<("Health - 20\n");
cout<<("Need to know - If attacked, other zombie pigmen will attack you.\n");
cout<<("Do you want to continue\n1 - yes, 0 - no\n");
cout<<("CHOICE: ");
cin>> mobdetailzombiepigman;
if(mobdetailzombiepigman==0)
{
cout << string(300, '\n');
}
else if(mobdetailzombiepigman==1)
{
cout << string(300, '\n');
goto start;
}
}
if(mobdetail==2)
{
/*skeleton*/
cout << string(300, '\n');
cout<<("\n\nName - Skeleton\n");
cout<<("Found - If light level is less than 7(excluding slabs)\n");
cout<<("Drops - Bone, Arrow\n");
cout<<("Rare drops - Bow, random armor\n");
cout<<("Experiance - 5\n");
cout<<("Attack strentgh bow - easy - 2, normal - 3-4, hard - 4-6.\n");
cout<<("Attack strentgh sword - easy - 2, normal - 2, hard - 3.\n");
cout<<("Health - 20\n\n");
cout<<("Do you want to continue?\nYes - 1, no - 0\n");
cout<<("CHOICE: ");
cin>> mobdetailskeleton;
if(mobdetailskeleton==0)
{
cout << string(300, '\n');
}
else if(mobdetailskeleton==1)
{
cout << string(300, '\n');
goto start;
}
}
if(mobdetail==3)
{
/*spider*/
<- <- <- <- <- <- <-
}
}
if(mobdetail==4)
{
/*cave spider*/
<- <- <- <- <- <- <- <- <-
cout << string(300, '\n');
cout<<("\n\nName - Cave Spider\n");
cout<<("Found - Abandoned Mineshaft's.\n");
cout<<("Drops - String, spider eye.\n");
cout<<("Experiance - 5.\n");
cout<<("Attack strength - easy - 2, normal - 2(poisoned), hard - 3(poisoned)\n");
cout<<("Attack strength (venom, 1 hit per 1.5 secs), normal - 4, hard - 10.\n");
cout<<("Health - 12\n");
cout<<("Do you want to continue?\nYes - 1, no - 0\n");
cin>> mobdetailcavespider;
if(mobdetailcavespider==0)
{
cout<< string(300, '\n');
}
else if(mobdetailcavespider==1)
{
cout<< string(300, '\n');
goto start;
}
}
if(mobdetail==5)
{
/*spider jockey*/
} <- <- <- <- <- <- <- <- <-
if(mobdetail==6)
{
/*creeper*/
}
if(mobdetail==7)
{
/*slime*/
}
if(mobdetail==8)
{
/*silverfish*/
}
if(mobdetail==9)
{
/*witch*/
}
if(mobdetail==10)
{
/*enderman*/
}
if(mobdetail==11)
{
/*ghast*/
}
if(mobdetail==12)
{
/*blaze*/
}
if(mobdetail==13)
{
/*magma cube*/
}
if(mobdetail==14)
{
/*wither skeleton*/
}
if(mobdetail==15)
{
/*wither*/
}
/*END OF HOSTILE MOB*/
}
}
}
if(menuoption!=1)
{
cout << string(300, '\n');
cout<<("I'm sorry, the option you entered is not reconised. Application will now close");}
}
|