Ready Turns GM Script

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Locked
User avatar
chipv
Head Tech
Head Tech
Posts: 3104
Joined: Mon Apr 28, 2008 5:30 pm

Ready Turns GM Script

Post by chipv »

Image

Simple script implementing this suggestion

viewtopic.php?f=4&t=104987

Install script by clicking on this

http://userscripts.org/scripts/source/76266.user.js
ManBungalow
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: Ready Turns GM Script

Post by ManBungalow »

Ahh, another perfect script. Many thanks Chip, I'll use this a lot.
Image
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Ready Turns GM Script

Post by Dako »

I've modified script a bit to show "0 turns" as well.

Here is the onload function if you need it:

Code: Select all

onload: function(responseDetails) {
             var parser = new DOMParser();
             var dom = parser.parseFromString(responseDetails.responseText,"application/xml");
             var items = dom.getElementsByTagName('item');
             var ready = 0;
             for(var y=0; y<items.length;y++) {
                var title = items[y].getElementsByTagName('title')[0].firstChild.nodeValue;
                if(title.match(/READY/)) ready++;
             }
         var mygames = leftdivs[lf].getElementsByTagName('li')[0].getElementsByTagName('a')[0];          
         var span = mygames.appendChild(document.createElement('span'));
         span.className = "inbox";
         if(ready > 1 || ready == 0) span.innerHTML = ' [ ' + ready + ' turns ]';
         else span.innerHTML = ' [ ' + ready + ' turn ]';
         mygames.appendChild(span);   
           }
Image
ManBungalow
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: Ready Turns GM Script

Post by ManBungalow »

It seems the counter doesn't account for speed games, which is a little drawback..
Image
User avatar
chipv
Head Tech
Head Tech
Posts: 3104
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Post by chipv »

ManBungalow wrote:It seems the counter doesn't account for speed games, which is a little drawback..


My bad, forgot about the RSS getting stale and speed games.

New version uploaded, same location.
User avatar
Caymanmew
Clan Director
Clan Director
Posts: 3235
Joined: Tue Feb 10, 2009 7:54 am
Gender: Male
Location: Ottawa

Re: Ready Turns GM Script

Post by Caymanmew »

says i have turns to play yet i dont
Image
User avatar
chipv
Head Tech
Head Tech
Posts: 3104
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Post by chipv »

caymanmew wrote:says i have turns to play yet i dont


Did you log in as someone else?
User avatar
Caymanmew
Clan Director
Clan Director
Posts: 3235
Joined: Tue Feb 10, 2009 7:54 am
Gender: Male
Location: Ottawa

Re: Ready Turns GM Script

Post by Caymanmew »

chipv wrote:
caymanmew wrote:says i have turns to play yet i dont


Did you log in as someone else?


no... but it fine now
Image
User avatar
darth emperor
Posts: 2212
Joined: Fri Nov 03, 2006 12:45 pm

Re: Ready Turns GM Script

Post by darth emperor »

caymanmew wrote:
chipv wrote:
caymanmew wrote:says i have turns to play yet i dont


Did you log in as someone else?


no... but it fine now

yes...in that aspect gets some delay...
Image
User avatar
phantomzero
Posts: 827
Joined: Fri Dec 28, 2007 7:13 pm
Location: 2742 high score 122710

Re: Ready Turns GM Script

Post by phantomzero »

this works great! I can be in the forums, and know when I gots 1 turns!
Image
User avatar
fumandomuerte
Posts: 620
Joined: Sat Dec 29, 2007 1:27 am
Gender: Male
Location: The Cinderella of the Pacific

Re: Ready Turns GM Script

Post by fumandomuerte »

This also works with google chrome ;)
Image
Thanks to the CC staff for the perma-ban on [player]۩░▒▓₪№™℮₪▓▒░۩[/player]!
User avatar
chipv
Head Tech
Head Tech
Posts: 3104
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Post by chipv »

Will be replacing this with something much better and more accurate hopefully soon.
User avatar
chipv
Head Tech
Head Tech
Posts: 3104
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Post by chipv »

This is now retired.

Please use Conquer Club Speed Turns instead, it is much more accurate.

viewtopic.php?f=527&t=121144
User avatar
Calidrmr
Posts: 644
Joined: Wed Sep 12, 2007 5:00 pm
Location: the corner bar...
Contact:

Re: Ready Turns GM Script

Post by Calidrmr »

moved by [player]Calidrmr[/player] 8/10/11
reason: tool retired
shadow left for 72 hours
Image
<Juan_Bottom>You're like the Barry Bonds of drinking. You don't need the practice you just do it because you like it.
Locked

Return to “Tool Archives”