Fragile Reality

Non-stop Poster
Reaction score
300
Author
oreg
Contributors
N/A
Quickbar Entry
javascript:
var wood = 0,
stone = 0,
iron = 0;
$.ajaxSetup({
complete: function (xhr,settings,response) {
if (xhr.responseText.includes("claim")) {
const object = xhr.responseJSON.response.rewards_all;
for (const property in object) {
wood += parseInt(object[property].wood);
stone += parseInt(object[property].stone);
iron += parseInt(object[property].iron);
}
alert(`Wood: ${wood} \nClay: ${stone} \nIron: ${iron}`);
}
}
});
void(0);
Public?
Public
You have to put this to one of your keyboard numbers. Open the rewards in the new quest system, press the binded button and claim one reward. After it a popup will show how many resources do you have in rewards.
 
Upvote 0
Top