Jump to content
MakeWebGames

[mccode] Diamond gems, with a Diamondtemple.php for v2.0


Recommended Posts

Posted

Ok i recoded the crystal temple, along with the staff panel on my game to have diamonds along with tradeing them in at a diamondtemple and crediting users, and editing users to give them diamonds. This has been tested and works great for mc 2.0 only i havent coded it for 1.1 and dont plan too. Considering this is my first mod i dont plan to sell it i will let others try it and see how they like it if i get a positive feed back then maybe ill make some more mods in the future untill then heres my copy of crystal temple..

-----------------------------------------------------------------------------------------------------

Create diamondtemple.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

-----------------------------------------------------------------------------------------------------

Add to tables

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

-----------------------------------------------------------------------------------------------------

Open explore.php

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add this under it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

save, then refresh ur browser and have fun!!!

 

 

  • 5 months later...
Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

And for those who want to add the diamond amount you have on hand to the game then look for this:

Open header.php and find:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then add this:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

 

Ok i recoded the crystal temple, along with the staff panel on my game to have diamonds along with tradeing them in at a diamondtemple and crediting users, and editing users to give them diamonds. This has been tested and works great for mc 2.0 only i havent coded it for 1.1 and dont plan too. Considering this is my first mod i dont plan to sell it i will let others try it and see how they like it if i get a positive feed back then maybe ill make some more mods in the future untill then heres my copy of crystal temple..

-----------------------------------------------------------------------------------------------------

Create diamondtemple.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

-----------------------------------------------------------------------------------------------------

Add to tables

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

-----------------------------------------------------------------------------------------------------

Open explore.php

Find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add this under it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

save, then refresh ur browser and have fun!!!

 

Well done, for pressing ctrl + h and replacing "Crystals" with "Diamonds".

  • 2 weeks later...
Guest Anonymous
Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

:lol: don,t need any cron for the crystal/diamond temple u would only need a cron if u wanted players to visit the temple a curtain amount of times a day or so

Guest Anonymous
Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

it send and receives data from the database and it updata the database like .....

 

$iqgain=$_POST['diamonds']*$set['ct_moneypercrys'];

$db->query("UPDATE users SET diamonds=diamonds-{$_POST['diamonds']},money=money+$iqgain WHERE userid=$userid");

print "You traded {$_POST['diamonds']} diamonds for \$".number_format($iqgain).".";

  • 1 year later...
Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

 

Well done, for pressing ctrl + h and replacing "Crystals" with "Diamonds".

That's not very nice im sure he had to spell out Diamonds and Crystals first :-D

Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

 

way to bump a thread almost 2 yrs old :)

i wanted him to know what an epic fail that was

I wish people would Bump my threads theyve been collecting dust for ages lol

Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

hmmmm nice way to say a fail, if you feel you can code something up that no one has though of and maybe release a version of it for free, but i had made this mod for the people who dont know how to (replace information in a mod) so if you like saying things about how i like to help the community go ahead i really dont care, as long as i know that it can help the community with there game. so once again i dont care, talk about how i just copy and pasted.

Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

Well done, for pressing ctrl + h and replacing "Crystals" with "Diamonds".

You hardly recoded crystaltemple and u can tell u did not finish it becuause u can see

['ct_moneypercry']).

so its a -1 from me

Posted

Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0

thats ok this was one of the first mods, or a copy and replace mod i have released, i was working on a accuall mod that included a crystals, diamonds, and gold or whatever else in a single file but i stopped working with mc2 so i never finished it. but thanks for the feedback atleast

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...