Jump to content
MakeWebGames

[mccode v2] Gym


Recommended Posts

Posted

Re: [mccode v2] Gym

Same problem like with old gym.php : will goes down too much.

$gain += mt_rand(1, 3) / mt_rand(500, 900) * mt_rand(500, 900) * (($will + 20) / 150);

$will = max(0, $will - mt_rand(1, 3));

Instead of 1, 3 i put 0, 1. Takes me 7% from will, but another users (same level) goes to 50-60% will. How i change that? To take exactly (let's say 3%) ?

  • 1 month later...
  • Replies 109
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: [mccode v2] Gym

I am also having a problem. Just me being nobbish probably..

You get more from doing 4 sets of 25% than one of 100%....I know that it takes in consideration your new gained stats, but for example.

1 set of 25% gives me 32634 in strength (for example)

1 set of 100% gives me 58032 in strength

Is there a way to fix this?

  • 2 weeks later...
Posted

Re: [mccode v2] Gym

 

Kix it's because it's randomized.

Randomized or not, the previous post was very correct from what I can see. 25% trains are taking 25% of your current Energy, not 25% from 100% yet still giving the same gains as if it were coming from 100%. I really seem to think that this Mod should include the amount of times that you are training into account as well to make it much more accurate.

You would be an idiot to train 100% Energy off, when you can train the 25% and get way more gains. As I said, random gains or not, they are not even in the same ballpark.

Posted

Re: [mccode v2] Gym

I know, if I don't know what I'm doing, I probably shouldn't touch it, but the owner of the game I'm working for wants to use Nyna gym, and also wants to have another gym that gives x2 stat gain to donators. For consistency, we want to use Nyna Gym for that as well. I don't know enough about coding to start removing things, so even though I added a string that keeps you from using it if you are in jail, I didn't remove any of the jail bits.

I originally had a question, but I figured it out on my own. Here's the code with the parts I changed. >.> I hope Nyna-san doesn't mind.

 

You're unable to view this code.

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

Guest Anonymous
Posted

Re: [mccode v2] Gym

Feel free, just remember, it is OpenSource, and hence the Copyright belongs to me.

  • 3 months later...
Posted

Re: [mccode v2] Gym

i was trying to o something similar with a *2 in a donator gym, and it looks like all you changed was a *4... can you explain to me the math behind that?

also i removed the lines:

$sql = sprintf("SELECT energy, will FROM users WHERE (userid = %u)", $userid);

$rs = $db->query($sql);

$info = $db->fetch_row($rs);

since $info is never used and this information is pulled in the primary query.

  • 4 weeks later...
  • 4 months later...

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