Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,657
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Uridium

  1. I was bored stupid so set about the installer.php on mcc v2 i was fed up of seeing crystals energy, brave, willl, $ signs and wanted to make a version where Admins can alter any of the things they like And ive cracked it Admin can alter anything they want via the admin panel change the name of the bars to suit them, the currency even renaming links all without altering any files ( FRESH INSTALL ONLY ) I'll put up a working demo site for you to view and use. And thanks to Crazy-T for the hosting :)
  2. Re: money_formatter on MCCODES V2 Cheers POG that worked 1st attempt :) Thank you +1
  3. im working on a way so staff can alter currency via the staff panel rather than files problem is i cant get this line to do what i want it to do.. function money_formatter($muny,$symb='$') i want to remove the $ and make it so it selects a pre-defined outcome... function money_formatter($muny,$symb='{$set['game_currency']}') i get parse errors with this method however so what woud be the correct way to do it. Parse error: syntax error, unexpected T_STRING, expecting ')' in C:\xampp\htdocs\global_func.php on line 2
  4. Re: [NEED Help][MCCODES V2] Item Pic Mod   ? Ive just given you 2 options.
  5. Re: [NEED Help][MCCODES V2] Item Pic Mod if you want learn mcc use this bit...... on line 24 add <th>Image</th> before the <th>Item</th> Then on line 32 change colspan to 6 not 5 The reason for 6 is because your adding a one new row so if you add another it would become 7 and so on ---------------------------------------------------------------------------------------------------   if you cant be bothered then copy and paste this one.   <?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. "; $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>[url='shops.php?shop={$r[']{$r['shopNAME']}[/url]</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] <table cellspacing=1 class='table'><tr style='background: gray;'><th>Image</th><th>Item</th><th>Description</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>{$r['itmname']}</td><td>[img=itmpics/{$r[]</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(); ?>   this will set the image next to the ITEM
  6. Re: [v2]Diamond market [v2] Just bare in mind though Casey adding more items like GEMS would mean altering more than 1 script.. example there must be about 15 scripts within MCC that are related to crystals so to alter one would mean to alter all :)
  7. Re: [v2]Diamond market [v2] Not a problem i noticed on your that atleast yours points to the right tables whereas MDK's was still pointing to CR.. +1 though
  8. Re: [Mccodes V2] Streets I typed streets in the search and found quite a few full running files. im sure i posted a working version with an image and users can fight NPC's
  9. Re: [v2]Diamond market [v2] [REMOVED] so the Lemmings dont follow :)
  10. Re: [V2]My own v2 Explore page [V2] if its any consolation silent at least you reached 26 posts on one topic lol
  11. Re: [V2]My own v2 Explore page [V2]   your not winning aany brownie points here silent.. take heed you wont win this one older postees are more respected :)
  12. Re: [V2]My own v2 Explore page [V2] Regardless of what hes done let him learn from this issue and drop the complaining
  13. Re: [V2]Register page with 1 account per ip [V2]   Welcome to the world of MCCodes ;)
  14. Re: [MOD V2] Send Users Secret Messages....   dont forget to add a link to your mainmenu.php pointing to secretmess.php so your users can decode the message that you send them :)
  15. Re: [MOD V2] Send Users Secret Messages.... There probably isnt any point to it. but its here and its available for anyone to use and make something from it :)
  16. Re: [mccode v2] Themecreator 100% Completed Working Copy Thats True POG but the fact it works and is ready to addon saves those from having to redo it if you get what i mean...
  17. Re: [mccode v2] Themecreator 100% Completed Working Copy choose.php needs a slight amendment to tell users that images can be clicked on and view in full...   <?php /* Big Thanks to KILLAH for this Script /* 2008 KILLAH & ILLUSIONS /* Mccodes V2 Theme Change */ include("globals.php"); switch($_GET['action']) { case 'accept': accept_theme_begin(); break; default: print "Error: This script requires an action."; break; } function accept_theme_begin() { global $ir,$h; if($_POST['Theme']) { $theme = abs(@intval($_POST['Theme'])); $rows = mysql_num_rows(mysql_query("SELECT ThemeID FROM Theme WHERE ThemeID=".$theme)); if($rows == 0) { echo 'This theme does not exist. Go AWAY!'; $h->endpage(); exit; } mysql_query("UPDATE users SET ThemeID=".$theme." WHERE userid=".$ir['userid']); echo ' <h2>Theme Updated </h2> <a href=index.php>[REFRESH THEME]</a>'; $h->endpage(); exit; } $q = mysql_query("SELECT ThemeID FROM Theme"); $r = mysql_fetch_assoc($q); echo ' <h3>Choose Your Theme</h3> <h3>You can view a larger image of the Theme you wish to view by clicking on it <form action="choose.php?action=accept" method="post"> Theme: '.Theme_dropdown($r,'Theme').' <input type="submit" value="Choose Theme"> </form>'; } $h->endpage(); ?>
  18. Re: [mccode v2] Themecreator 100% Completed Working Copy I'll post what ive done so far... SQL   ALTER TABLE `Theme` ADD `ThemeIMAGE` VARCHAR( 255 ) NOT NULL DEFAULT 'default.jpg' ;   call this file staff_themecreator.php   <?php //* V2 Theme Creator //* Illusions 2008 this notice must stay intact //* Free for to those Members of Criminal Existance Forums //* All we ask is that you keep this Notice intact *// include "sglobals.php"; //This contains user stuffs switch($_GET['action']) { case 'newtheme': new_theme_form(); break; case 'newthemesub': new_theme_submit(); break; case 'edittheme': edit_theme_begin(); break; case 'editthemeform': edit_theme_form(); break; case 'editthemesub': edit_theme_sub(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "&#39;", htmlspecialchars($in)); } function new_theme_form() { global $db,$ir,$c,$ThemeID; if($ir['user_level'] != 2) { die("403"); } $oq=$db->query("SELECT * FROM Theme WHERE ThemeTITLE='{$_POST['ThemeTITLE']}' and ThemeID='{$_POST['ThemeID']}' and ThemeLOCK='{$_POST['ThemeLOCK']}' and ThemeIMAGE='{$_POST['ThemeIMAGE']}'"); $rm=$db->fetch_row($oq); print "<h1>Adding a new Theme</h1> <form action='staff_themecreator.php?action=newthemesub' method='post'> Theme ID: <input type='text' name='ThemeID' /> Theme Title: <input type='text' name='ThemeTITLE' /> Theme CSS Name: <input type='text' name='ThemeDATA' /> Donator: <input type='radio' name='ThemeLOCK' value='0' />NO <input type='radio' name='ThemeLOCK' value='1' />YES Thumbnail Image: <input type='text' name='ThemeIMAGE' /> <input type='submit' value='Create New Theme' /> Theme ID's already in use are {$_POST['ThemeID']} </form>"; } function new_theme_submit() { global $db,$ir,$c,$ThemeID; if($ir['user_level'] != 2) { die("403"); } if(!isset($_POST['ThemeID']) || !isset($_POST['ThemeTITLE']) || !isset($_POST['ThemeDATA'])) { print "You missed one or more of the required fields. Please go back and try again. [url='staff_themecreator.php?action=newtheme']> Back[/url]"; $h->endpage(); exit; } $db->query("INSERT INTO Theme (ThemeID, ThemeTITLE, ThemeDATA, ThemeLOCK, ThemeIMAGE) VALUES( '{$_POST['ThemeID']}', '{$_POST['ThemeTITLE']}', '{$_POST['ThemeDATA']}', '{$_POST['ThemeLOCK']}', '{$_POST['ThemeIMAGE']}')"); //$i=mysql_insert_Themeid($c); print " <font size=3>Successfully Created Theme {$_POST['ThemeTITLE']}</font>"; stafflog_add("Created Theme {$_POST['ThemeTITLE']} "); } function edit_theme_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Editing Theme</h3> <form action='staff_themecreator.php?action=editthemeform' method='post'> Theme: ".Theme_dropdown($c,'Theme')." <input type='submit' value='Edit Theme' /></form> OR enter a Theme ID to edit: <form action='staff_themecreator.php?action=editthemeform' method='post'> Theme: <input type='text' name='Theme' value='0' /> <input type='submit' value='Edit Theme' /></form>"; } function edit_theme_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $q = $db->query("SELECT * FROM Theme WHERE ThemeDATA='{$_POST['Theme']}'"); $r = $db->fetch_row($q); print "<h3>Theme Editing System</h3> <form action='staff_themecreator.php?action=editthemesub' method='post'> Theme ID: <input type='text' name='ThemeID' value='{$r['ThemeID']}' /> Theme Title: <input type='text' name='ThemeTITLE' value='{$r['ThemeTITLE']}' /> Theme CSS: <input type='text' name='ThemeDATA' value='{$r['ThemeDATA']}' /> Donator <input type='radio' name='ThemeLOCK' value='0' />NO <input type='radio' name='ThemeLOCK' value='1' />YES Thumbnail Image: <input type='text' name='ThemeIMAGE' value='{$r['ThemeIMAGE']}'/> <input type='submit' value='Edit Theme' /></form>"; } function edit_theme_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $go=0; if(!isset($_POST['ThemeID'])) { $go=1; } if(!isset($_POST['ThemeTITLE'])) { $go=1; } if(!isset($_POST['ThemeDATA'])) { $go=1; } if(!isset($_POST['ThemeLOCK'])) { $go=1; } if(!isset($_POST['ThemeIMAGE'])) { $go=1; } if($go) { print "You did not fully fill out the form."; $_POST['Theme']=$_POST['ThemeID']; edit_theme_form(); } $oq=$db->query("SELECT * FROM Theme WHERE ThemeTITLE='{$_POST['ThemeTITLE']}' and ThemeID='{$_POST['ThemeID']}'"); $rm=$db->fetch_row($oq); $db->query("UPDATE Theme SET ThemeTITLE='{$_POST['ThemeTITLE']}', ThemeDATA='{$_POST['ThemeDATA']}', ThemeLOCK='{$_POST['ThemeLOCK']}', ThemeIMAGE='{$_POST['ThemeIMAGE']}' WHERE ThemeID={$_POST['ThemeID']}"); stafflog_add("Edited Theme {$_POST['ThemeTITLE']} [{$_POST['ThemeID']}]"); print " <h1>Theme</h1><h3><font color='yellow'> {$_POST['ThemeTITLE']}</h3></font><h1> edited.... Successfully</h1>"; } $h->endpage(); ?>   New Additions to this are Donator only theme ON or OFF and an Image for the Theme which you should create a folder on your FTP called themeshots this is where you put your images... now open up global_func.php and overwrite the old function that was posted earlier with this one..   function Theme_dropdown($connection,$ddname="Theme",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM Theme ORDER BY ThemeDATA ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['ThemeDATA']}'"; if ($selected == $r['ThemeDATA'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['ThemeTITLE']}</option>"; print"<Valign=LEFT>[url='themeshots/{$r['][img=themeshots/{$r[][/url] "; } $ret.="\n</select>"; return $ret; }   For those already using the older version of themecreator you will not lose any data by adding this updated version..
  19. Re: [mccode v2] Themecreator 100% Completed Working Copy Quick update.. now added ability to View before you choose still working on the donator only theme should be ready for this afternoon
  20. Re: [mccode v2] Themecreator 100% Completed Working Copy [uPDATE] I wanted to add to the Theme-Creator where by your Paying members can benfit by viewing themes non-paying members cant see. its a work in progress at moment and ill try sort out some of the older issues raised from the original Script.. + let Users view a themeshot before they decide to use it. The old version although it works fine lacks what i initailly had wanted it to do.
  21. This will allow staff to send Secret messages to any user. It can only be read by the user who receives it... Call this file staff_secretmess.php   <?php require "globals.php"; ?> <head> <STYLE type="text/css"> <!-- BODY { scrollbar-face-color: #000000; scrollbar-highlight-color: #00FF00; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #00FF00; scrollbar-shadow-color: #000000; scrollbar-arrow-color: #FF3300; scrollbar-track-color: #000000; } --> </STYLE> <body bgcolor="#000000"> <center> <html> <head> <script language="JavaScript"> len=0; function CalcKey() { len=0; var temp=document.Encrypt.Key.value; for(i=0;i<temp.length;i++) { len=len+temp.charCodeAt(i); } if(len==0) { alert('Please Enter the Players ID #'); document.Encrypt.Key.focus(); } return len; } function Encryption() { CalcKey(); document.Encrypt.Encrypted.value=""; var txt=document.Encrypt.normal.value; var net=""; var fin=0; if(len>0) { if(txt.length>0) { for(i=0;i<txt.length;i++) { fin=txt.charCodeAt(i)+len; if(fin>99) { net=net+fin; } else { net=net+'0'+fin; } } document.Encrypt.Encrypted.value=net; document.Encrypt.normal.value=""; } else { alert('Please Enter the Text to be Encrypted'); document.Encrypt.normal.focus(); } } } function Decryption() { var txt=document.Encrypt.Encrypted.value; var j=3; var temp1; var res=""; CalcKey(); if(len>0) { if(txt.length>0) { for(i=0;i<txt.length;i+=3) { var temp=txt.substring(i,j); temp1=(parseInt(temp)-len); var t=unescape('%'+temp1.toString(16)); if(t=='%d' || t=='%a') { res=res+' '; } else { res=res+t } j+=3; } document.Encrypt.normal.value=res; document.Encrypt.Encrypted.value=""; } else { alert('Please Enter the Encrypted Text'); document.Encrypt.Encrypted.focus(); } } } </script> </head> <body> <form name="Encrypt"> <p align="center"><font color="yellow"> [b]Enter Players ID # Below: that you want this message to be read by[/b] <input type="text" name="Key" size="20" maxlength="5"> <p align="center"> [b]Enter The Text Below and click on ENCRYPT:[/b]<font color="lightgreen"> <textarea rows="9" name="normal" cols="69">Enter here the Text to be Encrypted </textarea> <p align="center">[b]Copy the Below code when ENCRYPTED and send to the USER [/b]</p> <textarea rows="10" name="Encrypted" cols="69">Enter here the Code to be Decrypted.</textarea> <p align="center"> <input type="button" value="Encrypt" onclick="Encryption()"> <input type="button" value="Decrypt Message Now" onclick="Decryption()"> <input type="reset" value="Reset All"> </form> </body> </html> <? $h->endpage(); ?>   Now call this file secretmess.php   <?php require "globals.php"; ?> <head> <title>Message Decryption</title> <STYLE type="text/css"> <!-- BODY { scrollbar-face-color: #000000; scrollbar-highlight-color: #00FF00; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #00FF00; scrollbar-shadow-color: #000000; scrollbar-arrow-color: #FF3300; scrollbar-track-color: #000000; } --> </STYLE> <body bgcolor="#000000"> <center> <html> <head> <script language="JavaScript"> len=0; function CalcKey() { len=0; var temp=document.Encrypt.Key.value; for(i=0;i<temp.length;i++) { len=len+temp.charCodeAt(i); } if(len==0) { alert('The ID # You Entered Doesnt respond to the ID # Stored'); document.Encrypt.Key.focus(); } return len; } function Encryption() { CalcKey(); document.Encrypt.Encrypted.value=""; var txt=document.Encrypt.normal.value; var net=""; var fin=0; if(len>0) { if(txt.length>0) { for(i=0;i<txt.length;i++) { fin=txt.charCodeAt(i)+len; if(fin>99) { net=net+fin; } else { net=net+'0'+fin; } } document.Encrypt.Encrypted.value=net; document.Encrypt.normal.value=""; } else { alert('Please Enter the Text to be Encrypted'); document.Encrypt.normal.focus(); } } } function Decryption() { var txt=document.Encrypt.Encrypted.value; var j=3; var temp1; var res=""; CalcKey(); if(len>0) { if(txt.length>0) { for(i=0;i<txt.length;i+=3) { var temp=txt.substring(i,j); temp1=(parseInt(temp)-len); var t=unescape('%'+temp1.toString(16)); if(t=='%d' || t=='%a') { res=res+' '; } else { res=res+t } j+=3; } document.Encrypt.normal.value=res; document.Encrypt.Encrypted.value=""; } else { alert('Wrong window copy and paste your Code in the bottom window then click on Decrypt Message'); document.Encrypt.Encrypted.focus(); } } } </script> </head> <body> <form name="Encrypt"> <p align="center"><font color="yellow"> [b]Enter Your ID #: Below[/b] <input type="text" name="Key" size="20" maxlength="5"> <p align="center"> [b]Your Encrypted message will be visible here:[/b]<font color="lightgreen"> If the message Appears Garbled then you have either entered wrong ID #. <textarea rows="6" name="normal" cols="69">This Window will Show the Encrypted Message </textarea> <p align="center">[b]Place the Coding I sent to your Inbox here: and click on REVEAL MESSAGE [/b]</p> <textarea rows="6" name="Encrypted" cols="69">Copy & Paste message sent to your inbox Here.</textarea> <p align="center"> <input type="button" value="Reveal Message" onclick="Decryption()"> </form> </body> </html> <? $h->endpage(); ?>   now add to smenu.php   > [url='staff_secretmess.php']Secret Message[/url] Staff can create the secret messages but users can only read them
  22. Re: So many of one? I gotta say ;) i havent seen a site yet that comes close to what CE has achieved be it a free or paid mod.. I personally like the idea of remakes from the same scripts added over and over gives you the opportunity to mix n match. an example of my scripts is that they are ALL related to one sort of a script already done by MCC The staff_users script has to be one of the most re-modded scripts on here.
  23. Ever wanted to expand your game or even make a Tournament system. this addon will let you do just that you can invite other MCC websites to your site to Participate in Tournaments. from your game... Download... http://kmleague.net/ set it up and start inviting others for competitions... This has got to be better than just having a normal game ;)
  24. Re: [MOD] V2 Theme Changer as Promised 96% completed I was hoping i wouldnt have to go as far as contacting his host and that this could be settled amicably i will how ever give grace of 24 hours before i decide what to do.
  25. Re: [MOD] V2 Theme Changer as Promised 96% completed   I visited your website and found that your selling my attack image and theme creator although this was a free mod i must stress that it was NOT intended to be SOLD. the theme creator also has exerts from KILLAH aswell as script work from myself..... I want all my Mods that your are selling from your ste to be REMOVED from any package...
×
×
  • Create New...