Jump to content
MakeWebGames

p_T_s

Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by p_T_s

  1. Generally how long does it take to receive this mod once paid for? Cheers
  2. Well done and thx for all your hard work... I can't wait!
  3. I love this fury fella... Have all the series on dvd. haha
  4. Thanks Paul, I will wait a little while longer then. I thought the mcv2.0.2c was the patched one. lol mybad!
  5. Can someone tell me if the new V2 (2.0.2c) is the patched version? and what exactly is different in this version. I am going to buy it but as V3 is still about 8 months away from being released.
  6. Yeh i got the same, gonna take a look at it as soon as i get time.
  7. Yeh that could work..   I can understand some owners being jealous, but if they don't want to do it, then they simple don't use the script :P
  8. Personally I like the idea :P I can't see a problem with traffic sharing, as Gwink said it WILL flood your site with new players. If your scared of losing your players then your game needs more work. If you keep your players happy they will stick around and play your game and most times play the new game form the link as well. That means both parties benefit :thumbup: This has the potential to turn your game community into 1000's of new players. I think maybe when considering what games you allow to share, you look at them and maybe make sure they're not the same type of game...IE: If you own a Mobsters game, don't allow to share with another Mobsters game. Just a thought. I would use this trade script no worries :thumbsup:
  9. This is bloody Fantastic :thumbsup: Your mods just keep getting more exciting illusions... Keep up the good work :thumbup:
  10. What i want is someone who is able to made me a custom Login, Register and Header. I will be purchasing a theme based on Wordpress and need someone to either convert it to mccodes or maybe just use the images to make the pages. The package i will purchase will include the PSD file. If you are able to create them secure from sql injections and multi sign-ups etc etc that would be ideal. I will give details of how i would like them set out on msn or pm to the person who takes this on for me. Please either post your quotes here or pm me... Thanks in-advance :P
  11. Does this pack just add the items and money etc to the user or does it add the pack to their inventory so they can open it at a later time?
  12. All your templates are fantastic!!! :thumbsup: I personal would like to see that Lycan template though Do you do requests?
  13. Use these sql's [mysql]ALTER TABLE `users` ADD`mine_level` INT(11) NOT NULL DEFAULT '1'; ALTER TABLE `users` ADD`mine_exp` INT(11) NOT NULL DEFAULT '1'; ALTER TABLE `users` ADD`mine_needed` INT(11) NOT NULL DEFAULT '1000'; ALTER TABLE `users` ADD`power` INT(11) NOT NULL DEFAULT '10'; ALTER TABLE `users` ADD`max_power` INT(11) NOT NULL DEFAULT '10'; [/mysql]
  14. What happened to the links ;(
  15. "QUOTE djkanna" This is for the forums_Avatar function do_forum_change() { global $db, $h, $userid; $image = getimagesize("".$_POST['forums_avatar'].""); if($_POST['forums_avatar'] == "") { echo "Sorry it seems like you haven't inputed anything please go back and try again. [url='preferences.php?action=forumchange2']Back[/url]"; } elseif(!$image) { echo "Um yeah you didn't actually think that would work did you?"; } else { $db->query(sprintf("UPDATE users SET forums_avatar='%s' WHERE(userid=%u)", $db->escape($_POST['forums_avatar']), $userid)); echo "Display picture has been changed"; $h->endpage(); exit; } }
  16. sorry guys but it never saved to this post when i posted it so You need to change it in the file to this   <font color=white>Being redirected, Please Wait!</font><META HTTP-EQUIV=Refresh CONTENT='1;url=index.php'> or use this one   <?php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM users WHERE userid={$ir['married']}"); $par=$db->fetch_row($m); if($ir['married'] == 0) { die("You are not married, come back when you have a partner"); } switch($_GET['action']) { case 'givemoney': give_money_form(); break; case 'givemoneysub': give_money_submit(); break; case 'givecrystals': give_crystals_form(); break; case 'givecrystalssub': give_crystals_submit(); break; case 'givebank': give_bank_form(); break; case 'givebanksub': give_bank_submit(); break; case 'givecyber': give_cyber_form(); break; case 'givecybersub': give_cyber_submit(); break; case 'takemoney': take_money_form(); break; case 'takemoneysub': take_money_submit(); break; case 'takecrystals': take_crystals_form(); break; case 'takecrystalssub': take_crystals_submit(); break; case 'takebank': take_bank_form(); break; case 'takebanksub': take_bank_submit(); break; case 'takecyber': take_cyber_form(); break; case 'takecybersub': take_cyber_submit(); break; case 'sendmessage': send_message_form(); break; case 'sendmessagesub': send_message_submit(); break; case 'sleep': sleep_form(); break; case 'sleepsub': sleep_submit(); break; case 'affair': begin_affair(); break; case 'doaffair': do_affair(); break; case 'divorce': divorce_form(); break; case 'divorcesub': divorce_submit(); break; case 'allowence': allowence_form(); break; case 'council': begin_council(); break; case 'docouncil': do_council(); break; default: index(); break; } function give_money_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Giving Money</h3> This action will give your money to your partner <form action='partner.php?action=givemoneysub' method='post'> Money: <input type='text' name='money' value='{$ir['money']}'> <input type='submit' value='Give Money' /></form>"; } function give_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['money'] < $_POST['money']) { die("You are trying to give more money than you can [url='partner.php?action=givemoney']Back[/url]"); } else { $db->query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$par['userid']}"); $db->query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you \${$_POST['money']}",$c); print"You gave \${$_POST['money']} to your partner"; } } function give_crystals_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Giving Crystals</h3> This action will give your crystals to your partner <form action='partner.php?action=givecrystalssub' method='post'> Crystals: <input type='text' name='crystals' value='{$ir['crystals']}'> <input type='submit' value='Give Crystals' /></form>"; } function give_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['crystals'] < $_POST['crystals']) { die("You are trying to give more crystals than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you {$_POST['crystals']} crystals",$c); print"You gave {$_POST['crystals']} crystals to your partner"; } } function give_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < 0) { die("You dont have a bank account"); } if ($par['bankmoney'] < 0) { die("Your partner dose not have a bank account"); } else { print "<h3>Giving Bank Money</h3> This action will give bank money to your partner <form action='partner.php?action=givebanksub' method='post'> Bank Money: <input type='text' name='bank' value='{$ir['bankmoney']}'> <input type='submit' value='Give Bank Money' /></form>"; } } function give_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < $_POST['bank']) { die("You are trying to give more bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['bank']} into your bank account",$c); print"You wired \${$_POST['bank']} to your partner"; } } function give_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < 0) { die("You dont have a cyber bank account"); } if ($par['cybermoney'] < 0) { die("Your partner dose not have a cyber bank account"); } else { print "<h3>Giving Cyber Bank Money</h3> This action will give cyber bank money to your partner <form action='partner.php?action=givecybersub' method='post'> Bank Money: <input type='text' name='cyber' value='{$ir['cybermoney']}'> <input type='submit' value='Give Cyber Money' /></form>"; } } function give_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < $_POST['cyber']) { die("You are trying to give more cyber bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['cyber']} into your cyber bank account",$c); print"You wired \${$_POST['cyber']} to your partner"; } } function take_money_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } else { print "<h3>Taking Money</h3> This action will take money from your partner <form action='partner.php?action=takemoneysub' method='post'> Money: <input type='text' name='money' value='{$par['money']}'> <input type='submit' value='Take Money' /></form>"; } } function take_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['money'] < $_POST['money']) { die("You are trying to take more money than you can [url='partner.php?action=takemoney']Back[/url]"); } else { $db->query("UPDATE users SET money=money+'{$_POST['money']}' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-'{$_POST['money']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['money']} from your hand money",$c); print"You took \${$_POST['money']} from your partner"; } } function take_crystals_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } else { print "<h3>Take Crystals</h3> This action will take crystals from your partner <form action='partner.php?action=takecrystalssub' method='post'> Crystals: <input type='text' name='crystals' value='{$par['crystals']}'> <input type='submit' value='Take Crystals' /></form>"; } } function take_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['crystals'] < $_POST['crystals']) { die("You are trying to take more crystals than you can [url='partner.php?action=takecrystals']Back[/url]"); } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken {$_POST['crystals']} crystals from you",$c); print"You took {$_POST['crystals']} crystals to your partner"; } } function take_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($ir['bankmoney'] < 0) { die("You dont have a bank account"); } if ($par['bankmoney'] < 0) { die("Your partner dose not have a bank account"); } else { print "<h3>Take Bank Money</h3> This action will take bank money from your partner <form action='partner.php?action=takebanksub' method='post'> Bank Money: <input type='text' name='bank' value='{$par['bankmoney']}'> <input type='submit' value='Take Bank Money' /></form>"; } } function take_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['bankmoney'] < $_POST['bank']) { die("You are trying to take more bank money than you can [url='partner.php?action=takebank']Back[/url]"); } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['bank']} from your bank account",$c); print"You took \${$_POST['bank']} from your partner"; } } function take_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($ir['cybermoney'] < 0) { die("You dont have a cyber bank account"); } if ($par['cybermoney'] < 0) { die("Your partner dose not have a cyber bank account"); } else { print "<h3>Taking Cyber Bank Money</h3> This action will take cyber bank money from your partner <form action='partner.php?action=takecybersub' method='post'> Bank Money: <input type='text' name='cyber' value='{$par['cybermoney']}'> <input type='submit' value='Take Cyber Money' /></form>"; } } function take_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['cybermoney'] < $_POST['cyber']) { die("You are trying to take more cyber bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid=$userid"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['cyber']} from your cyber bank account",$c); print"You took \${$_POST['cyber']} from your partner"; } } function send_message_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Send a message</h3> <form action='partner.php?action=sendmessagesub' method='post'> Your LUV Message: <input type='text' name='msg'> <input type='submit' value='Give Message' /></form>"; } function send_message_submit() { global $db,$ir,$c,$h,$userid,$par; if ($_POST['msg'] == '') { die("Why send a blank message?"); } else { event_add($par['userid'],"You partner sent you a LUV message: {$_POST['msg']}",$c); print"Message sent!"; } } function sleep_form() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { die("You are too tired to sleep with your partner again"); } print "<h3>Sleep with your Partner</h3> <form action='partner.php?action=sleepsub' method='post'> <input type='submit' value='Sleep With {$par['username']}' /></form>"; } function sleep_submit() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { die("You are too tired to sleep with your partner again"); } if (!$_POST['msg']) { $db->query("UPDATE users SET happiness=happiness+1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET happiness=happiness+1 WHERE userid=$userid"); $db->query("UPDATE users SET tired=1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET tired=1 WHERE userid=$userid"); event_add($par['userid'],"Your partner slept with you, you gained one happiness",$c); print"You slept with your partner and gained one happiness!"; } } function begin_affair() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Have an affair</h3>"; if ($ir['happiness'] > 4) { die("You have a happy relationship, why risk it?"); } print" <form action='partner.php?action=doaffair' method='post'> You and your partner havent been having a good time recently, and a colleuge of your asked you out, what do you do? <input type='submit' value='Go with Colleuge' /></form> <form action='partner.php' method='post'><input type='submit' value='Dont Risk It' /></form>"; } function do_affair() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); print"1.)You go with your colleuge and have a great date, you then go over to their house and have some fun 2.) After you finish you go to your house and find out your wifes asleep 3.) She didnt suspect a thing and you get away with it"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You find out your partner has cheated on you",$c); print"1.) You go with you colleuge to your date, and wish you never bothered, the date was a complete faliure 2.) You go home and to your horror see your colleuge there 3.) She told your partner about you and walks away smirking 4.) You gulp"; } } function divorce_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Divorce Your Partner</h3> This action will divorce your partner <form action='partner.php?action=divorcesub' method='post'> <input type='submit' value='Divorce' /></form>"; } function divorce_submit() { global $db,$ir,$c,$h,$userid,$par; { $db->query("UPDATE users SET married=0 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET married=0 WHERE userid=$userid"); event_add($par['userid'],"Your partner divorced you!",$c); print"You divorced your partner"; } } function allowence_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Marriage Allowence</h3> This action will decide wether you want to allow your partner to take money or not [[url='partner.php?action=allowence&allow=yes']Allow[/url]] [[url='partner.php?action=allowence&allow=no']Do Not Allow[/url]] "; if($_GET['allow'] == yes) { $db->query("UPDATE users SET allowence=1 WHERE userid=$userid"); print" Now your partner is allowed to access your finance"; } else if($_GET['allow'] == no) { $db->query("UPDATE users SET allowence=0 WHERE userid=$userid"); print" Now your partner isnt allowed to access your finance"; } } function begin_council() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Marriage Counciling</h3>"; if ($ir['happiness'] > 6 and $par['happiness'] > 6) { die("You have a happy relationship, why risk it?"); } print" <form action='partner.php?action=docouncil' method='post'> You enter Dr. Lovvels Marriage Counciling Center, you could come out with your marriage secure, or it shatters <input type='submit' value='Enter' /></form>"; } function do_council() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=10 WHERE userid={$par['userid']}"); print"1.) You enter the counciling room 2.) You and your partner resolve a few issues you have been having 3.) You come out feeling happy"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You went to marriage coucling and it was a disaster",$c); print"1.) You go with your partner to marriage counciling 2.) You blame things on your partner and vice versa 3.) It was a disaster and you go out seeling sad and sleep on the sofa"; } } function index() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Partner Managment</h3> Here you can perform many actions to do with your marriage <table width=80% height=80% border=1><tr><td>[url='partner.php?action=givemoney']Send Money[/url]</td> <td>[url='partner.php?action=givecrystals']Send Crystals[/url]</td></tr><tr> <td>[url='partner.php?action=givebank']Send Bank Money[/url]</td> <td>[url='partner.php?action=givecyber']Send Cyber Money[/url]</td></tr><tr> <tr><td>[url='partner.php?action=takemoney']Take Money[/url]</td> <td>[url='partner.php?action=takecrystals']Take Crystals[/url]</td></tr><tr> <td>[url='partner.php?action=takebank']Take Bank Money[/url]</td> <td>[url='partner.php?action=takecyber']Take Cyber Money[/url]</td></tr><tr> <td>[url='partner.php?action=sendmessage']Send Message[/url]</td> <td><a href='partner.php?action=sleep'>Sleep With {$par['username']}</td></tr> <tr><td><a href='partner.php?action=affair'>Have an Affair</td> <td>[url='partner.php?action=divorce']Divorce[/url]</td><tr> <td>[url='partner.php?action=allowence']Change Marriage Allowence</td><td><a href='partner.php?action=council'>Go to Marriage Counciling[/url]</td></tr></table> <h3>Marriage Stats</h3> <table width=80% height=80% border=1><tr><td>Your Happiness: {$ir['happiness']}</td><td>Their Happiness: {$par['happiness']}</td></tr></table>"; } $h->endpage(); ?>
  17. That looks awesome Dayo :thumbsup: Fantastic Job Well Done ! Cant wait to see the finished project
  18. I hate to put a damper on your sales but I'm pretty sure your mate didn't make the images. I found the exact same template on the following web site. http://www.templatemonster.com/swish-templates/13186.html
  19. Just make sure the file name is the same   include_once('crons_file.php');   Make the file crons_file Above it says cron_file so just change that
  20. decision.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM proposals WHERE proPROPOSED={$ir['userid']}"); if ($db->num_rows($m)==0) { print "Nobody has proposed to you!![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $pro=$db->fetch_row($m); $f=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $r=$db->fetch_row($f); print"Decision Center Proposer: [url='viewuser.php?u={$r[']{$r['username']}[/url] Message: {$pro['proMESSAGE']} Decision: [url='acceptpro.php?pro={$pro['][color=yellow]Accept[/color][/url] or [url='declinepro.php?pro={$pro['][color=red]Decline[/color][/url] "; } $h->endpage(); ?>   acceptpro.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ require "globals.php"; if(!$_GET['pro']) { print "Stop abusing our marriage system![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); if ($db->num_rows($m) == 0) { print "Invalid proposal![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); $pro=$db->fetch_row($m); $db->query("UPDATE users SET married={$pro['proPROPOSER']} WHERE userid=$userid"); $db->query("UPDATE users SET married={$pro['proPROPOSED']} WHERE userid={$pro['proPROPOSER']}"); $db->query("DELETE FROM proposals WHERE proID={$pro['proID']}"); $mr=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $par=$db->fetch_row($mr); event_add($par['userid'],"Your proposal for [url='viewuser.php?u={$ir[']{$ir['username']}[/url] was accepted",$c); print"You married {$par['username']}![color=white]Being redirected, Please Wait![/color]"; } $h->endpage(); ?>   declinepro.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ require "globals.php"; if(!$_GET['pro']) { print "Stop abusing our marriage system![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); if ($db->num_rows($m) == 0) { print "Invalid proposal or this is not your proposal![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $pro=$db->fetch_row($m); $db->query("DELETE FROM proposals WHERE proID={$pro['proID']}"); $mr=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $par=$db->fetch_row($mr); event_add($par['userid'],"{$ir['username']} [{$ir['userid']}] has declined your proposal",$c); print"You declined the proposal from {$par['username']}![color=white]Being redirected, Please Wait![/color]"; } $h->endpage(); ?>   Then you need to add this somewhere in explore: Marriage Center   And then in view user find if($r['donatordays']) { $r['username'] = "{$r['username']}";$d="";   And then add this before if($r['married'] != 0) { $partner= "{$par['username']}"; } else { $partner= "N/A"; }   and then after Gender: {$r['gender']}   put Married: $partner   And then in index.php add this somewhere if($ir['married'] != 0) { $partner= "{$par['username']} [Manage]"; } else { $partner= "N/A"; } That should be it. Ok for some reason it didnt add the refresh to the code, so you will have to edit it yourself. Where you see [color=white]Being redirected, Please Wait![/color]   You need that in all of the code to   <font color=white>Being redirected, Please Wait!</font><META HTTP-EQUIV=Refresh CONTENT='1;url=index.php'>
  21. Ok guys i fixed up the code a little, corrected some of the spelling mistakes and made it auto refresh. Also found the decision, acceptpro, and declinepro files and fixed them also. here's the sql's [mysql]ALTER TABLE `users` ADD `married` INT( 11 ) NOT NULL DEFAULT '0';[/mysql] [mysql]ALTER TABLE `users` ADD `happiness` INT(11) NOT NULL DEFAULT '0';[/mysql] [mysql]ALTER TABLE `users` ADD `tired` int(11) NOT NULL DEFAULT '0';[/mysql] [mysql]CREATE TABLE IF NOT EXISTS `proposals` ( `proID` int(11) NOT NULL auto_increment, `proPROPOSER` int(11) NOT NULL, `proPROPOSED` int(11) NOT NULL, `proMESSAGE` varchar(255) NOT NULL, PRIMARY KEY (`proID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; [/mysql] for the sleep with partner add this to your cron hours [mysql]$db->query("UPDATE users SET tired=0 WHERE tired = 1");[/mysql]   Now for the files. propose.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } switch($_GET['action']) { case 'propose': propose_form(); break; case 'proposesub': propose_submit(); break; default: index(); break; } function index() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print"Proposal Center Do you want to propose to someone? [url='propose.php?action=propose']> Yes[/url] [url='index.php']> No[/url]"; } } function propose_form() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print"Proposal Center Please enter the user id of the user you want to propose to: User: Message: "; } } function propose_submit() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else if ($ir['userid'] == $_POST['propose']) { print "You cannot marry yourself![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $ch=$db->query("SELECT * FROM proposals WHERE proPROPOSED={$_POST['propose']}"); if ($db->num_rows($ch)!=0) { print "This user already has a pending proposal, please try again later![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $m=$db->query("SELECT * FROM users WHERE userid={$_POST['propose']}"); $r=$db->fetch_row($m); if ($ir['gender'] == $r['gender']) { print "You cannot propose to someone the same gender as you![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("INSERT INTO proposals VALUES('', '{$ir['userid']}', '{$_POST['propose']}', '{$_POST['message']}')"); event_add($_POST['propose'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] proposed to you Click [url='decision.php'][u]here[/u][/url] to make your mind up ",$c); print"Proposal Center You proposed to {$r['username']} [{$r['userid']}], please wait for their decision[color=white]Being redirected, Please Wait![/color]"; } } } } $h->endpage(); ?>   partner.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM users WHERE userid={$ir['married']}"); $par=$db->fetch_row($m); if($ir['married'] == 0) { print "You are not married, come back when you have a partner.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } switch($_GET['action']) { case 'givemoney': give_money_form(); break; case 'givemoneysub': give_money_submit(); break; case 'givecrystals': give_crystals_form(); break; case 'givecrystalssub': give_crystals_submit(); break; case 'givebank': give_bank_form(); break; case 'givebanksub': give_bank_submit(); break; case 'givecyber': give_cyber_form(); break; case 'givecybersub': give_cyber_submit(); break; case 'takemoney': take_money_form(); break; case 'takemoneysub': take_money_submit(); break; case 'takecrystals': take_crystals_form(); break; case 'takecrystalssub': take_crystals_submit(); break; case 'takebank': take_bank_form(); break; case 'takebanksub': take_bank_submit(); break; case 'takecyber': take_cyber_form(); break; case 'takecybersub': take_cyber_submit(); break; case 'sendmessage': send_message_form(); break; case 'sendmessagesub': send_message_submit(); break; case 'sleep': sleep_form(); break; case 'sleepsub': sleep_submit(); break; case 'affair': begin_affair(); break; case 'doaffair': do_affair(); break; case 'divorce': divorce_form(); break; case 'divorcesub': divorce_submit(); break; case 'allowence': allowence_form(); break; case 'council': begin_council(); break; case 'docouncil': do_council(); break; default: index(); break; } function give_money_form() { global $db,$ir,$c,$h,$userid,$par; print "Giving Money This action will give your money to your partner Money: "; } function give_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['money'] < $_POST['money']) { print "You are trying to give more money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$par['userid']}"); $db->query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you \${$_POST['money']}",$c); print"You gave \${$_POST['money']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_crystals_form() { global $db,$ir,$c,$h,$userid,$par; print "Giving Crystals This action will give your crystals to your partner Crystals: "; } function give_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['crystals'] < $_POST['crystals']) { print "You are trying to give more crystals than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you {$_POST['crystals']} crystals",$c); print"You gave {$_POST['crystals']} crystals to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < 0) { print "You dont have a bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < 0) { print "Your partner dose not have a bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Giving Bank Money This action will give bank money to your partner Bank Money: "; } } function give_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < $_POST['bank']) { print "You are trying to give more bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['bank']} into your bank account",$c); print"You wired \${$_POST['bank']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < 0) { print "You dont have a cyber bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < 0) { print "Your partner dose not have a cyber bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Giving Cyber Bank Money This action will give cyber bank money to your partner Bank Money: "; } } function give_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < $_POST['cyber']) { print "You are trying to give more cyber bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['cyber']} into your cyber bank account",$c); print"You wired \${$_POST['cyber']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_money_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Taking Money This action will take money from your partner Money: "; } } function take_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['money'] < $_POST['money']) { print "You are trying to take more money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET money=money+'{$_POST['money']}' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-'{$_POST['money']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['money']} from your hand money",$c); print"You took \${$_POST['money']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_crystals_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Take Crystals This action will take crystals from your partner Crystals: "; } } function take_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['crystals'] < $_POST['crystals']) { print "You are trying to take more crystals than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken {$_POST['crystals']} crystals from you",$c); print"You took {$_POST['crystals']} crystals to your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($ir['bankmoney'] < 0) { print "You dont have a bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < 0) { print "Your partner dose not have a bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Take Bank Money This action will take bank money from your partner Bank Money: "; } } function take_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < $_POST['bank']) { print "You are trying to take more bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['bank']} from your bank account",$c); print"You took \${$_POST['bank']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($ir['cybermoney'] < 0) { print "You dont have a cyber bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < 0) { print "Your partner dose not have a cyber bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Taking Cyber Bank Money This action will take cyber bank money from your partner Bank Money: "; } } function take_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < $_POST['cyber']) { print "You are trying to take more cyber bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid=$userid"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['cyber']} from your cyber bank account",$c); print"You took \${$_POST['cyber']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function send_message_form() { global $db,$ir,$c,$h,$userid,$par; print "Send a message Your LUV Message: "; } function send_message_submit() { global $db,$ir,$c,$h,$userid,$par; if ($_POST['msg'] == '') { print "Why send a blank message?.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { event_add($par['userid'],"You partner sent you a LUV message: {$_POST['msg']}",$c); print"Message sent![color=white]Being redirected, Please Wait![/color]"; } } function sleep_form() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { print "You are too tired to sleep with your partner again.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print "Sleep with your Partner "; } function sleep_submit() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { print "You are too tired to sleep with your partner again.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if (!$_POST['msg']) { $db->query("UPDATE users SET happiness=happiness+1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET happiness=happiness+1 WHERE userid=$userid"); $db->query("UPDATE users SET tired=1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET tired=1 WHERE userid=$userid"); event_add($par['userid'],"Your partner slept with you, you gained one happiness",$c); print"You slept with your partner and gained one happiness![color=white]Being redirected, Please Wait![/color]"; } } function begin_affair() { global $db,$ir,$c,$h,$userid,$par; print "Have an affair "; if ($ir['happiness'] > 4) { print "You have a happy relationship, why risk it?[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print" You and your partner havent been having a good time recently, and a colleuge of your asked you out, what do you do? "; } function do_affair() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); print"1.)You go with your colleague and have a great date, you then go over to their house and have some fun 2.) After you finish you go to your house and find out your wifes asleep 3.) She didn't suspect a thing and you get away with it[color=white]Being redirected, Please Wait![/color]"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You find out your partner has cheated on you",$c); print"1.) You go with you colleague to your date, and wish you never bothered, the date was a complete failure 2.) You go home and to your horror see your colleague there 3.) She told your partner about you and walks away smirking 4.) You gulp[color=white]Being redirected, Please Wait![/color]"; } } function divorce_form() { global $db,$ir,$c,$h,$userid,$par; print "Divorce Your Partner This action will divorce your partner "; } function divorce_submit() { global $db,$ir,$c,$h,$userid,$par; { $db->query("UPDATE users SET married=0 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET married=0 WHERE userid=$userid"); event_add($par['userid'],"Your partner divorced you!",$c); print"You divorced your partner[color=white]Being redirected, Please Wait![/color]"; } } function allowence_form() { global $db,$ir,$c,$h,$userid,$par; print "Marriage Allowance This action will decide weather you want to allow your partner to take money or not [[url='partner.php?action=allowence&allow=yes']Allow[/url]] [[url='partner.php?action=allowence&allow=no']Do Not Allow[/url]] "; if($_GET['allow'] == yes) { $db->query("UPDATE users SET allowence=1 WHERE userid=$userid"); print" Now your partner is allowed to access your finance[color=white]Being redirected, Please Wait![/color]"; } else if($_GET['allow'] == no) { $db->query("UPDATE users SET allowence=0 WHERE userid=$userid"); print" Now your partner isnt allowed to access your finance[color=white]Being redirected, Please Wait![/color]"; } } function begin_council() { global $db,$ir,$c,$h,$userid,$par; print "Marriage Counseling "; if ($ir['happiness'] > 6 and $par['happiness'] > 6) { print "You have a happy relationship, why risk it?[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print" You enter Dr. Lovvels Marriage Counseling Center, you could come out with your marriage secure, or it shatters "; } function do_council() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=10 WHERE userid={$par['userid']}"); print"1.) You enter the counseling room 2.) You and your partner resolve a few issues you have been having 3.) You come out feeling happy[color=white]Being redirected, Please Wait![/color]"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You went to marriage counseling and it was a disaster",$c); print"1.) You go with your partner to marriage counseling 2.) You blame things on your partner and vice versa 3.) It was a disaster and you go out feeling sad and sleep on the sofa[color=white]Being redirected, Please Wait![/color]"; } } function index() { global $db,$ir,$c,$h,$userid,$par; print "Partner Management Here you can perform many actions to do with your marriage [url='partner.php?action=givemoney']Send Money[/url] [url='partner.php?action=givecrystals']Send Crystals[/url] [url='partner.php?action=givebank']Send Bank Money[/url] [url='partner.php?action=givecyber']Send Cyber Money[/url] [url='partner.php?action=takemoney']Take Money[/url] [url='partner.php?action=takecrystals']Take Crystals[/url] [url='partner.php?action=takebank']Take Bank Money[/url] [url='partner.php?action=takecyber']Take Cyber Money[/url] [url='partner.php?action=sendmessage']Send Message[/url] [url='partner.php?action=sleep']Sleep With {$par['username']} [url='partner.php?action=affair']Have an Affair [url='partner.php?action=divorce']Divorce[/url] [url='partner.php?action=allowence']Change Marriage Allowance[url='partner.php?action=council']Go to Marriage Counseling[/url] Marriage Stats Your Happiness: {$ir['happiness']}Their Happiness: {$par['happiness']} "; } $h->endpage(); ?>   Continues
  22. [align=left]Just had a quick look over it and i believe there should be a decision.php file....[/align][align=left] [/align]
  23. Good job mate! :thumbsup: Just a couple of things. spelling error on line 69 <center><form action='authenticat.php' method='post'>[img=images/username.png]   should be <center><form action='authenticate.php' method='post'>[img=images/username.png]   And maybe make a image for the Register. Other than than i think its cool 8)
  24. Just fixed the query so it works correctly. Place this in your crons weekly file.... $db->query("UPDATE users SET player_week = player_week - 1 WHERE player_week > 0");
  25. I have been reworking this donatorshop mod and would like someone to look over it and make it secure... Also i was wanting to add images of the items the users can buy but have hit a brick wall. Anyhelp would be appreciated and i will post the finished and secure product in the free mods sections... AND NO, I DID NOT MAKE THIS MOD! (I am simply reworking the donatorshop i found on CE so as my users can buy items with their donatordays) If you have a look at the code, you will see where i want to add the images. Thanks in advance.   <?php include "globals.php"; if($ir['donatordays'] == 0) { echo("Sorry! But You Must Be A Donator To View. [url="donator.php>[b]<u>Buy"][/url]"); $h->endpage(); exit; } if($ir['safehouse'] > 0) { print "You Are In A Safehouse"; die ("</table><tr><td><image src='bottom1.png'></td></tr></table>"); } if($ir['jail'] or $ir['hospital']) { print "This Page Cannot be Accessed while in Jail or Hospital."; die ("</table><tr><td><image src='bottom1.png'></td></tr></table>"); } print "<h1>DONATORS SHOP</h1> <h3>THIS IS WHERE YOU CAN TRADE YOUR DONATORDAYS.</h3></br>"; print "<table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th class='h'><font color=black>YOU CURRENTLY HAVE <font color=red>{$ir['donatordays']} </font>DONATORDAYS</th> </tr>"; if($_GET['type'] == "") { print "[b]Items are listed below. [/b] <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>ITEM NAME[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>ITEM COST[/b]</font></td> <th class=\"h\" width=20%>[b]<font color=black>ITEM BUY[/b]</font></td> </tr>[/b]</table> <h3>ARMOUR</h3> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Cloak of Invisiblity[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>25 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=cloak'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>ChainMail Armour[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>25 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=chainarm'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <h3>WEAPONS</h3> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Naval Cannon[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>25 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=navalcannon'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Buccaneer Pistol[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>25 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=buccpistol'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <h3>BAR HEALERS</h3> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Will Potion[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>10 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=willpot'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Brave Bar[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>2 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=bravebar'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Power Bar[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>1 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=powerbar'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <h3>OTHER</h3> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>Jail Key[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>5 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=jailkey'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>10 Lucky Box Turns[/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>5 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=luckybox'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table> <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <th class=\"h\" width=15%>[b]<font color=black>30 Projection Days [/b]</font></td> <th class=\"h\" width=10%>[b]<font color=black>ITEM PIC[/b]</font></td> <th class=\"h\" width=15%>[b]<font color=black>500 Donator Days[/b]</font></td> <th class=\"h\" width=20%>[url='donatorshop.php?type=projecdays'][b]<font color=black>Buy[/url][/b]</font></td> </tr>[/b]</table>"; } else if($_GET['type'] == "cloak") { if($ir['donatordays'] <25) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-25 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',139,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 25 Donatordays For A Cloak Of Invisiblity--- <a href=items.php>[b]Check Your Inventory[/b]</a> </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "chainarm") { if($ir['donatordays'] <25) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-25 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',73,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 25 Donatordays For A ChainMail Armour--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "navalcannon") { if($ir['donatordays'] <25) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-25 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',138,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 25 Donatordays For A Naval Cannon--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "buccpistol") { if($ir['donatordays'] <25) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-25 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',75,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 25 Donatordays For A Buccaneer Pistol--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "namehere") { if($ir['donatordays'] <85) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-85 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',ITEM NUMBER HERE,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 65 Donatordays For A NAME HERE--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "willpot") { if($ir['donatordays'] <10) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-10 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',19,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 10 Donatordays For A Will Potion--- <a href=items.php>[b]Check Your Inventory[/b] </center></td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "powerbar") { if($ir['donatordays'] <1) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-1 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',323,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 1 Donatordays For A Power Bar--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "bravebar") { if($ir['donatordays'] <2) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-2 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',31,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 2 Donatordays For A Brave Bar--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } //This is type like a function else if($_GET['type'] == "jailkey") { if($ir['donatordays'] <5) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-5 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',33,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 5 Donatordays For A Jail Key--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "luckybox") { if($ir['donatordays'] <5) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-5 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',175,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 5 Donatordays For A Lucky Box--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } else if($_GET['type'] == "projecdays") { if($ir['donatordays'] <500) { print ("<tr><td>[b]<center>You Don't Have Enough DonatorDays! [url="donator.php>[b]<u>Buy"][/b][/url] or <a href=donatorshop.php>[b]<u>Go Back</u>[/b]</center>[/b]</td></tr></table>"); } else { $db->query("UPDATE users SET donatordays=donatordays-500 WHERE userid=$userid",$c); $db->query("INSERT INTO inventory VALUES('',210,$userid,1,0)",$c); print "<tr><td><center>---You Successfully Traded 500 Donatordays For 30 Projection Days--- <a href=items.php>[b]Check Your Inventory[/b] </center> </td></tr></table> <a href=donatorshop.php>TRADE SOME MORE</a>"; } } $h->endpage(); ?>
×
×
  • Create New...