Ikariam Scripts Contents Introduction Scripting is the ability to enhance the user experience, and Gameforge have a section in their Terms and Conditions relating to it. This article describes some of the scripts and extension that allows you to customize the way web-pages look and functions:., which is a extension, found at userscripts. Ikariam Imperator aims to be the premiere script to make playing Ikariam a breeze. Currently it includes only resource/building/military overview tables but I have more planned for the future.
Feb 22nd, 2020
Ikariam Scripts Tampermonkey
Never
Ikariam Scripts Chrome
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- 2. Paste this code to the console and press ENTER.
- 3. Type CPRun(mode) to the console and press ENTER to start the script with the mode you want (0: 2m30s, 1: 7m30s, 2: 15m, 3: 30m, and so on).
- 4. F5 will stop the script. If you want to rerun it, start again from step 1.
- Enjoy!
- */
- var captureBtnList = document.querySelectorAll('a.button.capture'),
- pirateFortress = document.querySelector('#js_CityPosition17Link'),
- progressTime = document.querySelector('#missionProgressTime'),
- captcha = document.querySelector('img.captchaImage');
- var captchaInput = document.querySelector('input#captcha'),
- captchaSubmitBtn = document.querySelector('input.button[value='Capture']');
- var noti =new Audio('https://notificationsounds.com/soundfiles/c6e19e830859f2cb9f7c8f8cacb8d2a6/file-sounds-1128-beyond-doubt-2.mp3');
- setTimeout(CPRun,5*1000, mode);
- elseif(progressTime !=null){
- var ptime = progressTime.innerText.replace(' ',').replace(/D/g,' ').trim().split(' ').map(Number);
- ptime = ptime[0]*3600+ ptime[1]*60+ ptime[2];
- elseif(ptime.length2){
- }
- ptime = ptime[0];
- // alert(ptime);
- setTimeout(CPRun,Math.floor(ptime+Math.random()*5)*1000, mode);
- elseif(pirateFortress.title'Free Building Ground'){
- alert('Pirate fortress hasn't been built in this town!')
- }
- if(captureBtnList.length0){
- setTimeout(CPRun,4*1000, mode);
- elseif(mode >= captureBtnList.length){
- alert('Your pirate fortress hasn't reached the required level to access to this run (mode='+mode+')');
- }
- var captureBtn = captureBtnList[mode]
- click(captureBtn);
- setTimeout(CPRun,Math.floor(Math.random()*5)*1000, mode);
- elseif(pirateFortress !=null){
- setTimeout(CPRun,Math.floor(Math.random()*5)*1000, mode);
- else{
- setTimeout(CPRun,Math.floor(Math.random()*5)*1000, mode);
- }
- return0;
- function click(node){
- var x = rect.x+Math.floor(Math.random()*rect.width), y = rect.y+Math.floor(Math.random()*rect.height);
- 'view': window,
- 'cancelable':true,
- 'screenY': y +Math.floor(Math.random()*50),
- 'clientY': y,
- 'pageY': y,
- node.dispatchEvent(ev);
- }