-
Posts
912 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by Coly010
-
Again, Thanks For The Advice:D
-
Noted, thanks for the advice
-
I took the criticism from my last login and attempted to create another one. What do you think of this one? I can change the Title to your game name. It is intended to be an Army-Styled Login. It is a PSD. Not coded! You can use this on one site only. Note you are NOT buying the unique rights to this login. The image is in the attachments. It has been watermarked for obvious reasons. If you would like to buy : PM me on here. - Coly010
-
Thanks for the comments, I'll work on my templates for a bit then create another and post it up and see what you all think of it.
-
I got bored so created this new login. What do you all think? I can change the Title to your game name. It is a PSD but i have sliced the images also. Not coded! I am selling it for a very cheap price: £2. Even if you do not like the full template you can use different parts of it for different aspects of your game. However, you can use this on one site only. Note you are NOT buying the unique rights to this login. The image is in the attachments. It has been watermarked for obvious reasons. If you would like to buy : PM me
-
Could you please elaborate on what the mod is and the features involved in the mod. - Coly010
-
Thanks everyone, i have yet to resolve this error. I will do what you have all suggested now to rectify it! Thank you for the help! Hope this helps anyone else too who may have been having a similar problem
-
Yeah, no error is shown but it doesn't insert anything into the. Database :/
-
Ok, so I'm attempting to insert a row into a table in a mysql database. I'm using Mccodes Lite code package and my insert code does not seem to be working. Here is my code: function cr_mission() { global $ir,$c,$h,$userid; print "<h3>Adding a Mission to the game</h3><form action='admin.php?action=missionsub' method='post'> Mission Name: <input type='text' name='mname' value='' /><br /> Mission Brave: <input type='text' name='bravec' value='' /><br /> Mission Percform: <input type='text' name='percform' value='((WILL*0.8)/3.5)+(LEVEL/4)' /><font size=small>* Change the 3.5</font><br /> Mission Money: <input type='text' name='money' value='50' /><br /> Mission Group: <input type='text' name='group' value='' /><br /> Mission Info Text: <textarea rows='7' cols='75' name='itext'></textarea><br /> Mission Success Text: <textarea rows='7' cols='75' name='stext'></textarea><br /> Mission Fail Text: <textarea rows='7' cols='75' name='ftext'></textarea><br /> Mission EXP: <input type='text' name='exp' value='' /><br /> Mission Crystals: <input type='text' name='crystals' value='' /><br /> <input type='submit' value='Add Mission To Game' /></form>"; } function cr_mission_sub() { global $ir,$c,$h,$userid; if(!isset($_POST['mname']) || !isset($_POST['bravec']) || !isset($_POST['percform']) || !isset($_POST['money']) || !isset($_POST['group']) || !isset($_POST['itext']) || !isset($_POST['stext']) || !isset($_POST['ftext'])) { print "You missed one or more of the fields. Please go back and try again.<br /> <a href='admin.php?action=createmission'>> Back</a>"; $h->endpage(); exit; } { mysql_query("INSERT INTO crimes VALUES('',{$_POST['mname']},{$_POST['bravec']},{$_POST['percform']},{$_POST['money']},{$_POST['group']},{$_POST['itext']},{$_POST['stext']},{$_POST['ftext']},{$_POST['exp']},{$_POST['crystals']})",$c); print "The {$_POST['mname']} Mission was added to the game."; } }
-
ok, thanks for the quick response!! :)
-
Ok, so for my game, I decided that I wanted a three column in-game layout. I created it successfully, (or at least i thought it was successful), however problems rose when I opened criminal.php and mailbox.php. Here are a few screenshots to show you the problem: and here is my header code: (there's probably a heap of security issues in this header.php): <?php class headers { function startheaders() { global $ir; echo <<<EOF <html> <head> <title>Bitten</title> <style> body { font-family: Arial, Times New Roman; background: #000; color: #FFF; font-size: 14px; } #headbk { background: url('images/head1.png') repeat-x; } a:link, a:visited, a:active { color: #c2c2c2; } a:hover { color: orange; } td { border: 2px ridge #C1C1C1; } </style> </head> EOF; } function userdata($ir,$lv,$fm,$dosessh=1) { global $c,$userid; mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c); if(!$ir['email']) { die ("<body>Your account may be broken. Please mail [email protected] stating your username and player ID."); } if($dosessh && $_SESSION['attacking']) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c); $_SESSION['attacking']=0; } echo "<body> <table width=100%><tr id='headbk'><td><center><img src='images/Bitten.png'> </center></td></tr></table> "; print "<center><table><tr><td valign='top' width='20%'> "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("<b><font color=red size=+1>You have been put in the Bitten Federal Jail for {$r['fed_days']} day(s).<br /> 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, there is no way around this.</font></b></body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print "</td><td valign='top' width='60%'><div style='background: url(images/menuhead.png); width: 620px; height: 50px;'></div><div style='width: 550px;'> "; } function endpage() { global $c,$userid, $ir, $fm; $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']; echo "</div></td><td valign='top' width='20%'><div style='background: url(images/menuhead.png); width: 200px; height: 50px;'><img src='images/statsimg.png' height='50px' /></div><div style='width: 150px;'> <b>Name:</b> {$u} [{$ir['userid']}]<br /> <b>Money:</b> {$fm}<br /> <b>Crystals:</b> {$ir['crystals']}<br /> <b>Scrap Metal Pieces:</b> {$ir['scrap_pieces']}<br /> <b>Level:</b> {$ir['level']}<br /> [<a href='logout.php'>Emergency Logout</a>]<br /><br /> <b>Energy:</b> {$enperc}% <br /> <img src=barendl.gif><img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10><img src=barendr.gif><br /> <b>Will:</b> {$wiperc}% <br /> <img src=barendl.gif><img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10><img src=barendr.gif><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']} <br /><img src=barendl.gif><img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10><img src=barendr.gif><br /> <b>EXP:</b> {$experc}% <br /> <img src=barendl.gif><img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10><img src=barendr.gif><br /> <b>Health:</b> {$hpperc}% <br /> <img src=barendl.gif><img src=barblue.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10><img src=barendr.gif></td></center></tr></table></center></body> </html>"; } } ?>
-
Err... In the second one is the light in the middle section more intense that the first section. And the light in the first section doesn't seem to light up the Walls surrounding it correctly. I'm not very experienced but that's what i found.
-
I can't really say much about making text based games but immediately when I logged in I just thought to myself. "The navigation bar is endless. How complicated is this game." That's not the best thing to have users thinking when they first sign in. It's very off putting. Then the guide is just boring. The game could be one of the best games in the world but the interface is too complicated. Take mccodes for example. Security is bad etc etc I know all that but the simplicity of the interface makes it what it is. Taking everything into account I suggest you make a couple of files and put some of the links on the navigation bar into them then put the link of those files onto the nav bar. Coly010
-
i've came up with a solution to the problem with regaining health brave etc. I simply added an add-on to the food item :P its not the best idea but as i cant find a better free webhost which offers mysql 5 so that I can perform timestamps i might as well just stay at my own host. The host i'm on also doesnt provide mysql 5 but i think it may allow the day cron. Thanks anyway for the suggestions. :)
-
:L sorry, senior moment (i'm only 14 :P :L!!!)
-
i'm not sure what you mean.
-
I'm making a vampire themed game and it is being made off the mccodes framework however i'm adding in lots of new mods and changing a hell of a lot of things already in it. My view on this game is more a spare time project as i've lots of exams coming up. I'm currently creating a template for it but once that is created i'll post a few screenshots up.
-
Er... the host is heliohost and i just found out that it only allows two once a day. have you any alternatives to cron jobs? ajax and javascript work inpage meaning the person would need to be logged in. if you know an alternative please tell me. thanks just a note it's mccodes lite crons i'm trying to run. thanks coly010
-
Here's a screenshot of my cron job page on cpanel Uploaded with ImageShack.us
-
My server keeps deleting my cron jobs. I don't know why. it happens everytime it runs the five minute one. I'm on a free host but it shouldnt matter any ideas?
-
Has anyone got any vampire related images they wouldnt mind giving me for free. I'm trying to make a vampire template and I can't seem to get my vampire fangs to look relalistic. thanks, Coly010
-
I've recently created an army styled login. Some feedback would be great and if a lot of people like it i'll give out the PSD for free. http://img651.imageshack.us/img651/8237/psdoftemp.png
-
what i'm trying to do is : if the user clicks on A2 then the price goes to £150 making any sense?
-
i have tried lol look at my code now. lol I'm not good at this part of js/html btw this is encased in php :P <form action="buy.php" method="POST"><input type="hidden" name="id" value="1" /><table width="75%" style="color: white;"><tr><td>Size:</td><td><select type="dropdown" id="selectList" onchange="changeSelected" name="size"> <option id="a2" value="£150">A2</option> <option id="a3" value="£100">A3</option> <option id="a4" value="£75">A4</option> <option id="a5" value="£50">A5</option></select></td></tr> <tr><td>Email Address:</td><td><input type="email" name="email" /></td></tr> <tr><td>Price:</td><td id="price"><p id="currentlySelected"></p></td></tr> <tr><td></td><td><input type="submit" Value="Continue" /></td></tr></table></form> <script type="javascript"> function changeSelected() { var drp = document.getElementById(\'selectList\'), drpVal = drp.options[drp.selectedIndex].text; document.getElementById(\'currentlySelected\').innerHTML = drp; return; </script>
-
Sorry put it's still not working. What i'm trying to do is when the user clicks a size it changed the price. So if there is an alternative method for doing this it would be great. Thanks :)