You last visited: Today at 06:29
Advertisement
[Code]Reset dungeon + guild dungeon By : Crasim Edit : Krejcomut
Discussion on [Code]Reset dungeon + guild dungeon By : Crasim Edit : Krejcomut within the Browsergames forum part of the Other Online Games category.
06/17/2014, 14:55
#1
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
[Code]Reset dungeon + guild dungeon By : Crasim Edit : Krejcomut
PHP Code:
<?php
include( '../functions.php' );
if(isset( $_GET [ 'player' ]))
{
$uid = mysql_real_escape_string ( $_GET [ 'player' ]);
$row = mysql_fetch_array ( mysql_query ( "SELECT user_name FROM user_data WHERE user_id='" . $uid . "' LIMIT 1" ));
$username = $row [ 'user_name' ];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="de" dir="ltr">
<title>Dungeon Reset</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta name="author" content="Playa Games GmbH">
<meta name="publisher" content="Playa Games GmbH">
<meta name="copyright" content="Copyright 2011 Playa Games GmbH">
<meta name="keywords" content="browser games, browsergames, mmorpg, online game, online games, online games kostenlos, online rollenspiel, online rollenspiele, onlinegames, onlinespiel, browsergame, browsergames kostenlos, browserspiele, kostenlose mmorpg, mmorpg online games">
<meta name="description" content="Das lustige Shakes & Fidget Spiel">
<style type="text/css">
body {
background:url(../res/background.jpg);
background-repeat:no-repeat;
background-position:top center;
background-color:#000000;
font-family: Tahoma, Arial, Helvetica, sans-serif;
color: #FFFFFF;
margin: 188px auto auto 0;
}
a:link { text-decoration:none; color:#ffd9aa; }
a:visited { text-decoration:none; color:#ffd9aa; }
a:hover { text-decoration:underline; color:#ffd9aa; }
a:active { text-decoration:none; color:#ffd9aa; }
a:focus { text-decoration:none; color:#ffd9aa; }
h1{
font-size: 1.2em;
font-weight: bold;
padding:0;
margin:0;
margin-bottom: 0.5em;
}
.imprint2 {
margin-top: 130px;
color: #000000;
}
.imprint2 a {
color: #000000;
text-decoration: underline;
}
input[type=text], textarea, input[type=password] {
border: 1px solid #929292;
color: #929292;
padding: 10px;
vertical-align: text-top;
width: 300px;
-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
-moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-border-radius: 5px;
-khtml-border-radius: 5px;
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
}
input[type=submit] {
border: 1px solid #929292;
color: #000;
font-weight: bold;
padding: 10px;
vertical-align: text-top;
width: auto;
-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
-moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-border-radius: 5px;
-khtml-border-radius: 5px;
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
}
</style>
</head>
<body>
<center>
<table align="center" width="570px" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF;">
<tbody>
<tr>
<td style="padding: 0; margin:0">
<div style="overflow: auto; height: 360px; padding: 10px">
<br><br><br>
<?php
if(!isset( $_POST [ "doit" ]))
{
?>
<center>
<h1>Hi <b><?=$username?> </b>!</h1>
<br>
You are about to reset all dungeons. To confirm please enter your password.
<br><br>
<form action="<?=$_SERVER [ "PHP_SELF" ] ?> " method="post" enctype="multipart/form-data" target="_self">
<input type="password" name="password" size="10" value=""><br><br>
<input type="submit" value="Confirm!" name="button">
<input type="hidden" name="doit" value="yes" />
<input type="hidden" name="uid" value="<?=$uid?> " />
</form>
</center>
<?php
}
if(isset( $_POST [ "doit" ]))
{
$userid = $_POST [ "uid" ];
$pass = $_POST [ "password" ];
$row = mysql_fetch_array ( mysql_query ( "SELECT password FROM user_data WHERE user_id='" . $userid . "' LIMIT 1" ));
if( $row [ "password" ] == md5 ( $pass ))
{
mysql_query ( "UPDATE user_data
SET dungeon_1 = '0' , dungeon_2 = '0', dungeon_3 = '0', dungeon_4 = '0', dungeon_5 = '0', dungeon_6 = '0', dungeon_7 = '0', dungeon_8 = '0', dungeon_9 = '0', dungeon_10 = '0', dungeon_11 = '0', dungeon_12 = '0', dungeon_13 = '0', tower_level = '1', guild_level = '1'
WHERE user_id = '" . $userid . "' LIMIT 1" );
echo '<script>window.close();</script>' ; // for new browser
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">' ; // for old browser
}
else
{
echo '<script>window.close();</script>' ; // for new browser
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">' ; // for old browser
}
}
?>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
06/17/2014, 15:28
#2
elite*gold: 1
Join Date: Jun 2011
Posts: 1,465
Received Thanks: 1,065
PHP Code:
mysql_query ( "UPDATE user_data
SET dungeon_1 = '0' , dungeon_2 = '0',
dungeon_3 = '0', dungeon_4 = '0', dungeon_5 = '0',
dungeon_6 = '0', dungeon_7 = '0', dungeon_8 = '0',
dungeon_9 = '0', dungeon_10 = '0', dungeon_11 = '0',
dungeon_12 = '0', dungeon_13 = '0', tower_level = '1',
guild_level = '1'
WHERE user_id = '" . $userid . "' LIMIT 1" );
PHP Code:
guild_level = '1'
xDDD
06/17/2014, 15:35
#3
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
work good
06/17/2014, 15:41
#4
elite*gold: 0
Join Date: Apr 2014
Posts: 226
Received Thanks: 27
This is code only for reset dung?
06/17/2014, 16:15
#5
elite*gold: 0
Join Date: May 2014
Posts: 5
Received Thanks: 0
for what game is that?
06/17/2014, 16:32
#6
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
shakes and fidget
06/17/2014, 22:11
#7
elite*gold: 995
Join Date: Jun 2013
Posts: 2,662
Received Thanks: 319
How can i use that?
06/18/2014, 09:30
#8
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
must have reset from crasim and paste to dungeon.php
06/18/2014, 09:41
#9
elite*gold: 1
Join Date: Jun 2011
Posts: 1,465
Received Thanks: 1,065
Quote:
What did you edit?
PHP Code:
guild_level = '1'
this isn't worth a new thread or to put YOUR name to it..
06/18/2014, 10:45
#10
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
nobody cares it
Similar Threads
possible to reset dungeon entry faster?
03/16/2014 - Aura Kingdom - 6 Replies
hey guys, just wondering if it's possible to reset dungeon entry faster, instead of waiting for hours, or is it server sided?
how to edit Dungeon?
10/18/2012 - Dekaron Private Server - 1 Replies
Title please help me edit dungeon!
Exp : request money ....,Level etc .:rtfm:
edit the max lvl from dungeon
03/25/2009 - Dekaron - 4 Replies
heyo
i wanna edit the max lvl from crevice dungeon, its 180 atm
(i play p-server)
i opened it with CSV and searched for max lvl (coloumn 64)
i edited it in maplist.csv and maplist1.csv
but it doesnt work? why not?
they really made it serversided? i cant believe it oO
edit the max lvl from dungeon
03/23/2009 - Dekaron Private Server - 4 Replies
heyo
i wanna edit the max lvl from crevice dungeon, its 180 atm
(i play p-server)
i opened it with CSV and searched for max lvl (coloumn 64)
i edited it in maplist.csv and maplist1.csv
but it doesnt work? why not?
they really made it serversided? i cant believe it oO
Edit the money of the dungeon!
04/13/2008 - Dekaron - 6 Replies
Hello I wanted to know if the money is to edit the dungeon? Eg to enter the dungeon of crespo you must have 300k, is to change this value to 50k?
All times are GMT +2. The time now is 06:30 .