Jump to content
MakeWebGames

[mccode v2] crystal Temple


Guest Sniko`
 Share

Recommended Posts

i know this is basic to my last 2 mods but i was bored

This is an upgraded crystal temple for V2

i an unable to do form POST due to haven learnt that yet.

Sorry if the field names are wrong in the database query(s)

Thanks

+1 if you like it / use it

Thanks

 

You're unable to view this code.

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

 

Coded from scratch, reply with any errors,

Thanks

Sniko

Link to comment
Share on other sites

Re: [V2] crystal Temple

Here is some fixes iv found, Not tested throughly but im sure it works.

You're unable to view this code.

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

 

Every Code i fix for you mate its where you space your querys wrong..lol

In the future instead of spacing your queries like:

You're unable to view this code.

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

Just Post them up like :

You're unable to view this code.

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

 

Always get a error when you space your qqueries as you do..

Good Mod Mate. +1

Link to comment
Share on other sites

Re: [V2] crystal Temple

 

Here is some fixes iv found, Not tested throughly but im sure it works.

You're unable to view this code.

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

 

Every Code i fix for you mate its where you space your querys wrong..lol

In the future instead of spacing your queries like:

You're unable to view this code.

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

Just Post them up like :

You're unable to view this code.

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

 

Always get a error when you space your qqueries as you do..

Good Mod Mate. +1

Good idea Sniko`, I always thought the original Crystal Template was quite boring, and could use a revamp :) +1

Thank you both and thanks MrGi for the query fix i thought it would work like that anyway

Link to comment
Share on other sites

Re: [V2] crystal Temple

 

Every Code i fix for you mate its where you space your querys wrong..lol

In the future instead of spacing your queries like:

You're unable to view this code.

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

Just Post them up like :

You're unable to view this code.

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

 

Always get a error when you space your qqueries as you do..

Good Mod Mate. +1

I have always spaced my querys, and never got an error.... :?

Like i would write that like this...Before..

 

You're unable to view this code.

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

 

Now i write them like this...

You're unable to view this code.

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

Link to comment
Share on other sites

Re: [V2] crystal Temple

Well For some odd reason, When he spaces his querys never fails that I get a error over it. I havnt really looked into spacing querys but whatever way you like to do it lol... Your Welcome Sniko... Iv had your back plenty of time on your mods, Haha...Good Work

Link to comment
Share on other sites

Re: [V2] crystal Temple

 

no Problem mate.. Maybe one day me and you can get together and create a mod together..haha

yea ok sounds good, all we need is an idea

Link to comment
Share on other sites

Re: [V2] crystal Temple

 

Now i write them like this...

You're unable to view this code.

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

 

Thats how im starting to do mine, its better

good mate its much longer coding but more secure i think

and spacing has never been a issue with my codes...

for example

You're unable to view this code.

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

Link to comment
Share on other sites

  • 2 weeks later...

Re: [V2] crystal Temple

great mod, however if you want your members energy, brave, and health to go up to match their level you might want to add that in something like this.

else if($_GET['trade'] == level)

{

if($ir['crystals'] < 50)

{

print "Error, you dont have enough crystals (You need 50)";

}

else

{

print "You trade in 50 crystal for a level enhancement!";

$db->query("UPDATE users SET level = level + 1, crystals = crystals - 50 WHERE userid = $userid");

$db->query("UPDATE users SET maxenergy = maxenergy + 2 WHERE userid = $userid");

$db->query("UPDATE users SET maxbrave = maxbrave + 2 WHERE userid = $userid");");

$db->query("UPDATE users SET maxhp = maxhp + 10 WHERE userid = $userid");

}

Link to comment
Share on other sites

Re: [V2] crystal Temple

else if($_GET['spend'] == level)

{

if($ir['crystals'] < 50)

{

print "Error, you dont have enough crystals (You need 50)";

}

else

{

print "You trade in 50 crystal for a level enhancement!";

$db->query("UPDATE users SET level = level + 1, crystals = crystals - 50 WHERE userid = $userid");

$db->query("UPDATE users SET maxenergy = maxenergy + 2 WHERE userid = $userid");

$db->query("UPDATE users SET maxbrave = maxbrave + 2 WHERE userid = $userid");

$db->query("UPDATE users SET maxhp = maxhp + 10 WHERE userid = $userid");

sorry, had some extras in that last post...this one should work

}

Link to comment
Share on other sites

Re: [V2] crystal Temple

 

small mistake would be 50 hp per level as well not 10 :-P

replce

You're unable to view this code.

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

with

You're unable to view this code.

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

simple

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...