Conquer Club

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.

Ready Turns GM Script

Postby chipv on Sat May 08, 2010 4:25 am

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
User avatar
Major chipv
Head Tech
Head Tech
 
Posts: 2817
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Postby ManBungalow on Sat May 08, 2010 8:21 am

Ahh, another perfect script. Many thanks Chip, I'll use this a lot.
Image
Colonel 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

Postby Dako on Sat May 08, 2010 8:47 am

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
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Ready Turns GM Script

Postby ManBungalow on Sat May 08, 2010 2:03 pm

It seems the counter doesn't account for speed games, which is a little drawback..
Image
Colonel 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

Postby chipv on Sat May 08, 2010 7:53 pm

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
Major chipv
Head Tech
Head Tech
 
Posts: 2817
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Postby Caymanmew on Mon May 10, 2010 3:48 pm

says i have turns to play yet i dont
Major Caymanmew
Clan Director
Clan Director
 
Posts: 3197
Joined: Tue Feb 10, 2009 7:54 am
Location: Ottawa

Re: Ready Turns GM Script

Postby chipv on Mon May 10, 2010 8:01 pm

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


Did you log in as someone else?
User avatar
Major chipv
Head Tech
Head Tech
 
Posts: 2817
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Postby Caymanmew on Tue May 11, 2010 7:12 am

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
Major Caymanmew
Clan Director
Clan Director
 
Posts: 3197
Joined: Tue Feb 10, 2009 7:54 am
Location: Ottawa

Re: Ready Turns GM Script

Postby darth emperor on Thu May 13, 2010 5:03 pm

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
Sergeant 1st Class darth emperor
 
Posts: 2212
Joined: Fri Nov 03, 2006 12:45 pm

Re: Ready Turns GM Script

Postby phantomzero on Thu May 13, 2010 9:00 pm

this works great! I can be in the forums, and know when I gots 1 turns!
Image
User avatar
Sergeant 1st Class phantomzero
 
Posts: 827
Joined: Fri Dec 28, 2007 7:13 pm
Location: 2742 high score 122710

Re: Ready Turns GM Script

Postby fumandomuerte on Thu May 20, 2010 11:30 pm

This also works with google chrome ;)
Image
Thanks to the CC staff for the perma-ban on ۩░▒▓₪№™℮₪▓▒░۩!
User avatar
Captain fumandomuerte
 
Posts: 620
Joined: Sat Dec 29, 2007 1:27 am
Location: The Cinderella of the Pacific

Re: Ready Turns GM Script

Postby chipv on Mon May 31, 2010 3:26 pm

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

Re: Ready Turns GM Script

Postby chipv on Thu Jul 01, 2010 6:23 pm

This is now retired.

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

viewtopic.php?f=527&t=121144
User avatar
Major chipv
Head Tech
Head Tech
 
Posts: 2817
Joined: Mon Apr 28, 2008 5:30 pm

Re: Ready Turns GM Script

Postby Calidrmr on Wed Aug 10, 2011 3:04 pm

moved by Calidrmr 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.
User avatar
Corporal Calidrmr
 
Posts: 641
Joined: Wed Sep 12, 2007 5:00 pm
Location: the corner bar...


Return to Tool Archives

Who is online

Users browsing this forum: No registered users