ADN Posted November 10, 2008 Posted November 10, 2008 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%) ? Quote
KiX Posted January 2, 2009 Posted January 2, 2009 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? Quote
03laceys Posted January 2, 2009 Posted January 2, 2009 Re: [mccode v2] Gym Kix it's because it's randomized. Quote
Deception Posted January 15, 2009 Posted January 15, 2009 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. Quote
Matsu Posted January 19, 2009 Posted January 19, 2009 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. Quote
Guest Anonymous Posted January 22, 2009 Posted January 22, 2009 Re: [mccode v2] Gym Feel free, just remember, it is OpenSource, and hence the Copyright belongs to me. Quote
cgrimes985 Posted May 6, 2009 Posted May 6, 2009 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. Quote
Vyp3r2oo9 Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Gym Old topic and semi-irrelevant question, but what happened to Nyna? Quote
Haunted Dawg Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Gym Due to certain circumstances, she decided to leave, if im not mistaken. Quote
shedh Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Gym that is true.... now get back on to topic Quote
Joshua Posted October 24, 2009 Posted October 24, 2009 last I checked she still posts on Dev-forums tho Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.