Page 1 of 1

Ready Turns GM Script

PostPosted: Sat May 08, 2010 4:25 am
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

Re: Ready Turns GM Script

PostPosted: Sat May 08, 2010 8:21 am
by ManBungalow
Ahh, another perfect script. Many thanks Chip, I'll use this a lot.

Re: Ready Turns GM Script

PostPosted: Sat May 08, 2010 8:47 am
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);   
           }

Re: Ready Turns GM Script

PostPosted: Sat May 08, 2010 2:03 pm
by ManBungalow
It seems the counter doesn't account for speed games, which is a little drawback..

Re: Ready Turns GM Script

PostPosted: Sat May 08, 2010 7:53 pm
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.

Re: Ready Turns GM Script

PostPosted: Mon May 10, 2010 3:48 pm
by Caymanmew
says i have turns to play yet i dont

Re: Ready Turns GM Script

PostPosted: Mon May 10, 2010 8:01 pm
by chipv
caymanmew wrote:says i have turns to play yet i dont


Did you log in as someone else?

Re: Ready Turns GM Script

PostPosted: Tue May 11, 2010 7:12 am
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

Re: Ready Turns GM Script

PostPosted: Thu May 13, 2010 5:03 pm
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...

Re: Ready Turns GM Script

PostPosted: Thu May 13, 2010 9:00 pm
by phantomzero
this works great! I can be in the forums, and know when I gots 1 turns!

Re: Ready Turns GM Script

PostPosted: Thu May 20, 2010 11:30 pm
by fumandomuerte
This also works with google chrome ;)

Re: Ready Turns GM Script

PostPosted: Mon May 31, 2010 3:26 pm
by chipv
Will be replacing this with something much better and more accurate hopefully soon.

Re: Ready Turns GM Script

PostPosted: Thu Jul 01, 2010 6:23 pm
by chipv
This is now retired.

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

viewtopic.php?f=527&t=121144

Re: Ready Turns GM Script

PostPosted: Wed Aug 10, 2011 3:04 pm
by Calidrmr
moved by Calidrmr 8/10/11
reason: tool retired
shadow left for 72 hours