-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
I want an advanced gym system rebuilt using MCCODES as a base template ;)
-
remove line 15 and overwrite with <a href='viewuser.php?u={$ir['userid']}'><img src='profilebutton.jpg' align='left'></a><br /> see if that helps
-
OLD >> http://www.fuelforhtml.com/renders/inner_station_tunel.png NEW >> http://www.fuelforhtml.com/renders/inner_station_tunel_2.png flicking back and forth from both images The OLD has better lighting but the wires, Pipes and Hatch Bottoms dont look right However on the NEW image the wires look better but still the problem with hatch floor and pipes
-
$set="SELECT * hospital_count, jail_count FROM users"; <<< these are not in a V2 dbase the use of $set is already defined as a function anyway so get rid of that line
-
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
I suppose adding a cron for each door date would help if the cron dont match the sql for the door date then that door cant be opened -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
you can create your own images to cover tthe doors each image should be about 100 x 100 then just do your maths with the co-ords on windows paint if(!$ir['frame1'] !=1) { imagecopymerge_alpha($img_a, $img_b, 25,25,0,0, imagesx($img_b), imagesy($img_b), 50); } if(!$ir['frame2'] !=1) { imagecopymerge_alpha($img_a, $img_c, 401, 402, 0, 0, imagesx($img_c), imagesy($img_c), 50); } if(!$ir['frame3'] !=1) { imagecopymerge_alpha($img_a, $img_d, 25, 405, 0, 0, imagesx($img_d), imagesy($img_d), 50); } if(!$ir['frame4'] !=1) { imagecopymerge_alpha($img_a, $img_e, 400, 305, 0, 0, imagesx($img_e), imagesy($img_e), 50); } if(!$ir['frame5'] !=1) { imagecopymerge_alpha($img_a, $img_f, 104, 200, 0, 0, imagesx($img_f), imagesy($img_f), 50); } if(!$ir['frame6'] !=1) { imagecopymerge_alpha($img_a, $img_g, 402, 103, 0, 0, imagesx($img_g), imagesy($img_g), 50); } if(!$ir['frame7'] !=1) { imagecopymerge_alpha($img_a, $img_h, 25, 100, 0, 0, imagesx($img_h), imagesy($img_h), 50); } if(!$ir['frame8'] !=1) { imagecopymerge_alpha($img_a, $img_i, 200, 200, 0, 0, imagesx($img_i), imagesy($img_i), 50); } if(!$ir['frame9'] !=1) { imagecopymerge_alpha($img_a, $img_j, 103, 100, 0, 0, imagesx($img_j), imagesy($img_j), 50); } if(!$ir['frame10'] !=1) { imagecopymerge_alpha($img_a, $img_k, 104,300,0,0, imagesx($img_k), imagesy($img_k), 50); } if(!$ir['frame11'] !=1) { imagecopymerge_alpha($img_a, $img_l, 200, 100, 0, 0, imagesx($img_l), imagesy($img_l), 50); } if(!$ir['frame12'] !=1) { imagecopymerge_alpha($img_a, $img_m, 200, 400, 0, 0, imagesx($img_m), imagesy($img_m), 50); } if(!$ir['frame13'] !=1) { imagecopymerge_alpha($img_a, $img_n, 301, 300, 0, 0, imagesx($img_n), imagesy($img_n), 50); } if(!$ir['frame14'] !=1) { imagecopymerge_alpha($img_a, $img_o, 100, 25, 0, 0, imagesx($img_o), imagesy($img_o), 50); } if(!$ir['frame15'] !=1) { imagecopymerge_alpha($img_a, $img_p, 301, 200, 0, 0, imagesx($img_p), imagesy($img_p), 50); } if(!$ir['frame16'] !=1) { imagecopymerge_alpha($img_a, $img_q, 402, 25, 0, 0, imagesx($img_q), imagesy($img_q), 50); } if(!$ir['frame17'] !=1) { imagecopymerge_alpha($img_a, $img_r, 401, 202, 0, 0, imagesx($img_r), imagesy($img_r), 50); } if(!$ir['frame18'] !=1) { imagecopymerge_alpha($img_a, $img_s, 300, 400, 0, 0, imagesx($img_s), imagesy($img_s), 50); } if(!$ir['frame19'] !=1) { imagecopymerge_alpha($img_a, $img_t, 200, 25, 0, 0, imagesx($img_t), imagesy($img_t), 50); } if(!$ir['frame20'] !=1) { imagecopymerge_alpha($img_a, $img_u, 200, 300, 0, 0, imagesx($img_u), imagesy($img_u), 50); } if(!$ir['frame21'] !=1) { imagecopymerge_alpha($img_a, $img_v, 300, 25, 0, 0, imagesx($img_v), imagesy($img_v), 50); } if(!$ir['frame22'] !=1) { imagecopymerge_alpha($img_a, $img_w, 25, 300, 0, 0, imagesx($img_w), imagesy($img_w), 50); } if(!$ir['frame23'] !=1) { imagecopymerge_alpha($img_a, $img_x, 25, 200, 0, 0, imagesx($img_x), imagesy($img_x), 50); } if(!$ir['frame24'] !=1) { imagecopymerge_alpha($img_a, $img_y, 301, 100, 0, 0, imagesx($img_y), imagesy($img_y), 50); } if(!$ir['frame25'] !=1) { imagecopymerge_alpha($img_a, $img_z, 0, 0, 0, 0, imagesx($img_z), imagesy($img_z), 50); } -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
I still have the script for this however i dont have all the door images I will amend the script for future use... -
what would be best kind of game to make with mccode v2?
Uridium replied to LearningCoder's topic in General Discussion
NEVER do a game thats been done if its been done your just copy catting an already successful game... Think outside the box or watch Television for Ideas. Ive never seen a sims styled MCC game so that maybe an idea -
weapon/sec weapon/ armor are called from the user dbase If you wanted to take this away from the users table it then starts getting complex You would need 2 new tables one called weapons and one called userweapons You would then need to rewrite the attack.php so that it can grab info on userweapons if they are equipped or not. However this isnt a bad thing cos with the new setup you could add attributes to your new weapons that you couldnt really achieve with the mcc version. Files that would need changing are. staff_items.php you would need to remove the weapons section and create a new file called staff_weapons.php Inventory.php would need to be rewritten. as would equip_armor.php and equip_weapon.php so as you can see it does start getting very complicated.. BUT its do-able and could open a new way and an improved way of the attack system..
-
Any of my mods ion there ?? i bet not grr and boo ta you lol
-
Hmm my notepad++ is playnig up wont save a file keeps saying its being used by another program
-
ah kk leave it with me i'll have a look
-
are you just adding this to an iframe ?
-
send me your script matey so i can have a look
-
peter look at how the cron files grab data to begin with then you will know what to add i dont mean the SELECT OR ADD OR INSERTS but how the page calls for the complete DBASE
-
$25 id stick with the MCC version :)
-
Hope this helps added a fwe extra features for you cos im nice like that lol Now has an Action category that shows whos in hosp whos in jail and if they can be attacked.. <?php require "globals.php"; if ($_GET['time']) { $time=$_GET['time']; } else { $time=60; } $cn=0; $lk=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60"); $aa=mysql_num_rows($lk); $ll=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-60*60"); $ab=mysql_num_rows($ll); $lm=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-45*60"); $ac=mysql_num_rows($lm); $ln=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-30*60"); $ad=mysql_num_rows($ln); $lo=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60"); $ae=mysql_num_rows($lo); $he=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1*60"); $hu=mysql_num_rows($he); $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-{$time}*60 ORDER BY laston DESC"); ?> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3>Time Selecter</h3> <a href='usersonline.php?time=1'>(1 Min)</a><br /> <a href='usersonline.php?time=15'>(15 Mins)</a><br /> <a href='usersonline.php?time=30'>(30 Mins)</a><br /> <a href='usersonline.php?time=45'>(45 Mins)</a><br /> <a href='usersonline.php?time=60'">(60 Mins)</a><br /> <a href='usersonline.php?time=1440'>(24 Hours)</a><br /> </td> <td class=table> <h3>Statistics</h3> Users online in the last minute: <?php print"{$hu}"; ?><br /> Users online in the last 15 minutes: <?php print"{$ae}"; ?><br /> Users online in the last 30 minutes: <?php print"{$ad}"; ?><br /> Users online in the last 45 minutes: <?php print"{$ac}"; ?><br /> Users online in the last hour: <?php print"{$ab}"; ?><br /> Users online in the last 24 hours: <?php print"{$aa}"; ?><br /> </td> <tr> </table> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3></h3> </td> <td class=table> <h3>Gang Tag</h3> </td> <td class=table> <h3><center>User</center></h3> </td> <td class=table> <h3>Last Action</h3> </td> <td class=table> <h3>Time Online</h3> </td> <td class=table> <h3>Action</h3> </td> </tr> <?php while($r=mysql_fetch_assoc($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $cn++; $name=$r['username']; $gangtag=$r['yourgangPREF']; if($r['donatordays'] > 0) { $donator="VIP:<img src='donator.gif' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } if($r['donatordays'] == 0) { $donator=""; } if($r['user_level']== 2) { $staff="<img src='images/admin.gif' alt='Game Staff' />"; } if($r['user_level']== 1) { $staff=""; } if($r['userid']==1) { $owner=" <img src='images/owner.gif' alt='Game Owner' />"; } $r['username']="<b>$staff $owner $donator<a href='viewuser.php?u={$r['userid']}'><font color='{$r['colour']}'> $name</b></font></a>"; print "<tr> <td class=table> $cn. </td> <td class=table>"; if ($r['gang'] > 0) { print" <a href='gangs.php?action=view&ID={$r['gang']}'>View Gang</a> </td>"; } else { print" <small>No Gang</small> </td>"; } print" <td class=table> {$r['username']} </td> <td class=table> ($la $unit) </td> <td class=table>"; $lb=time()-$r['last_login']; $units="secs"; if($lb >= 60) { $lb=(int) ($lb/60); $units="mins"; } if($lb >= 60) { $lb=(int) ($lb/60); $units="hours"; if($lb >= 24) { $lb=(int) ($lb/24); $units="days"; } } if($r['laston'] <= time()-60*60) { $lb="offline"; $unit=""; } print "{$lb} {$units}</td>"; if($r['hospital'] > 0) { print"<td><small>Hospital</small></td>"; } if($r['jail'] > 0) { print"<td><small>Jail</small></td>"; } if($r['hospital'] == 0 AND $r['jail'] == 0) { print"<td><small>[<a href='attack.php?uid={$r['userid']}'>Attack</a>]</td>"; } print"</tr>"; } ?> </td> </tr> </table> <?php $h->endpage(); ?>
-
ayone remember the zapp engine or what ever its name was that was exactly the same as this idea and it went tits up
-
all i can see with this idea is arguments arguments and more arguments :)
-
send your installer.php to me via inbox
-
Snake for line 14 do the same as above just add pregmatch and a / before the first ^ and one before $" so its $/" if (!preg_match("/^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
-
Stop morphine use in a fight. Please hlep with my code
Uridium replied to Hendrickson's topic in Requests & In Production
create 2 new entries in the users call it attsave and attrem ALTER TABLE users ADD attsave INT(11) NOT NULL default 0; ALTER TABLE users ADD attrem INT(11) NOT NULL default 0; Now in your attack.php add $db->query("UPDATE users SET attsave=0,attrem=0 WHERE userid=$userid"); to place where if a user cant fight for example they are in hosp or jail or low on energy or no weapon equipped or anywhere where the user needs to leave the page for example print "WTF you doing, bro?"; $db->query("UPDATE users SET attsave=0, attrem=0 WHERE userid=$userid"); // new entry print "<a href='index.php'> Leave here</a>"; $h->endpage(); exit; } now open header.php and get rid of the part that says you ran from the fight.. and add if($ir['attsave'] == 1 ) { die("<h1>Attack Count ERROR!</h1></h2>Your in a fight you cant just leave ?<br/><br/><b><a href='attack.php?ID={$ir['attrem']}'><br />Rejoin Fight!</a></b>"); } -
on line 6 change to >> if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) {
-
Just change any mention of ereg to preg_match and you should be ok
-
Stop morphine use in a fight. Please hlep with my code
Uridium replied to Hendrickson's topic in Requests & In Production
Easiest way would be to stop users from re-directing to any page thus putting them back in the fight....