forked from gamehelp16/chickens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchallenges.html
95 lines (84 loc) · 2.47 KB
/
challenges.html
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
<!DOCTYPE HTML>
<!--
Yes, I know this is cheatable, but the game itself is cheatable too
-->
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Reddit Special</title>
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<script type="text/javascript">
datas=[];
redditspecialstep=0;
if(localStorage.chickensgamesave == "" || localStorage.chickensgamesave === null) {
alert("Oops, it seems that you haven't even played the game! :o");
window.location="index.html?redditspecial=true";
}
else {
savecode=atob(localStorage.chickensgamesave).split("|");
for(i=0;i<savecode.length;i++) {
datas.push(savecode[i]);
}
}
function validate() {
pw=document.getElementById("password").value;
if(datas[60]==0) {
if(pw=="chickennuggetsareextremelygoodforyourhealth") {
datas[60]++;
datas[4]++;
joindata();
alert("True! You got a piece of emerald chicken meat!\nNow you will be redirected to the main game page");
window.location="index.html?redditspecial=true";
}
else {
alert("Wrong password!");
}
}
else if(datas[60]==1) {
if(pw=="chickenslayer") {
datas[60]++;
datas[54]++;
joindata();
alert("True! You got a teleportation device!\nNow you will be redirected to the main game page");
window.location="index.html?redditspecial=true";
}
else {
alert("Wrong password!");
}
}
else if(datas[60]==2) {
if(pw=="3142222413") {
datas[60]++;
a=parseInt(datas[0]);
a+=31422;
datas[0]=a;
joindata();
alert("True! You got 31422 chicken meats!\nNow you will be redirected to the main game page");
window.location="index.html?redditspecial=true";
}
else {
alert("Wronag password!");
}
}
else if(datas[60]==3) {
if(pw.replace(/\s+/g,"")=="justtypeanythingyouwant" || pw.replace(/\s+/g,"")=="typeanythingyouwant" || pw.replace(/\s+/g,"")=="anythingyouwant") {
datas[60]++;
joindata();
alert("True! Since this one is a hard one, you got 100 extra max HP!\nNow you will be redirected to the main game page")
window.location="index.html?redditspecial=true";
}
else {
alert("Wrong password!");
}
}
}
function joindata() {
localStorage.chickensgamesave=btoa(datas.join("|"));
}
</script>
</head>
<body>
Ok, so what's the password?<br><div style="height:5px;"></div>
<input type="text" id="password"> <input type="button" onclick="validate()" value="Validate password" style="display:inline-block;">
</body>
</html>