Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name `odejmuje wyczerpa
- // @version 1.0
- // @author Kasinel
- // @match *://*.margonem.pl/
- // @exclude https://www.margonem.pl/
- // ==/UserScript==
- var tryb = 1; // on/off
- var nick = ["twuj nick"];// nick postaci
- var wyczerp = 0; // wyczerp po ktorym uzyje potki
- LOGOUT = function(){
- if( (tryb == 1) && (nick == hero.nick) && (hero.ttl > wyczerp) ){
- _g(`moveitem&st=1&id=${itemId('Lutowa butelka utraty wyczerpania')}`);
- message('siema eniu');
- }
- }
- const _parseInput = parseInput;
- parseInput = (a, b, c) => {
- LOGOUT()
- _parseInput(a,b,c)
- };
- var itemId = function(item) {
- for (i in g.item) {
- let it = g.item[i];
- if (it.name == item && it.loc == "g") {
- return parseInt(it.id)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement