MALATANGGENT LE GROS CUCKENT
unknown
javascript
4 years ago
1.4 kB
5
Indexable
// ==UserScript==
// @name Macro RPG
// @namespace http://tampermonkey.net/
// @version 0.1
// @description bidoz fdp
// @author You
// @match https://farmrpg.com/index.php
// @icon https://www.google.com/s2/favicons?domain=farmrpg.com
// @grant none
// ==/UserScript==
/*
GUIDE POUR ATTARDIN
- F12 -> console javascript
- MacroRPG.autofish(6);
- ^ remplacer id par le numéro de la zone (le dernier chiffre dans l'url quand t'es sur la zone ou tu veux fish)
- MacroRPG.stop(); pour arreter
- ça s'arrete tout seul quand t'as plus de bait
*/
var action;
function stop() {
action = undefined;
}
function runner() {
if (action !== undefined) {
let delay = action();
setTimeout(runner, delay);
}
}
function autofish(id) {
$.ajax({
url: "worker.php?go=fishcaught&id="+id+"&r="+Math.floor(Math.random()*500000),
method: "POST"
}).done(function(data) {
console.log(data);
if (data == "") {
stop();
}
});
return Math.floor((Math.random() * 1000) + 3000);
}
window.MacroRPG = {};
window.MacroRPG.autofish = autofish;
window.MacroRPG = Object.fromEntries(Object.entries(window.MacroRPG).map(([key, f]) => [key, (...args) => {
action = () => f(...args);
runner();
}]));
window.MacroRPG.stop = stop;Editor is loading...