
legrolls
Members-
Posts
111 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by legrolls
-
Re: Something other than male/female? Haunted Dawg's doesn't work, he states that himself...
-
Re: Something other than male/female? Any other help? I haven't made the game yet, and this is very important.
-
For my new futuristic game, I want you to be able to choose human or alien instead of male or female. How would I do this?
-
I accidently deleted my database and it wont read my backup?
legrolls replied to legrolls's topic in General Discussion
Re: I accidently deleted my database and it wont read my backup? In a .doc file? I'll try... -
I accidently deleted my database and it wont read my backup?
legrolls replied to legrolls's topic in General Discussion
Re: I accidently deleted my database and it wont read my backup? Actually it still didn't work...I'm in desperate need :( -
I accidently deleted my database and it wont read my backup?
legrolls replied to legrolls's topic in General Discussion
Re: I accidently deleted my database and it wont read my backup? You're not online...I'll email you the .doc -
Re: Using time? Still not working, I'm using v2, so I changed the mysql_query to $db->query, with no prevail
-
Re: Using time? Nope...:(
-
Re: Using time? It didn't do anything. Here's what I want: I want it so you get an item at a certain amount of time. The item is item 59, and the time is from 4PM to 7PM. I changed the times...
-
Re: Using time? So what am I supposed to do? :?
-
Re: Using time? Damn, you never landed it! You landed 74. You need a 49.
-
Re: Using time? Still not working. Can you make the script from 3PM to 7PM? Just wondering. And now, I'm not even getting the item.
-
Re: Using time? Now it doesn't seem to work at all? :?
-
Re: Using time? It seems I get the item now, but no text.
-
Re: Using time? <= '19' || date('h') => '21') { item_add($ir['userid'], 59, 1); } } ?> This is what I get when I go on the time.php
-
Re: Using time? <php include "globals.php"; if(mt_rand(1,100) == 49) { if(date('h') <= '19' || date('h') => '21') { item_add($ir['userid'], 59, 1); } } ?> This is my code right now, it's not working. I must be doing something wrong, can you help me fix it?
-
Re: Using time? Ok, but what about the time itself?
-
Re: Using time? How would I make it so from 7 to 9 PM, you can get a certain item? And what does your "give item" mean? The script of giving the item itself? (in this case, $itemid = 59; item_add($userid, $itemid, 1);)
-
How would I make it so you need to be playing at a certain time to get something? Say 7:00 PM, how would I make it so something happens at that specific time?
-
Re: Assistant and Admin name colors? Thanks!
-
How would I make it so if you are an assistant, you have a green name, and if you are an admin, you have a blue name? I imagine it's similar to donator names, but I don't know how to make the if: statement thingy. Any help would be much obliged.
-
Re: Energy Bar too long? When they cook food, energy is deducted. So they buy a lot of ingredients and deduct negative.
-
Re: Energy Bar too long? They don't have positive energy, they have negative.
-
Re: Energy Bar too long? My header script: <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#FFFFFF; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set;$IP = $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT [img=title.jpg] <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]] <hr /> [b]Energy:[/b] {$enperc}% <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=navybar.png width=$experc height=10><img src=redbar.png width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> <hr /> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "<a href='donator.php'>"; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?>