Advertisement
Nolifeq

`odejmuje wyczerpa

Sep 15th, 2021
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // ==UserScript==
  2. // @name `odejmuje wyczerpa
  3. // @version 1.0
  4. // @author Kasinel
  5. // @match *://*.margonem.pl/
  6. // @exclude https://www.margonem.pl/
  7. // ==/UserScript==
  8.  
  9. var tryb = 1; // on/off
  10. var nick = ["twuj nick"];// nick postaci
  11. var wyczerp = 0; // wyczerp po ktorym uzyje potki
  12.  
  13. LOGOUT = function(){
  14. if( (tryb == 1) && (nick == hero.nick) && (hero.ttl > wyczerp) ){
  15. _g(`moveitem&st=1&id=${itemId('Lutowa butelka utraty wyczerpania')}`);
  16. message('siema eniu');
  17. }
  18. }
  19.  
  20. const _parseInput = parseInput;
  21. parseInput = (a, b, c) => {
  22. LOGOUT()
  23. _parseInput(a,b,c)
  24. };
  25.  
  26. var itemId = function(item) {
  27. for (i in g.item) {
  28. let it = g.item[i];
  29. if (it.name == item && it.loc == "g") {
  30. return parseInt(it.id)
  31. }
  32. }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement