Jump to content
MakeWebGames

Recommended Posts

Posted

This basic mod allows you to create your own crystal by buying materials. Once you create a crystal successfully, you also gain a small amount of exp. It's not that great, but I didn't see any up here, so I thought I might as well post mine. It's based off of a car racing mod around here, and it was the first mod I ever made.

run this sql

You're unable to view this code.

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

 

makecrystalbuy.php

You're unable to view this code.

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

 

makecrystal.php

You're unable to view this code.

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

 

Somewhere, in the explore page, just link

You're unable to view this code.

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

wherever you want it.

Posted

Re: [v2] Create a Crystal

The coding is ok but the actual effect this would have on your game would be massive economy could rise like crazy but then again this is easily fixed by adding random chances that they will fail at making a crystal or the quality of the crystal may be lower randomly or both of those at the same time lol well my 2 cents basically is that code wise its good but economic wise its not great +0.5

Posted

Re: [v2] Create a Crystal

Make a table in users called cmake default -1 then add this code to the page

If ($ir[cmake]==-1) { echo 'you need to pay $5,000,000 to make crystals';

$h->endpage();

EXIT;

}

Finish this off as I can't as I'm at work

Guest Sniko`
Posted

Re: [v2] Create a Crystal

 

Make a table in users called cmake default -1 then add this code to the page

 

If ($ir[cmake]==-1) { echo 'you need to pay $5,000,000 to make crystals';

$h->endpage();

EXIT;

}

Finish this off as I can't as I'm at work

 

You're unable to view this code.

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

 

Hopefully that works

Posted

Re: [v2] Create a Crystal

hmmm i wouldnt have this mod becuase i think it would be too easy for people to get crystals then, I mean, the crystal temple means u can trade in crystals for any price, but mines only $200 i dont see how this would benefit my game, sorry.

Guest Sniko`
Posted

Re: [v2] Create a Crystal

Well, at least he tried

  • 1 month later...
Posted

Re: [v2] Create a Crystal

Ok i kinda like this mod it could go far maybe if we make so users can say only make say 5 aday i know it would restrict it in terms of playing time but we keep users abit more busy and limits the amount of crystals and cash in your game just a thought

Posted

Re: [v2] Create a Crystal

Rite ive done it

You're unable to view this code.

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

change 5 to the number that you want users to make a day

Add this to Day cron

You're unable to view this code.

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

And replace makecrystal.php with this

You're unable to view this code.

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

in makecrystal.php ive make the querys all one instead of 3

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