Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Zajmowanie v2
- // @version 0.1
- // @description Poprawione Auto-Zajmowanie
- // @match http://unia.margonem.pl/
- // @match http://unia.margonem.pl/
- // @grant none
- // ==/UserScript==
- var d = new Date(); d.setTime(d.getTime() + 3600000 * 24 * 30);
- if(getCookie('heroTake') == null)
- setCookie('heroTake','false',d);
- g.loadQueue.push({fun: function () {
- $('<div id="canitakeit">Zajmowanie herosa na czacie</div>').appendTo('#cfg_options').click(function(){
- if($('#canitakeit').attr('style') == 'background-position: 0px -22px'){
- $('#canitakeit').attr('style', 'background-position: 0px 0px');
- setCookie('heroTake','false',d);
- }else{
- $('#canitakeit').attr('style', 'background-position: 0px -22px');
- setCookie('heroTake','true',d);
- }
- });
- if(getCookie('heroTake') == 'true')
- $('#canitakeit').attr('style', 'background-position: 0px -22px');
- else
- $('#canitakeit').attr('style', 'background-position: 0px 0px');
- }, data: ''});
- var j3bac_achaje = newNpc;
- var link = window.location.host.replace("game", "").replace(".margonem.pl", "");
- newNpc = function (p) {
- j3bac_achaje(p);
- for (x in p) {
- if (p[x].wt > 79){
- if(getCookie('heroTake') == 'true')
- chatSend('Zajmuję herosa ' + p[x].nick + '!') ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement