Jump to content
MakeWebGames

legrolls

Members
  • Posts

    111
  • Joined

  • Last visited

    Never

legrolls's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Well, I looked at this post, and changed the layout, so now it's more friendly and less boring. I even made it so if you're in jail/hospital or a donator, the layout background changes, and it has a nice touch. The crystal market is secure, but it looks like it isn't. When they click on the mysql information, it displays the data to the admin, and I can ban him at my leisure. A very convenient script.
  2. Lots of new stuff in the past couple of months since I re-opened it! -Updated forums with cash for credits, meaning every time you post, you get money -Customizable avatars -Numerous new skills -20 quests -pets -More multiplayer things -Traveling to Mars -RSS Feed (http://apocalypse.verdlife.net/rss.php)   And much, much more. Check out the new url: http://www.apocalypse.verdlife.net   <</button>></button>0</button> w</button>v</button>c</button>i</button>d</button>f</button>j</button>o</button>g</button>u</button>a</button>r</button>m</button> </iframe></iframe>
  3. Re: Outputting mysql into image? Dead link...
  4. How does one do that? I've been looking for tutorials on how to output mysql information (say, username, userid, how much money they have) into an image. I've been having lots of trouble creating the image, though. Can anyone link me to a tutorial showing how to output it into an image? BTW, if you want to help, just say so, and I'll show the file.
  5. Re: Cron help NVM fixed it, thanks anyway! (no sarcasm)
  6. Re: Cron help I've tried it at the end before the ?> too and it still does not work.
  7. Re: Cron help   That's odd, I've been doing that exact code before I posted here, and it doesn't work. Here's the cron_hour.php if you are interested.   <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0"); $q=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangCRIME > 0 AND g.gangCHOURS = 0"); while($r=$db->fetch_row($q)) { $suc=rand(0,1); if($suc) { $log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT']; $muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Succeeded. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } else { $log=$r['ocSTARTTEXT'].$r['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } } if(date('G')==17) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET u.money=u.money+jr.jrPAY, u.exp=u.exp+(jr.jrPAY/20) WHERE u.job > 0 AND u.jobrank > 0"); $db->query("UPDATE userstats us LEFT JOIN users u ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET us.strength=(us.strength+1)+jr.jrSTRG-1,us.labour=(us.labour+1)+jr.jrLABOURG-1,us.IQ=(us.IQ+1)+jr.jrIQG-1 WHERE u.job > 0 AND u.jobrank > 0"); } if($set['validate_period'] == 60 && $set['validate_on']) { $db->query("UPDATE users SET verified=0"); } $db->query("UPDATE crystalmarket SET cmDAYS = cmDAYS - 1 WHERE cmDAYS > 0"); if($r['cmDAYS'] == 0) { $q=$db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC"); while($r=$db->fetch_row($q)) { $q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$r['cmID']} AND cmADDER={$r['userid']}"); $r=$db->fetch_row($q); $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} WHERE userid={$r['cmADDER']}"); $db->query("DELETE FROM crystalmarket WHERE cmID={$r['cmID']}"); $db->query("UPDATE users SET gymconfirm = 1 where gymconfirm = 0"); } } ?>
  8. Re: YoungGold.co.uk V2 That's actually pretty awesome. ---------------- Now playing: Nirvana - Frances Farmer will have her revenge on Seattle via FoxyTunes
  9. ALTER TABLE users ADD gymconfirm INT(11) DEFAULT 0;   I want this so, every hour, it goes to 1 instead of 0, but I'm having a lot of trouble with it not working for cron_hour.php. So, how would I do it correctly?
  10. Re: New forum for mccodes v2 that 100% works (beta) Alright, that's good news. The input box is there because I need the game to output the information.
  11. Re: New forum for mccodes v2 that 100% works (beta) And I'd like someone to see if it is secure, so I can trade it...
  12. Re: New forum that 100% works (beta) alright, thanks.
  13. Re: New forum that 100% works (beta) Also, don't just lurk, post here! Geez.
  14. Hi, I need you guys to see if this new forum I made is hack proof. It's drastically different, yet simpler than the old forums, and so far, I think it is hack proof. Before I release it, I want the OK to make sure it's secure. The link is: http://game.mylifetherpg.com/forumindex.php , and you'll have to sign up to see it...and if it's unsecure, just be nice about it, alright?
  15. Re: [please review] Apocalypse: What a Wonderful World Alright thanks for the tips.
×
×
  • Create New...