Pirate The World - Online Adventure Game

Pirate The World Game Forums
It is currently Tue Mar 19, 2024 2:17 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Timer Script
PostPosted: Fri Jun 01, 2007 1:57 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:38 am
Posts: 726
Location: New Zealand
From what I've heard there are some of us that have a problem of clicking a moving ship on the radar only to get the authentication page. So I've made a script which tells you when you should refresh the game page and do the test so you don't miss any ships that you would have got otherwise.
To use the script just save the code as a *.htm file and open it when you play:

<html>
<body onclick="checkclick()"></body>
<script language="vbs">
' File name = PTW Timer.html
' Date made = 1/6/2007
' Purpose = Show user when to refresh their PTW game page.
' Details = When you click this page a timer will start and then tell you when 20 minutes have past. Based on this you shouldn't miss any ships because of the game checking you are human.

dim Timing
dim TimerID

document.body.innerText="The timer is ready to start." & vbCrLf & "See the page source for details."
document.body.bgColor="green"

sub CheckClick
if not timing then
starttimer
else
document.body.innerText="Timer is already going." & vbCrLf & "Please close/refresh this page to stop it."
end if
end sub

sub StartTimer
document.body.innerText="The timer has been started."
document.body.bgColor= "#c80000" ' "red" was too bright.
timing=true
timerid=setInterval("stoptimer()",1200000) ' (# of mins * 1000) * 60.
end sub

sub StopTimer
document.body.innerText="It is now time to refresh the PTW game screen." & vbCrLf & "Please click this page again when you are ready to restart the timer."
document.body.bgColor="green"
clearInterval(timerid)
timing=false
end sub
</script>
</html>

_________________
It angers me that bottles can say for you to shake well before use, but don't have to say to put the cap back on 1st.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 5:38 am 
Offline
The Doom-Bringer / Site Admin
User avatar

Joined: Mon Dec 05, 2005 9:12 pm
Posts: 1441
Location: Berkeley, CA
This is pretty cool! :-D

_________________
To find, explore the funds off shore and skirt the shoals of bankruptcy!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 12, 2007 11:43 pm 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:38 am
Posts: 726
Location: New Zealand
After downloading the latest version of the browser I use, it now warns me everything I open the script I made. It's the yellow bar at the top which says it's blocked the content of the page, and you need to go to allow for the script to work. I know I've turned the bar off in the past, but I can't remember where the setting is. Do I just lower the security setting bar or is there a better way to do it??.

As a side note to my attackers:
I haven't really had a chance to play full on lately, but I should be back and reclaiming my gold next week, :).

_________________
It angers me that bottles can say for you to shake well before use, but don't have to say to put the cap back on 1st.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 14, 2007 2:15 am 
Offline

Joined: Thu Nov 30, 2006 12:09 am
Posts: 25
Location: NEW ZEALAND
:? :? :?
read it once ..read it twice...decides to leave whatever those instructions are to those that know how to and where to do whatever they mean...
ummm think i will stick to being just a pirate.. :lol: :lol:

_________________
This life is not a practice run..live it to the fullest..
Walk the plank me hearties


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 14, 2007 3:13 pm 
Offline

Joined: Wed Apr 11, 2007 3:40 pm
Posts: 32
with you there hayjude....different language to me too!


Top
 Profile  
 
 Post subject: Re: Timer Script
PostPosted: Sat Jul 14, 2007 6:21 pm 
Offline
User avatar

Joined: Sun Jul 23, 2006 8:09 pm
Posts: 120
Darkmyst9 wrote:
To use the script just save the code as a *.htm file and open it when you play:


This is the important part, you don't need to understand the rest.

Copy everything, including the start tag<html> all the way and including the end tag </html> (include everything in between)

open notepad or wordpad.

click "File and "save as"

when the window opens, change the name to timer.htm and click save

You will need to remember where you saved it...

open your browser and click "file" and "open"

find timer.htm and open it...

open a new browser window click "file and "open"

go find the timer.htm file



click anywhere on the browser window to start the timer

depending on your security settings, you may have click the bar to allow the blocked active content... and click yes when the box pops up...

hope this helps


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 20, 2007 11:27 pm 
Offline

Joined: Thu Nov 30, 2006 12:09 am
Posts: 25
Location: NEW ZEALAND
8)
yip that helped heaps Captain_Chaos thanks :D

_________________
This life is not a practice run..live it to the fullest..
Walk the plank me hearties


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 20, 2007 11:28 pm 
Offline

Joined: Thu Nov 30, 2006 12:09 am
Posts: 25
Location: NEW ZEALAND
8)
yip that helped heaps Captain_Chaos thanks :D

_________________
This life is not a practice run..live it to the fullest..
Walk the plank me hearties


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group