Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    738
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by peterisgb

  1. It looks good. Nice pirate theme and mobile friendly. I haven't any suggestions so keep what your doing.
  2. That is bootstrap lol. Its been bootstrap that has been the cause of most of the login/register layouts issues lol. I havent used it ingame so thats all good.
  3. Login/Register Page cleaned up.
  4. Oh. Fair enough lol. Brain fart. I've never heard it shortened before.
  5. NDA? I've not heard that before? What's that mean?
  6. I didn't give details as there isn't one lol As to people purchasing? I'm not in it for the money. I'm here for the users and not the cash. I've paid the last 2 years server costs out of my own money and probs will continue to do so. Money does help but it isn't what drives me, Users and activeness is the things that drive me.
  7. Oh well. I'll live without you. This is the attitude is why I didn't give u any rights to my avataaar mod
  8. I have never advertised my game even tho is Dev started in 2018. I feel time is more or less ready to start advertising. So as my first ad post for my game. I'm not going to post screenshots as I kinda want people to join. (people to attack lol). Screenshots now added to login and a post further down this page So why not join and have a look around. Supportive feedback welcome. My favourite features are the round stat bars for health etc, the mines and weather effects. Now onto a link 🙂 https://www.infamouswars.com
  9. I spent £250 today on a nitro RC car 😄
  10. Thought about a dark theme? Like theme switcher.
  11. It seems you have some skills at making images tho. I can use mspaint. I also lack users. That's what motivates me but lack.
  12. because i have no motivation to do anything better or expand on it. plus i have no image skills at all, and mostly use css for everything. I'm a lone worker too
  13. somethings like this? This is of course more basic and simple? or maybe i understand you wrong.
  14. I'm pretty sure I have this on my pc. I'll fork it out and upload it tomorrow. This is the Cronus marriage mod he released a few years ago for free. mod.rar
  15. We are talking over 400 flash games that turns into billions of html lines and it's to much.
  16. I retired my site as of a month ago. With the end of flash at the end of the yeart it was pointless to continue
  17. Not sure why your getting an error after checking this myself. My copy is below, Its abit more than the original as it includes a money bank aswell as a crystal bank. like all in one. Page Settings are on lines 44 - 49. you can call this file whatever you like as i php selfed all links. I've called it sebank.php (without the Cap B). <style type="text/css" media="screen"> .red { color: #FF0000; } .green { color: #4CAF50; } .blue { color:#00abff; } .purple { color:#9400D3; } .yellow { color:#FFFF00; } .gold { color:#dbab00; } .button { background-color: #787878; border-radius: 10px; border: none; color: white; padding: 8px 25px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 2px 1px; cursor: pointer; } input[type='text'] { width: 221px; color : #423232; height:20px; border:1; padding:2px 6px; margin-bottom:0px; border-radius: 6px; } </style> <?php require_once 'globals.php'; /* Designed and developed by Script47 (2013). Edited by Peterisgb (2020 Primary) & Re-recoded by Magictallguy (2013). The code here (named "seBank") is provided "as is" with no warranty or gurantee of safety to existing code. seBank has been fully tested and is found to work as intended. seBank is released freely under the GNU License. Feel free to modify as you wish, as long as this comment block remains untouched. */ $bankprice = '500'; $openprice = '499'; // This should be 1 below $bankprice $currencyname = 'Gold'; // Change to set your crystal's name. $currencyname2 = 'Money'; // Change to set your money's name. $bank_maxfee = '3000'; // Max fee taken from money deposit. $bank_feepercent = '15'; // Money Fee %. echo '<h3>'.$currencyname.' & '.$currencyname2.' Bank</h3>'; if (!isset($_GET['action'])) { $_GET['action'] = ''; } if($ir['bankcrystals'] > -1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; case "depositm": depositm(); break; case "withdrawm": withdrawm(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money'] > $openprice) { $db->query("UPDATE `users` SET `money` = `money` - ".$bankprice.", `bankcrystals` = 0 WHERE `userid` = ".$userid); echo 'Congratulations, you bought a '.$currencyname.' bank for '.money_formatter($bankprice).'!<br /><a href="'.$_SERVER['PHP_SELF'].'">Start using your account</a><br />'; } else { echo 'Sorry, you don\'t have enough '.$currencyname.' to open a account.<br /><a href="explore.php">Back to town?</a><br />'; } } else { echo 'Open a bank account today, just '.money_formatter($bankprice).'!<br /><a href="'.$_SERVER['PHP_SELF'].'?buy"> Yes, sign me up!</a>'; } } function index() { global $ir, $currencyname, $currencyname2,$bank_maxfee,$bank_feepercent; echo ' <table width="85%" cellspacing="1" border="1" class="table"> <tr> <td colspan="2" align="center">You currently have <b><span class="gold">'.number_format($ir['bankcrystals']).'</span> '.$currencyname.'</b> in the bank.</td> </tr> <tr> <td width="50%"><strong>Deposit '.$currencyname.'</strong><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=deposit" method="post"> Amount: <input type="text" name="deposit" value="'.$ir['crystals'].'" /><br /> <input type="submit" value="Deposit" class="button" /> </form></td> <td><strong>Withdraw '.$currencyname.'</strong><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=withdraw" method="post"> Amount: <input type="text" name="withdraw" value="'.$ir['bankcrystals'].'" /><br /> <input type="submit" value="Withdraw" class="button" /> </form></td> </tr> <tr> <td colspan="2" align="center">You currently have <b><span class="green">'.money_formatter($ir['bankmoney']).'</span> '.$currencyname2.'</b> in the bank.<br /> It will cost you <span class="blue">'.$bank_feepercent.'</span>% of the '.$currencyname2.' you deposit, rounded up. Maximum fee: <span class="red">'.money_formatter($bank_maxfee).'</span></td> </tr> <tr> <td width="50%"><strong>Deposit '.$currencyname2.'</strong><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=depositm" method="post"> Amount: <input type="text" name="deposit" value="'.$ir['money'].'" /><br /> <input type="submit" value="Deposit" class="button" /> </form></td> <td><strong>Withdraw '.$currencyname2.'</strong><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=withdrawm" method="post"> Amount: <input type="text" name="withdraw" value="'.$ir['bankmoney'].'" /><br /> <input type="submit" value="Withdraw" class="button" /> </form></td> </tr> </table>'; } function deposit() { global $db, $ir, $h, $currencyname; $_POST['deposit'] = isset($_POST['deposit']) && is_string($_POST['deposit']) ? abs(@intval(str_replace(',', '', $_POST['deposit']))) : null; if(empty($_POST['deposit'])) { echo 'You didn\'t enter a valid amount to deposit'; $h->endpage(); exit; } if($_POST['deposit'] > $ir['crystals']) { echo 'You do not have enough '.$currencyname.' to deposit this amount.'; $h->endpage(); exit; } $db->query("UPDATE `users` SET `bankcrystals` = `bankcrystals` + ".$_POST['deposit'].", `crystals` = `crystals` - ".$_POST['deposit']." WHERE `userid` = ".$ir['userid']); echo 'You hand over <span class="gold">'.number_format($_POST['deposit']).'</span> '.$currencyname.' to be deposited. <br /><a href="'.$_SERVER['PHP_SELF'].'">> Back</a>'; } function depositm() { global $db, $ir, $h, $currencyname2, $userid, $bank_maxfee, $bank_feepercent; $_POST['deposit'] = abs((int) $_POST['deposit']); if ($_POST['deposit'] > $ir['money']) { echo 'You do not have enough '.$currencyname2.' to deposit this amount.'; } else { $fee = ceil($_POST['deposit'] * $bank_feepercent / 100); if ($fee > $bank_maxfee) { $fee = $bank_maxfee; } $gain = $_POST['deposit'] - $fee; $ir['bankmoney'] += $gain; $db->query("UPDATE `users` SET `bankmoney` = `bankmoney` + $gain, `money` = `money` - {$_POST['deposit']} WHERE `userid` = $userid"); echo 'You hand over <span class="green">'.money_formatter($_POST['deposit']).'</span> '.$currencyname2.' to be deposited, <br /> After the fee is taken <span class="blue">'.money_formatter($fee).'</span>, <span class="green">'.money_formatter($gain).'</span> is added to your account. <br /> <b>You now have <span class="green">'.money_formatter($ir['bankmoney']).'</span> '.$currencyname2.' in the bank.</b><br /> <a href="'.$_SERVER['PHP_SELF'].'">> Back</a>'; } } function withdraw() { global $db, $ir, $h, $currencyname; $_POST['withdraw'] = isset($_POST['withdraw']) && is_string($_POST['withdraw']) ? abs(@intval(str_replace(',', '', $_POST['withdraw']))) : null; if(empty($_POST['withdraw'])) { echo "You didn't enter a valid amount to withdraw"; $h->endpage(); exit; } if($_POST['withdraw'] > $ir['bankcrystals']) { echo "You do not have enough ",$currencyname," in the bank to withdraw this amount."; $h->endpage(); exit; } $db->query("UPDATE `users` SET `bankcrystals` = `bankcrystals` - ".$_POST['withdraw'].", `crystals` = `crystals` + ".$_POST['withdraw']." WHERE `userid` = ".$ir['userid']); echo "You ask to withdraw <span class='gold'>",number_format($_POST['withdraw']),"</span> ",$currencyname,", <br />the banker hands it over. <br /> <strong>You now have <span class='gold'>",number_format($ir['bankcrystals'] - $_POST['withdraw']),"</span> ",$currencyname," in the bank.</strong><br /><a href='".$_SERVER['PHP_SELF'].">> Back</a>"; } function withdrawm() { global $db, $ir, $h, $currencyname2; $_POST['withdraw'] = isset($_POST['withdraw']) && is_string($_POST['withdraw']) ? abs(@intval(str_replace(',', '', $_POST['withdraw']))) : null; if(empty($_POST['withdraw'])) { echo "You didn't enter a valid amount to withdraw"; $h->endpage(); exit; } if($_POST['withdraw'] > $ir['bankmoney']) { echo "You do not have enough ",$currencyname2," in the bank to withdraw this amount."; $h->endpage(); exit; } $db->query("UPDATE `users` SET `bankmoney` = `bankmoney` - ".$_POST['withdraw'].", `money` = `money` + ".$_POST['withdraw']." WHERE `userid` = ".$ir['userid']); echo "You ask to withdraw <span class='gold'>",money_formatter($_POST['withdraw']),"</span>, <br />the banker hands it over. <br /> <strong>You now have <span class='gold'>",number_format($ir['bankmoney'] - $_POST['withdraw']),"</span> ",$currencyname2," in the bank.</strong><br /><a href='".$_SERVER['PHP_SELF']."'>> Back</a>"; } $h->endpage(); ?> and of course run this sql like the first post. ALTER TABLE users ADD COLUMN bankcrystals INT NOT NULL DEFAULT '-1'; If the above script I put above doesnt work then I'd suggest its somewhere else on your site.
  18. Heh I remember this. I'm credited woop woop lol. As to your fix. Try adding } or two just before $h->endpage(); ?> If not let me know as I'm credited and will redo/bug fix this when I get on my PC tomorrow. Your Web PHP version and mccodes version too would be great help in a recode/fix for you. I use php 7.5 which is latest. Missing from scripts47 post is you need to add a field to your settings table and called it crystalname with a text value Crystal
  19. Most of them are on the forums still.
  20. This isn't so much about me but the future of mccodes.
  21. Other than the last ip, login ip, last login ip and all events into staff panel etc etc.
  22. The community is going ok, Its the development of mccodes as in a year or so most people wont be using IPv4 anymore (in the UK anyways) and mccodes doesnt support it and soon wont be a viable option.
  23. I pretty sure the mccodes engine is dead now but would there be any updates on the ip system for support with ipv6 connections. I dont have ipv4 which some sites (mccodes included) require to run perfectly.
  24. peterisgb

    Hi :)

    Now that is a name i i remember 😄
  25. ADD ME!! lol, Also since dave mentions milk, I know he doesn't do work now but how far did this project get? any chance of having what you got if you still have files
×
×
  • Create New...