
illegalife
Members-
Posts
159 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by illegalife
-
Re: Illegalife and his GFX
-
Re: Illegalife and his GFX i always ask what colors does the customer prefer :] just a coincidence
-
Re: Illegalife and his GFX A new layout by me for Eternal Darkness
-
Looking for someone to create Login/reg/in game desgin
illegalife replied to spiky1471's topic in General Discussion
Re: Looking for someone to create Login/reg/in game desgin You can check out my post at http://criminalexistence.com/ceforums/index.php?topic=29147.0 :] -
Re: Illegalife and his GFX Hello everyone. I just wanted to share the new layout I just created for the Dangerous Sins game. Here are the screenshots: Contact me if you need my services ;) [email protected]
-
Re: Illegalife and his GFX Thank you ;) Here's some screenshots from my newest work I did for Envy The Game.
-
Re: [v2] Event add on first loggin. got rid of the error but didnt add the event. :/ Ah your trying to do it when they login so you need to do like event_add($mem['userid'], "some message", $c); make sure you require_once 'global_func.php'; .. see if it works.
-
Re: [v2] Event add on first loggin. QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNIX_TIMESTAMP(),0,'Some message')' at line 1 Query was INSERT INTO events VALUES('',,UNIX_TIMESTAMP(),0,'Some message')
-
Re: [v2] Event add on first loggin. Yes i edited the register file before but kept getting some errors, i tried putting the event_add after the first userstats query but then got an error on signing up. } require "global_func.php"; $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); require "global_func.php"; event_add($_POST['ref'],"For refering $username to the game, you have earned 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); }
-
Can someone tell me which file to modify and how to modfiy it so a user that just signed up will get an event right away after his/her first login...? Help very appreciated ;)
-
I have a problem with the placement of my layout, i'm pretty sure its some easy problem for someone that knows what their doing but i just cant figure it out. Contact me if you can help.
-
I'd like to make NPC stats depend on the players stats. Can anyone give me some clues about this? Like what files to modify, and will this be hard to do?
-
Re: V2 Education days go negative still, nothing when my education days go down to 0, any idea where the problem could be? maybe its not the crons fault?
-
I cant figure out the following query If the user has not done the Example Course then die(You need to finish the Example Course before seeing this page) Need some help asap Thanks!
-
Re: Images when equipping an item. anyone ?
-
Re: V2 Education days go negative still the same problem, the education days are stuck at 0 :/
-
Re: V2 Education days go negative What happens now is that it just stops at You are currently doing the Hacking Course, you have 0 days remaining. and nothing happens
-
Description: A point temple, which is just a crystal temple but it's points in my game. This point temple comes with images, the images change when you hover over them and overall it looks pretty neat. Ask for details Screenshot: Price: $5 Contact: Please contact me on my email which is the same as my paypal email, [email protected]
-
Changing Whole Header when in hospital
illegalife replied to illegalife's topic in General Discussion
Re: Changing Whole Header when in hospital no by header i mean the whole file header.php -
Can someone help me? I want a whole different file (header2.php) to display when you are in hospital instead of (header.php) i tried to mess with globals.php a little bit but couldnt get it to work.
-
Re: V2 Education days go negative is there anyway i can test it without having to wait the whole day?
-
Re: Images when equipping an item. yea i couldnt figure it out either ;/
-
Re: V2 Education days go negative ok here's how i changed it <?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"); $q2=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r2=$db->fetch_row($q2)) { $ids[]=$r2['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 splatturns=3"); $db->query("UPDATE users SET strategoturns=0"); $db->query("UPDATE users SET tokens=0"); $db->query("UPDATE users SET brothel=0",$c); $db->query("UPDATE users SET turns=25"); $db->query("UPDATE users SET tired=0"); $db->query("UPDATE users SET dare=5"); $db->query("UPDATE users SET popularity=2"); $db->query("UPDATE users SET clubvisits=0"); $db->query("UPDATE users SET happiness=happiness-1 WHERE married != 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=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($r2=$db->fetch_row($q2)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r2['course']}"); $coud=$db->fetch_row($cd); $userid=$r2['userid']; $db->query("INSERT INTO coursesdone VALUES({$r2['userid']},{$r2['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"); $fo=fopen("jailshouts.txt","w"); fclose($fo); ?> will it work now? and for some reason this $db->query("TRUNCATE TABLE votes"); didnt work either
-
Re: V2 Education days go negative bump, i need help please :(
-
I dont know whats wrong my education days go negative... this is my cron_day.php <?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"); $q2=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r2=$db->fetch_row($q2)) { $ids[]=$r2['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 splatturns=3"); $db->query("UPDATE users SET strategoturns=0"); $db->query("UPDATE users SET tokens=0"); $db->query("UPDATE users SET brothel=0",$c); $db->query("UPDATE users SET turns=25"); $db->query("UPDATE users SET tired=0"); $db->query("UPDATE users SET dare=5"); $db->query("UPDATE users SET popularity=2"); $db->query("UPDATE users SET clubvisits=0"); $db->query("UPDATE users SET happiness=happiness-1 WHERE married != 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=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 cdays=cdays-1 WHERE course > 0 AND cdays > 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"); $q2=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r2=$db->fetch_row($q2)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r2['course']}"); $coud=$db->fetch_row($cd); $userid=$r2['userid']; $db->query("INSERT INTO coursesdone VALUES({$r2['userid']},{$r2['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 factions SET faCHOURS=faCHOURS-1 WHERE faCRIME>0"); $q=$db->query("SELECT fa.*,oc.* FROM factions fa LEFT JOIN orgcrimes oc ON fa.faCRIME=oc.ocID WHERE fa.faCRIME > 0 AND fa.faCHOURS = 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 factions SET faVAULT=faVAULT+$muny,faCRIME=0 WHERE faID={$r['faID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['faID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE factions={$r['faID']}"); while($rm=$db->fetch_row($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Succeeded. Go [url='oclofa.php?ID=$i']here[/url] to view the details.",$c); } } else { $log=$r['ocSTARTTEXT'].$r['ocGANGTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE factions SET faCRIME=0 WHERE faID={$r['gaID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gaID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gaID']}"); 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); } } } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes"); $fo=fopen("jailshouts.txt","w"); fclose($fo); ?>