Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    759
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by peterisgb

  1. Yeah, I got bored with the price of Gold being stuck at the same rate and only changing when being changed, This way makes it a varied price allowing to make loss/gain on gold and gold stocks hehe
  2. http://infamouswars.mygamesonline.org
  3. Here is mine, I just copied and pasted 😄 if (17 == date('G')) { $qm = $db->query("SELECT userid, bankmoney FROM users WHERE bankmoney >= '1'"); while ($rm = $db->fetch_row($qm)) { $money = $rm['bankmoney']/100*2; event_add($rm['userid'], "Your Bank Interest of \$<span class=green>".number_format($money)."</span> has been credited to your bank account.", $c); } $db->query('UPDATE users SET bankmoney=bankmoney+(bankmoney/100*2) WHERE bankmoney > 0'); } Snapshot of output. attached
  4. http://infamouswars.mygamesonline.org Screenshots are on homepage.
  5. peterisgb

    LotGD

    i manged to host it on a site for £2.50 for the year. They had PHP 5.3. http://legendsofthegreendragon.mygamesonline.org MTG said i could shim things but it something i haven't done before so didn't know what i was doing.
  6. peterisgb

    LotGD

    Incase anyone is wanting to find a server host supporting php most PHP versions including php 5.3 you can use this site. awardspace.net It has a free option and there are cheap paid versions. This is the only site i have found so far that claims to have php5.3 and actually have it.
  7. peterisgb

    LotGD

    Some here may know, Specially the older groups. I've managed to get my hands on Legends of the Green Dragon script with 1,000+ modules. So I've ran an Old version of Wamp due to PHP support. Its only seems to run on php5.3 What i am looking for is, Is there some kind of wrapper i could use to make the old scripts work or know of a host that still supports php5.3 Its abit of a long reach, Worst case scenario is i setup wampserver to the world but then that means hosting it on my PC which isnt what i want to do. Anything help or advice here would be greatly appreciated.
  8. peterisgb

    Epic Games

    I own all the GTAs on Steam, I'm using the same username, PeterisGB, welcome to add me
  9. New Comp system made, Updated Game layouts, screenshots added to login page. Plus updates everyday, On hunt for new players. Even just signing up helps to create new players for the new competition system. Some Screenshots of latest work. I've dropped the main menu from the main panels in favour of a slide out menu giving more space in the main panel. Added screenshot of the new competition system that may be release here on these forums if it works out well. I made the Competition system yesterday and the cron was made with the help of a friend. The idea is to make people stay on longer, which after day 1, it seems effective
  10. Magictallguy made this one quite a few years ago but has served me well since. create file called cronless_crons.php and stick this in it. <?php if ('/cronless_crons.php' == $_SERVER['PHP_SELF']) { exit; } if (!isset($set)) { $set = array(); $settq = $db->query('SELECT * FROM settings'); while ($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } } // Minute $result2 = $db->query("SELECT * FROM updates WHERE name = '1min'"); $result1 = $db->fetch_row($result2); $hla1 = time() - $result1['last']; if ($hla1 > 60) { $n1 = floor($hla1 / 60); $db->query(sprintf('UPDATE `users` SET `hospital` = GREATEST(0, `hospital` - %u) WHERE `hospital` > 0', $n1)); $db->query(sprintf('UPDATE `users` SET `jail` = GREATEST(0, `jail` - %u) WHERE `jail` > 0', $n1)); // minute Cron stuff here $hc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `hospital` > 0')); $jc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `jail` > 0')); $db->query("UPDATE `settings` SET `conf_value` = '$hc' WHERE `conf_name` = 'hospital_count'"); $db->query("UPDATE `settings` SET `conf_value` = '$jc' WHERE `conf_name` = 'jail_count'"); $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1min'"); $floor = $time - (floor($time / 60) * 60); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1min'"); } } // Five minute $result2 = $db->query("SELECT * FROM `updates` WHERE `name` = '5min'"); $result2 = $db->fetch_row($result2); $hla2 = time() - $result2['last']; if ($hla2 > 300) { $n = floor($hla2 / 300); $db->query('UPDATE `users` SET `brave` = LEAST(`brave` + (((`maxbrave` / 10) + 0.5) * '.$n.'), `maxbrave`), `hp` = LEAST(`hp` + ((`maxhp` / 12) * '.$n.'), `maxhp`), `energy` = IF(`donatordays`, LEAST(`energy` + ((`maxenergy` / 5) * '.$n.'), `maxenergy`), LEAST(`energy` + ((`maxenergy` / 10) * '.$n.'), `maxenergy`)), `will` = LEAST(`maxwill`, `will` + '.($n * 100).')'); $db->query('UPDATE `pets` SET `energy` = LEAST((`energy` + ((`maxenergy` / 30) + 2) * '.$n.'), maxenergy) WHERE (`energy` < `maxenergy`)'); $db->query('UPDATE `pets` SET `hp` = LEAST((`hp` + ((`maxhp` / 30) + 2) * '.$n.'), maxhp) WHERE (`hp` < `maxenergy`)'); // 5 minute cron stuff here $floor = $time - (floor($time / 300) * 300); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '5min'"); } } // 1 hour $result3 = $db->query("SELECT * FROM `updates` WHERE `name` = '1hour'"); $result3 = $db->fetch_row($result3); $hla3 = time() - $result3['last']; if ($hla3 > 3600) { $n3 = floor($hla3 / 3600); // Hourly cron stuff here if (17 == date('G')) { // 5pm crons here like workpayouts } if (8 == date('G')) { // 8am crons here } if (60 == $set['validate_period'] && $set['validate_on']) { $db->query('UPDATE users SET verified=0'); } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1hour'"); $floor = $time - (floor($time / 3600) * 3600); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1hour'"); } } // 1 day $result4 = $db->query("SELECT * FROM `updates` WHERE `name` = '1day'"); $result4 = $db->fetch_row($result4); $hla4 = time() - $result4['last']; if ($hla4 > 86400) { $n4 = floor($hla4 / 86400); $db->query('UPDATE `fedjail` SET `fed_days` = GREATEST(0, `fed_days` - '.$n4.')'); $q = $db->query('SELECT * FROM `fedjail` WHERE `fed_days` = 0'); $ids = array(); // Daily cron stuff here if (1 == date('j')) { // First of the month Crons here } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1day'"); $floor = $time - (floor($time / 86400) * 86400); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1day'"); } } // 1 Week $result5 = $db->query("SELECT * FROM `updates` WHERE `name` = '1week'"); $result5 = $db->fetch_row($result5); $hla5 = time() - $result5['last']; if ($hla5 > 604800) { $n5 = floor($hla5 / 604800); // Weekly Stuff Here if you have any $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1week'"); $floor = $time - (floor($time / 604800) * 604800); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1week'"); } } Change and Add your Crons to the right section. and here are the SQLs CREATE TABLE `updates` ( `name` varchar(255) NOT NULL DEFAULT '', `last` int(255) NOT NULL DEFAULT 60 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `updates` -- INSERT INTO `updates` (`name`, `last`) VALUES ('1min', 1624438860), ('5min', 1624438800), ('1hour', 1624438800), ('1day', 1624406400), ('1month', 1541030400), ('1week', 1623888000); COMMIT;
  11. mainmenu.php Not 100% sure what was doing it, guessing its the clock function maybe. Rewrote and bug gone 🙂 <?php global $db,$c,$ir, $set, $userid; $hc = $db->query("SELECT * FROM users WHERE hospital > 0"); $hospitalcount = $db->num_rows($hc); $jc = $db->query("SELECT * FROM users WHERE jail > 0"); $jailcount = $db->num_rows($jc); $worksho = $db->query("SELECT * FROM itemscreated WHERE iUSER=$userid"); $workshop = $db->num_rows($worksho); $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='index.php'>Home</a></li> <li> <a class='link1' href='shops.php'>Medical Shop</a></li> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } elseif($ir['jail']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='index.php'>Home</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li><a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } if($ec > 0) { print "<li> <a class='link1' href='events.php'>Events ($ec)</a></li>"; } else { print "<li> <a class='link1' href='events.php'>Events (0)</a></li>"; } if($mc > 0) { print "<li> <a class='link1' href='mailbox.php'>Mailbox ($mc)</a></li>"; } else { print "<li> <a class='link1' href='mailbox.php'>Mailbox (0)</a></li>"; } if($ir['chathide'] == 1){ print"<li><a class='link1' href='chat.php'>Chat</a></li>"; } if($ir['new_announcements']) { print "<li> <a class='link1' href='announcements.php' style='font-weight: 800;'>Announcements ({$ir['new_announcements']})</a></li>"; } else { print "<li> <a class='link1' href='announcements.php'>Announcements (0)</a></li>"; } if($ir['jail'] and !$ir['hospital']) { print "<li> <a class='link1' href='gym.php'>Jail Gym</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='hospital.php'>Hospital({$hospitalcount})</a></li>"; } else if (!$ir['hospital']) { print "<li> <a class='link1' href='explore.php'>Explore</a></li> <li> <a class='link1' href='gym.php'>Gym</a></li> <li> <a class='link1' href='criminal.php'>Crimes</a></li> <li> <a class='link1' href='gta.php'>GTA</a></li> <li> <a class='link1' href='job.php'>Your Job</a></li> <li> <a class='link1' href='business_home.php'>Your Business</a></li> <li> <a class='link1' href='stocks.php'>Stock Market</a></li> <li> <a class='link1' href='competition.php'>Game Events</a></li> <li> <a class='link1' href='contest.php'>Contest</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print "<li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } print "<li> <a class='link1' href='forums.php'>Forums</a></li>"; print " <li> <a class='link1' href='newspaper.php'>Newspaper</a></li> <li> <a class='link1' href='search.php'>Search</a></li>"; if(!$ir['jail'] && $ir['gang']) { print "<li> <a class='link1' href='zFamily.php?p=myFam'><font color = green>Your Gang</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } if($ir['user_level'] > 1) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='staff.php'>Staff Panel</a></li> "; if ($userid == '1') { echo "<li> <a class='link1' href='ownerpanel.php'>Owner Panel</a></li>";; } print " </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div>"; print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_online.gif' alt='' /> </p></div> <div class='navi_mid'><ul> "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br> </div><div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } } if($ir['donatordays']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/donators_only.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='friendslist.php'>Friends List</a></li> <li> <a class='link1' href='blacklist.php'>Black List</a></li> <li> <a class='link1' href='ddreward.php'>Daily Rewards</a></li> <li> <a class='link1' href='vipgym.php'>VIP Gym</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } print " <div class='navipart'> <div class='navitop'><p> <img src='images/other_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='preferences.php'>Preferences</a></li> <li> <a class='link1' href='preport.php'>Player Report</a></li> <li> <a class='link1' href='helptutorial.php'>Help Tutorial</a></li> <li> <a class='link1' href='gamerules.php'>Game Rules</a></li> <li> <a class='link1' href='viewuser.php?u={$ir['userid']}'>My Profile</a></li> <li> <a class='link1' href='logout.php'>Logout</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> " ; echo("<table border='1' width='85%' bordercolor='white'> <tr style='background: url('.$bimage.');'><th><font color=gold>Time and Date</th></tr><tr><td style='background: url('.$bimage.');'><font color=gold>".date ('F j, Y')."<br />".date('g:i a')."</td></tr></table>"); ?> Welcome to see if you can figure it out, This is the before i fixed it mainmenu.php After looking through it i still cant see the issue lol. All i know is i removed and rewrote and bang, double issue fixed. Spooky.
  12. Fixed and eradicated the double bug. Issue Resolved 🙂
  13. one of my old sites I just used https://www.appgyver.com and used webview lol. Its a free site that allows you to make apps etc
  14. Ouch. I would still highly suggest moving off it tho
  15. isn't mysql no longer support in modern version of php?
  16. I don't use this myself as it doesn't fit my game. It needs works and securing before official use. This was made as a base script to build on and repair where needed.
  17. I've just updated the original post. I dont use this and havent used it since i made it lol.
  18. Most are some here, Mainly Free, A few paid ones but i paid for them so i wouldnt release them 😄
  19. I'll keep looking through my files for v2 but i dont think i backed that one up, but here is v1.1 and v1.1.5 Hosting them here on this site internally as its more reliable than dropbox. Here they will remain. UPDATE. After searching through 20gbs of mods v2 of this just isnt in there 😞 Gang System Ver.1.1.zip GangSystem-Patch_1.1.5.zip
  20. You need to remove those mysql_query and put $db->query instead. on lines 492, 494 520 on that screenshot. You need to change any and all on those pages to $db->query Here is my Credit member function. Works fine. function credit_member() { global $ir, $inf, $db; $_POST['cash'] = abs(@intval($_POST['cash'])); $_POST['member'] = abs(@intval($_POST['member'])); if($_POST['cash'] AND $_POST['member']) { if($_POST['cash'] > $inf['busCash']) { echo 'You cannot credit more than the Company has in it\'s vault.'; } else { $db->query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE `userid` = '%u'", $_POST['cash'], $_POST['member'])); $db->query(sprintf("UPDATE `businesses` SET `busCash` = `busCash` - '%d' WHERE `busId` = '%u'", $_POST['cash'], $inf['busId'])); $realname = $db->query(sprintf("SELECT * FROM `users` WHERE (`userid` = '%u')", $_POST['member'])); $thename = $db->fetch_row($realname); echo 'You gave '.number_format($_POST['cash']).' to this member from the vault.'; $buss = $inf['busId']; $texts = $thename['username']." was credited ".number_format($_POST['cash'])." from the Company."; $db->query(sprintf("INSERT INTO `businesses_alerts` (`alertId`, `alertBusiness`, `alertText`, `alertTime`) VALUES ('NULL', '$buss', '$texts', 'timestamp()')")); } } else { echo '<form action="business_manage.php?p=credit_member" method="post"> <p align="center"> Your Company vault contains '.number_format($inf['busCash']).' at this time, which can be credited to a member.<br /> Select a member from the box below and enter an amount of cash to give to them.<br /> Cash amount: <input type="text" name="cash" /><br /> Company employee: <select name="member"> <option value="0">None</option> <option value="'.$ir['userid'].'">'.stripslashes($ir['username']).'</option>'; $select_members = $db->query(sprintf("SELECT * FROM `businesses_members` LEFT JOIN `users` ON (`userid` = `bmembMember`) WHERE (`bmembBusiness` = '%u') ORDER BY `bmembId` ASC", $inf['busId'])); while($sm = $db->fetch_row($select_members)) { echo '<option value="'.$sm['userid'].'">'.stripslashes($sm['username']).'</option>'; } echo '</select><br /> <input type="submit" value="Credit cash" /> </p> </form>'; } }
  21. Me personally i kinda do both. depending on what its doing. Doing it all in one is alot cleaner and should be done where possible.
  22. yup, I made a whole site dedicated around this mod. No attacking, Just over 500 flash games to compete with your friends. I put the site online a couple days ago but none of the games work lol. Flash Player is no longer supported lol. Sad times. https://arcadiagames.tk/ None of the games work as flash is dead but most of the site is there, few bugs as i'm not updating it due to flash is dead 😞
  23. May this MOD rest in Piece, RIP flash
  24. Well i've been watching my google analytics to try and understand where people are coming from. Most of my visits come from either this site or these which i copied from google anaylstics makewebgames.io arena-top100.com infamouswars.com mmohub.com bbogd.com newrpg.com
×
×
  • Create New...