-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
$q=mysql_query("SELECT * FROM users ORDER BY username ASC LIMIT 6",$c); try $q=mysql_query("SELECT username, money FROM users ORDER BY username ASC LIMIT 6",$c); -
As i dont actually own a public game i am willing however to view this on localhost if that helps in anyway
-
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
Nicely done and i would have thought this might have been in the paid mods section nice to see it for Free though.. Excellent work WRX -
Now that MCC can cope with any type of theme thats thrown at it why not a game that changes example mon- weds = Mystical theme and thurs - sun = mobstyle or whatever you want. And seeing as this hasnt been done before you will probably have one hek of a unique game on your hands.. 2 Games for the price of one cant be bad for any members
-
example on the theyfail.txt you could put something like Tried to hit you but fell over Tried to hit you but at the last minute collapsed getting up quickly to continue Tried to hit you as you strafe left they slide passed you your unharmed remember each time you press ENTER that will count as a new text
-
I see why everyone is confused cos ive just re-read what i put and it confused me aswell lol Ok in a nutshell on the statement where YOUHIT you need to make the youhit.txt with various different statements for that particular outcome. So print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']}) $word</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } the $word statement on this one will call for the file called youhit.txt This being $filename="youhit.txt";$words=file($filename);shuffle($words);$word=$words[0]; so for the statement you youfail use $word3 on the statment for youfail and for theyhit use $word2 for the statment theyhit and for theyfail use $word4 and for theyfail Hope that clears things up
-
very Nice work :) + 1 Billion :)
-
Yep i gotta say even i was dumb when i first had MCC but found the Installer to be quite helpful. Was well dissapointed though once installed and it was complete erm yeah crap ;)
-
I made some edits to the Chairs to show forward and reverse seating you will also need to edit a few files open pokeroutput.php and edit these lines... if(!$players[1]){$players[1]="<center>[img=$emptychair]";} if(!$players[2]){$players[2]="<center>[img=$emptychair]";} if(!$players[3]){$players[3]="<center>[img=$emptychair]";} if(!$players[4]){$players[4]="<center>[img=$emptychair]";} if(!$players[5]){$players[5]="<center>[img=$emptychair]";} if(!$players[6]){$players[6]="<center>[img=$emptychair]";} if(!$players[7]){$players[7]="<center>[img=$emptychair]";} if(!$players[8]){$players[8]="<center>[img=$emptychair]";} to if(!$players[1]){$players[1]="<center>[img=$emptychair]";} if(!$players[2]){$players[2]="<center>[img=$emptychair]";} if(!$players[3]){$players[3]="<center>[img=$emptychairbottom]";} if(!$players[4]){$players[4]="<center>[img=$emptychairbottom]";} if(!$players[5]){$players[5]="<center>[img=$emptychairbottom]";} if(!$players[6]){$players[6]="<center>[img=$emptychairbottom]";} if(!$players[7]){$players[7]="<center>[img=$emptychair]";} if(!$players[8]){$players[8]="<center>[img=$emptychair]";} now open up pokerconfig.php and find this $emptychair = 'images/poker/pokerchair.png'; and immediatley underneath add $emptychairbottom = 'images/poker/pokerchairbottom.png'; and upload the images below. to images/poker/ Your seating should now show as facing each opponent.
-
goto your PHPMYADMIN and count the fields for EVENTS they should match those your trying to INSERT nito if they dont you will need to either remove/add a field on PHPMYADMIN or edit the php file to reflect to the amount of fields on your EVENTS
-
to cure this all i did was remove this from authnticate.php header("Location: loggedin.php"); and replaced with echo "<script>document.location.href='loggedin.php'</script>"; echo "<script>'Content-type: application/octet-stream'</script>"; has worked fine ever since for Xammp
-
[mccodes V2] Add any type of video media to your game
Uridium replied to Uridium's topic in Free Modifications
This will allow users to add youtube and other video formats call this file usercreatedvideos.php <?php include "globals.php"; switch($_GET['videotask']) { case "search": search_video(); break; case "addvideo": addvideo(); break; case "editvideo": editvideo(); break; default: prefs_home(); break; } function prefs_home() { global $db,$ir,$c,$userid,$h; print "<h3>Media Tasks</h3> [url='usercreatedvideos.php?videotask=search']<h2>Search Online Media Sites</h2>[/url] [url='usercreatedvideos.php?videotask=addvideo']<h2>Add a Video</h2>[/url] "; if($ir['user_level'] == 2) { echo "[url='usercreatedvideos.php?videotask=editvideo']<h2>Staff Only edit Videos</h2>[/url] "; } $h->endpage(); exit(); } function addvideo() { global $db, $ir, $c, $h, $userid; /*if($ir['donatordays'] < 0) { echo "<h1> This option is for Donators only</h1>"; } exit();*/ $videoidlink=abs((int) $_POST['videoidlink']); $width=abs((int) $_POST['width']); $height=abs((int) $_POST['height']); if($_POST['name'] && $_POST['title'] && $videoidlink && $height && $width) { $db->query("INSERT INTO videos VALUES(NULL, '{$_POST['name']}', '{$_POST['title']}', '{$_POST['alphabet']}', '{$_POST['playerswflink']}', '{$_POST['videophplink']}', '{$_POST['allowaccess']}', '{$_POST['autostart']}', '$videoidlink', '$width', '$height', '{$_POST['source']}', '{$_POST['views']}')"); print "video Artist {$_POST['name']} Track Title {$_POST['title']} added. <h1>Preview</h1> <center><embed src='{$_POST['playerswflink']}' width='$width' height='$height' allowsiptallowaccess='{$_POST['videophplink']}' allowfullseen='true' flashvars='height=$height&width=$width&file={$_POST['videophplink']}&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000&displayheight=$height&autostart={$_POST['autostart']}'/></a></embed></center> "; stafflog_add(" $username Added video {$_POST['title']}"); } else { $videoidrand=rand(50,5000); print "<h3>Add Your video</h3><hr /> <center> <form action='usercreatedvideos.php?videotask=addvideo' method='post'> Artist Name: <input type='text' name='name' /> Track Title: <input type='text' name='title' /> Alphabet Letter: <input type='text' name='alphabet' /> SWF Link: <input type='text' name='playerswflink' /> Example [url]http://www.youtube.com/v/WzvG2BFbc5E[/url] PHP link: <input type='text' name='videophplink' /> [url]http://www.youtube.com/v/WzvG2BFbc5E[/url] <input type='hidden' name='allowaccess' value='always' /> <input type='hidden' name='autostart' value='false' /> <input type='hidden' name='videoidlink' value='$videoidrand' /> Player Width: <input type='text' name='width' /> default 480 for Video and MP3 Player Height: <input type='text' name='height' />default 400 for Video or 30 for MP3 Added By: <input type='text' name='source' value='$username'/>Example youtube.com <input type='hidden' name='views' value='0'/>Example youtube.com <input type='submit' value='Add video' /></form>"; } } function editvideo() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $videoidlink=abs((int) $_POST['videoidlink']); $width=abs((int) $_POST['width']); $height=abs((int) $_POST['height']); $name=$_POST['name']; $db->query("UPDATE videos SET artist='$name', tracktitle='{$_POST['title']}', videoalphabet='{$_POST['alphabet']}', playerswflink='{$_POST['playerswflink']}', videophplink='{$_POST['videophplink']}' , videoidlink=$videoidlink, width=$width, height=$height, source='{$_POST['source']}', views='{$_POST['views']}' WHERE videoID={$_POST['video']}"); print "video $name was edited successfully. <h1>Preview</h1> <center><embed src='{$_POST['playerswflink']}' width='$width' height='$height' allowsiptallowaccess='{$_POST['allowaccess']}' allowfullseen='true' flashvars='height=$height&width=$width&file={$_POST['videophplink']}&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000&displayheight=$height&autostart={$_POST['autostart']}'/></a></embed></center> "; stafflog_add(" $username Edited video $name"); break; //$h->endpage(); case "1": $q=$db->query("SELECT * FROM videos WHERE videoID={$_POST['video']}"); $old=$db->fetch_row($q); if($ir['user_level'] == 2) { echo "<h1> This option is for Staff only</h1>"; } $h->endpage(); print "<h3>Editing a video</h3><hr /> <form action='usercreatedvideos.php?videotask=editvideo' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='video' value='{$_POST['video']}' /> Artist Name <input type='text' name='name' value='{$old['artist']}' /> Track Title: <input type='text' name='title' value='{$old['tracktitle']}' /> Alphabet Entry: <input type='text' name='alphabet' value='{$old['videoalphabet']}' /> SWF link Text: <input type='text' name='playerswflink' value='{$old['playerswflink']}' /> PHP Link Text: <input type='text' name='videophplink' value='{$old['videophplink']}' /> <input type='hidden' name='allowaccess' value='{$old['allowaccess']}' /> <input type='hidden' name='autostart' value='{$old['autostart']}' />true or false Video ID Number: <input type='hidden' name='videoidlink' value='{$old['videoidlink']}' /> Player Width: <input type='text' name='width' value='{$old['width']}' /> Player Height: <input type='text' name='height' value='{$old['height']}' /> Added By: <input type='text' name='source' value='{$old['source']}' /> <input type='hidden' name='views' value='{$old['source']}' /> <input type='submit' value='Edit video' /></form>"; break; default: //$h->endpage(); print "<h3>Editing a video</h3><hr /> <form action='staff_videos.php?action=editvideo' method='post'> <input type='hidden' name='step' value='1' /> video: ".video2_dropdown($c, "video")." <input type='submit' value='Edit video' /></form>"; break; $h->endpage(); exit(); } } function search_video() { global $db, $ir, $c, $h, $userid; } print "<h3>Searching for Media</h3><hr /> <center> <form method='get' action='http://www.youtube.com/results?' target='_blank' /> <input type='text' name='search_query' /> <input type='submit' value='Search Youtube' /> </form></center> <form method='get' action='http://video.google.co.uk/videosearch?' target='_blank' /> <input type='text' name='q' /> <input type='submit' value='Search Google' /> </form></center> <form method='get' action='http://video.yahoo.com/search/?' target='_blank' /> <input type='text' name='p' /> <input type='submit' value='Search Yahoo' /> </form></center>"; $h->endpage(); ?> and add a link to usercreatedvideos.php to either your menu or explore or prefs page. -
[mccodes V2] Add any type of video media to your game
Uridium replied to Uridium's topic in Free Modifications
SCRIPT UPDATED will now accept Radio Stations just point the flash and the php to your asx file to the station you want to tune into. example http://loudcity.com/player/crossfire-radio/asx.asx -
Another downfall to flash menus they will always show links on the orig mcc when in hosp links like explore disappear but on the flash youd need to make 3 flash files to compensate for being in hosp or jail,,,
-
I have figured out a new method to solve the issue with security on this mod the newer system will now.... A = When new user signsup an email is sent to the owners address with chosen password and keypass B = the txt version of the password is reset once the user has used their keypass sent to confirm their email C = The keypass once used is randomly reset and a new keypass is sent to the owners email incase of Loss of pass D = Re-inserting the new keypass into the lost password will send out the users Username and pass for that account... E = No TXT password is kept on the dbase but is cached on a secure file..
-
Im having a few problems finding the script on here i agree its hard to locate but im sure i called the script. ITEMS GET DAMAGED WHEN ATTACKED I'll keep looking for it
-
This type of mod has already been done for items that get damaged i made one a few months ago check forums
-
not sure SCR is correct on this one Alabama Unless its a typo.. SRC would be correct
-
Well done my son ;) Excellent addition nicely laid out and well worth the price. The editing aspects of this mod is emmense and will fit any criteria of MCC based games and can be used for other things other than the Friends Listing.. You can now have a blue peter's badge lol
-
I like this script so much i decided to do a bit of animation on the roulette wheel. overwrite you exsisting roulettewheel.gif with the above... As you can see its set for each board number so the flow is decent.. all i need to do now is add some kind of refresh so users dont have to click SPIN WHEEL and its done auto if that can be done... and if you want heres a reversed version of the same wheel Or if you want both animations in one then choose this..
-
Your coming round to my way of thinking by the time seanybob has added our addons there wont be a need for MCC we may just aswell play poker lol
-
Can i add a number 9 to my list of things to do :) 9 = Users can watch a table and chat but cant see cards only whats going into the pot.. OH and a 10 cos im on fire lol 10 = Add a friend from the pokerroom so you can fnid them instantly when they are in a game and join them...