Jump to content
MakeWebGames

Mining mod


R!der

Recommended Posts

  • Replies 147
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Re: [mccode] Mining mod

 

ffs dude thats how you do it. :roll: :roll: If you cant add that on 1st page then dont make a game... I didnt like this mod as users got too many crystals :evil:

Sorry but you must be pretty dull if you can't edit it yourself to not give so many crystals.

I could and i did, but even so some people found ways dont know how to keep doing it.. so they had like 400 crystals in a day which is kinda bad for everyone except them..

Link to comment
Share on other sites

Re: [mccode] Mining mod

thats sad simple edit to lessen the CRYSTALS gained in mining.

$db->query("UPDATE users SET power=power-10 WHERE userid=$userid",$c);

Post error whoever has this one. And never knew they were taking POWER but have to add power, so to fix that put + instead of - and put 5 instead 10

and yes there is a CRON that runs the MINING. I have had no problems with this mod and crystal gains not that high and I added more levels and GEM levels also. Anyone needing help just ask. Been busy but kinda slacking off now.

Link to comment
Share on other sites

  • 2 months later...

Re: [mccode] Mining mod

To get the experience and leveling up stuff working for version 2, in mine.php, replace

if ($ir['jailtime'] > 0){

with

if ($ir['jailtime'] > 0){

$db->query("UPDATE users SET max_power=mine_level*10 WHERE userid=$userid",$c);

$db->query("UPDATE users SET mine_level=mine_level+1 WHERE mine_exp > mine_needed AND userid=$userid",$c);

$db->query("UPDATE users SET mine_exp=0 WHERE mine_needed < mine_exp AND userid=$userid",$c);

$db->query("UPDATE users SET mine_needed=mine_level*1000 WHERE userid=$userid",$c);

Link to comment
Share on other sites

Re: [mccode] Mining mod

Working version 2, with the screwed up issues fixed....

mine.php

 

You're unable to view this code.

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

 

In phpMyAdmin, if you already got the tables, first enter

ALTER TABLE `users` DROP `mine_level` ,

DROP `mine_exp` ,

DROP `mine_needed` ,

DROP `power` ,

DROP `max_power` ;

to delete them, and then re-add them using...

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

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

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

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

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

In cron_fivemins.php add

$db->query("UPDATE users SET power=power+5 WHERE power<max_power");

In global_func.php replace

function get_rank($stat, $mykey)

with

 

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

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