- Joined
- Sep 22, 2009
- Messages
- 1,488
- Reaction score
- 215
Well I made a Grand Reset module for Motion Mu that gives 5000 credits for Savoy's webshop when you made 999 resets(it can be changed).
GUIDE
Query for the query analyzer:
Put gres.php in folder modules.(the download is atached)
Add in the menu index.php?op=gres
View attachment gres.zip
Put grank.php in folder modules.(the download is atached)
Add in the menu index.php?op=grank
View attachment grank.zip
Credits: ViciouS (me xD)
GRAND RESET MODULE FROM MeMoS
If you have errors write in the threat!
GUIDE
Query for the query analyzer:
Code:
Use MuOnline
alter table Character add GrandRes int not null default 0
go
Put gres.php in folder modules.(the download is atached)
Add in the menu index.php?op=gres
View attachment gres.zip
Put grank.php in folder modules.(the download is atached)
Add in the menu index.php?op=grank
View attachment grank.zip
Credits: ViciouS (me xD)
GRAND RESET MODULE FROM MeMoS
PHP:
<form action="" method="post">
<table align="center" width="100" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><div align="right" class="normal_text_white">Character</div></td>
<td colspan="4"><div align="left"><input name="character" type="text" class="input" id="character" size="14" maxlength="10" value="" /></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="greset" value="Make Grand Reset" class="button" />
</td>
</tr>
</table>
</form>
<?php
if(isset($_POST['greset']))
{
include("config.php");
$needed_res=999;
$max_gr=10;
$gets_credits=5000;
$account_id = htmlspecialchars($_SESSION['user'], ENT_QUOTES);
$account_id = clean_var($account_id);
$character=htmlspecialchars($_POST['character'], ENT_QUOTES);
$error=0;
$query1 = mssql_query("SELECT Resets,GrandRes FROM Character WHERE Name='".$character."' AND AccountID='".$account_id."'");
$resets = mssql_fetch_row($query1);
$isonline = mssql_query("SELECT ConnectStat from MEMB_STAT WHERE memb___id='".$account_id."'");
$isonlinedone = mssql_fetch_row($isonline);
$pcredits = mssql_query("SELECT credits from MEMB_CREDITS WHERE memb___id='".$account_id."'");
$pcreditsdone = mssql_fetch_row($pcredits);
$new_gr=($resets[1]+1);
$new_credits=($pcreditsdone[0]+$gets_credits);
$new_reset=($resets[0] - $needed_res);
if(!isset($_SESSION['user']))
{
echo("$warning_start You Are Not Logged! $warning_end");
$error=1;
}
if($resets[0] < $needed_res)
{
$error=1;
echo("$warning_start $character Need $needed_res Resets To Grand Reset! $warning_end");
}
if($new_gr > $max_gr)
{
$error=1;
echo("$warning_start $character You Have Reach The Maximum Grand Resets! $warning_end");
}
if($isonlinedone[0] == 1)
{
$error=1;
echo("$warning_start $character Is Online! $warning_end");
}
if($error==0){
$run=mssql_query("UPDATE Character set GrandRes='".$new_gr."',Resets='".$new_reset."' WHERE Name='".$character."' AND AccountID='".$account_id."'");
$run2=mssql_query("UPDATE MEMB_CREDITS set credits='".$new_credits."' WHERE memb___id='".$account_id."'");
echo "You Succesfuly Made Your ".$new_gr." Grand Reset!";
}
}
?>
If you have errors write in the threat!
Last edited: