Page 1 of 1

Here is the resign button you've all been whining about

PostPosted: Fri Mar 20, 2015 9:08 pm
by judge_reinhold
Add this to your tampermonkey/greasemonkey, and voila!
It automatically deploys and ends phases. The only thing it doesn't do is handle deferred troops, as far as I know.
You have to keep the window open for it to work. Use it on your speed games and stop getting rated a deadbeat.

-jr


// ==UserScript==
// @name AutoResign
// @namespace http://www.meat.com
// @version 0.1
// @description Will deploy troops and end turn for you. Need to add handling for deferred troop deployment.
// @match *://www.conquerclub.com/game.php?game=*
// @copyright 2014+, jr hahaha ;)
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready( function() {
console.log('Resign running');

/*$("#snapToChat").on('click', function() {
});*/
$("#snapshotState").after('<button id="autoResign" class="auto-resign-off" style="margin-left:12px">RESIGN</button>');
var timer = null,
interval = 3000;
var disabled = false;


$("#autoResign").on('click', function() {
$(this).toggleClass('auto-resign-off auto-resign-on');
if($(this).hasClass('auto-resign-off') ) {
$(this).html('Auto Resign - OFF');
clearInterval(timer);
timer = null;
}
if($(this).hasClass('auto-resign-on') ) {
$(this).html('Auto Resign - ON');
if(timer !== null) return;
timer = setInterval( function() {
if($("#gamebutton_waiting_begin").length > 0) {
$("#gamebutton_waiting_begin").click();
}
if($("#gamebutton_deploy").length > 0) {
$("#gamebutton_deploy").click();
}
if($("#gamebutton_assault_end").length > 0) {
$("#gamebutton_assault_end").click();
}
if($("#gamebutton_reinforce_end").length > 0) {
$("#gamebutton_reinforce_end").click();
}
$("#action_refresh").click();
},interval);
}
});
});

Re: Here is the resign button you've all been whining about

PostPosted: Fri Mar 20, 2015 9:38 pm
by Metsfanmax
If I may suggest a slight improvement, randomly select an entry in the dropdown list for deployment so that you are less likely to favor or disfavor certain players with your automatic drops.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Mar 21, 2015 1:23 am
by nietzsche
Please make it say gg in chat when the gamr is over.

Another useful script would be one that simply hides the games you want to deadbeat, so you basically can forget about them. Who cares about ratings.

You click on resign then the stores the game number and hides it from the active game list, and prevents popups in another speed games. It would also have to skip the games when you click on the jump to the next game. A chat message saying you are deadbeating would also be nice.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Mar 21, 2015 12:44 pm
by judge_reinhold
Metsfanmax wrote:If I may suggest a slight improvement, randomly select an entry in the dropdown list for deployment so that you are less likely to favor or disfavor certain players with your automatic drops.


I was mainly using it for 2-player games so I didn't think of that. I did consider putting in a select box so you could choose which territory to drop on. I suppose I could do both.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Mar 21, 2015 12:46 pm
by judge_reinhold
nietzsche wrote:Please make it say gg in chat when the gamr is over.

Another useful script would be one that simply hides the games you want to deadbeat, so you basically can forget about them. Who cares about ratings.

You click on resign then the stores the game number and hides it from the active game list, and prevents popups in another speed games. It would also have to skip the games when you click on the jump to the next game. A chat message saying you are deadbeating would also be nice.



I'm not premium anymore so I wouldn't be able to test those extra speed game features.

It's too bad CC doesn't employ any coders, or all of this stuff would have been done years ago.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Mar 21, 2015 4:52 pm
by JamesKer1
judge_reinhold wrote:It's too bad CC doesn't employ any coders, or all of this stuff would have been done years ago.


Try the Tech Team, whose direction this is headed.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Apr 04, 2015 8:36 am
by dgz345
judge_reinhold wrote:
nietzsche wrote:Please make it say gg in chat when the gamr is over.

Another useful script would be one that simply hides the games you want to deadbeat, so you basically can forget about them. Who cares about ratings.

You click on resign then the stores the game number and hides it from the active game list, and prevents popups in another speed games. It would also have to skip the games when you click on the jump to the next game. A chat message saying you are deadbeating would also be nice.



I'm not premium anymore so I wouldn't be able to test those extra speed game features.

It's too bad CC doesn't employ any coders, or all of this stuff would have been done years ago.


and im very happy you made your own userscript ;) thats how i started to learn javascript. i looked at BOB and i made a little script for me and my clan.

a resign only works in 1v1 environment kinda. otherwise i can say that it can ruin the games. and there is a reason you cant resign. but you can make this script better probably.

Re: Here is the resign button you've all been whining about

PostPosted: Sat Apr 04, 2015 9:42 pm
by Army of GOD
can you make a script that plays all my games for me?

Re: Here is the resign button you've all been whining about

PostPosted: Sat Apr 04, 2015 9:45 pm
by Metsfanmax
Army of GOD wrote:can you make a script that plays all my games for me?


Seeing as you inevitably stop playing all your games anyway, I'd say the judge has already done this.

Re: Here is the resign button you've all been whining about

PostPosted: Sun Apr 05, 2015 5:43 pm
by DoomYoshi
This is actually the perfect implementation. It gives the same benefit and doesn't give extra games.

Re: Here is the resign button you've all been whining about

PostPosted: Mon Apr 13, 2015 1:16 pm
by owenshooter
DoomYoshi wrote:This is actually the perfect implementation. It gives the same benefit and doesn't give extra games.


i think it is horrible... play without scripts/add ons/plus-a-ma-bobs, use your BRAIN!!! it is amazing how much fun it is to count up all your
terits, figure out what needs to be done and where the bonus is that needs to be broken... this is nothing but another cheat code to dumb down
the CC masses... sigh... the black jesus just had a single tear run down his cheek...-Jésus noir