XCU53S
Members-
Posts
353 -
Joined
-
Last visited
Never
XCU53S's Achievements
Newbie (1/14)
0
Reputation
-
Re: cron_day.php <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die("Cron Not Ran"); } 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 gameturns=50"); $stockreset = rand(100,500); //100 is the minimum it will reset to and 500 is maximum, you can change $db->query("update shopitems set sitemQTY = ".$stockreset." "); $db->query("UPDATE users SET fishing_aloud=20"); $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 hoesbuy = 0 WHERE hoesbuy > 0 ); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0 and donatordays>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;"); $rem=$db->query("SELECT * FROM users WHERE fedjail=0 AND user_level>0 AND reminder=0"); while($rem1=$db->fetch_row($rem)) { $lon=($rem1['laston'] > 0) ?date('F j, Y g:i:s a',$rem1['laston']) : "Never"; if($rem1['laston'] > 0) { $la=time()-$rem1['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; if ($la>30) { $db->query("UPDATE users SET reminder=1 WHERE userid={$rem1['userid']}"); // send email. $site_name = "The Destroyers"; $site_mail = "[email protected]"; $bericht = "Inactive Reminder.\n\n"; $bericht .= "Username: ".$rem1['username']."\n"; $bericht .= "Password: ".$rem1['password']."\n"; $bericht .= "Email: ".$rem1['email']."\n"; $bericht .= "\n"; $bericht .= "We have noticed that you have not logged in over 1 month. A lot of changes have happened in our site since then. Why don't you come and try it out. Your account details are still active. So come on and lets all have fun together."; mail($rem1['email'],"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">"); } } } } } ?> he means put it in them lol i seriously think you should start at html before making a game.
-
Re: Legends of the Gods (Not My Game) I dont see nothing special needs alot more done and the layout lets not go there.
-
Re: [Mccodes V2]Emergency Surgery Look at the error displayed: Parse error: syntax error, unexpected '&' in /home/cityoftu/public_html/surgery.php on line 5 Think what the error could be saying to you...then look at line 5: die("You are not in the hospital!"); You see anything wrong?...
-
Re: Fast & Furious Worth the watch for defo, but alot of you may be disapointed my expectations where high for this one. Anyone watched The Children?..
-
Re: New Banner yh maybe remove the soldier the tank looks alright, just move the text when you remove the soldier and take the tanks outline away.
-
Re: New Banner For 5 mins work i have to say its good, only problems are as dave said the soldier is treched out too much and the text could be poistioned better would have been better centered in this case. the outlines are not working with the foreground which dramatically affects the appeal. Other than that good work :-D
-
Re: Login & Register [$15] Sites not mines mate, they may be modifying the code i am not aaware of this and it doesnt concern me just be assured when pusrchased the its all in working order.
-
Re: Problem with making crimes Im no genius but im guessing you need to look in your staff_crimes.php there must be a problem with the query that inserts the crime into the database. If you cant fix i suggest just adding crimes via phpmyadmin much quicker and ewasier hope i helped :-D
-
Re: Login & Register [$15] Oh i see thats fine then. So anyone want this?..
-
Re: Login & Register [$15] Thanks for the comment POG1 and this is my first login and reg i made al by myself. @AlabamaHit just leave your comments out if its not good please.
-
Re: Login & Register [$15] Thanks next person to purchase get a free add banner :-D
-
Re: Login & Register [$15] So anyone interested?..It comes with a custom banner and like I said i can change it all to suit your game doesnt have to be a gangster theme. Take a look at SBR: http://www.theshinobibattle-rpg.com/ I did what they asked i made a custom banner and changed font styles. I can change colors too.
-
Re: Login & Register [$15] Well you may fail to see them, but there are 9 images I have no reason to lie unless thats what you were trying to imply..
-
Re: Login & Register [$15] Thank you for the comments keep the feedback coming in and hopfully someone is interested in this design i would have originally sold this for $25 but since its not made for any specific game and im posting on CE i took $10 off the price. And remember this has 9 images which would cost you alot more than $15 anywere else.
-
Hello this is a login & register i threw together, it is simple but effective and i think it would suit a RPG site perfectly. Here is a Screenshot of the login: Here is a Screenshot of the register: Each purchase Comes with a custom banner for the game instead of the text name on these screenshots. I will modify colours to what ever you wish change font styles to match your game. What you receive with this: [*]2 php file (login,register) [*]9 Images (all customised to your desire) If you interested or have and questions please free to mail me on CE or contact me via msn at [email protected] Thank you for your time.