iSOS Posted July 30, 2010 Posted July 30, 2010 I got bored earlier so decided to re create the gym that is seen on "Torn", yes I copied so what I was bored and it's 1,000,000 times better than default gym. gym.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. gDo.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It hasn't been tested very well, I'll leave that to you guys, it was just something I did in a spare 15mins, let me know of any problems, . If anyone is going to cry about it looking like torns (Danny696) please cry somewhere else, it's better than the default. EDIT: http://img821.imageshack.us/img821/9906/1280584817955.png Quote
Shakeynath Posted July 30, 2010 Posted July 30, 2010 Hey mate, Im loving this new gym. Just wondering because my users used to get 100,000 with the old gym i used and now they get 13,000. What do i have to change to make it go as high as last time ? Quote
iSOS Posted July 30, 2010 Author Posted July 30, 2010 Works Great. ;) Awesome work!Thanks =) Hey mate, Im loving this new gym. Just wondering because my users used to get 100,000 with the old gym i used and now they get 13,000. What do i have to change to make it go as high as last time ? In "gDo.php" - it's commented out. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For higher results change the number to something lower. =) Quote
Shakeynath Posted July 30, 2010 Posted July 30, 2010 Works Great. ;) Awesome work!Thanks =) Hey mate, Im loving this new gym. Just wondering because my users used to get 100,000 with the old gym i used and now they get 13,000. What do i have to change to make it go as high as last time ? In "gDo.php" - it's commented out. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For higher results change the number to something lower. =) Legend :thumbsup: Quote
rulerofzu Posted July 31, 2010 Posted July 31, 2010 Nice work. FYI when i tested it I had to move the function to the top of the file to get it to work. Here is a screen on how i've amended and added to it for zu. Quote
iSOS Posted July 31, 2010 Author Posted July 31, 2010 Nice, that looks good. =) As for moving the function, I've never had that problem, also when it was at the top it messed with default MC layout so that was the reason for being at the bottom, but if anyone else has that problem just move it to top like rulerofzu. EDIT: Added a screenshot to first post. Quote
CJ - Twitch Posted July 31, 2010 Posted July 31, 2010 This mod allows the users Energy to go into minuses. Quote
iSOS Posted July 31, 2010 Author Posted July 31, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. No it doesn't o.0 Quote
Equinox Posted July 31, 2010 Posted July 31, 2010 Just a little thing that could be done here - why use "$Data" when you can just use $ir. It's there to be used, even if it is hugely inefficient, obviously this way would be much better being used outside of McCodes... Other than that, I love it. You seem to be getting very good at Javascript Quote
iSOS Posted July 31, 2010 Author Posted July 31, 2010 Then I'd have to include globals.php in gDo.php thus making the gym include the header twice and messing the screen up, and thanks! xD Quote
CJ - Twitch Posted July 31, 2010 Posted July 31, 2010 my gDo.php file.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Screenie. Quote
iSOS Posted July 31, 2010 Author Posted July 31, 2010 You've changed the code, what's this for ".intval($_GET['uAmount']*5)." - it's taking what ever you've entered * 5 - AFTER the initial check for user energy, not my code error but yours ;) Quote
CJ - Twitch Posted July 31, 2010 Posted July 31, 2010 How can I fix it so it costs 5 energy per train? Quote
Djkanna Posted July 31, 2010 Posted July 31, 2010 But it's just a rip off of TORN QQ Nice work Zed :thumbsup: Quote
Danny696 Posted July 31, 2010 Posted July 31, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Shouldnt the string (being strength) be inclosed in quote/speach marks? Quote
Equinox Posted July 31, 2010 Posted July 31, 2010 Then I'd have to include globals.php in gDo.php thus making the gym include the header twice and messing the screen up, and thanks! xD Scratch that - I didn't look >.< Quote
iSOS Posted July 31, 2010 Author Posted July 31, 2010 But it's just a rip off of TORN QQ Nice work Zed :thumbsup: Thanks xD Quote
rulerofzu Posted July 31, 2010 Posted July 31, 2010 What Eq says below :D Ive used something like that on my edited version but only as ive included a will and energy refill Quote
Equinox Posted July 31, 2010 Posted July 31, 2010 All these You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That's not needed at all....they're all doing the same thing, so take the original script posted by Zed and alter the "$Gain" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos94 Posted August 3, 2010 Posted August 3, 2010 Not bad, but I feel like bringing up a more solid CSS idea.. Your rounded corners, they won't be there in quite a few browsers so an easier way could be: From what I saw your only supporting Firefox, Safari, Chrome and Opera 10? What about Opera 9? Internet Explorer? And even if you want Konqueror? Here's my go. ;) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The source of border-radius.htc is not mine and the sourec is found below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Seker Posted April 16, 2012 Posted April 16, 2012 Alright, I KNOW this is a VERY old mod, but as Nyna's gym seems to be the recommended go-to gym, and I could not get it to work for v1.1.1 after SEVERAL tries, I tried going with this. Having one issue, though, and wondering if anyone could lend a hand in figuring it out. The code is copied exactly, with the exception of the necessary conversion of "include(DIRNAME(__FILE__).'/globals.php')" Now, I'm not getting a single error. It just flat out doesn't work. I click on "Train" and nothing happens. Uses no energy or will and gives no stat gain. As I said, I've changed nothing but the necessary conversion piece. Here are the two codes: gym.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. gDo.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
rulerofzu Posted April 16, 2012 Posted April 16, 2012 necessary conversion of "include(DIRNAME(__FILE__).'/globals.php')" This is a necessary conversion why? Firebug the script and you will see where your going wrong. 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.