Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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 ?

Posted

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

Posted

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:

Posted

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.

Posted

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

Posted

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

Posted

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 ;)

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

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

Posted

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.

  • 1 year later...
Posted

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.

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