Jump to content
MakeWebGames

LegendFTW

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by LegendFTW

  1. if you need help coding and you can pay ill happily code for you :D just mail me on [email protected]
  2. i could help you add me on msn [email protected]
  3. haha man you sound so retarded ;) now go get a life and this mod is actually good and it works woops i forgot to say its secure too :/ now go being negative somewhere else please.
  4. huh ? i bought ur mod!! dont u remember
  5. I Bought this mod from him and its surely worth the money
  6. This clone is in the making and will be done soon so then there will be a demo the screenshot above was just a preview of a very good clone
  7. it looks pretty cool in my opinion
  8. i have created a merit system myself. there are instructions and merit exchange file which is very easy to edit for your needs screenshot is below The money will be sent to [email protected] with a message attached saying Merit system and then a email with the files will be sent to the email that was paied from or you will have to add another email to the message on paypal For Another 5 dollars = 15 dollars you will get incremental upgrades too which will mean for each upgrade they buy it will become 1 meri expensiver like 2 merits for 1 upgrade
  9. im 1 of his few players that are in the game but i can tell u that its really cool the layout is very cool, i think he said 200 i personally think it should be more but thats just my opinion
  10. Screenies:
  11. Call this file rateexchange.php Note: you must have the ratings modification to use this if you dont have this it can easily be changed to use for crystals/points etc. <?php include "globals.php"; if($ir['hospital'] || $ir['jail']) { print " You would have to be joking. You cant get into here through hospital."; exit; } if(!$_GET['spend']) { if($ir['ratings']>11) { $ea="[url='rateexchange.php?spend=refill']Buy[/url]"; } else { $ea="N/A"; } if($ir['ratings']>19) { $ba="[url='rateexchange.php?spend=brave']Buy[/url]"; } else { $ba="N/A"; } if($ir['ratings']>49) { $ha="[url='rateexchange.php?spend=health']Buy[/url]"; } else { $ha="N/A"; } if($ir['ratings']>999) { $dpa="[url='rateexchange.php?spend=dp']Buy[/url]"; } else { $dpa="N/A"; } print " The Rate Exchange. What Do You Want To Spend Your {$ir['ratings']} Rates On? <table width=90% border=1 cellspacing=1 class='table'> <tr> <th>Reward</th> <th>Rates Needed</th> <th>Buy</th> </tr> <tr><td>Energy Refill</td><td>12</td><td>$ea</td></tr> <tr><td>Brave Refill</td><td>20</td><td>$ba</td></tr> <tr><td>Health Refill</td><td>50</td><td>$ha</td></tr> <tr><td>DP (Pack One)</td><td>1000</td><td>$dpa</td></tr> <tr><td>IQ</td><td>1 Rate for 1 IQ</td><td>[url='rateexchange.php?spend=IQ']Buy[/url]</td></tr> <tr><td>Money</td><td>1 Rate per \$200</td><td>[url='rateexchange.php?spend=money']Buy[/url]</td></tr> </table>"; } else { if($_GET['spend'] == 'refill') { if($ir['ratings'] <12) { print "You don't have enough rates!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,ratings=ratings-12 WHERE userid=$userid",$c) or die("Energy refill area is down, please retry in 5 minutes."); print "Your energy is now full and you have paid 12 rates."; } } else if($_GET['spend'] == 'IQ') { $amm=$ir['ratings']*1; print "Type in the amount of rates you want to swap for IQ. You can get [b]$amm[/b] IQ with all your [b]{$ir['ratings']}[/b] rates One rate = 1 IQ.<form action='rateexchange.php?spend=IQ2' method='post'><input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['ratings']=(int) $_POST['ratings']; if($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { print "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['ratings']*1; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You have gained $iqgain IQ and have just spent {$_POST['ratings']} rates."; } } else if($_GET['spend'] == 'money') { $acm=$ir['ratings']*200; print "Type in the amount of rates you want to trade for cash. You can get \$$acm Cash for {$ir['ratings']} Rates. One rate = \$200.<form action='rateexchange.php?spend=money2' method='post'><input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['ratings']=(int) $_POST['ratings']; if($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { print "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['ratings']*200; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']},money=money+$iqgain WHERE userid=$userid",$c); print "You have recieved \$$iqgain and have spent {$_POST['ratings']}."; } } else if($_GET['spend'] == 'brave') { if($ir['ratings'] <20) { print "You don't have enough rates!"; } else if($ir['brave'] == $ir['maxbrave']) { print "You already have full brave."; } else { $nowcrys=$ir['ratings']-20; $db->query("UPDATE users SET brave=maxbrave,ratings=ratings-20 WHERE userid=$userid",$c); print "You now have full brave and have spent 20 rates. You now have $nowcrys Rates."; } } else if($_GET['spend'] == 'health') { if($ir['ratings'] <50) { print "You don't have enough rates!"; } else if($ir['health'] == $ir['maxhealth']) { print "You already have full health."; } else { $nowcs=$ir['ratings']-50; $db->query("UPDATE users SET health=maxhealth,ratings=ratings-50 WHERE userid=$userid",$c); print "You now have full health and have spent 50 rates. You now have $nowcs rates."; } } else if($_GET['spend'] == 'dp') { if($ir['ratings'] < 1000) { print "You don't have enough rates!"; } else { $noww=$ir['ratings']-1000; if($noww = 0) { $noww="no"; } $db->query("UPDATE users SET donatordays=donatordays+30,ratings=ratings-1000 WHERE userid=$userid",$c); print "You have a DP (Pack One) and have spent 1000 rates.You wont recieve any benefits with this donator-pack. "; } } } $h->endpage(); ?>
  12. Not getting any cron errors show up when done manually thats why im confused unless theres a coding error somewhere?
  13. sorry about this but its a vital part of a game to have jobs working so it is important i get this working. It doesnt give the stats and cash to people every day. Cron Hour <?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 users SET smoking=smoking-2 WHERE smoking > 0"); $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.jobpoints=u.jobpoints+jr.jrPOINTS, 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"); } $stock=$db->query("SELECT * FROM stock",$c); while($st=$db->fetch_row($stock)) { $rand1=(int) rand(1,2); $rand2=(int) rand(1,25); if($rand1 == 1) { $db->query("UPDATE stock SET stCOST=stCOST+$rand2,stPERC='$rand2' WHERE stID={$st['stID']}",$c); } else { $db->query("UPDATE stock SET stCOST=stCOST-$rand2,stPERC='-$rand2' WHERE stID={$st['stID']}",$c); } } $db->query("UPDATE stock SET stCOST=0 WHERE stCOST<0",$c); $db->query("DELETE FROM stock WHERE stCOST=0",$c); ?>   Jobs <?php $jobquery=1; include "globals.php"; $_GET['interview'] = abs((int) $_GET['interview']); if(!$ir['job']) { if(!$_GET['interview']) { print " You do not yet have a job. A list of jobs is available below. "; $q=$db->query("SELECT * FROM jobs"); while($r=$db->fetch_row($q)) { print "> <font color=blue>{$r['jNAME']}</font> - <font color=green>{$r['jDESC']}</font> - [url='job.php?interview={$r[']<font color=red>Go to interview</font>[/url] "; } } else { $q=$db->query("SELECT j.*,jr.* FROM jobs j LEFT JOIN jobranks jr ON j.jFIRST = jr.jrID WHERE j.jID={$_GET['interview']}"); $r=$db->fetch_row($q); print "{$r['jOWNER']}: So {$ir['username']}, you were looking for a job with us? {$ir['username']}: Yes please! "; if($ir['strength'] >= $r['jrSTRN'] && $ir['labour'] >= $r['jrLABOURN'] && $ir['IQ'] >= $r['jrIQN']) { $db->query("UPDATE users SET job={$_GET['interview']},jobrank={$r['jrID']} WHERE userid=$userid;"); print "{$r['jOWNER']}: Okay {$ir['username']}, we're good to go, see you tomorrow. {$ir['username']}: Thanks! [url='job.php']:)[/url]"; } else { print "{$r['jOWNER']}: Sorry {$ir['username']}, you're not far enough in the game to work in this job. You'll need:"; if($ir['strength'] < $r['jrSTRN']) { $s=$r['jrSTRN']-$ir['strength']; print " $s more strength, "; } if($ir['labour'] < $r['jrLABOURN']) { $s=$r['jrLABOURN']-$ir['labour']; print " $s more labour, "; } if($ir['IQ'] < $r['jrIQN']) { $s=$r['jrIQN']-$ir['IQ']; print " $s more IQ, "; } print "before you'll be able to work here! [url='index.php']:'([/url]"; } } } else { switch($_GET['action']) { case 'quit': quit_job(); break; case 'promote': job_promote(); break; default: job_index(); break; } } function job_index() { global $db, $ir,$c,$userid,$h; print "<h3>Your Job</h3> You currently work in the {$ir['jNAME']}! You receive \${$ir['jrPAY']} and {$ir['jrPOINTS']} Job Points each day at 5pm! You also receive {$ir['jrIQG']} IQ, {$ir['jrSTRG']} strength, and {$ir['jrLABOURG']} labour! <table width=50% cellspacing=1 class='table'><tr><td>Strength: {$ir['strength']}</td><td>IQ: {$ir['IQ']}</td></tr><tr><td>Labour: {$ir['labour']}</td><td>Job Rank: {$ir['jrNAME']}</td><td>Job Points:{$ir['jrPOINTS']}</tr></table> [b]Job Ranks[/b] <table width=75% cellspacing=1 class='table'><tr style='background:gray'><th>Title</th><th>Pay</th><th>Strength Reqd</th><th>IQ Reqd</th><th>Labour Reqd</th></tr>"; $q=$db->query("SELECT * FROM jobranks WHERE jrJOB={$ir['job']} ORDER BY jrPAY ASC;"); while($r=$db->fetch_row($q)) { print "<tr><td>{$r['jrNAME']}</td><td>\${$r['jrPAY']}</td><td>{$r['jrSTRN']}</td><td>{$r['jrIQN']}</td><td>{$r['jrLABOURN']}</td></tr>"; } $js=$db->query("SELECT * FROM jobspecials WHERE jsJOB={$ir['job']} ORDER BY jsID ASC;",$c); print "[b]Specials unlocked:[/b] <form action='specials.php' method='post'> <table width=80% cellspacing=1 class='table'> <tr> <th><font color=red>Reward</font></th> <th><font color=red>Cost</font></th> <th><font color=red>Take</font></th></tr>"; if($db->num_rows($js) == 0) { print "<tr class='row$current_row'><td colspan=3>This Job has no Speacials</td></tr>"; $current_row = 1 - $current_row; } while($sp=$db->fetch_row($js)) { print "<tr class='row$current_row'><td><font color=black>{$sp['jsNAME']}</td><td><font color=#FF0000>-{$sp['jsCOST']} Job Points</font></td><td><center><input type='radio' name='ID' value='{$sp['jsID']}' /></td></tr>"; $current_row = 1 - $current_row; } print "<tr> <td colspan=3><div align=center><input type='submit' value='Purchase'></div></td> </tr></table> [url='job.php?action=promote']> Try To Get Promoted[/url] [url='job.php?action=quit']> Quit[/url] </form>"; } function job_promote() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM jobranks WHERE jrPAY > {$ir['jrPAY']} AND jrSTRN <= {$ir['strength']} AND jrLABOURN <= {$ir['labour']} AND jrIQN <= {$ir['IQ']} AND jrJOB = {$ir['job']} ORDER BY jrPAY DESC LIMIT 1"); if($db->num_rows($q) == 0) { print "Sorry, you cannot be promoted at this time. [url='job.php']> Back[/url]"; } else { $r=$db->fetch_row($q); $db->query("UPDATE users SET jobrank={$r['jrID']} WHERE userid=$userid"); print "Congrats, you have been promoted to {$r['jrNAME']} [url='job.php']> Back[/url]"; } } function quit_job() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET job=0,jobrank=0 WHERE userid=$userid"); print "You have quit your job! [url='job.php']> Back[/url]"; } $h->endpage(); ?>   Cron day <?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; $db->query("UPDATE fedjail set fed_days=fed_days-1"); $q=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['fed_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET fedjail=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM fedjail WHERE fed_days=0"); $db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); $db->query("UPDATE users SET reward_done=0"); $db->query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0"); $db->query("UPDATE users SET donatordays=donatordays-1 WHERE donatordays > 0"); $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET cybermoney=cybermoney+(cybermoney/100*7) where cybermoney>0"); $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd); $userid=$r['userid']; $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); $db->query("UPDATE users SET fishing_aloud=20"); $db->query("UPDATE users SET rates=1"); $db->query("UPDATE `users` SET `money` = `money` - 250 WHERE `loan` > 0", $c); mysql_query("UPDATE `farmmarket` SET `fm_daysleft` = `fm_daysleft` - '1'",$c); mysql_query("DELETE FROM `farmmarket` WHERE `fm_daysleft` = '0'",$c); //Drug Farm itself mysql_query("UPDATE `farm_collection` SET `fc_age` = `fc_age` + '1'",$c); mysql_query("UPDATE `drug_farm` SET `df_daysleft` = `df_daysleft` - '1'",$c); $f=mysql_query("SELECT * FROM `vege_farm` WHERE `f_daysleft` = '0'",$c); while($r=mysql_fetch_array($f)) { mysql_query("INSERT INTO `farm_collection` (`fc_id`, `fc_drug`, `fc_user`, `fc_holding`, `fc_age`) VALUES ('NULL', '$r[f_drug]', '$r[f_user]', '0', '0');",$c); } mysql_query("DELETE * FROM `vege_farm` WHERE `f_daysleft` = '0'",$c); $fo=fopen("jailshouts.txt","w"); fclose($fo); $fo=fopen("hospitalshouts.txt","w"); fclose($fo); ?>
  14. If i was to do this i could just make a topic in forums called updates to post there for everyone to see
  15. isnt this from ravans arcade files?
  16. could anyone pm me one of these if you have it cause I have seen these on peoples games
  17. you have probably not installed the mccodes properly then cause it would have changed the settings to have game name and description which you would have written in the installer
  18. ok thanks can u please post the links here cause search cant find any
  19. Please can someone find or create a bounty mod because I have searched all over the forums only to find one file without crons/sql so if anyone can post one it will be deeply appreciated
  20. ok i will stick with the previous one then but if someone does make a secure version for this please pm me cause i think its a great mod if it could also have the forum avatar included with multiple images
  21. Can anyone direct me to an improved version then?
  22. Im not really sure but when i click on the second page it just refreshes itself but no page change?
  23. mod can be found here: [mccode v2] Updated Display Pic System
  24. yeah this is mccodes v2
  25. Pages for this userlist doesnt work please fix
×
×
  • Create New...