John99 Posted June 9, 2007 Posted June 9, 2007 NOTE: This is for v1 only. This is fully 100% made by me only dbs headers aint mine. lol:p Make a file called crystalshop.php Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Save and your done A little mod created by me thanks alan Quote
hamster01 Posted June 9, 2007 Posted June 9, 2007 Re: CrystalShop Mod!! Free!! Although this modification is easy enough to make and has been made before. Good Job. Quote
John99 Posted June 9, 2007 Author Posted June 9, 2007 Re: CrystalShop Mod!! Free!! I havent saw this on ce before i know some games have it but some people dont and people dont no how to make it so i just made one then posted it on ce for some people to use for free :) Quote
hunter Posted June 9, 2007 Posted June 9, 2007 Re: CrystalShop Mod!! Free!! nice and simple thanks +1 Quote
John99 Posted June 9, 2007 Author Posted June 9, 2007 Re: CrystalShop Mod!! Free!! Thanks Hunter Quote
Jesse60905 Posted June 24, 2007 Posted June 24, 2007 Re: CrystalShop Mod!! Free!! Finally something to use crystals 4 on my game lol. +1 for u Quote
YoungGold Posted July 18, 2007 Posted July 18, 2007 Re: CrystalShop Mod!! Free!! for v2 <?php //Coded By Alan //Free Mod/Code session_start(); include "globals.php"; print "<h3>Welcome to the crystal shop this is were you can spend all you crystals on.</h3>"; print "You currently have {$ir['crystals']} crystals "; if($_GET['type'] == "") { Print "<h3>Armor</h3> Plasma Shield - 25 Crystals Rynax Plasma Shield - 45 Crystals "; Print "<h3>Guns</h3> Plasma Gun - 65 Crystals Plasma Rifle - 85 Crystals "; Print "<h3>Medical</h3> Will Potion - 30 Crystals Small Potion - 10 Crystals "; Print "<h3>Food</h3> Sack Lunch - 3 Crystals Hamburger - 5 Crystals "; } else if($_GET['type'] == "plashield") { if($ir['crystals'] <25) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-25 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',97,$userid,1)",$c); print "You successfully traded 25 crystals for a Plasma Shield and gone in to your items."; } } else if($_GET['type'] == "rynaxplasheild") { if($ir['crystals'] <45) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-45 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',98,$userid,1)",$c); print "You successfully traded 45 crystals for a Rynax Plasma Shield and gone in to your items."; } } else if($_GET['type'] == "plasmgun") { if($ir['crystals'] <65) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-65 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',99,$userid,1)",$c); print "You successfully traded 65 crystals for a Plasma Gun and gone in to your items."; } } else if($_GET['type'] == "plasmarifle") { if($ir['crystals'] <85) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-85 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',100,$userid,1)",$c); print "You successfully traded 65 crystals for a Plasma Rifle and gone in to your items."; } } else if($_GET['type'] == "willpot") { if($ir['crystals'] <30) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-30 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',34,$userid,1)",$c); print "You successfully traded 30 crystals for a Will Potion and gone in to your items."; } } else if($_GET['type'] == "smallhealth") { if($ir['crystals'] <10) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-10 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',3,$userid,1)",$c); print "You successfully traded 10 crystals for a Small Potion and gone in to your items."; } } else if($_GET['type'] == "sacklunch") { if($ir['crystals'] <3) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-3 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',1,$userid,1)",$c); print "You successfully traded 3 crystals for a Sack Lunch and gone in to your items."; } } //This is type like a function else if($_GET['type'] == "hamburger") { if($ir['crystals'] <5) { die("You don't have enough crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-5 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',5,$userid,1)",$c); print "You successfully traded 5 crystals for a Hamburger and gone in to your items."; } } $h->endpage(); ?> Quote
stryker Posted July 18, 2007 Posted July 18, 2007 Re: CrystalShop Mod!! Free!! tthere is no point making this v2 since the shopping system is differant Quote
John99 Posted July 18, 2007 Author Posted July 18, 2007 Re: CrystalShop Mod!! Free!! ya because theres no items with v2 is there :| ? plus it can work if you changed the id of the numbers to the correct ones you made. Quote
Godfather Posted July 21, 2007 Posted July 21, 2007 Re: CrystalShop Mod!! Free!! good call there m8 u save the day again :-D+1 Quote
ronhouston2 Posted March 30, 2008 Posted March 30, 2008 Re: CrystalShop Mod!! Free!! Whats the Point to have a V2 when it dont work Quote
Magictallguy Posted April 18, 2008 Posted April 18, 2008 Re: CrystalShop Mod!! Free!! That has pretty much already been said... Quote
MDK666 Posted October 24, 2008 Posted October 24, 2008 Re: CrystalShop Mod!! Free!! Well i made a working version for mccode v2 on my game all because i have a whole new currency called TOC Credits which is a currency only available from donateing or buying from others in the game, in which you can trade for extremely rare items only buyable with the TOC Credits, anyways here is how it looks: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Ishraq Posted October 25, 2008 Posted October 25, 2008 Re: CrystalShop Mod!! Free!! Can Someone Post weapons.php please Quote
Solid Snake Posted October 25, 2008 Posted October 25, 2008 Re: CrystalShop Mod!! Free!! lol thats what he has called his crystal shop just edit You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to whatever you named your file Quote
MDK666 Posted October 25, 2008 Posted October 25, 2008 Re: CrystalShop Mod!! Free!! lol thats what he has called his crystal shop just edit You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to whatever you named your file hes right i have 4 pages for different things such as donator days, currencys and weapons & armor thats you can choose from all you would have to do is change weapons.php to the page you want it to be, im gonna redo it a little bit to make it more easier, and if you want the full package im useing then let me know and ill post all 4 pages Quote
Solid Snake Posted October 26, 2008 Posted October 26, 2008 Re: [mccode v1] CrystalShop Mod!! Free!! it would be cool if you made 1 extra with a table in it asking you which shop you would like to goto :D Quote
MDK666 Posted October 26, 2008 Posted October 26, 2008 Re: [mccode v1] CrystalShop Mod!! Free!! it would be cool if you made 1 extra with a table in it asking you which shop you would like to goto :D well heres the following script im useing which is basic html as the shop entrance, then when clicking on one of the links it will take you to another page showing what items are for sale, i plan on adding cases to this code to make it 1 single page instead of 4 or whatever: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.