This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
levelmilestone.php
151 lines (147 loc) · 16.5 KB
/
levelmilestone.php
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
<?php
session_name("icsession");
session_start();
include('db.php');
$getchar = mysql_query("SELECT * FROM characters WHERE id='".$_SESSION['userid']."'") or die(mysql_error());
$char = mysql_fetch_assoc($getchar);
if($newlvl == "50"){
$bonusGold = "5000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "100"){
$bonusGold = "10000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "250"){
$bonusGold = "50000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "500"){
$bonusGold = "100000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "1000"){
$bonusGold = "500000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "1500"){
$bonusGold = "1000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "2500"){
$bonusGold = "5000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "5000"){
$bonusGold = "10000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "10000"){
$bonusGold = "25000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "20000"){
$bonusGold = "50000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "35000"){
$bonusGold = "100000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "60000"){
$bonusGold = "165000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}elseif($newlvl == "100000"){
$bonusGold = "275000000";
$refferalNEWgold = $char['gold'] + $bonusGold;
$updateRefferal = mysql_query("UPDATE characters SET gold='".$refferalNEWgold."' WHERE username='".$char['username']."'");
$messagechat = "<strong><font color=\'#662200\'>".$char['username']." reached level ".number_format($newlvl).". As a milestone bonus, ".$char['username']." gets ".number_format($bonusGold)." gold!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', 'Chatroom')");
}
if($newlvl == 10000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 20000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 30000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 40000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 50000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 60000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 70000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 80000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 90000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 100000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 110000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 120000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 130000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 140000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 150000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 160000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 170000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 180000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 190000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}elseif($newlvl == 200000){
$messagechat = "<strong><font color=\'#662200\'>The difficulty of achieving levels has increased on your behalf!</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `username`, `message`, `to`) VALUES ('".$date."', '3', '".$char['username']."', '".$messagechat."', '".$char['username']."')");
}
?>