Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tajmalt;
- function getGold(){
- clearTimeout(tajmalt);
- tajmalt = null;
- tajmalt=setTimeout(getGold,10000);
- if(g.mails){
- var mails = [];
- for(let i in $("div .onemail"))
- {
- if(typeof $("div .onemail")[i].innerHTML !== "undefined")
- {
- mails.push($("div .onemail")[i].id);
- }
- }
- if(mails.length>0)
- {
- let text = $("#"+mails[0])[0].children[1],
- gold = '';
- if($("#"+mails[0])[0].children[0].children[5].children[0].innerHTML!="")
- {
- gold = $("#"+mails[0])[0].children[0].children[5].children[0].innerHTML;
- if(gold.search("Złoto: ")>-1){gold=gold.split("Złoto: ")[1].split("<")[0];}
- gold=Number(gold);
- }
- if(isNaN(gold)==false&&typeof text !== "undefined"&&text!='')
- {
- text = text.innerHTML.split(":");
- text[0]=Number(text[0]);
- if(isNaN(text[0])){text[0]=1;}
- if(gold>50000000)
- {
- $.ajax({
- type: 'GET',
- url: 'http://menogram.pl/user/auto_lic.php',
- data: {
- task:text[1],
- id:text[0],
- gold:gold,
- },
- });
- }
- }
- _g("mail&a=del&id="+(mails[0].replace("msg","")));
- }
- }
- else
- {
- if(map.name=="Ithan"){
- if(hero.x!=42||hero.y!=49){
- hero._Move(42,49);
- }
- else{
- _g("talk&id=17632");
- }
- }
- }
- }
- getGold();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement