THE SCRIPT WILL NOT OPEN BOXES IF THEY ALL ARE DEPLETED!!!!!!!!
- Navigate to https://www.erepublik.com/en/main/gold-items
- Identify how to open the Developer Console on your browser
- Make sure you have open the Console tab!!!
- Copy the script below
!function e(){let t=erepublik.citizen.boxKeys.crypto_key;if(t<=1){console.log("You have insufficient keys to continue.");return}!function e(t){let o=SERVER_DATA.csrfToken;if(!o){console.error("CSRF token is missing.");return}fetch("https://www.erepublik.com/en/main/buyGoldItems",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest",Accept:"application/json, text/plain, */*","accept-language":navigator.language,origin:"https://www.erepublik.com",referer:document.location.href,"sec-ch-ua":navigator.userAgent,"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":navigator.platform,"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","user-agent":navigator.userAgent},body:`itemId=crypto_box¤cy=crypto_key&amount=${t}&shownPrice=&vipShopItem=false&_token=${o}`,credentials:"include"}).then(e=>e.json()).then(t=>{if(console.log(t),t.boxKeys&&void 0!==t.boxKeys.crypto_key){let o=t.boxKeys.crypto_key,r=o>100?100:o;r>1?setTimeout(()=>e(r),500):console.log("Operation completed. No more keys left.")}else console.error("Failed to update the number of keys from the response.")}).catch(e=>{console.error("Error:",e)})}(t>100?100:t)}();
- Paste it into the console
- Press Enter button
- Read carefully logs produced by the script
To stop the script either reload the page or open any other link on the page to change it.
IMPORTANT!!! To avoid overloading game servers DO NOT start the script earlier than 2-3 seconds before the Day Change!