Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,691
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Uridium

  1. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... The same principal applies for any other parts you want to change just create a new TABLE NAME and follow the above steps
  2. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... SQLS   ALTER TABLE `settings` ADD `game_currency` VARCHAR ( 255 ) not null default 'Crystals', ALTER TABLE `settings` ADD `game_value` VARCHAR ( 255 ) not null default '$', ALTER TABLE `settings` ADD `game_energy` VARCHAR ( 255 ) not null default 'Energy', ALTER TABLE `settings` ADD `game_will` VARCHAR ( 255 ) not null default 'Will', ALTER TABLE `settings` ADD `game_brave` VARCHAR ( 255 ) not null default 'Brave', ALTER TABLE `settings` ADD `game_exp` VARCHAR ( 255 ) not null default 'Exp', ALTER TABLE `settings` ADD `game_health` VARCHAR ( 255 ) not null default 'Health';   Now open up staff.php find Paypal Address: <input type='text' name='paypal' value='{$set['paypal']}' />   and underneath add these   Game Currency: <input type='text' name='game_currency' value='{$set['game_currency']}' /> Game Currency Symbol: <input type='text' name='game_value' value='{$set['game_value']}' /> Change ENERGY to.: <input type='text' name='game_energy' value='{$set['game_energy']}' /> Change WILL to.: <input type='text' name='game_will' value='{$set['game_will']}' /> Change BRAVE to.: <input type='text' name='game_brave' value='{$set['game_brave']}' /> Change EXP to.: <input type='text' name='game_exp' value='{$set['game_exp']}' /> Change HEALTH to.: <input type='text' name='game_health' value='{$set['game_health']}' />   on the ssame file on line 131-136 overwrite with this one   print "</select> {$set['game_energy']} Refill Price {$set['game_currency']}: <input type='text' name='ct_refillprice' value='{$set['ct_refillprice']}' /> IQ per {$set['game_currency']}: <input type='text' name='ct_iqpercrys' value='{$set['ct_iqpercrys']}' /> Money per {$set['game_currency']}: <input type='text' name='ct_moneypercrys' value='{$set['ct_moneypercrys']}' /> {$set['game_will']} Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])." <input type='submit' value='Update Settings' /></form>";   now open up global_func.php this edit kindly done by POG1 Over write   <?php function money_formatter($muny,$symb='?') { return $symb.number_format($muny); }   with this one   <?php function money_formatter($value) { global $set; return $set['game_value'].' '. number_format($value); }   all you need to do now is change all text mentions of crystals to {$set['game_currency']} DONT alter the ones from any SQLS just the ones after PRINT or ECHO and for the Bars just change as you did with the Crystals ammending the $set name for each.
  3. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... in about 5 - 10 mins
  4. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Yes once youve made the ammendments to each script then what ever item you put example BLOOD POINTS instead of WILL that will become BLOOD POINTS on all scripts that used to read as WILL
  5. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... I will post the working script once ive got the SQLS sorted...
  6. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... few screen shots From Install From Admin Panel From Users View test site link Reg and i will give you staff staus to test out the features... http://www.testsite.murder-city.com Can I just mention a big thanks to POG1 for his help with the removal of $ to let users choose their own currency symbol
  7. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... Thats correct but once youve done my inserts to the scripts for that you will never need to alter the files again
  8. 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 :)
  9. Re: money_formatter on MCCODES V2 Cheers POG that worked 1st attempt :) Thank you +1
  10. 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
  11. Re: [NEED Help][MCCODES V2] Item Pic Mod   ? Ive just given you 2 options.
  12. 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
  13. 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 :)
  14. 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
  15. 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
  16. Re: [v2]Diamond market [v2] [REMOVED] so the Lemmings dont follow :)
  17. Re: [V2]My own v2 Explore page [V2] if its any consolation silent at least you reached 26 posts on one topic lol
  18. 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 :)
  19. Re: [V2]My own v2 Explore page [V2] Regardless of what hes done let him learn from this issue and drop the complaining
  20. Re: [V2]Register page with 1 account per ip [V2]   Welcome to the world of MCCodes ;)
  21. 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 :)
  22. 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 :)
  23. 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...
  24. 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(); ?>
  25. 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..
×
×
  • Create New...