Jump to content
MakeWebGames

Llight

Members
  • Posts

    21
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Llight

  1. Well in that case raven scripts are scamming people thanks for letting me know I knew it had mccode source code in it as you can see in some of the scripts but I didn't know they they was not supposed to be selling it
  2. for what? i have licenses for both i paid for them
  3. Yes that it correct, i use 2 scripts on 2 different sites 1 runs ravens script the other mccodes V2
  4. No one know?
  5.   <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains shop stuffs switch($_GET['action']) { case "addhouse": addhouse(); break; case "edithouse": edithouse(); break; case "delhouse": delhouse(); break; default: print "Error: This script requires an action."; break; } function addhouse() { global $db, $ir, $c, $h, $userid; $price=abs((int) $_POST['price']); $will=abs((int) $_POST['will']); $name=$_POST['name']; $hsepic=$_POST['hsepic']; if($price and $will and $name) { $q=$db->query("SELECT * FROM houses WHERE hWILL={$will}"); if($db->num_rows($q)) { print "Sorry, you cannot have two houses with the same maximum will."; $h->endpage(); exit; } $db->query("INSERT INTO houses VALUES(NULL, '$name', '$price', '$will', '$hsepic')"); print "House {$name} added to the game."; stafflog_add("Created House $name"); } else { print " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> Add House</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br> <form action='staff_houses.php?action=addhouse' method='post'> Name: <input type='text' name='name' /><br /> Price: <input type='text' name='price' /><br /> Max Will: <input type='text' name='will' /><br /><br /><br /> <b>House Pic URL</b><br /> <input type='text' name='hsepic' /><hr /> <input type='submit' value='Add House' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>"; } } function edithouse() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $price=abs((int) $_POST['price']); $will=abs((int) $_POST['will']); $q=$db->query("SELECT * FROM houses WHERE hWILL={$will} AND hID!={$_POST['id']}"); if($db->num_rows($q)) { print "Sorry, you cannot have two houses with the same maximum will."; $h->endpage(); exit; } $name=$_POST['name']; $hsepic=$_POST['hsepic']; $q=$db->query("SELECT * FROM houses WHERE hID={$_POST['id']}"); $old=$db->fetch_row($q); if($old['hWILL'] == 100 && $old['hWILL'] != $will) { die("Sorry, this house's will bar cannot be edited."); } $db->query("UPDATE houses SET hWILL=$will, hPRICE=$price, hNAME='$name', hPic='$hsepic' WHERE hID={$_POST['id']}"); $db->query("UPDATE users SET maxwill=$will WHERE maxwill={$old['hWILL']}"); $db->query("UPDATE users SET will=maxwill WHERE will > maxwill"); print "House $name was edited successfully."; stafflog_add("Edited house $name"); break; case "1": $q=$db->query("SELECT * FROM houses WHERE hID={$_POST['house']}"); $old=$db->fetch_row($q); print " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> Editing a House</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br> <form action='staff_houses.php?action=edithouse' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['house']}' /> Name: <input type='text' name='name' value='{$old['hNAME']}' /> Price: <input type='text' name='price' value='{$old['hPRICE']}' /><br /> Max Will: <input type='text' name='will' value='{$old['hWILL']}' /><br /> <b>House Pic URL</b><br /> <input type='text' name='hsepic' value='{$old['hPIC']}' /><hr /> <input type='submit' value='Edit House' /></form> </div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div> "; break; default: print " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> Editing a House</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br> <form action='staff_houses.php?action=edithouse' method='post'> <input type='hidden' name='step' value='1' /> House: ".house_dropdown($c, "house")."<br /> <input type='submit' value='Edit House' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>"; break; } } function delhouse() { global $db,$ir,$c,$h,$userid; if($_POST['house']) { $q=$db->query("SELECT * FROM houses WHERE hID={$_POST['house']}"); $old=$db->fetch_row($q); if($old['hWILL']==100) { die("This house cannot be deleted."); } $q2=$db->query("SELECT * FROM users WHERE maxwill={$old['hWILL']}"); $ids=array(); while($r=$db->fetch_row($q2)) { $ids[]=$r['userid']; } if(count($ids)) { $db->query("UPDATE users SET money=money+{$old['hPRICE']}, maxwill=100 WHERE userid IN(".implode(', ', $ids).")"); } $db->query("UPDATE users SET will=maxwill WHERE will > maxwill"); $db->query("DELETE FROM houses WHERE hID={$old['hID']}"); print "House {$old['hNAME']} deleted."; stafflog_add("Deleted house {$old['hNAME']}"); } else { print " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> Delete House </h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br> Deleting a house is permanent - be sure. Any users that are currently on the house you delete will be returned to the first house, and their money will be refunded.<form action='staff_houses.php?action=delhouse' method='post'> House: ".house_dropdown($c, "house")."<br /> <input type='submit' value='Delete House' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted!<br /> <a href='staff_users.php?action=reportsview'>> Back</a>"; } $h->endpage(); ?>
  6. i don't think it gives an exact error this is just the message i get QUERY ERROR: Query was INSERT INTO houses VALUES(NULL, 'Shard', '900000000', '20000', '')
  7. i get this when trying to add a new property Query was INSERT INTO houses VALUES(NULL, 'Shard', '900000000', '20000', '')
  8. No i Don't have any other property modifications, please can you tell me how to do what you just said am sorry am still learning
  9. i am using the marriage mod by sniko but i want to make is so users can share will from there property with who there married to how do i go about doing this? here is my code <?php include_once('globals.php'); // global variable - see if they are married or have a pending proposal $married = ($ir['propose_to'] > 0 OR $ir['married_to'] > 0 OR $ir['propose_from'] > 0) ? TRUE : FALSE; function links($hide) { global $modName; $hide = ($hide != "hide") ? "FALSE" : "hide"; if($hide == "hide") { echo "<br /> [<a href='explore.php'>Back to City</a>] <br /> [<a href='index.php'>Back Home</a>]"; } else { echo "<br /> [<a href='?action=index'>Back to {$modName}</a>] <br /> [<a href='explore.php'>Back to City</a>] <br /> [<a href='index.php'>Back Home</a>]"; } } if(!$_GET) { return index(); } switch($_GET['action']) { case 'viewInventory' : viewInventory(); break; case 'sendCrystals' : sendCrystals(); break; case 'sendBank' : sendBank(); break; case 'sendMoney' : sendMoney(); break; case 'divorce' : divorce(); break; case 'stats' : stats(); break; case 'more' : more(); break; case 'accept' : accept(); break; case 'decline' : decline(); break; case 'propose' : propose(); break; default: index(); } function index() { global $ir,$h,$married,$modName; echo "<h3>{$modName}</h3>"; if($married == FALSE) { echo "Here, you can enter a userid to propose to, if they confirm/accept you will be married, which will give you features such as being able to send money to eachother and looking into eachothers inventory.</i>"; continue_notMarried(); } else { if($ir['married_to'] > 0) { $mt = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `userid`={$ir['married_to']}")); echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Married to</div> <div style='height: 10pt;width:380pt;float:left;background:#ccffcc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>{$mt['username']}</div> <div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Manage Marriage</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=divorce'>Divorce</a></div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=stats'>View Marriage Stats</a></div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=more'>More Options</a></div> <div style='width: 100%;height: 2em;'></div>"; links("hide"); } else { echo "You are either married, you have a pending proposal or someone has proposed to you!"; links("hide"); } } } function continue_notMarried() { global $ir, $h; echo "<p align='center'> <strong>Please enter the user's ID which you would like to propose to.</strong> <br /> <form action='?action=propose' method='post'> <input type='text' name='user_id' length='15' maxlength='15' onchange='showUser(this.value)'/> <br /> <div id='showUser'></div> </p>"; links(""); } function propose() { global $ir, $h, $modName, $userid, $c; $prop = abs(@intval($_POST['user_id'])); $ro = mysql_fetch_array(mysql_query("SELECT `username`,`gender` FROM `users` WHERE `userid`={$prop}")); $g = ($ro['gender'] == 'Male') ? 'him' : 'her'; echo "<h3>{$modName}</h3> <font family='verdana'>You have proposed to <a href='viewuser.php?u={$prop}'>{$ro['username']}</a></font>. Please wait for {$g} to accept/decline!"; mysql_query("UPDATE `users` SET `propose_to`={$prop} WHERE `userid`=$userid"); mysql_query("UPDATE `users` SET `propose_from`={$userid} WHERE `userid`=$prop"); event_add($prop,"{$ir['username']} has just proposed to you! [<a href='zMarriage.php?action=decline'>Decline</a>] [<a href='zMarriage.php?action=accept'>Accept</a>]",$c); links("FALSE"); } function accept() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `propose_to`,`propose_from`,`married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->propose_from == 0 OR $r->married_to > 0) { echo "<strong><font color='red'>You haven't been proposed to!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { $pf = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `userid`={$r->propose_from}")); echo "<font family='verdana'>You have accepted the proposal from <a href='viewuser.php?u={$r->propose_from}'>{$pf['username']}</a></font> congratulations, you are now married!"; mysql_query("UPDATE `users` SET `married_to`={$userid},`propose_to`=0 WHERE `userid`={$r->propose_from}"); mysql_query("UPDATE `users` SET `married_to`={$r->propose_from},`propose_from`=0 WHERE `userid`={$userid}"); event_add($ir['married_to'],"{$ir['username']} has accepted your proposal!",$c); $date = date('D m Y'); mysql_query("INSERT INTO `user_marriage` (`user1`,`user2`,`date`) VALUES ($userid, $r->propose_from, '$date')"); } links("FALSE"); } function decline() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `propose_to`,`propose_from`,`married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->propose_from == 0 OR $r->married_to > 0) { echo "<strong><font color='red'>You haven't been proposed to!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { $to = $ir['propose_from']; event_add($to,"{$ir['username']} has declined your proposal!",$c); $pf = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `userid`={$r->propose_from}")); echo "<font family='verdana'>You have declined the proposal from <a href='viewuser.php?u={$r->propose_from}'>{$pf['username']}</a></font>!"; mysql_query("UPDATE `users` SET `propose_to`=0 WHERE `userid`={$r->propose_from}"); mysql_query("UPDATE `users` SET `propose_from`=0 WHERE `userid`={$userid}"); } links("FALSE"); } function divorce() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { $to = $ir['married_to']; event_add($to,"{$ir['username']} has divorced you!",$c); $mt = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `userid`={$ir['married_to']}")); echo "<font family='verdana'>You have divorced your partner, <a href='viewuser.php?u={$ir['married_to']}'>{$mt['username']}</a></font>!"; mysql_query("UPDATE `users` SET `married_to`=0 WHERE `userid`={$ir['married_to']}"); mysql_query("UPDATE `users` SET `married_to`=0 WHERE `userid`={$userid}"); mysql_query("DELETE FROM `user_marriage` WHERE `user1`=$userid OR `user2`=$userid"); } links("FALSE"); } function stats() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { $um = mysql_fetch_array(mysql_query("SELECT um.`user1`,um.`user2`,um.`date`,um.`sentmoney`,u.`username`,u.`userid` FROM `user_marriage` um LEFT JOIN `users` u ON `userid`=`user1` OR `userid`=`user2` WHERE `userid`=`user1` OR `userid`=`user2`")); $mt = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `userid`={$ir['married_to']}")); echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Married to</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>{$mt['username']}</div> <div style='width: 100%;height: 1.3em;'></div>"; //married since echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Married Since</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>{$um['date']}</div> <div style='width: 100%;height: 1.3em;'></div>"; //combined cash $p = mysql_fetch_array(mysql_query("SELECT `money` FROM `users` WHERE `userid`={$ir['married_to']}")); $combined_cash = $ir['money']+$p['money']; echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Combined Cash</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>$".moneyFormat($combined_cash)."</div> <div style='width: 100%;height: 1.3em;'></div>"; //combined bank $p = mysql_fetch_array(mysql_query("SELECT `bankmoney` FROM `users` WHERE `userid`={$ir['married_to']}")); $combined_bank = $ir['bankmoney']+$p['bankmoney']; echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Combined Bank Balance</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>$".moneyFormat($combined_bank)."</div> <div style='width: 100%;height: 1.3em;'></div>"; //combined crystals $p = mysql_fetch_array(mysql_query("SELECT `crystals` FROM `users` WHERE `userid`={$ir['married_to']}")); $combined_crys = $ir['crystals']+$p['crystals']; echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Combined Crystals</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>".number_format($combined_crys)."</div> <div style='width: 100%;height: 1.3em;'></div>"; //combined money sent echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Money Sent (Total)</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>$".moneyFormat($um['sentmoney'])."</div> <div style='width: 100%;height: 1.3em;'></div>"; } links("FALSE"); } function more() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { echo "<div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Send</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=sendMoney'>Money</a></div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=sendBank'>Bank Money</a></div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=sendCrystals'>Crystals</a></div> <div style='width: 100%;height: 1.3em;'></div> <div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>Contact</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='mailbox.php?action=compose&ID={$ir['married_to']}'>Message</a></div> <div style='width: 100%;height: 1.3em;'></div> <div style='height: 10pt;width:140px;float:left;background:#aacccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'>View</div> <div style='height: 10pt;width:140px;float:left;background:#cccccc;font-size:8pt;font-family:verdana;border:1px #FFFFFF solid;'><a href='?action=viewInventory'>Inventory</a></div> <div style='width: 100%;height: 1.3em;'></div>"; links("FALSE"); } } function sendMoney() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { if(!isset($_POST['submit'])) { echo "You can send money to your partner! ($".number_format($ir['money']).") <br /> <form action='' method='post'> How much would you like to send? <br /> $<input type='text' name='cash' length='35' maxlength='".strlen($ir['money'])."'> <br /> <input type='submit' value='Send' name='submit'> </form>"; } else { $money = abs( (int) $_POST['cash']); $_POST['cash'] = NULL; if(!is_numeric($money) OR $money > $ir['money']) { echo "You are sending more than you have!"; } else { echo "You have successfully sent $".moneyFormat($money)." to your partner!"; mysql_query("UPDATE `users` SET `money`=`money`+$money WHERE `userid`={$ir['married_to']}"); mysql_query("UPDATE `users` SET `money`=`money`=$money WHERE `userid`=$userid"); event_add($ir['married_to'], "{$ir['username']} has just given you $".moneyFormat($money)."!"); mysql_query("UPDATE `user_marriage` SET `sentmoney`=`sentmoney`+$money WHERE `user1`=$userid OR `user2`=$userid"); } } } links("FALSE"); } function sendBank() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { if(!isset($_POST['submit'])) { echo "You can wire money to your partner's bank account! ($".number_format($ir['bankmoney']).") <br /> <form action='' method='post'> How much would you like to send? <br /> $<input type='text' name='cash' length='35' maxlength='".strlen($ir['bankmoney'])."'> <br /> <input type='submit' value='Send' name='submit'> </form>"; } else { $money = abs( (int) $_POST['cash']); $_POST['cash'] = NULL; if(!is_numeric($money) OR $money > $ir['bankmoney']) { echo "You are sending more than you have!"; } else { echo "You have successfully wired $".moneyFormat($money)." to your partner!"; mysql_query("UPDATE `users` SET `bankmoney`=`bankmoney`+$money WHERE `userid`={$ir['married_to']}"); mysql_query("UPDATE `users` SET `bankmoney`=`bankmoney`=$money WHERE `userid`=$userid"); event_add($ir['married_to'], "{$ir['username']} has just wired you $".moneyFormat($money)."!"); mysql_query("UPDATE `user_marriage` SET `sentmoney`=`sentmoney`+$money WHERE `user1`=$userid OR `user2`=$userid"); } } } links("FALSE"); } function sendCrystals() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { if(!isset($_POST['submit'])) { echo "You can give your partner crystals! (".number_format($ir['crystals']).") <br /> <form action='' method='post'> How much would you like to send? <br /> <input type='text' name='crys' length='35' maxlength='".strlen($ir['crystals'])."'> crystals <br /> <input type='submit' value='Send' name='submit'> </form>"; } else { $crys = abs( (int) $_POST['crys']); $_POST['crys'] = NULL; if(!is_numeric($crys) OR $crys > $ir['crystals']) { echo "You are sending more than you have!"; } else { echo "You have successfully sent ".number_format($crys)." crystals to your partner!"; mysql_query("UPDATE `users` SET `crystals`=`crystals`+$crys WHERE `userid`={$ir['married_to']}"); mysql_query("UPDATE `users` SET `crystals`=`crystals`=$crys WHERE `userid`=$userid"); event_add($ir['married_to'], "{$ir['username']} has just given you ".number_format($crys)." crystals!"); } } } links("FALSE"); } function viewInventory() { global $ir, $h, $modName, $userid, $c; echo "<h3>{$modName}</h3>"; $exist = mysql_query("SELECT `married_to` FROM `users` WHERE `userid`={$userid}"); $r = mysql_fetch_object($exist); if(mysql_num_rows($exist) == 0 OR $r->married_to == 0) { echo "<strong><font color='red'>You are not even married, therefore you have to stats to look at!</font></strong>"; links("FALSE"); exit( $h->endpage() ); } else { inventory($ir['married_to']); } } ?>
  10. i want its so it allows users to marry and rent there property's to other users
  11. Can someone please post a working marriage mod i have tried i think just about everyone on here and none work
  12. how can i make the user stat ranks show up on there profile
  13. Whats the best way to stop users using morphine in a fight have tried what other user on here have suggested but none work
      • 1
      • Like
  14. Yes he used to be an old Admin i deleted him in database in the end
  15. Nice mod thanks
  16. when i try and delete some users i cant why is this i get the message You cannot delete this person. is the a way to force delete or a way around this thanks
  17. think got it now thanks for your help
  18. am new to this help
  19. how do i edit that line to make it harder on each level
  20. Am sorry i still have no clue what to do here is that part of the file function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); }
  21. How do you make it harder to level up, i want to make it so you need more xp to level up on each level
×
×
  • Create New...