Jump to content
MakeWebGames

Recommended Posts

Posted

Free mining mod, its pretty basic. anyone who can make inprovements to it then go ahead...

mine.php

You're unable to view this code.

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

 

 

global_func.php find

You're unable to view this code.

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

 

 

below that add

You're unable to view this code.

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

 

 

the querys

You're unable to view this code.

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

As i stated this is pretty basic.

Please post your thoughts and comments lol

Any problems let me know

  • Replies 147
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: Mining mod

Forgot to say you need a cron to update power i have mine in the energy cron file

 

You're unable to view this code.

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

Posted

Re: ****FREE Mining mod****

Well i have tested it all seems to work fine for me. did'nt find any bugs in it and i tested it quite well while making it.

But i am sure improvments can be made to it so it dont look too plain lol

Posted

Re: ****FREE Mining mod****

This is optional

 

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.

 

replace with

You're unable to view this code.

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

 

then find

You're unable to view this code.

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

 

replace with

You're unable to view this code.

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

Posted

Re: ****FREE Mining mod****

If you look at the coding you will see its a way for users to get crystals/money

Its basicly another skill thay can train which would hopfully get your more active members

Posted

Re: ****FREE Mining mod****

thanks..i was trying to create that mod but wasnt very succsessfull!...well am gonna change it from money and crystals to ruby and shappire hopefully...i hope it works for lite

Posted

Re: ****FREE Mining mod****

Did I miss something? Does it have a spot where it sets mine_exp and mine_expneeded ?? Or am I just crazy? Same for the other stuff lol

Posted

Re: ****FREE Mining mod****

It appears you gain mining exp every time you mine. The mine level is determined in the same was your normal leveling exp. Looks like it's using the same forumula for exp_needed. I got it running on my server but I want to develop a big-picture around the system before using it. I dont really want to add a lot more cash and gold into my economy. I might make you find other items while mining which you could trade in for stuff. Not certain yet.

Posted

Re: ****FREE Mining mod****

 

Free mining mod, its pretty basic. anyone who can make inprovements to it then go ahead...

mine.php

You're unable to view this code.

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

 

global_func.php find

You're unable to view this code.

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

 

below that add

You're unable to view this code.

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

 

the querys

ALTER TABLE `users` ADD `mine_level` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_exp` int(11) NOT NULL ;

ALTER TABLE `users` ADD `mine_needed` int(11) NOT NULL ;

ALTER TABLE `users` ADD `power` int(11) NOT NULL ;

ALTER TABLE `users` ADD `max_power` int(11) NOT NULL ;

As i stated this is pretty basic.

Please post your thoughts and comments lol

Any problems let me know

 

 

I edited the first part, so that it SHOULD work for V2. If not, I'll covert the mysql_query to $db->query stuff, but in my opinion I don't see why it's needed. But I'm not "1337 h4xx0r' lmao

Let me know. :)

 

PS, yeah I figured that one out after a while, I added the get_mine(); to my index.php as well so that it updates when they login, not that it needs to lmfao.

Posted

Re: ****FREE Mining mod****

Mining levels are not effected by standard users' levels.

It starts at 10, when you move your mining level it goes up, luckily it doesn't depend upon the users' level. :)

Posted

Re: ****FREE Mining mod****

 

Hmm, for a level 1 user, what is the max power / power supposed tobe ?:o

Oh yea sorry forgot to add that in here..

Well i have max power at 100 and 100 power at default... when the user goes up a mining level thay get +10 max power

This can be changed if you dont like the way it is set up... its basicly just set up to fit into my game lol

Posted

Re: ****FREE Mining mod****

 

im gonna use this, but re-do the entire thing, users shouldn't find something each time they mine..

Thay dont get much as it is. when i was testing it i used about 10k power and ended up getting about 2k crystals

Posted

Re: ****FREE Mining mod****

I'll introduce this into my game, but i'll add an extra benefit, like: You get access to the donator only mine (better rewards), and your power increases a lot more, and your power bar in bigger.

Posted

Re: ****FREE Mining mod****

Has anyone got any ideas as to other names i could call this instead of mining.

As mining doesn't really fit into my game.

My Game is about escaping from a PoW camp in another country, any ideas?

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