Jump to content
MakeWebGames

Hospital Java Countdown


shrek1609

Recommended Posts

Re: Hospital Java Countdown

 

exactly what i've done...

 

You're unable to view this code.

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

 

Wouldn't this let them use it more than once?

 

no because you put it inside the effect if statement

 

You're unable to view this code.

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

 

you can edit the item and set the effect 1 to on and just leave the other settings ie it updates energy with 0

or as you are not using the hospital field anymore just leave it and dont bother editing it... so it will update hospital field with x amount of minutes... but you dont use it so dont matter really

Link to comment
Share on other sites

Re: Hospital Java Countdown

few small problems if you check your javascript :) just read through it and it wont cound hours just minutes and seconds i suppose not a problem if your running on minutes alone but to anyone else it will not count hours i can post a fix up for you if you want

Link to comment
Share on other sites

Re: Hospital Java Countdown

find the line in shreks javascript :

You're unable to view this code.

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

and replace with

You're unable to view this code.

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

 

working for me if it doesnt work for you its something you end i havent come across any bugs, can be adapted for days if you want to use in federal jail but im not sure why you would want to :s but hey its you game

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 6 years later...
Re: Hospital Java Countdown

*** Forgot to say with this method if you refresh time left doesn't jump back up ***

ok folks this is more accurate and as its impossible to make it 100% accurate without using 1 second crons, if its slightly out it will display "releasing" in the hospital list...

first off

run this sql

 

You're unable to view this code.

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

 

everywhere you send someone to hospital ie attackwon attacklost attackbeat etc

insert into the hospital queries the following...

 

You're unable to view this code.

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

 

(1200 is 20 minutes so however many minutes you want times it by 60)

an example of altered query

 

You're unable to view this code.

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

 

you will need to change these queries whereever the hospital field is updated in the database, which i guess is different for you all...

now open hospital.php

find

 

You're unable to view this code.

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

 

replace with...

 

You're unable to view this code.

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

Nothing is showing up in the Time column.

My code:

attackwon.php;

You're unable to view this code.

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

 

hospital.php

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