-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
I have just spent the best part of 2 hours trying to fix an issue Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mcctest\authenticate.php:3) in C:\xampp\htdocs\mcctest\authenticate.php on line 60 I searched through all the files i had amended after the Error Message Occured checked for blank lines unevenly spaced tags Even got on CrazyT's Nerves ;) But alas i seem to have solved the issue So for future use to those that are having or those that may have the above issue open up authenticate.php and look for header("Location: loggedin.php"); And delete the damn thing or use //header("Location: loggedin.php"); and in its place put echo "<script>document.location.href='loggedin.php'</script>"; echo "<script>'Content-type: application/octet-stream'</script>"; And Hey Presto to the man in the iron mask its Cured ;)
-
AS Promised--Crack The Safe Updated Secured.
Uridium replied to Joshua's topic in Free Modifications
Nicely Done Immortal I haven tested or used any of your scripts as i dont have a game, but i see your producing some nice Free mods which in my eye deserves a +1000 Welldone mate and keep the free mods flowing :) Maybe a Xmas script would be nice if you cant think of an ideas for an xmas script just message me and we'll get thinking. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
The TEST site allows 24 doors to be opened at once so you can See the calendar and test it However when its on your site you calturn will be set at 1 door to be opened per day... Mcfarlin i see you opened the same door 8 times Thus meaning you didnt goto Door 2 you must have refreshed the screen on door. This is to stop epople going straight from 1 and opening door 25. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
Thanks Shide.. if you come across any errors or problems juts post i'll help you set it up. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
HAs anyone got this setup yet or is anyone having issues with this script if so post on here and i'll do my best to help you out. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
when you run out of coffee at 4:30am you dont care how the tables look ;) However i am working on a paid vesion of this which will i clean up And still need to add the calcount which just tells the users which day they are on The hardest part was the Co-ords that took the longest time as some of the grid Squares are not equal to 100x100 some are smaller.. I used Coral, Paintshop Pro for the co-ords to begin with and found that Crappy Microsoft Paint Worked the best at giving me a better idea of the Co-ords... **FOOTNOTE** Ive set the calturn to 0 but you will need to alter table users set calturn=1 where calturn=0 On the 1st so that will start the calendar off then add the cron for it on that day.. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
download adventimages dowbnload the below Zip extract the image called adventgridnumbered.png and place it into your public_html folder download Image for Root <<< IMAGE UPDATED SORRY MY FAULT.... FORGOT TO MENTION add a link on mainmenu.php or explore.php pointing to adventcal.php WORKING DEMO you will have to register when REGD goto adventcal.php if you like this script then gizz some dosh i know its a freebie but hey Christmas is drawing near :) [paypal][email protected][/paypal] -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
now call this file adventimage.php <?php session_start(); $config = DIRNAME(__FILE__) . '/config.php'; if(file_exists($config)) { include_once($config); } else { die("The game is being updated, please check back in a few seconds"); } define('MONO_ON', 1); $class_mysql = DIRNAME(__FILE__) . '/class/class_db_mysql.php'; if(file_exists($class_mysql)) { include_once($class_mysql); } else { die("The game is being updated, please check back in a few seconds"); } $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $select = sprintf("SELECT frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9, frame10, frame11, frame12, frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20, frame21, frame22, frame23, frame24, frame25 FROM users WHERE (userid = %u) LIMIT 1", $_SESSION['userid']); $query = $db->query($select); if(!$db->num_rows($query)) { die("User could not be found"); } $ir = $db->fetch_row($query); global $db, $ir, $c; function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct){ if(!isset($pct)) { return false; } $pct /= 50; // Get image width and height $w = imagesx($src_im); $h = imagesy($src_im); // Turn alpha blending off imagealphablending($src_im, false); // Find the most opaque pixel in the image (the one with the smallest alpha value) $minalpha = 127; for($x = 0; $x < $w; $x++) for($y = 0; $y < $h; $y++){ $alpha = (imagecolorat($src_im, $x, $y) >> 24) & 0xFF; if($alpha < $minalpha){ $minalpha = $alpha; } } //loop through image pixels and modify alpha for each for($x = 0; $x < $w; $x++){ for($y = 0; $y < $h; $y++){ //get current alpha value (represents the TANSPARENCY!) $colorxy = imagecolorat($src_im, $x, $y); $alpha = ($colorxy >> 24) & 0xFF; //calculate new alpha if($minalpha !== 50){ $alpha = 50 + 50 * $pct * ($alpha - 50) / (50 - $minalpha); } else { $alpha += 50 * $pct; } //get the color index with new alpha $alphacolorxy = imagecolorallocatealpha($src_im, ($colorxy >> 16) & 0xFF, ($colorxy >> 8) & 0xFF, $colorxy & 0xFF, $alpha); //set pixel with the new color + opacity if(!imagesetpixel($src_im, $x, $y, $alphacolorxy)){ return false; } } } // The image copy imagecopy($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h); } // USAGE EXAMPLE: $img_a = imagecreatefrompng('adventgridnumbered.png'); $img_b = imagecreatefrompng('images/xmas/door1.png'); $img_c = imagecreatefrompng('images/xmas/door2.png'); $img_d = imagecreatefrompng('images/xmas/door3.png'); $img_e = imagecreatefrompng('images/xmas/door4.png'); $img_f = imagecreatefrompng('images/xmas/door5.png'); $img_g = imagecreatefrompng('images/xmas/door6.png'); $img_h = imagecreatefrompng('images/xmas/door7.png'); $img_i = imagecreatefrompng('images/xmas/door8.png'); $img_j = imagecreatefrompng('images/xmas/door9.png'); $img_k = imagecreatefrompng('images/xmas/door10.png'); $img_l = imagecreatefrompng('images/xmas/door11.png'); $img_m = imagecreatefrompng('images/xmas/door12.png'); $img_n = imagecreatefrompng('images/xmas/door13.png'); $img_o = imagecreatefrompng('images/xmas/door14.png'); $img_p = imagecreatefrompng('images/xmas/door15.png'); $img_q = imagecreatefrompng('images/xmas/door16.png'); $img_r = imagecreatefrompng('images/xmas/door17.png'); $img_s = imagecreatefrompng('images/xmas/door18.png'); $img_t = imagecreatefrompng('images/xmas/door19.png'); $img_u = imagecreatefrompng('images/xmas/door20.png'); $img_v = imagecreatefrompng('images/xmas/door21.png'); $img_w = imagecreatefrompng('images/xmas/door22.png'); $img_x = imagecreatefrompng('images/xmas/door23.png'); $img_y = imagecreatefrompng('images/xmas/door24.png'); $img_z = imagecreatefrompng('images/xmas/door25.png'); global $db, $ir, $c, $r, $img_b,$img_c,$img_d,$img_e,$img_f,$img_g,$img_h,$img_i,$img_j,$img_k,$img_l,$img_m,$img_n,$img_o,$img_p,$img_q,$img_r,$img_s,$img_t,$img_u,$img_v,$img_w,$img_x,$img_y,$img_z; // SAME COMMANDS: if(!$ir['frame1'] && !$ir['frame2'] && !$ir['frame3'] && !$ir['frame4'] && !$ir['frame5'] && !$ir['frame6'] && !$ir['frame7'] && !$ir['frame8'] && !$ir['frame9'] && !$ir['frame10'] && !$ir['frame11'] && !$ir['frame12'] && !$ir['frame13'] && !$ir['frame14'] && !$ir['frame15'] && !$ir['frame16'] && !$ir['frame17'] && !$ir['frame18'] && !$ir['frame19'] && !$ir['frame20'] && !$ir['frame21'] && !$ir['frame22'] && !$ir['frame23'] && !$ir['frame24'] && !$ir['frame25']); 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); } // OUTPUT IMAGE: header("Content-Type: image/png"); imagesavealpha($img_a, true); imagepng($img_a, NULL); ?> And call this one adventgraph.php <?PHP include "globals.php"; echo <<<EOF <script type="text/javascript"> /*********************************************** * IFRAME Scroller script- © Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url]) * This notice MUST stay intact for legal use * Visit Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] for full source code ***********************************************/ //specify path to your external page: var iframesrc="adventimage.php" //You may change most attributes of iframe tag below, such as width and height: document.write('<iframe id="datamain" src="'+iframesrc+'" width="500px" height="500px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script> EOF; ?> Add this small piece to your cron_day.php $db->query("UPDATE users SET calturn=1 WHERE calturn=0"); And finally upload these images the Main image goes in your root folder adventgridnumbered.png then create a folder on your ftp for images/xmas and place all the rest of the images nito the xmas folder. -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
make sure you upload the words.txt to your server call this file adventcal.php <? include "globals.php"; $select = sprintf("SELECT frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9, frame10, frame11, frame12, frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20, frame21, frame22, frame23, frame24, frame25 FROM users WHERE (userid = %u) LIMIT 1", $_SESSION['userid']); $query = $db->query($select); if(!$db->num_rows($query)) { die("<h3>You dont have a calander yet"); } print "<center>[b]<h2>Advent Calendar</h2>[/b] Welcome to your Advent Calendar {$ir['username']}. Choose Todays box to open "; if($ir['frame1'] != 1) { print "[img=adventgridnumbered.jpg] <map name='Map'> <area shape='rect' coords='25,25,98,100' href='advents.php?event=1'></map>"; $h->endpage(); exit; } else { print " [img=adventgridnumbered.jpg] <map name='Map'> <area shape='rect' coords='25,25,98,100' title='Door 1 Already Opened'</map>"; } if($ir['frame2'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,405,497,475' href='advents.php?event=2'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,405,497,475' title='Door 2 Already Opened'></map>"; } if($ir['frame3'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='45,405,97,475' href='advents.php?event=3'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='45,405,97,475' title='Door 3 Already Opened'></map>"; } if($ir['frame4'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,305,497,400' href='advents.php?event=4'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,305,497,400' title='Door 4 Already Opened'></map>"; } if($ir['frame5'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,205,195,300' href='advents.php?event=5'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,205,195,300' title='Door 5 Already Opened'></map>"; } if($ir['frame6'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,105,498,200' href='advents.php?event=6'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,105,498,200' title='Door 6 Already Opened'></map>"; } if($ir['frame7'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,105,98,200' href='advents.php?event=7'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,105,98,200' title='Door 7 Already Opened'></map>"; } if($ir['frame8'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,205,295,300' href='advents.php?event=8'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,205,295,300' title='Door 8 Already Opened'></map>"; } if($ir['frame9'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,105,197,200' href='advents.php?event=9'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,105,197,200' title='Door 9 Already Opened'></map>"; } if($ir['frame10'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,305,197,400' href='advents.php?event=10'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,305,197,400' title='Door 10 Already Opened'></map>"; } if($ir['frame11'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,105,298,200' href='advents.php?event=11'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,105,298,200' title='Door 11 Already Opened'></map>"; } if($ir['frame12'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,405,297,475' href='advents.php?event=12'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,405,297,475' title='Door 12 Already Opened'></map>"; } if($ir['frame13'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,305,397,400' href='advents.php?event=13'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,305,397,400' title='Door 13 Already Opened'></map>"; } if($ir['frame14'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,25,197,100' href='advents.php?event=14'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,25,197,100' title='Door 14 Already Opened'></map>"; } if($ir['frame15'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,205,395,300' href='advents.php?event=15'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,205,395,300' title='Door 15 Already Opened'></map>"; } if($ir['frame16'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,25,497,100' href='advents.php?event=16'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,25,497,100' title='Door 16 Already Opened'></map>"; } if($ir['frame17'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,205,495,300' href='advents.php?event=17'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,205,495,300' title='Door 17 Already Opened'></map>"; } if($ir['frame18'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,405,397,475' href='advents.php?event=18'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,405,397,475' title='Door 18 Already Opened'></map>"; } if($ir['frame19'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,25,297,100' href='advents.php?event=19'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,25,297,100' title='Door 19 Already Opened'></map>"; } if($ir['frame20'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,305,297,400' href='advents.php?event=20'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,305,297,400' title='Door 20 Already Opened'></map>"; } if($ir['frame21'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,25,397,100' href='advents.php?event=21'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,25,397,100' title='Door 21 Already Opened'></map>"; } if($ir['frame22'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='35,305,97,400' href='advents.php?event=22'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='35,305,97,400' title='Door 22 Already Opened'></map>"; } if($ir['frame23'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,205,97,300' href='advents.php?event=23'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,205,97,300' title='Door 23 Already Opened'></map>"; } if($ir['frame24'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,105,398,200' href='advents.php?event=24'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,105,398,200' title='We would like to wish Everyone A very Merry Christmas for tomorrow '></map>"; } if($ir['frame25'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,405,197,475' href='advents.php?event=25'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,405,197,475' title='MERRY CHRISTMAS TO EVERYONE AND THANKYOU ALL FOR YOUR CONTINUED SUPPORT..'></map>"; } $h->endpage(); exit; ?> PART 3 FOLLOWS -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
SQLS alter table users add `frame1` int(2) NOT NULL DEFAULT '0' alter table users add `frame2` int(2) NOT NULL DEFAULT '0' alter table users add `frame3` int(2) NOT NULL DEFAULT '0' alter table users add `frame4` int(2) NOT NULL DEFAULT '0' alter table users add `frame5` int(2) NOT NULL DEFAULT '0' alter table users add `frame6` int(2) NOT NULL DEFAULT '0' alter table users add `frame7` int(2) NOT NULL DEFAULT '0' alter table users add `frame8` int(2) NOT NULL DEFAULT '0' alter table users add `frame9` int(2) NOT NULL DEFAULT '0' alter table users add `frame10` int(2) NOT NULL DEFAULT '0' alter table users add `frame11` int(2) NOT NULL DEFAULT '0' alter table users add `frame12` int(2) NOT NULL DEFAULT '0' alter table users add `frame13` int(2) NOT NULL DEFAULT '0' alter table users add `frame14` int(2) NOT NULL DEFAULT '0' alter table users add `frame15` int(2) NOT NULL DEFAULT '0' alter table users add `frame16` int(2) NOT NULL DEFAULT '0' alter table users add `frame17` int(2) NOT NULL DEFAULT '0' alter table users add `frame18` int(2) NOT NULL DEFAULT '0' alter table users add `frame19` int(2) NOT NULL DEFAULT '0' alter table users add `frame20` int(2) NOT NULL DEFAULT '0' alter table users add `frame21` int(2) NOT NULL DEFAULT '0' alter table users add `frame22` int(2) NOT NULL DEFAULT '0' alter table users add `frame23` int(2) NOT NULL DEFAULT '0' alter table users add `frame24` int(2) NOT NULL DEFAULT '0' alter table users add `frame25` int(2) NOT NULL DEFAULT '0' alter table users add`calturn` int(2) NOT NULL DEFAULT '0' alter table users add`calcount` int(2) NOT NULL DEFAULT '0' Call this file advents.php <? include "globals.php"; $userid= $ir['userid']; $calturn= $ir['calturn']; //$rand= rand(0,1); //$randhard= rand(0,1); $filename="words.txt";$words=file($filename);shuffle($words);$word=$words[0]; $randmoney= rand(1,100); $_GET['event'] == (int) $_GET['event']; if(!$_GET['event']) { print "WTF you doing, bro?"; $h->endpage(); exit; } if(!$ir['calturn']) { print "<h1>Sorry, you can only open ONE door per day.<h1> [url='adventgraph.php']View your Calendar instead[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '1') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame1=frame1+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 1 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '2') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame2=frame2+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 2 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '3') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame3=frame3+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 3 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '4') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame4=frame4+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 4 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '5') { $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame5=frame5+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 5 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '6') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame6=frame6+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 6 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '7') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame7=frame7+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 7 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '8') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame8=frame8+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 8 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '9') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame9=frame9+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 9 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '10') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame10=frame10+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 10 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '11') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame11=frame11+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 11 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '12') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame12=frame12+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 12 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '13') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame13=frame13+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 13 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '14') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame14=frame14+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 14 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '15') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame15=frame15+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 15 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '16') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame16=frame16+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 16 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '17') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame17=frame17+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 17 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '18') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame18=frame18+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 18 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '19') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame19=frame19+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 19 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '20') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame20=frame20+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 20 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '21') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame21=frame21+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 21 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '22') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame22=frame22+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 22 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '23') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame23=frame23+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 23 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '24') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame24=frame24+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 24 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '25') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame25=frame25+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 25 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } ?> Now create a TXT file call it words.txt and add these words or you can make up your own... Did you know: Pope Julius Ist declared Christ’s birthday as December 25th sometime during the 4th century. Did you Know: Christmas trees received their first written acknowledgement in Germany in 1531. Did you Know: The first Christmas card was designed by John Horsley in 1840 but was not sold until 1843. Did you Know: Alabama was the first state in America to proclaim Christmas day as a legal holiday in 1836 Did you Know: Austria issued the first Christmas stamp in 1937 Did you Know: Christmas Pudding was originally a type of porridge with fruit in it Did you Know: In the festive song, ‘The 12 Days of Christmas’, there are 364 gifts. Did you Know: Italian children are brought gifts by a friendly witch, as well as Santa Claus Did you Know: The average person in Britain sends 50 Christmas cards Did you Know: This great script was written by illlusions Did you Know: The Queen's Christmas speech was first shown on television in 1957.[/b[ PART 2 Follows -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
Uridium replied to Uridium's topic in Free Modifications
It will be posted as soon as its been tested for bugs or issues. -
DAMN Zero used 2 dots i bet he stole that from me im a dot to dot fan ;) eye lol Nice work though POG1 and if anyone is wondering yes i stole this Font from NETTO's ;) cos its scandanavian for value ( just dont buy their beans )
-
If no-one has ever seen an Advent calendar then visit google ;) But for those that have then you will understand the concept of this mod There are 25 doors to open on the calendar ranging from day 1 to 25th < Xmas Day > Whilst users are opening the doors they will get a nice cash reward for each day and just so this Mod isnt boring once a door has been opened the user can click on the Advanet calendar to reveal an image behind the door... Theres a big Surprise for Members once the 25th has been reached. I'll post some screenies for you all to see it... In a few minutes... SCREENIES Calendar Frame..... A Few Random doors Opened Christmas Message ( when door 25 is opened )
-
Yep worked fine with Framework beta 2 :)
-
Thanks for that bluegman991 i'll try that
-
Updated .NEt framework 4 beta and the mcupdater.exe but nothing happens when i try to open the mcupdater.exe file.....
-
Nice find Joel So will this work for Localhost installations aswell or is it just purely for online crons....
-
HTML in forums or Signatures is always a bad thing not everyone is nice and stick to the rules whilst others like to place onloads into a html tags and have your page redirected. tick with BBCODE if you want my advice...
-
ok if use this for the out box function function mail_outbox() { global $db,$ir,$c,$userid,$h; print "Only the last 25 messages you have sent are visible. <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>To</th><th>Subject/Message</th><th>Status</th></tr>"; $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_to=u.userid WHERE m.mail_from=$userid ORDER BY mail_time DESC LIMIT 25"); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); $status = ($r['mail_read'] == 0) ? "<font color=red>Unread</font>" : "<font color=green>Read</font>"; print "<tr><td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['mail_subject']}</td></tr><tr><td>Sent at: $sent </td><td>{$r['mail_text']}</td><td>$status</td></tr>"; } print "</table>"; }
-
This very small addition will let the sender of a message know if the person they have sent it to has read their mail or not. look for the function mail_outbox and find this part $sent=date('F j, Y, g:i:s a',$r['mail_time']); below it add $status = ($r['mail_read'] == 0) ? "<font color=red>Unread</font>" : "<font color=green>Read</font>"; add a new bit to the end of the table statement so it reads <th>Status</th> Now on the print statement that has the <a href='viewuser.php?u={$r['userid']}'> add this to the near end <td>$status</td>
-
all MCC based games current downfall is the VOTING you have to remember that your user Doesnt just use your game, they will endeavour to find other similar MCC based games and your Voting Websites may reflect on their game aswell. Exampole if i voted for Votemmorpg.com from somemccgame.com then i wouldnt be able to Vote on your game from the same voting sites as all Votes are IP filtered. So you will need to have a look at using other voting sites to use for your members or they wont be able to vote on yours if they vote for the same site on others. Always have enough backup mods that work and are not in your game. and add them one by one each month this will keep your users happy and will let them know your doing your best to entertain them. REGARDS crystals and cash there are a few searching scripts on here that will allow users to search for crystals but again dont give too many out as with the cash... Remember one vital detail too much cash in your game will reflect on your entire games lifespan
-
This line dont look right. $db->query("UPDATE userstats SET '{$stat}' = '{$stat}' - $withdrawn WHERE 'userid' = ".$userid.""); SET '{$stat}' = '{$stat}' <<< how does it know which stat it is your referring too ?
-
A design layout out should always be the last thing thats done on a game. Concentrate on making your game as playable as possible Example making sure items and stats all add up and are fair. Ive seen so many decent styled MCC games fail beacse no thought has gone into how the game should run and the owner has concentrated more on how the game looks... Create a spreadsheet for all items added including Cost of the items and ability Always start off with low priced uselss items that dont give or gain much and work from that as a template. try not to add so many ways for users to get Cash in your game as this will Kill the whole concept of sitting down for ages working out your items prices. Crytsals should be rare so only give them out if people VOTE that way you wont have masses of crystal sales which inturn will create a Overflow of Cash. and a + would be to spend some time on how stats are given, how much are gained and how often the health/energy bar refills if its too fast then your users will gain stupid amount of stats and level upgrades per day.. Dont make all the best features DONATORS ONLY try to give some decent game plans for none donators aswell
-
try changing `statis` int(11) NOT NULL, to `statid` int(11) NOT NULL, Thats the only fault i can see. Too do this openup PHPMYADMIN select the table for implants click the pencil on statis and change to statid. Or you could always just change the statid on the Script to statis :)
-
Anywhere theres a global statement like this ====> global $ir,$c,$userid,$h; make it global $db, $ir,$c,$userid,$h;