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
/
0000r0000e0000s0000e0000t.php
105 lines (44 loc) · 2.99 KB
/
0000r0000e0000s0000e0000t.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
<?php
include('db.php');
$gettemple = mysql_query("SELECT * FROM temple");
$temple = mysql_fetch_assoc($gettemple);
$update1 = mysql_query("UPDATE characters SET temple='0'");
$getUsers = mysql_query("SELECT * FROM characters");
while($userMana = mysql_fetch_array($getUsers)){
$getchar = mysql_query("SELECT * FROM characters WHERE id='".$userMana['id']."'");
$char = mysql_fetch_assoc($getchar);
$getequip = mysql_query("SELECT * FROM inventory WHERE username='".$char['username']."' AND equipped='Yes'");
if(mysql_num_rows($getequip) > "0")
{
$eqintbon = 0;
while($equip = mysql_fetch_array($getequip))
{
$eqintbon += $equip['intelligence'];
}
}
$charint = $char['intelligence'] + $eqintbon;
$updateMana = mysql_query("UPDATE characters SET mana='".$charint."' WHERE username='".$char['username']."'");
}
$addAttempt = mysql_query("UPDATE characters SET vodooattempt='0'");
$addlogin = mysql_query("UPDATE characters SET dailylogin='0'");
$updatedBlessings1 = "None, Buy, Buy, Buy, Buy, Buy, Buy, Buy, Buy";
$runblessingReset1 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings1."' WHERE affinitys='1'");
$updatedBlessings2 = "None, None, Buy, Buy, Buy, Buy, Buy, Buy, Buy";
$runblessingReset2 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings2."' WHERE affinitys='2'");
$updatedBlessings3 = "None, None, None, Buy, Buy, Buy, Buy, Buy, Buy";
$runblessingReset3 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings3."' WHERE affinitys='3'");
$updatedBlessings4 = "None, None, None, None, Buy, Buy, Buy, Buy, Buy";
$runblessingReset4 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings4."' WHERE affinitys='4'");
$updatedBlessings5 = "None, None, None, None, None, Buy, Buy, Buy, Buy";
$runblessingReset5 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings5."' WHERE affinitys='5'");
$updatedBlessings6 = "None, None, None, None, None, None, Buy, Buy, Buy";
$runblessingReset6 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings6."' WHERE affinitys='6'");
$updatedBlessings7 = "None, None, None, None, None, None, None, Buy, Buy";
$runblessingReset7 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings7."' WHERE affinitys='7'");
$updatedBlessings8 = "None, None, None, None, None, None, None, None, Buy";
$runblessingReset8 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings8."' WHERE affinitys='8'");
$updatedBlessings9 = "None, None, None, None, None, None, None, None, None";
$runblessingReset9 = mysql_query("UPDATE characters SET blessing='".$updatedBlessings9."' WHERE affinitys='9'");
$messagechat = "<strong><font color=\'#00FF00\'>(System): Daily reset occured. Blessings reset, Temple reset, Mana rejuvinated.</font></strong><br />";
$query = mysql_query("INSERT INTO chatroom (`date`, `userlevel`, `message`, `to`) VALUES ('".$date."', '3', '".$messagechat."', 'Chatroom')");
?>