Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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 :)

  • 3 weeks later...
  • 4 weeks later...
Posted

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();

?>

Posted

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.

  • 8 months later...
  • 3 weeks later...
  • 6 months later...
Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...