<?php include "head.php"; if ($logged_in) { if (!$stat['id']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> If you are logged on then this message was generated due to session timeout!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if (!isset($_POST['id'])) { $id = $_GET['id']; } else { $id = $_POST['id']; } $id = smartquote($id); $find = mysql_fetch_array(mysql_query("select * from tradepropose where tradeid={$id} and active='Y'")) or die("Can not find trade information"); /* Check if you have trade already proposed with this person */ if (!$find) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Trade isn't there!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* End */ $stat1 = mysql_fetch_array(mysql_query("select * from players where id='{$find['propose']}'")); $stat2 = mysql_fetch_array(mysql_query("select * from players where id='{$find['owner']}'")); $accept = $_POST['accept']; if ($accept == 'Accept') { /* Check if security pass is there or valid */ $answer = $_POST['answer']; if (!$answer) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> No security pass typed!<br>\n </tr>\n </table>\n </center>\n</div>";
} if ($answer != $stat['answer']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You need to write your security pass correctly!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $points = 15; if ($stat['points'] < $points) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You do not have enough points!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $addna = mysql_query("select itemid,owner,name from iteminv where itemid='{$addn}'"); $addnam = mysql_fetch_array($addna); $addname = "{$stat['username']}'s {$addnam['name']}"; $addname = smartquote($addname); mysql_query("update iteminv set name={$addname} where itemid='{$addnam['itemid']}' and owner='{$stat['id']}'") or die("Nothing there"); mysql_query("update players set points=points-'{$points}' where id='{$stat['id']}'"); echo "<h5><b>Done!</b></h5>"; } ?> <div align="center"> <table bgcolor="#202020" width="724"> <td><div align="center"><img width="700" src="images/blacksmith.jpg"></div></td> <tr> <td > <table align=center width=724 cellpadding=0 cellspacing=0 border=1 bgcolor="#191818"> <td>
<td> <img src="images/world/mobs/<?php $mobview['pic']; ?> " width="250" height="250"> </td> <?php if (isset($harvest)) { echo "<td valign=top>" . $mobfunc->message . "</td>"; } else { ?> <td valign="top"> <p> <?php $descr = mysql_query("select * from world_mobs_1 where name=" . smartquote($mobview['name']) . ""); $desc = mysql_fetch_assoc($descr); if ($desc['desc'] > "") { echo $desc['desc']; } else { echo "No profile description"; } ?> </p> </td> <?php } ?> </tr> </table> </td>
echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You cannot accept this quest again!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $actcount1 = mysql_num_rows(mysql_query("select * from qactive where mob='{$mobid}' and mobqid=" . $mobq[$mobid]["qid"] . " and owner='{$stat['id']}' and complete='1'")); if ($actcount1 >= 1) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You already completed this quest!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } mysql_query("insert into qactive (mob,mobqid,owner,type,accept,complete,start) VALUES ('{$mobid}'," . $mobq[$mobid]["qid"] . ",'{$stat['id']}'," . $mobq[$mobid]["type"] . ",'1','0',UNIX_TIMESTAMP())") or die("Something went wrong(7)"); /* All quest items */ $qzero = 0; while ($mobq[$mobid]["questqty"] > $qzero) { $qitemid = $qzero + 1; mysql_query("insert into qitems (mob,name,owner,type,qty,maxqty,dropby) VALUES ({$mobid}," . smartquote($mobq[$mobid]["name"][$qitemid]) . ",'{$stat['id']}','" . $mobq[$mobid]["itype"][$qitemid] . "','0'," . $mobq[$mobid]["maxqty"][$qitemid] . ",'" . $mobq[$mobid]["droppedby"][$qitemid] . "')") or die("Something went wrong(8)"); $qzero++; } echo "<h3>Accepted quest.</h3>"; } $mobquest = mysql_fetch_assoc(mysql_query("select * from qactive where mob='{$mobid}' and mobqid=" . $mobq[$mobid]["qid"] . " and owner='{$stat['id']}'")); ?> <br> <center> <table cellspacing="0" cellpadding="0" width="700" height="250" bgcolor="#000000" border="1" style="border-collapse: collapse"> <tr> <td valign="top"> <img align="right" width="250" height="250" style="margin-top:5px;margin-right:5px;margin-bottom:5px;" src="images/world/mobs/<?php $mobview['pic']; ?> ">
<?php include "head.php"; if ($logged_in) { $block = $_POST['submit']; if ($block == 'Block User') { $answer = $_POST['answer']; if ($answer != $stat['answer']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You need to write your security pass correctly!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $name = smartquote($_POST['name']); $idf = mysql_query("select * from players where username={$name}"); $id = mysql_fetch_array($idf); $allycount = mysql_num_rows(mysql_query("select * from tempplally where owner='{$id['id']}' and propose='{$stat['id']}'")); $allycount1 = mysql_num_rows(mysql_query("select * from tempplally where owner='{$stat['id']}' and propose='{$id['id']}'")); $allycount2 = mysql_num_rows(mysql_query("select * from plally where ally='{$stat['id']}' and ally1='{$id['id']}'")); $allycount3 = mysql_num_rows(mysql_query("select * from plally where ally='{$id['id']}' and ally1='{$stat['id']}'")); $enemycount = mysql_num_rows(mysql_query("select * from prsenemy where owner='{$stat['id']}' and enemy='{$id['id']}'")); $blockcount = mysql_num_rows(mysql_query("select * from block where blocker='{$stat['id']}' and owner='{$id['id']}'")); $blockcount1 = mysql_num_rows(mysql_query("select * from block where blocker='{$id['id']}' and owner='{$stat['id']}'")); if ($id['id'] == $stat['id']) { echo "\n <br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font>You can't block yourself!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($allycount >= 1) { echo "\n <br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You cannot block this player due to a proposed alliance.<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit;
$message = trim($message); if (strlen($message) > 4000) { die("<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Sorry, the message is more than 4000 characters, please make it shorter!<br>\n </tr>\n </table>\n </center>\n</div>"); } $name1 = mysql_fetch_array(mysql_query("select id from players where username='******'")) or die("Cannot find player"); $name2 = mysql_fetch_array(mysql_query("select id from players where id='{$name1['id']}'")); // redundant if ($name2['id'] == $stat['id']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't send a message to yourself you fool!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } strip_tags($subject); strip_tags($message); $subject = smartquote($subject); $message = smartquote($message); mysql_query("insert into mail (owner,senderid,sender,subject,message,time,ip) values('{$name2['id']}','{$stat['id']}','{$stat['username']}',{$subject},{$message}," . time() . ",'{$ip}')") or die("Cannot send message"); echo "<font size=2><b>Message Sent!</b></font><BR><BR>"; ?> <?php } ?> <div align="center"> <center> <form method="post" action="sendmessage.php"> <table border="1" cellspacing="0" width="<?php $global_width; ?> " gcolor="#191818" cellpadding="2" style="border-collapse: collapse">
exit; } /* Check if item is up for trade */ $check2 = mysql_query("select * from tradecenter where itemid='{$drop4['itemid']}'"); $check3 = mysql_num_rows($check2); if ($check3 > 0) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> {$drop4['itemid']} You cannot drop an item up for trade!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* End */ mysql_query("delete from " . PLAYERS_ITEMS_TABLE . " where itemid='{$drop3['value']}' && owner = '{$stat['id']}'") or die("Could not drop the item"); } } $remove = $_GET['removeitem']; $remove = smartquote($remove); if ($remove > 0) { $remove1 = mysql_fetch_assoc(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner = '{$stat['id']}' and itemid={$remove}")) or die("Can not find the item to remove"); if ($remove1['owner'] != $stat['id']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This is not your item!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($remove1['status'] == 'U') { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This item has already been dequiped do not double click!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } mysql_query("update " . PLAYERS_ITEMS_TABLE . " set status='U' where slot='{$remove1['slot']}' && owner = '{$stat['id']}' && itemid='{$remove1['itemid']}'") or die("Could not remove the item"); } }
<?php include "head.php"; if ($logged_in) { if (!$_GET['id']) { $id1 = smartquote($_POST['id']); } else { $id1 = smartquote($_GET['id']); } if (ctype_digit($id1)) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You must type a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $id = mysql_fetch_array(mysql_query("select * from players where id='{$id1}' and crew='{$stat['crew']}'")); if (empty($id['id'])) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ALERT:</b></font> This player is not in your crew<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($id['id'] and $stat['crewrank'] <= $per['boot']) { ?> <p> </p> <div align="center"> <center> <form method="POST" action="managecrew.php"> <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" width="400" bgcolor="#202020"> <tr> <td width="100%"> <p align="center"><font color="#FF0000"><b>Confirm Boot</b></font></p>
<?php include "head.php"; if ($logged_in) { if ($stat['crewrank'] <= $per['raids']) { $raid2 = mysql_query("select * from cactive where leader='{$stat['id']}' and active='Y'"); $raid3 = mysql_num_rows($raid2); if ($raid3 == '1') { echo "\n\t<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You Currently Have A Raid Forming!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $form = $_POST['formraid']; if ($form == 'Form Raid') { $target = $_POST['target']; $target = smartquote($target); if (ctype_digit($target)) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You must type a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $raid = mysql_query("select * from crew where crewid={$target}"); $raid1 = mysql_fetch_array($raid); if ($stat['attacks'] < 20) { echo "\n\t<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Not enough attacks!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $time = $_POST['formtime']; $message = $_POST['message'];
<?php include "head.php"; ?> <?php $id = $_GET['pid']; $sid = $_GET['check']; $id = smartquote($id); $sid = smartquote($sid); $check = mysql_num_rows(mysql_query("select * from `confirm` where `id`={$id} and `sid`={$sid}")); if ($check > 0) { $sel = mysql_fetch_array(mysql_query("select `id`, `password`, `username`, `email`, `cash`, `bank`, `class` from `players`,`parent` where `id`={$id}")); mysql_query("insert into rankings (id,username,cash,bank,class) values('{$sel['id']}',{$sel['username']},'{$sel['cash']}','{$sel['bank']}','{$sel['class']}')"); $ipcheck = mysql_num_rows(mysql_query("SELECT * FROM `iplog` WHERE ip='{$_SERVER['REMOTE_ADDR']}'")); if ($sel['parent'] > 0 and $ipcheck == 0) { mysql_query("INSERT INTO `ref` (`referer`,`refer`,`time`) VALUES ({$sel['parent']},{$sel['id']},UNIX_TIMESTAMP())"); mysql_query("UPDATE `players` SET `ref`=`ref`+1 WHERE `id`={$sel['parent']}"); } mysql_query("insert into iplog (ip,pid,time) values ('{$_SERVER['REMOTE_ADDR']}',{$sel['id']}," . time() . ")"); mysql_query("delete from `confirm` where `id`={$id}"); echo "Account activated please login."; } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You already confirmed this account or else you never signed up.<br>\n </tr>\n </table>\n </center>\n</div>"; } ?> <?php include "includes/footer.inc.php";
<?php include "head.php"; if ($logged_in) { $raid = smartquote($_GET['raid']); $craid = mysql_fetch_array(mysql_query("select * from cactive where crewrid={$raid}")); if (!$craid['crewrid']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Either raid has ended or Invalid Raid!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } ?> <table bgcolor="#000000" width="100%"> <?php $crew = mysql_fetch_array(mysql_query("select * from crew where crewid={$craid['crewid']}")); $crewr1 = mysql_fetch_array(mysql_query("select * from crew where crewid='{$craid['defcrew']}'")); function raidattack() { global $raid; global $crewr1; global $crew; global $crewpow; global $mess; global $craid; global $c2atkdmg; global $sum2; global $sum3; global $sum4; global $sum5; global $sum6; global $sum7;
function do_itemupload() { global $stat; $name = $_POST['name']; $slot = $_POST['slot']; // Create an array containing all valid upload file types for this script $allowed_types = array("image/gif" => "gif", "image/pjpeg" => "jpg", "image/jpeg" => "jpg", "image/x-png" => "png"); // Check to see if the file type is in the allowed types array if (!array_key_exists($_FILES['userfile']['type'], $allowed_types)) { die("Invalid file type."); } if (!$name) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font> You must set an item name!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if (eregi('[a-z0-9]', $name)) { } else { echo "\n\t<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> The item name contains an invalid character(s)!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $name = smartquote($name); $size = getimagesize(rtrim($_FILES['userfile']['tmp_name'])); if ($slot == '1') { if ($size[0] > 62) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 62<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 50) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 50<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '2') { if ($size[0] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 43<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 43<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '3') { if ($size[0] > 56) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 56<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 96) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 96</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '4') { if ($size[0] > 56) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 56</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 96) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 96</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '5') { if ($size[0] > 56) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 56</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 96) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 96</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '6') { if ($size[0] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 43</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 43</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '7') { if ($size[0] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 43</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 43) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 43</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '8') { if ($size[0] > 62) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 62</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 66) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 66</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } if ($slot == '9') { if ($size[0] > 50) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Width = {$size['0']}<BR><BR>Image is too big Image Width Limit = 50</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } elseif ($size[1] > 50) { echo "<br> \n\t\t\t <div align=center>\n\t\t\t <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <center>\n <font color=#FF0000><b>ERROR:</b></font><br>Image Height = {$size['1']}<BR><BR>Image is too big Image Height Limit = 50</center><br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } } // Set the maximum uploadable file size => 51200 = 50kb $maxfilesize = 51200; // Is the file larger than it is allowed to be? if ($_FILES['userfile']['size'] > $maxfilesize) { die("File too large"); } // Where will the file be uploaded to? $uploaddir = $_SERVER['DOCUMENT_ROOT'] . "/images/items/submit/"; // What is the files temporary name? $file = $_FILES['userfile']['tmp_name']; // What is the files actual name? $filename = $_FILES['userfile']['name']; // Does this file already exist on the server? if (file_exists($uploaddir . $filename)) { die("A file with that name already exists on this server."); } else { // This file does not already exist, so copy it. copy($file, $uploaddir . $filename) or die("Could not copy file."); mysql_query("insert into `itemsubmit` (`player`,`name`,`slot`,`pic`,`status`) values ('{$stat['id']}',{$name},'{$slot}','{$filename}','O')"); } // All done! :-) echo "Upload successful"; }
exit; } $name = trim($name); if (strlen($name) < 4) { die("<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Sorry, the name you want is shorter than 4 characters, please make it longer!<br>\n </tr>\n </table>\n </center>\n</div>"); } $name = trim($name); if (strlen($name) > 20) { die("<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Sorry, Your Name is more than 20 characters, please make it shorter!<br>\n </tr>\n </table>\n </center>\n</div>"); } if ($stat['points'] < 50) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You Need More Points!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $name = smartquote($name); $name = str_replace(" ", '', $name); $name = str_replace(".", '', $name); mysql_query("update players set username={$name} where id='{$stat['id']}'") or die("Could not change name"); mysql_query("update players set points=points-50 where id='{$stat['id']}'") or die("Could not subtract points"); echo "<h1>Name Changed</h1> READ -> You have been logged out please login again WITH YOUR NEW NAME!"; } ?> <font size="3"><b>Please enter your desired new name</b></font> <form method="post"> <input type="text" size="80" name="name" value="" maxlength=30><br> <?php $stat['question']; ?> <br>
if ($_POST['pointAmt'] > $stat['points'] || $_POST['pointAmt'] <= "0") { echo "<center>You cannot bounty that many points!</center>"; die; } if (ctype_alnum($_POST['bountyUser'])) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> The Username contains an invalid character(s)!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($_POST['bountyUser'] == $stat['username']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't bounty yourself!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $_POST['bountyUser'] = smartquote($_POST['bountyUser']); $array = mysql_fetch_array(mysql_query("SELECT `username`, `membership`, `bounty` FROM `players` WHERE `username` = " . $_POST['bountyUser'] . "")); $rows = mysql_num_rows(mysql_query("SELECT `username`, `bounty` FROM `players` WHERE `username` = " . $_POST['bountyUser'] . "")); if ($rows == "0") { echo "<center>That player does not exist!</center>"; die; } if ($array['bounty'] > 0) { echo "<center>That user already has a bounty, please wait for it to expire before bountying.</center>"; die; } if ($array['membership'] == '3') { echo "<center>That user is an administrator.</center>"; die; } $points = $_POST['pointAmt'];
} if ($don4['owner'] != $stat['id']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This is not your item!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* Check if you have trade already proposed with this person */ $check = mysql_query("select * from tradecenter where itemid='{$don3['value']}'"); $check1 = mysql_num_rows($check); if ($check1 >= '1') { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You cannot donate an item up for trade!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* End */ mysql_query("insert into `donation` (`itemid`,`name`,`slot`,`set`,`gem`,`atk`,`def`,`cph`,`aph`,`income`,`maxatk`,`atkcap`,`pic`) VALUES ({$don4['itemid']}," . smartquote($don4['name']) . ",'{$don4['slot']}',{$don4['set']},{$don4['gem']},{$don4['atk']},{$don4['def']},{$don4['cph']},{$don4['aph']},{$don4['income']},{$don4['maxatk']},{$don4['atkcap']},'{$don4['pic']}')"); mysql_query("delete from `iteminv` where `itemid`={$don3['value']}"); } } } /* Withdraw */ $withdraw = $_POST['withdraw']; if ($withdraw == 'Withdraw') { $with[] = $_POST['with']; foreach ($with as $with1) { $with2 = $with1; } while ($with3 = each($with2)) { $with4 = mysql_fetch_array(mysql_query("select * from iteminv where owner = '{$stat['id']}' and itemid='{$with3['value']}'")) or die(mysql_error()); if (!$with4) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This is nothing!<br>\n </tr>\n </table>\n </center>\n</div>";
} $id = mysql_fetch_assoc(mysql_query("select * from crew where crewid={$_REQUEST['id']}")); $id1 = mysql_fetch_assoc(mysql_query("select * from crew where crewid={$stat['crew']}")); $per = mysql_fetch_assoc(mysql_query("select * from crewpermissions where cid={$_REQUEST['id']}")); if (empty($id['crewid'])) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> No such Crew<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } ?> <?php $tax = $_POST['settax']; if ($tax == "Update") { $taxper = $_POST['tax']; $taxper = smartquote($taxper); if (ctype_digit($taxper)) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You must type a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($taxper < 0) { echo "\n <br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> The tax must not and cannot contain any negative numbers<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($taxper > 25) { echo "\n <br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> The tax must not be set over 25%<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit;
<tr> <td bgcolor="#000000"> <table width="100%"> <TR> <td align="center" valign="center"> <?php $itemid = $_GET['itemid']; if (ctype_digit("{$itemid}")) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse align=center bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You must type a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; echo "</tr>\n</table>\n</td>\n</tr>\n\n<tr>\n<td>\n<center><a href=donationtree.php>BACK TO DONATION TREE</a></center>\n</td>\n</tr>\n\n</table>\n<br><br>"; include "includes/footer.inc.php"; exit; } if ($itemid > 0) { $itemid = smartquote($itemid); $item = mysql_fetch_assoc(mysql_query("select * from donation where itemid={$itemid}")); if (!$item) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Aww, you missed it. Damn it.<br>\n </tr>\n </table>\n </center>\n</div>"; echo "</tr>\n</table>\n</td>\n</tr>\n\n<tr>\n<td>\n<center><a href=donationtree.php>BACK TO DONATION TREE</a></center>\n</td>\n</tr>\n\n</table>\n<br><br>"; include "includes/footer.inc.php"; exit; } $itemcount = mysql_num_rows(mysql_query("select * from iteminv where status='U' and owner='{$stat['id']}' and slot not like 'Q'")); if ($stat['backpack'] <= $itemcount) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't buy more than the backpack limit!<br>\n </tr>\n </table>\n </center>\n</div>"; echo "</tr>\n</table>\n</td>\n</tr>\n\n<tr>\n<td>\n<center><a href=donationtree.php>BACK TO DONATION TREE</a></center>\n</td>\n</tr>\n\n</table>\n<br><br>"; include "includes/footer.inc.php"; exit; } mysql_query("insert into `iteminv` (`owner`,`name`,`slot`,`set`,`gem`,`atk`,`def`,`cph`,`aph`,`income`,`maxatk`,`atkcap`,`pic`) values ('{$stat['id']}','" . addslashes($item['name']) . "','{$item['slot']}','{$item['set']}','{$item['gem']}','{$item['atk']}','{$item['def']}','{$item['cph']}','{$item['aph']}','{$item['income']}','{$item['maxatk']}','{$item['atkcap']}','{$item['pic']}')") or die("could not buy item");
<?php include "head.php"; if ($logged_in) { $raid = $_GET['raid']; $raid = smartquote($raid); $adv1 = mysql_fetch_array(mysql_query("select * from lactiveadv where adid={$raid}")); if (!$adv1['adid']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Either raid has ended or Invalid Raid!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $time = time(); $crew = mysql_fetch_array(mysql_query("select * from crew where crewid={$adv1['crewid']}")); $adv = mysql_fetch_array(mysql_query("select * from worldadv where advid='{$adv1['defadv']}'")); function raidattack() { global $raid; global $adv; global $crew; global $crewpow; global $mess; global $adv1; global $defdmg; $mess = 0; echo "<br><p align=center class=style54 id=message_{$mess} style=visibility:hidden> <font color=lightblue><b>{$crew['name']}</b></font> Has just Attacked <font color=red><b>{$adv['name']}</b></font></p><br><br>"; $mess++; $raidjoin = mysql_query("select * from ljoinraid where raid={$raid}"); while ($raidjoin1 = mysql_fetch_array($raidjoin)) { $player = mysql_query("select * from players where id='{$raidjoin1['plid']}'"); while ($play = mysql_fetch_array($player)) {
$pcount1 = mysql_num_rows($pcount); if ($pcount1 >= $pcheck1['space'] * 5) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Your shop is full...<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* Check if you have trade already proposed with this person */ $check = mysql_query("SELECT * FROM `tradecenter` WHERE `itemid`='{$itemi}'"); $check1 = mysql_num_rows($check); if ($check1 >= '1') { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You cannot stock an item up for trade!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* End */ mysql_query("INSERT INTO `pshopitems` (`itemid`,`owner`,`name`,`amount`,`slot`,`trade`,`set`,`gem`,`atk`,`def`,`cph`,`aph`,`income`,`maxatk`,`atkcap`,`critical`,`pic`,`time`) VALUES ({$stock1['itemid']},{$pcheck1['shopid']}," . smartquote($stock1['name']) . ",{$amount},'{$stock1['slot']}','{$stock1['trade']}',{$stock1['set']},{$stock1['gem']},{$stock1['atk']},{$stock1['def']},{$stock1['cph']},{$stock1['aph']},{$stock1['income']},{$stock1['maxatk']},{$stock1['atkcap']},{$stock1['critical']},'{$stock1['pic']}',UNIX_TIMESTAMP())") or die("Something went wrong."); mysql_query("DELETE FROM `iteminv` WHERE `itemid`={$itemi}"); header("Location: profile.php"); } if ($item['gem'] == 0) { $gemimage = "<img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'>"; } if ($item['gem'] == 1) { $gemimage = "<img src='images/gem.jpg'> <img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'><br>"; } if ($item['gem'] == 2) { $gemimage = "<img src='images/gem.jpg'> <img src='images/gem1.jpg'> <img src='images/gemslot.jpg'> <img src='images/gemslot.jpg'><br>"; } if ($item['gem'] == 3) { $gemimage = "<img src='images/gem.jpg'> <img src='images/gem1.jpg'> <img src='images/gem2.jpg'> <img src='images/gemslot.jpg'><br>"; }
function mob_result($value) { global $user; global $mobatk; global $mess; switch ($value) { case 1: echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><br><font color=lightgreen><br><b>" . $user->username . "</b></font> is the winner!</td></tr>"; $mess++; $random = mt_rand(1, 100); if ($random >= 1 and $random <= 90) { /* Mob item stats */ $divbyc = 0.3; $caldclick = $mobatk['maxclicks'] * $divbyc; if ($caldclick > 10) { $statrand = $caldclick - 6; } $powergain = mt_rand($statrand, $caldclick); if ($powergain <= 1) { $powergain = mt_rand(1, 3); } /* End */ echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=lightgreen><b>" . $user->username . "</b></font> has gained <font color=#0db4d2><b>{$powergain}</b></font> clicks"; $mess++; mysql_query("update players set power=power+'{$powergain}' where id=" . $user->id . ""); mysql_query("update players set growth=growth+'{$powergain}' where id=" . $user->id . ""); } echo "<br><br>"; require "classes/mobfuncs.inc.php"; $questcheck = mysql_num_rows(mysql_query("select * from qitems where owner=" . $user->id . " and type='Q' and dropby='{$mobatk['name']}' and qty < maxqty")); if ($questcheck > 0) { $questsel = mysql_fetch_assoc(mysql_query("select mob from qitems where owner=" . $user->id . " and type='Q' and dropby='{$mobatk['name']}'")); $qidmob = $questsel['mob']; if ($mobq[$qidmob]["droppedby"][1] == "{$mobatk['name']}") { $qnumb1 = 1; } else { $qnumb1 = 0; } if ($mobq[$qidmob]["droppedby"][2] == "{$mobatk['name']}") { $qnumb2 = 1; } else { $qnumb2 = 0; } if ($mobq[$qidmob]["droppedby"][3] == "{$mobatk['name']}") { $qnumb3 = 1; } else { $qnumb3 = 0; } if ($mobq[$qidmob]["droppedby"][4] == "{$mobatk['name']}") { $qnumb4 = 1; } else { $qnumb4 = 0; } if ($mobq[$qidmob]["droppedby"][5] == "{$mobatk['name']}") { $qnumb5 = 1; } else { $qnumb5 = 0; } if ($mobq[$qidmob]["droppedby"][6] == "{$mobatk['name']}") { $qnumb6 = 1; } else { $qnumb6 = 0; } if ($qnumb1 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][1] <= $randqnum and $mobq[$qidmob]["maxdroprate"][1] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][1]); $qun1 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun1 >= $mobq[$qidmob]["maxqty"][1]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][1] . "','" . $mobq[$qidmob]["ipic"][1] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][1] . "</b></font></td></tr>"; $mess++; } } } if ($qnumb2 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][2] <= $randqnum and $mobq[$qidmob]["maxdroprate"][2] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][2]); $qun2 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun2 >= $mobq[$qidmob]["maxqty"][2]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][2] . "','" . $mobq[$qidmob]["ipic"][2] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][2] . "</b></font></td></tr>"; $mess++; } } } if ($qnumb3 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][3] <= $randqnum and $mobq[$qidmob]["maxdroprate"][3] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][3]); $qun3 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun3 >= $mobq[$qidmob]["maxqty"][3]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][3] . "','" . $mobq[$qidmob]["ipic"][3] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][3] . "</b></font></td></tr>"; $mess++; } } } if ($qnumb4 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][4] <= $randqnum and $mobq[$qidmob]["maxdroprate"][4] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][4]); $qun4 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun4 >= $mobq[$qidmob]["maxqty"][4]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][4] . "','" . $mobq[$qidmob]["ipic"][4] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][4] . "</b></font></td></tr>"; $mess++; } } } if ($qnumb5 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][5] <= $randqnum and $mobq[$qidmob]["maxdroprate"][5] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][5]); $qun5 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun5 >= $mobq[$qidmob]["maxqty"][5]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][5] . "','" . $mobq[$qidmob]["ipic"][5] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][5] . "</b></font></td></tr>"; $mess++; } } } if ($qnumb6 > 0) { $randqnum = mt_rand(1, 100); if ($mobq[$qidmob]["mindroprate"][6] <= $randqnum and $mobq[$qidmob]["maxdroprate"][6] >= $randqnum) { $qnamei = smartquote($mobq[$qidmob]["name"][6]); $qun6 = mysql_num_rows(mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and name={$qnamei} and type='Q'")); if ($qun6 >= $mobq[$qidmob]["maxqty"][6]) { } else { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,pic) values (" . $user->id . ",{$qnamei},'" . $mobq[$qidmob]["itype"][6] . "','" . $mobq[$qidmob]["ipic"][6] . "')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have recieved <font color=lightgreen><b>" . $mobq[$qidmob]["name"][6] . "</b></font></td></tr>"; $mess++; } } } } /* Mob kills */ $qsel = mysql_num_rows(mysql_query("select * from qactive where owner=" . $user->id . " and complete=0")); if ($qsel > 0) { $qselmob = mysql_num_rows(mysql_query("select * from qitems where name='{$mobatk['name']}' and owner=" . $user->id . " and type='M' and qty < maxqty")); if ($qselmob > 0) { $qselmob1 = mysql_fetch_assoc(mysql_query("select * from qitems where name='{$mobatk['name']}' and owner=" . $user->id . " and type='M' and qty < maxqty")); mysql_query("update qitems set qty=qty+1 where name='{$mobatk['name']}' and owner=" . $user->id . " and type='M'"); echo "<tr><td align=center class=style54 id=message_{$mess} style=visibility:hidden>Killed " . ($qselmob1['qty'] + 1) . " / " . $qselmob1['maxqty'] . " </td></tr>"; $mess++; } } /* End */ /* Unique Items */ if ($mobatk['type'] == '0') { $randomitem = mt_rand(1, 3); if ($randomitem == 2) { $packfull = mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and status='U' and slot not like '%Q%'"); $packfull1 = mysql_num_rows($packfull); if ($packfull1 < $user->backpack) { $getitem = rand(1, 173); $getitem1 = mysql_fetch_assoc(mysql_query("select * from items where itemid='{$getitem}'")); /* Mob item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itematk = mt_rand(1, 2); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itematk = mt_rand(1, 3); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itematk = mt_rand(2, 3); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itematk = mt_rand(3, 5); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itematk = mt_rand(7, 10); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itematk = mt_rand(10, 15); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itematk = mt_rand(15, 20); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itematk = mt_rand(20, 24); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itematk = mt_rand(25, 28); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itematk = mt_rand(29, 34); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itematk = mt_rand(35, 39); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itematk = mt_rand(40, 44); } if ($mobatk['atk'] + $mobatk['def'] >= 1600) { $itematk = mt_rand(43, 47); } if ($mobatk['atk'] + $mobatk['def'] >= 1760) { $itematk = mt_rand(45, 49); } /* End */ /* Mob defense item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itemdef = mt_rand(10000, 20000); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itemdef = mt_rand(15000, 23000); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itemdef = mt_rand(20000, 33000); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itemdef = mt_rand(35000, 50000); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itemdef = mt_rand(75000, 100000); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itemdef = mt_rand(100000, 150000); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itemdef = mt_rand(150000, 200000); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itemdef = mt_rand(200000, 243000); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itemdef = mt_rand(250000, 289000); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itemdef = mt_rand(290000, 342000); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itemdef = mt_rand(350000, 395000); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itemdef = mt_rand(400000, 445000); } if ($mobatk['atk'] + $mobatk['def'] >= 1590) { $itemdef = mt_rand(435000, 560000); } if ($mobatk['atk'] + $mobatk['def'] >= 1750) { $itemdef = mt_rand(540000, 570000); } /* End */ /* Mob income item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itemincome = mt_rand(30, 45); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itemincome = mt_rand(45, 50); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itemincome = mt_rand(50, 60); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itemincome = mt_rand(60, 70); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itemincome = mt_rand(70, 80); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itemincome = mt_rand(90, 100); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itemincome = mt_rand(100, 110); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itemincome = mt_rand(110, 120); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itemincome = mt_rand(120, 130); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itemincome = mt_rand(130, 140); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itemincome = mt_rand(140, 150); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itemincome = mt_rand(150, 160); } if ($mobatk['atk'] + $mobatk['def'] >= 1600) { $itemincome = mt_rand(160, 180); } if ($mobatk['atk'] + $mobatk['def'] >= 1760) { $itemincome = mt_rand(180, 200); } /* End */ $randomitem1 = rand(1, 7); if ($randomitem1 == 1) { $itemname = "{$getitem1['name']} Of Accretion"; $itemname1 = addslashes($itemname); /* Mob cph item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itemcph = mt_rand(1, 2); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itemcph = mt_rand(1, 3); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itemcph = mt_rand(2, 4); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itemcph = mt_rand(3, 5); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itemcph = mt_rand(3, 6); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itemcph = mt_rand(3, 6); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itemcph = mt_rand(3, 7); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itemcph = mt_rand(4, 8); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itemcph = mt_rand(5, 9); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itemcph = mt_rand(6, 10); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itemcph = mt_rand(7, 11); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itemcph = mt_rand(8, 13); } if ($mobatk['atk'] + $mobatk['def'] >= 1600) { $itemcph = mt_rand(9, 14); } if ($mobatk['atk'] + $mobatk['def'] >= 1760) { $itemcph = mt_rand(10, 15); } /* End */ if ($getitem1['slot'] == 'S' || $getitem1['slot'] == 'T') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemcph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'R') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,income,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemincome}','{$itemcph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'W' || $getitem1['slot'] == 'F') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemcph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'N' || $getitem1['slot'] == 'B' || $getitem1['slot'] == 'H') { $randomdefatk = mt_rand(1, 3); if ($randomdefatk == 1) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemcph}','{$getitem1['pic']}')"); } if ($randomdefatk == 2) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemcph}','{$getitem1['pic']}')"); } if ($randomdefatk == 3) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,cph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemdef}','{$itemcph}','{$getitem1['pic']}')"); } } echo "<td align=center class=style54 id=message_{$mess} style=visibility:hidden>You have found <font color=lightgreen><b>{$itemname}</b></font></td></tr>"; $mess++; } if ($randomitem1 == 2) { $itemname = "{$getitem1['name']} Of Fortification"; $itemname1 = addslashes($itemname); /* Mob aph item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itemaph = mt_rand(1, 2); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itemaph = mt_rand(2, 4); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itemaph = mt_rand(3, 4); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itemaph = mt_rand(3, 5); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itemaph = mt_rand(4, 6); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itemaph = mt_rand(3, 6); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itemaph = mt_rand(5, 7); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itemaph = mt_rand(6, 8); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itemaph = mt_rand(5, 9); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itemaph = mt_rand(7, 10); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itemaph = mt_rand(7, 11); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itemaph = mt_rand(10, 12); } if ($mobatk['atk'] + $mobatk['def'] >= 1600) { $itemaph = mt_rand(11, 13); } if ($mobatk['atk'] + $mobatk['def'] >= 1760) { $itemaph = mt_rand(12, 15); } /* End */ if ($getitem1['slot'] == 'S' || $getitem1['slot'] == 'T') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemaph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'R') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,income,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemincome}','{$itemaph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'W' || $getitem1['slot'] == 'F') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemaph}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'N' || $getitem1['slot'] == 'B' || $getitem1['slot'] == 'H') { $randomdefatk = mt_rand(1, 3); if ($randomdefatk == 1) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemaph}','{$getitem1['pic']}')"); } if ($randomdefatk == 2) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemaph}','{$getitem1['pic']}')"); } if ($randomdefatk == 3) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,aph,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemdef}','{$itemaph}','{$getitem1['pic']}')"); } } echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have found <font color=lightgreen><b>{$itemname}</b></font></td></tr>"; $mess++; } if ($randomitem1 == 3) { $itemname = "{$getitem1['name']} Of Amplitude"; $itemname1 = addslashes($itemname); /* Mob Maximum Attack item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 50) { $itemmaxatk = mt_rand(100, 140); } if ($mobatk['atk'] + $mobatk['def'] >= 50) { $itemmaxatk = mt_rand(140, 170); } if ($mobatk['atk'] + $mobatk['def'] >= 200) { $itemmaxatk = mt_rand(170, 200); } if ($mobatk['atk'] + $mobatk['def'] >= 350) { $itemmaxatk = mt_rand(200, 230); } if ($mobatk['atk'] + $mobatk['def'] >= 500) { $itemmaxatk = mt_rand(230, 260); } if ($mobatk['atk'] + $mobatk['def'] >= 630) { $itemmaxatk = mt_rand(260, 290); } if ($mobatk['atk'] + $mobatk['def'] >= 750) { $itemmaxatk = mt_rand(290, 310); } if ($mobatk['atk'] + $mobatk['def'] >= 860) { $itemmaxatk = mt_rand(310, 330); } if ($mobatk['atk'] + $mobatk['def'] >= 990) { $itemmaxatk = mt_rand(330, 360); } if ($mobatk['atk'] + $mobatk['def'] >= 1100) { $itemmaxatk = mt_rand(360, 390); } if ($mobatk['atk'] + $mobatk['def'] >= 1350) { $itemmaxatk = mt_rand(390, 405); } if ($mobatk['atk'] + $mobatk['def'] >= 1430) { $itemmaxatk = mt_rand(405, 430); } if ($mobatk['atk'] + $mobatk['def'] >= 1600) { $itemmaxatk = mt_rand(430, 460); } if ($mobatk['atk'] + $mobatk['def'] >= 1760) { $itemmaxatk = mt_rand(460, 500); } /* End */ if ($getitem1['slot'] == 'S' || $getitem1['slot'] == 'T') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemmaxatk}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'R') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,income,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemincome}','{$itemmaxatk}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'W' || $getitem1['slot'] == 'F') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemmaxatk}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'N' || $getitem1['slot'] == 'B' || $getitem1['slot'] == 'H') { $randomdefatk = mt_rand(1, 3); if ($randomdefatk == 1) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemmaxatk}','{$getitem1['pic']}')"); } if ($randomdefatk == 2) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemmaxatk}','{$getitem1['pic']}')"); } if ($randomdefatk == 3) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,maxatk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemdef}','{$itemmaxatk}','{$getitem1['pic']}')"); } } echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have found <font color=lightgreen><b>{$itemname}</b></font></td></tr>"; $mess++; } if ($randomitem1 == 4) { $itemname = "{$getitem1['name']} Of Ambience"; $itemname1 = addslashes($itemname); /* Mob attack cap item stats */ if ($mobatk['atk'] + $mobatk['def'] <= 6000000) { $itematkcap = mt_rand(1, 1); } if ($mobatk['atk'] + $mobatk['def'] >= 6000000) { $itematkcap = mt_rand(1, 2); } /* End */ if ($getitem1['slot'] == 'S' || $getitem1['slot'] == 'T') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itematkcap}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'R') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,income,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemincome}','{$itematkcap}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'W' || $getitem1['slot'] == 'F') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itematkcap}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'N' || $getitem1['slot'] == 'B' || $getitem1['slot'] == 'H') { $randomdefatk = mt_rand(1, 3); if ($randomdefatk == 1) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itematkcap}','{$getitem1['pic']}')"); } if ($randomdefatk == 2) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itematkcap}','{$getitem1['pic']}')"); } if ($randomdefatk == 3) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemdef}','{$itematkcap}','{$getitem1['pic']}')"); } } echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have found <font color=lightgreen><b>{$itemname}</b></font></td></tr>"; $mess++; } if ($randomitem1 >= 5) { $itemname = "{$getitem1['name']}"; $itemname1 = addslashes($itemname); if ($getitem1['slot'] == 'S' || $getitem1['slot'] == 'T') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'R') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,income,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemincome}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'W' || $getitem1['slot'] == 'F') { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$getitem1['pic']}')"); } if ($getitem1['slot'] == 'N' || $getitem1['slot'] == 'B' || $getitem1['slot'] == 'H') { $randomdefatk = mt_rand(1, 3); if ($randomdefatk == 1) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,income,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemincome}','{$getitem1['pic']}')"); } if ($randomdefatk == 2) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,def,income,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itemdef}','{$itemincome}','{$getitem1['pic']}')"); } if ($randomdefatk == 3) { mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,income,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$itematk}','{$itemdef}','{$itemincome}','{$getitem1['pic']}')"); } } echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>You have found <font color=lightgreen><b>{$itemname}</b></font></td></tr>"; $mess++; } } else { echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>Your Backpack Is Full, Empty It.</font></td></tr>"; $mess++; } } } /* End */ /* Special Items */ if ($mobatk['type'] == '1' or $mobatk['type'] == '2') { $packfull = mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner=" . $user->id . " and status='U' and slot not like '%Q%'"); $packfull1 = mysql_num_rows($packfull); if ($packfull1 < $user->backpack) { $getitem = mysql_query("select * from world_items where owner='{$mobatk['mbid']}' order by RAND()"); $getitem1 = mysql_fetch_assoc($getitem); $itemname = "{$getitem1['name']}"; $itemname1 = addslashes($itemname); mysql_query("insert into " . PLAYERS_ITEMS_TABLE . " (owner,name,slot,atk,def,cph,aph,income,maxatk,atkcap,pic) values (" . $user->id . ",'{$itemname1}','{$getitem1['slot']}','{$getitem1['atk']}','{$getitem1['def']}','{$getitem1['cph']}','{$getitem1['aph']}','{$getitem1['income']}','{$getitem1['maxatk']}','{$getitem1['atkcap']}','{$getitem1['pic']}')"); echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>Here, take my <font color=lightgreen><b>{$itemname}</b></font> as a token for my defeat.</td></tr>"; $mess++; } else { echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden>Your Backpack Is Full, Empty It.</font></td></tr>"; $mess++; } } /* End */ if ($mobatk['type'] == '1') { echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=red>{$mobatk['name']}</font> dissappears into the shadows and you hear a voice saying \"I will see you again\".</td></tr>"; $mess++; } if ($mobatk['type'] == '2') { echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=red>{$mobatk['name']}</font> distracts you and then flees.</td></tr>"; $mess++; } echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><a href=world.php?room={$mobatk['room']}>Click here to go back</a></td></tr>"; $spawn = mysql_fetch_assoc(mysql_query("select * from `spawn` where `mbid`='{$mobatk['mbid']}' and id=" . $user->id . "")); if (!$spawn['time'] && $spawn['mbid'] != $mobatk['mbid'] && $user->id != $spawn['id']) { mysql_query("insert into `spawn` (`id`, `mbid`, `time`) values (" . $user->id . ", '{$mobatk['mbid']}', '" . time() . "')"); } else { mysql_query("update `spawn` set `time`='" . time() . "' where `id`=" . $user->id . " and `mbid`='{$mobatk['mbid']}'"); } /* Type 1 = mobs who will move around a certain country */ if ($mobatk['type'] == '1') { $moverand = mysql_fetch_assoc(mysql_query("select rid from `worldrooms` where cid='1' order by RAND()")); mysql_query("update worldmobs set room='{$moverand['rid']}' where mbid='{$mobatk['mbid']}'"); } /* End */ /* Type 2 = mobs who will move around a certain defined space */ if ($mobatk['type'] == '2') { $selrand = mysql_fetch_assoc(mysql_query("select rid,roomname from `worldrooms` where rid='{$mobatk['room']}'")); $roomand = smartquote($selrand['roomname']); $moverand = mysql_fetch_assoc(mysql_query("select rid,roomname from `worldrooms` where `roomname`={$roomand} order by RAND()")); mysql_query("update worldmobs set room='{$moverand['rid']}' where mbid='{$mobatk['mbid']}'"); } /* End */ /* Type 3 = mobs who will move around somewhere........ */ /* End */ break; case 2: echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=red><br><b>{$mobatk['name']}</b></font> is the winner!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=lightgreen><b>" . $user->username . "</font> has lost the attack!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><b>Too bad Try again!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><a href=world.php?room={$mobatk['room']}>Click here to go back</a></td></tr>"; break; default: echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=red><br><b>This attack is a tie!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=lightgreen><b>" . $user->username . "</font> has lost the attack!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><b>Too bad Try again!</td></tr>"; $mess++; echo "<tr><td colspan=3 align=center class=style54 id=message_{$mess} style=visibility:hidden><a href=world.php?room={$mobatk['room']}>Click here to go back</a></p><br>"; } }
function withdrawpitems($with) { global $stat; global $error; foreach ($with as $with1) { $with2 = $with1; } while ($with3 = each($with2)) { $pcheck = mysql_query("SELECT shopid,owner FROM `pshop` WHERE `owner`='{$stat['id']}'"); $pcheck1 = mysql_fetch_assoc($pcheck); $with4 = mysql_fetch_assoc(mysql_query("SELECT * FROM pshopitems WHERE owner = '{$pcheck1['shopid']}' AND itemid='{$with3['value']}'")); if (!$with4) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This is nothing!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } /* Personal shop check */ if (!$pcheck1) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You do not have a shop...<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($pcheck1['owner'] != $stat['id']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This is not your item!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $checkpack = mysql_query("SELECT * FROM iteminv WHERE owner='{$stat['id']}' AND status='U' AND slot NOT LIKE 'Q'"); $packfull = mysql_num_rows($checkpack); if ($packfull >= $stat['backpack']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Backpack full!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } mysql_query("INSERT INTO `iteminv` (`itemid`,`owner`,`name`,`slot`,`trade`,`set`,`gem`,`atk`,`def`,`cph`,`aph`,`income`,`maxatk`,`atkcap`,`critical`,`pic`) VALUES ({$with4['itemid']},{$stat['id']}," . smartquote($with4['name']) . ",'{$with4['slot']}','{$with4['trade']}',{$with4['set']},{$with4['gem']},{$with4['atk']},{$with4['def']},{$with4['cph']},{$with4['aph']},{$with4['income']},{$with4['maxatk']},{$with4['atkcap']},{$with4['critical']},'{$with4['pic']}')") or die("Something went wrong."); mysql_query("DELETE FROM pshopitems WHERE itemid='{$with3['value']}' && owner = '{$pcheck1['shopid']}'") or die(mysql_error()); } echo "Withdrawn."; }
$itemnum++; } if ($randominum > '0') { mysql_query("update activeadv set items=CONCAT(items, '</h4>') where adid={$raidid}"); echo "</h4>"; } } /* End */ if ($raid3['type'] == 2) { $beatadv = mysql_query("select raid,plid from ljoinraid where raid={$raidid}"); while ($beatadv1 = mysql_fetch_assoc($beatadv)) { mysql_query("INSERT INTO adv_playercap (`plid`,`raid`,`time`) VALUES ({$beatadv1['plid']},{$raid1['defadv']},UNIX_TIMESTAMP())"); } $selmoverand = mysql_fetch_assoc(mysql_query("select `roomname` from `worldrooms` where `rid`={$raid3['room']}")); $moverand = mysql_fetch_assoc(mysql_query("select rid from `worldrooms` where roomname=" . smartquote($selmoverand['roomname']) . " order by RAND()")); mysql_query("update worldadv set room=" . smartquote($moverand['rid']) . " where `advid`={$raid1['defadv']}"); } } if ($crewpow < $defdmg) { $result = 'N'; $joincount = mysql_num_rows(mysql_query("select * from ljoinraid where raid={$raid1['adid']}")); $mess = $mess + 4; } if ($crewpow == $defdmg) { $result = 'N'; $joincount = mysql_num_rows(mysql_query("select * from ljoinraid where raid={$raid1['adid']}")); $mess = $mess + 3; } $raid = mysql_query("select * from activeadv where adid={$raidid}"); $raid1 = mysql_fetch_assoc($raid); $items = addslashes($raid1['items']);
if ($qty > $gobuy['qtymax']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't buy that!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($cost > $crew['crewbank']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't afford that!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($qmax['qty'] > $gobuy['qtymax'] - $qty) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You can't buy more than the limit!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $qty = smartquote($qty); if (!$qmax['itemid'] and !$qmax['owner'] and !$qmax['qty']) { mysql_query("insert into `crewinventory` (itemid, owner, qty) values ('{$itemid}','{$stat['crew']}','{$qty}')") or die("Problem getting item"); } else { mysql_query("update `crewinventory` set qty=qty+'{$qty}' where itemid='{$qmax['itemid']}' and owner='{$stat['crew']}'"); } mysql_query("update crew set crewbank=crewbank-{$cost} where crewid='{$stat['crew']}'"); echo "Successful Purchase."; } if ($crew) { ?> <br> <p align="center"> <b><font color="#FF0000">Available Money:</font> $<?php echo commas($crew['crewbank']);
exit; } $shout = trim($shout); if (strlen($shout) < 10) { die("<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Sorry, the shout is shorter than 10 characters, please make it longer!<br>\n </tr>\n </table>\n </center>\n</div>"); } $shout = trim($shout); if (strlen($shout) > 170) { die("<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Sorry, the shout is more than 170 characters, please make it shorter!<br>\n </tr>\n </table>\n </center>\n</div>"); } if ($stat['points'] < 5) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You Need More Points!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $shout = smartquote($shout); $shout = htmlspecialchars($shout); mysql_query("update players set points=points-5 where id='{$stat['id']}' and points > '0'") or die("Could not subtract points"); mysql_query("insert into shoutbox (id,user,shout,ip,time,prosplayer) values('{$stat['id']}','{$stat['username']}',{$shout},'{$ip}',UNIX_TIMESTAMP(),'{$stat['proplayer']}')") or die("Could not post in shoutbox"); echo "<font size=5><b>Shout Posted! </b></font><BR><BR>"; } ?> <font size="3"><b>Please enter your message below to be posted on the homepage(5 to post)</b></font> <form method="post"> <input type="text" name="shout" value="" maxlength=120 size="85"><br> <?php $stat['question']; ?> <br>
exit; } if ($id['crewid'] and $stat['crewrank'] <= $per['profile']) { ?> <?php if ($_POST['submit'] == 'Submit') { $cpa = $_POST['cper']; $allowtag = "<b><br><i><ul><li><marquee><font><center><ol><h1><em><h2><h3><h4><h5><h6><img><a><text><frame><table><td><tr>"; $cpa = strip_tags("{$cpa}", $allowtag); $cpa = smartquote($cpa); $sql = "UPDATE crew SET cpa = " . $cpa . " WHERE crewid = '" . $id['crewid'] . "'"; mysql_query("{$sql}") or die(mysql_error()); echo "<h3>Edited!</h3>"; } $profile = smartquote($profile); $id = mysql_fetch_array(mysql_query("select * from crew where crewid='{$stat['crew']}'")); ?> <div align="center"> <center> <form method="post" action="editcpa.php"> <table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse" width="50%" bgcolor="#666666" bordercolor="#FFFFFF"> <tr> <td width="100%"> <p align="center"><b>Edit Crew Personal Website</b></td> </tr> <tr> <td width="100%"> <table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="2"> <tr> <td width="100%" align="left" valign="top" colspan="2"><font size="1"> </font></td>
<?php include "head.php"; if ($logged_in) { $_REQUEST['id'] = smartquote($_REQUEST['id']); if (!ctype_digit($_REQUEST['id'])) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You must type a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $id = mysql_fetch_array(mysql_query("select * from players where id={$_REQUEST['id']} and crew={$stat['crew']}")); $crew = mysql_fetch_array(mysql_query("select * from crew where crewid={$stat['crew']}")); if (empty($id['id'])) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> This player is not in your crew<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($id['id'] == $crew['leader']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> You cannot change the Leaders rank<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } if ($stat['crew'] == $crew['crewid'] and $stat['crewrank'] <= $per['rank']) { ?> <?php $rank = mysql_fetch_array(mysql_query("select * from players where crew={$stat['crew']}")); ?> <div align="center"> <center>
<input type="password" name="answer" value="" size="20"><br> <input type="submit" value="Submit" name="Post"> </form> <?php } if ($view == 'unsuspend') { $unsus = $_POST['unsuspend_1']; if ($unsus == "Submit") { $answer = $_POST['answer']; if ($answer != $stat['answer']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Incorrect Security Password<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $play = $_POST['player']; $play = smartquote($play); $player = mysql_fetch_array(mysql_query("select id from players where username={$play}")) or die("Could not find player."); mysql_query("UPDATE `players` SET `suspended`='N' WHERE `id`={$player['id']})"); mysql_query("UPDATE `players` SET `warning`=0 WHERE `id`={$player['id']})"); echo "Player unsuspended."; } ?> <table align=center width=80%><p align=center><a href=modpanel.php>Back to main</a></p> <form method="POST"> <table border="1" width="56%" cellpadding="10" align="center" bordercolor=red> <p align=center>Unsuspend a Player</p> <tr> <td width="44%">Player: <input type=text name=player></td> </tr>
echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> {$roomnum} That url must have a numerical value!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $room = mysql_fetch_assoc(mysql_query("SELECT * FROM world_rooms WHERE rid='{$stat['wroom']}'")); if ($roomnum != $user->wroom) { if ($roomnum == $room['north'] or $roomnum == $room['west'] or $roomnum == $room['south'] or $roomnum == $room['east']) { } else { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ALERT:</b></font> You can't go to a room not next to it.<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } include "includes/roomkeys.inc.php"; $chkfkey = new roomkey(); $chkfkey->checkroom($roomnum); $roomnum = smartquote($roomnum); mysql_query("UPDATE `players` SET `wroom`={$roomnum} WHERE `id`={$stat['id']}"); } ?> <script> //start of where keyboard use to move around i LOVE THIS WEEEEE!!!! var key1="87"; //W var key2="119"; //w var key3="83"; //S var key4="115"; //s var key5="68"; //D var key6="100"; //d var key7="65"; //A var key8="97"; //a var x='';
$defdmg3 = commas($defdmg2); /* End */ echo "<p align=center class=style54 id=message_{$mess} style=visibility:hidden><font color=red><b>{$stat1['username']}</b></font>'s crew member <font color=red><b>{$stat4['username']}</b></font> jumps in and attacks <font color=lightgreen><b>{$stat['username']}</b></font> for <font color=red><b>{$defdmg3}</b></font> damage! </p> <br><br>"; $mess++; } } } } ?> <?php $attack = $_POST['attack']; $attackname = $_POST['attackname']; $attacks = $_POST['attacks']; $message = smartquote($_POST['message']); if ($attack == "Go On") { global $stat; global $stat1; $atkid = mysql_fetch_assoc(mysql_query("select * from players where username='******'")) or die("\n<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse align=center bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> No such player.<br>\n </tr>\n </table>\n </center>\n</div>"); $stat1 = mysql_fetch_assoc(mysql_query("select * from players where id='{$atkid['id']}'")); $crew = mysql_fetch_assoc(mysql_query("select * from crew where crewid='{$stat['crew']}'")); $hitlist = mysql_num_rows(mysql_query("select * from crewhitlist where crid='{$stat['crew']}' and hid='{$stat1['id']}'")); $log = mysql_num_rows(mysql_query("select * from atklogcount where timestamp+14400 > UNIX_TIMESTAMP() and attacker='{$stat['id']}' and defender='{$stat1['id']}'")); $cally = mysql_num_rows(mysql_query("select * from crewally where ally='{$stat1['crew']}' and ally1='{$stat['crew']}'")); $cally1 = mysql_num_rows(mysql_query("select * from crewally where ally='{$stat['crew']}' and ally1='{$stat1['crew']}'")); $playally = mysql_num_rows(mysql_query("select * from plally where ally1='{$stat['id']}' and ally='{$stat1['id']}'")); $playally1 = mysql_num_rows(mysql_query("select * from plally where ally1='{$stat1['id']}' and ally='{$stat['id']}'")); $iatkcap = mysql_fetch_assoc(mysql_query("select CAST(SUM(atkcap) as signed) as atkcap from iteminv where owner='{$stat['id']}' and status='E'")); $penemy = mysql_num_rows(mysql_query("select * from prsenemy where owner='{$stat['id']}' and enemy='{$stat1['id']}'")); $pskillinertia = mysql_fetch_assoc(mysql_query("select `level` from castedskills where `skillid`=10 and reciever={$stat1['id']} and`end` > UNIX_TIMESTAMP()"));
$play = smartquote($play); $warn = $_POST['warn']; if ($warn == 'Warn') { $answer = $_POST['answer']; if ($answer != $stat['answer']) { echo "<br>\n <div align=center>\n <center>\n <table border=1 cellpadding=5 cellspacing=0 style=border-collapse: collapse id=AutoNumber1 bordercolor=#FFFFFF>\n <tr>\n <td width=100% bgcolor=#666666>\n \n <font color=#FF0000><b>ERROR:</b></font> Incorrect Security Password!<br>\n </tr>\n </table>\n </center>\n</div>"; include "includes/footer.inc.php"; exit; } $ip = $_SERVER['REMOTE_ADDR']; $reason = $_POST['reason']; $player = mysql_fetch_array(mysql_query("select username,warning from players where id={$play}")); $warningp = $player['warning'] + 1; $reason1 = "{$stat['username']} has warned player {$player['username']}:<br><br>With the reason: {$reason}<br><br>Warning has been increased to {$warningp}, 3 WARNINGS WILL RESULT IN AUTOMATIC SUSPENSION."; $reason = smartquote($reason); $reason1 = smartquote($reason1); $subject = "Warning! (Automated)"; mysql_query("insert into mail (owner,senderid,sender,subject,message,time,ip) values({$play},'{$stat['id']}','{$stat['username']}','{$subject}',{$reason}," . time() . ",'{$ip}')") or die(mysql_error()); mysql_query("update players set `warning`=`warning` + 1 where id={$play}"); mysql_query("insert into mail (owner,senderid,sender,subject,message,time,ip) values(1,'{$stat['id']}','{$stat['username']}','{$subject}',{$reason1}," . time() . ",'{$ip}')"); echo "Player Warned."; } $player = mysql_fetch_array(mysql_query("select * from players where id={$play}")); ?> <table border="0" cellpadding="0" cellspacing="8" width="100%"> <tr> <td width="100%"> <center> <h3>Take notice that every warning will be logged.</h3>