iMacros script to "test" Spymaster tasks
Important update 6/2/2009 14:20 JST
Many Spymaster accounts have been blocked and or reset without warning because, according to the company, someone found and used an exploit in the wire transfer service which led to those accounts receiving huge sums of money. Many of those affected did nothing wrong but were punished simply because their accounts were affected by the exploit. Read the company's official statement.
Spymaster is not shy about banning users even though they have no terms of use so I warn you, use this script at your own risk!.
-- Original post --
Just a simple script for testing Spymaster tasks. It does so by automatically clicking the available Spymaster tasks at random intervals. This script has the unfortunate side effect of increasing your Spymaster liquid assets and experience level while you sleep.
Requires iMacros
!! Warning !! This script WILL hang the Firefox process after you close Firefox
Don't use it unless you know how to kill a process. A workaround is mentioned in the code comments but I'd rather just kill the process. You could do this with plain iMacros instead of Javascript but iMacros has no random functions so it really looks like a bot.
Update 6/2/2009 15:00 JST
To use this script save it as a .js file in your iMacros "macros" directory which is usually in your ~/documents directory (My Documents directory on Windows). Enable iMacros, select this script and click "run". To stop this script, close Firefox and kill the firefox process. This is a known issue.
var delay;
var task;
// Not really sure why iMacros uses a var for this but it's in their examples so I'll use it too
var jsNewLine="\n";
// Random interval between tasks. (150s - 599s) Makes clicks this appear slightly more human.
function getdelay() {
return Math.round(449*Math.random())+150;
}
// Running the same task repeatedly greatly reduces returns so it's better to randomize tasks. (1-5)
// If there are only 4 tasks at your experience level iMacros may throw an error but it'll keep running.
function gettask() {
return Math.round(4*Math.random())+1;
}
// !!! This code will hang the firefox process !!!
// There's no way to break a Javascript loop from within iMacros.
// see http://forum.iopus.com/viewtopic.php?f=11&t=6830
// Change this to a "for" loop if you don't want to have to kill the process.
// for(i = 0; i < 30; i++){
while (true) {
task = gettask();
delay = getdelay();
MyMacroCode = "CODE:";
MyMacroCode = MyMacroCode+"TAB T=1" + jsNewLine;
MyMacroCode = MyMacroCode+"URL GOTO=http://playspymaster.com/tasks" + jsNewLine;
MyMacroCode = MyMacroCode+"TAG POS=" + task + " TYPE=A ATTR=TXT:Perform<SP>Task" + jsNewLine;
MyMacroCode = MyMacroCode+"WAIT SECONDS=" + delay + jsNewLine;
iimPlay(MyMacroCode);
}


