Jump to content
MakeWebGames

josh-j-c

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by josh-j-c

  1. Where abouts in your code did you put the [click here to level up] text ? Jc.
  2. Me Neither im also having no luck with the upgrade button actually showing ive given my user more then enough EXP to upgrade but the button just doesnt want to show.. Help would be awesome, Jc.
  3. Another off topic arguement, the guy gave users a mod that was simple and pretty straight foward for people to follow and arguements spew over again, thank you damagedcity but its the same as i tried the other day it seems my codes just dont like mods ive tried atleast 5 - 6 mods and everytime i install a mod it throws errors at me so im stuck trying to build my own (N) Thank you though :) Jc.
  4. thats amazing its such a simple thing that can do your nut in, i swear i tried that but it didnt seem to work, thank you for you help mate your a star! Jc
  5. right, ive added item images into my game and i wanted to create a simular style to which torn city has, ive set the database feilds ect and everythings working fine in my iteminfo.php file im just now stuck on the shop :( Heres the code,   <?php include "globals.php"; $_GET['shop'] = abs((int) $_GET['shop']); if(!$_GET['shop']) { print "You begin looking through town and you see a few shops.<br />"; $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); print "<table width=85% cellspacing=1 class='table'><tr style='background: gray;'><th>Shop</th><th>Description</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td><a href='shops.php?shop={$r['shopID']}'>{$r['shopNAME']}</a></td><td>{$r['shopDESCRIPTION']}</td></tr>"; } print "</table>"; } else { $sd=$db->query("SELECT * FROM shops WHERE shopID={$_GET['shop']}"); if($db->num_rows($sd)) { $shopdata=$db->fetch_row($sd); if($shopdata['shopLOCATION'] == $ir['location']) { print "Browsing items at <b>{$shopdata['shopNAME']}...</b><br /> <table cellspacing=1 class='table'><tr style='background: gray;'><th>Image</th><th>Weapon</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; $qtwo=$db->query("SELECT si.*,i.*,it.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE si.sitemSHOP={$_GET['shop']} ORDER BY i.itmtype ASC, i.itmbuyprice ASC, i.itmname ASC"); $lt=""; while($r=$db->fetch_row($qtwo)) { if($lt!=$r['itmtypename']) { $lt=$r['itmtypename']; print "\n<tr style='background: gray;'><th colspan=5>{$lt}</th></tr>"; } print "\n<tr><td>{$id['itempic']}</td><td>{$r['itmname']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; } print "</table>"; } else { print "You are trying to access a shop in another city!"; } } else { print "You are trying to access an invalid shop!"; } } $h->endpage(); ?>   if anyone could shed some light and help me then that would be awesome, thank you. Jc.
  6. i cant get this nore any other mod on this site to work with my script, its only since i did a fresh restart the begining of this summer holiday and its really starting to do my head in, has anyone got this mod to work on there game because its doing nothing to mine just changing the layout.. do the images need to be a specific file type, in the database does the file have to be called 1.jpg or does its need a <img src='1.jpg'> ive tried everything now and nothings working for me is really starting to put me off all this (N)
  7. This isnt the original mc codes, its been edited and if you havent edited yourself you must have got it off the net due to the fact you would have knew youd have made changes to the database and its feilds.
  8. You pretty much solved the whole problem thank you for you help mate, i just needed to change a few more things such as,   Times to train: <input type='text' name='amnt' value='" . floor($ir['energy'] / 10) . "' /><br />   and;   You now have {$inc} labour and " . floor($ir['energy'] / 10) . " energy left.";   thank you for your help mate, thats been messing with my brain for the whole day whilst at work lol :) one final thing though why would Syntax errors occure unless i actually put,   " . floor($ir['energy'] / 10) . "   and not just,   ($ir['energy'] / 10)   ????   Jc
  9. I've looked all around my gym file but can't anything around the defines the amount of times they can train in energy, so im pretty stuck :/ Where would I need to place that around my gym ? Noteing that my gym is stock at the minute, Thanks for your reply btw :) ,, Jc.
  10. Right I've changed my game so that none donators get 100 energy and donators get 150 but I'm slightly stuck on my gym now, when I attack it works fine taking 50 energy a time but I haven't cracked how to change the gym trains from 100 down to 10 can anyone help? Thank you in advance, Jc.
  11. Re: [mccode v2] Improved Security on Attack System Shouldn't really have apologised i was in the wrong i barely read the bottom bit, the sql just caught my eye, didn't really see the warning message above mate lool, OK mod although i don't think ill be using it I'm going to create and design one my own way :wink: Thanks for the mod though :) Jc Ahh oh and another thing wouldn't there be a little use in a cron for the to refresh the database say every night ? keep the tables clean more manageable and keep the size for the backup down a little especially if you have 100's of members :)
  12. Re: [mccode v2] Improved Security on Attack System   ALTER TABLE `users` ADD `test` INT(2) NOT NULL DEFAULT '1';   ...   ALTER TABLE `users` ADD `test` INT(2) NOT NULL DEFAULT '1';   And the point of the test addition in user tables would be because ? shouldnt you have just actually edited it slighty, You know that people on here can be lazy and are just here to use CE for its mods and not join in with the actuall help, although thinking about it, people should look at the mod there adding before doing so lol Thanks, Jc Oh, p.s isn't there a much easier way of just say, blocking the back button whilst attacking, or bringing up a message like "Dont you just wish you could go back in time in a fight!" would need to use the database less i suppose if you did it this way... (:
  13. Re: [mccodes v2] Find random items while playing the game... What do you mean by "Slow it down" ? I take it your finding items every time you enter "Explore" or "City" ??? Ill have a look through the code and see if i can find anything inside it :) Jc
  14. Re: [mccode v2] Fishing Mod Could we not just use msn, would be much easier and faster : ) also we all have msn... Write back soon and is it going to be me you and shaved ? I have skill's in all area's just a little short within security... I hope that on this joint project i could learn off i believe too talented and skilled coders. Thanks, Jc
  15. Re: [mccode v2] Fishing Mod shaved92bravada... I think me you and MDK666 should create a game of our own or work as a team to generate some high quality mods, we have the ideas and the brainpower to create them so why not, we could maybe even make some cash out of it :) Mail me yeah and we'll have to sort something out :) Jc
  16. Hey, i have recently started on editing a header template i have found it is completely compatible with my version on McCodes, but the trouble starts when i attempt to attack somone.. All the alignment is out of place, i have no idea on how to fix this... Also when i placed a user within federal jail and i logged on his account it gave me no reason nore how many days i was in for. The code is shown bellow,   <?php class headers { function startheaders() { global $ir, $set; $back="#333333"; //Define the background colour of your site here. echo <<<EOF <html> <head> <title>{$set['game_name']}</title> <style> body { background: $back; font-family: Arial, Helvetica, sans-serif; } table { font-family: Tahoma; font-size: 12px; } .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; } a:link { text-decoration: none; color: #333333; } a:hover { text-decoration: underline; color: #666666; } a:active { text-decoration: none; color: #666666; } a:visited { text-decoration: none; color: #333333; } doodlebee #:1177461 </style> </head><body> <center><table width=900 border=0 cellpadding=0 cellspacing=0><tr><td> <image src='topheaderimage.png'></td></tr> <td background='middleheaderimage.png'> <table width=100% border=0 cellpadding=0 cellspacing=0> <tr valign="top"><td width=23><center></td><td width=183><center> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_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=green>[i]{$ir['username']}</font>[/i]";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT <center> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Points:[/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=greenbar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=greenbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> <hr /> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("</td><td width=25></td><td width=643><center><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=25></td><td width=643><center>'; if($ir['donatordays'] == 1) { print"Thank you for donating (: "; } elseif($ir['donatordays'] == 0) { print"[url='donate.php']* Donate today and gain loads of extra's! *[/url] "; } if($ir['hospital']) { print "You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "You are currently in jail for {$ir['jail']} minutes. "; } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width=25></td><td width=643><center>'; } function endpage() { global $db; print <<<OUT </td><td width=27></td></tr> </table> </td></tr> <tr><td><image src='bottomheaderimage.png'></td></tr></table> OUT; } } ?>   Ive been told there is a problem with my tables but I'm useless at finding and fixing such things, because i work with dreamweaver :x "Which is Lame btw..." Could anyone actually take me and my header code under there wing and help me by fixing my errors that i am receiving ? Please private message me or post here, Thanks in advance to any help that i may (Hopefully) Get, Jc
  17. Re: [mccode v2] Fishing Mod I was looking from a different approach see i was thinking why no get items and give the user something else to do like for example, "you go fishing and catch a Swordfish and a Tuna. You placed them in a tank and sent the tank home on a arrival ship." "You have arrived back from your fishing trip, would you like to sell the fresh fish you have caught ?" 'Radio buttons'   Yes no   Also, have the option of ether going sea fishing which would cost more and you would require oxygen, but catching more expensive fish and have the option of going pond fishing and selling your daily catch to the local pet shop...   Please write back to tell me if this is possible, Thanks Jc "Just giving out the idea's btw" :P
  18. josh-j-c

    Image Help

    Re: Image Help What you should do is check it out on another computer, like a school computer or something and then if you are still having troubles edit you code and place a normal jpeg image instead of gif i would have thought. Good luck, Jc
  19. Re: Staff Gangs Shouldnt this have been posted in the request forum ? :|
  20. Re: Things A Goverment Official Wont Say.... "We lied" :evil: Lmao
  21. Re: How did your RPG gaming start? Started off on TC over here, did alot of research and found McCodes, well found it at the bottom of a website hosted on a free host :| lame and then i found out the lite was free learnt myself a little and then purchased the V2 love it now :-D
  22. Re: [MOD] V2 Freeze & Reactivate a Users Bank Account You could find they were making way too much intrest... ??? Theres one important example lool Great mod illusions, thanks Jc
  23. Re: [mccode V2] Very simple travel time mod. Mods amazing mate, its deffo come a long way, congrats on actually finishing it, does actually look like a paid mod :P I would be honoured to make mods with you in the future if you wanted to that was :P Ill give you a +1 even though they don't work anymore but :wink: no one knows that :P, Thanks mate Jc
  24. Re: [mccode v2] Changer User Password! Yeah sorry it is,   include "globals.php";   My bad just i had been coding all day at college in a totally different source code, thanks for the correction :) Jc
  25. Re: [mccode v1] DONATION PACKS TO ITEMS Nahh im running V2 lol any chance you could send me your code for donator packs to items please shaved92bravada ?? Thanks, Jc
×
×
  • Create New...