CODIGO #02
var Autobot = {
title: 'Autobot',
version: '3.1',
domain: window['location']['protocol'] + '//bot.grepobot.com/',
botWnd: '',
botPremWnd: '',
botEmailWnd: '',
facebookWnd: '',
isLogged: false,
Account: {
player_id: Game['player_id'],
player_name: Game['player_name'],
world_id: Game['world_id'],
locale_lang: Game['locale_lang'],
premium_grepolis: Game['premium_user'],
csrfToken: Game['csrfToken']
},
trial_time: 0,
premium_time: 0,
facebook_like: 0,
toolbox_element: null,
init: function() {
ConsoleLog.Log('Initialize Autobot', 0);
Autobot['authenticate']();
Autobot['obServer']();
Autobot['isActive']();
Autobot['setToolbox']();
Autobot['initAjax']();
Autobot['initMapTownFeature']();
Autobot['fixMessage']();
Assistant['init']()
},
setToolbox: function() {
Autobot['toolbox_element'] = $('.nui_bot_toolbox')
},
authenticate: function() {
DataExchanger.Auth('login', Autobot.Account, ModuleManager['callbackAuth'])
},
obServer: function() {
$.Observer(GameEvents['notification']['push'])['subscribe']('GRCRTNotification', function() {
$('#notification_area>.notification.getPremiumNotification')['on']('click', function() {
Autobot['getPremium']()
})
})
},
initWnd: function() {
if (Autobot['isLogged']) {
if (typeof Autobot['botWnd'] != 'undefined') {
try {
Autobot['botWnd']['close']()
} catch (F) {};
Autobot['botWnd'] = undefined
};
if (typeof Autobot['botPremWnd'] != 'undefined') {
try {
Autobot['botPremWnd']['close']()
} catch (F) {};
Autobot['botPremWnd'] = undefined
};
Autobot['botWnd'] = Layout['dialogWindow']['open']('', Autobot['title'] + ' v' + Autobot['version'] + '', 500, 350, '', false);
Autobot['botWnd']['setHeight']([350]);
Autobot['botWnd']['setPosition'](['center', 'center']);
var _0x2db2x2 = Autobot['botWnd']['getJQElement']();
_0x2db2x2['append']($('
', {
"\x63\x6C\x61\x73\x73": 'menu_wrapper',
"\x73\x74\x79\x6C\x65": 'left: 78px; right: 14px'
})['append']($('', {
"\x63\x6C\x61\x73\x73": 'menu_inner'
})['prepend'](Autobot['addMenuItem']('AUTHORIZE', 'Account', 'Account'))['prepend'](Autobot['addMenuItem']('CONSOLE', 'Assistant', 'Assistant'))['prepend'](Autobot['addMenuItem']('ASSISTANT', 'Console', 'Console'))['prepend'](Autobot['addMenuItem']('SUPPORT', 'Support', 'Support'))));
if (typeof Autoattack !== 'undefined') {
_0x2db2x2['find']('.menu_inner li:last-child')['before'](Autobot['addMenuItem']('ATTACKMODULE', 'Attack', 'Autoattack'))
};
if (typeof Autobuild !== 'undefined') {
_0x2db2x2['find']('.menu_inner li:last-child')['before'](Autobot['addMenuItem']('CONSTRUCTMODULE', 'Build', 'Autobuild'))
};
if (typeof Autoculture !== 'undefined') {
_0x2db2x2['find']('.menu_inner li:last-child')['before'](Autobot['addMenuItem']('CULTUREMODULE', 'Culture', 'Autoculture'))
};
if (typeof Autofarm !== 'undefined') {
_0x2db2x2['find']('.menu_inner li:last-child')['before'](Autobot['addMenuItem']('FARMMODULE', 'Farm', 'Autofarm'))
};
$('#Autobot-AUTHORIZE')['click']()
}
},
addMenuItem: function(_0x2db2x3, _0x2db2x4, _0x2db2x5) {
return $('')['append']($('', {
"\x63\x6C\x61\x73\x73": 'submenu_link',
"\x68\x72\x65\x66": '#',
"\x69\x64": 'Autobot-' + _0x2db2x3,
"\x72\x65\x6C": _0x2db2x5
})['click'](function() {
Autobot['botWnd']['getJQElement']()['find']('li a.submenu_link')['removeClass']('active');
$(this)['addClass']('active');
Autobot['botWnd']['setContent2'](Autobot['getContent']($(this)['attr']('rel')));
if ($(this)['attr']('rel') == 'Console') {
var _0x2db2x6 = $('.terminal');
var _0x2db2x7 = $('.terminal-output')[0]['scrollHeight'];
_0x2db2x6['scrollTop'](_0x2db2x7)
}
})['append'](function() {
return _0x2db2x5 != 'Support' ? $('', {
"\x63\x6C\x61\x73\x73": 'left'
})['append']($('', {
"\x63\x6C\x61\x73\x73": 'right'
})['append']($('', {
"\x63\x6C\x61\x73\x73": 'middle'
})['html'](_0x2db2x4))) : ''
}))
},
getContent: function(_0x2db2x8) {
if (_0x2db2x8 == 'Console') {
return ConsoleLog['contentConsole']()
} else {
if (_0x2db2x8 == 'Account') {
return Autobot['contentAccount']()
} else {
if (_0x2db2x8 == 'Support') {
return Autobot['contentSupport']()
} else {
if (typeof window[_0x2db2x8] != 'undefined') {
return window[_0x2db2x8]['contentSettings']()
};
return ''
}
}
}
},
contentAccount: function() {
var _0x2db2x9 = {
"\x4E\x61\x6D\x65\x3A": Game['player_name'],
"\x57\x6F\x72\x6C\x64\x3A": Game['world_id'],
"\x52\x61\x6E\x6B\x3A": Game['player_rank'],
"\x54\x6F\x77\x6E\x73\x3A": Game['player_villages'],
"\x4C\x61\x6E\x67\x75\x61\x67\x65\x3A": Game['locale_lang'],
"\x50\x72\x65\x6D\x69\x75\x6D\x3A\x20": ((Autobot['premium_time'] - Timestamp['now']()) >= 0 ? Autobot['secondsToTime'](Autobot['premium_time'] - Timestamp['now']()) + '' : 'No premium' + ''),
"\x54\x72\x69\x61\x6C\x3A": ((Autobot['trial_time'] - Timestamp['now']()) >= 0 ? Autobot['secondsToTime'](Autobot['trial_time'] - Timestamp['now']()) : 'Trial is over') + (Autobot['facebook_like'] == 0 ? 'Get 3 free days!' : '')
};
var _0x2db2xa = $('', {
"\x69\x64": 'account-content',
"\x63\x6C\x61\x73\x73": 'game_table layout_main_sprite gold_icon_right_with_button',
"\x63\x65\x6C\x6C\x73\x70\x61\x63\x69\x6E\x67": '0',
"\x77\x69\x64\x74\x68": '100%'
})['append'](function() {
var _0x2db2xb = 0;
var _0x2db2xc = $('');
$['each'](_0x2db2x9, function(_0x2db2xd, _0x2db2xe) {
_0x2db2xc['append']($('
', {
"\x63\x6C\x61\x73\x73": _0x2db2xb % 2 ? 'game_table_even' : 'game_table_odd'
})['append']($(' | ', {
"\x73\x74\x79\x6C\x65": 'background-color: #DFCCA6;width: 30%;'
})['html'](_0x2db2xd))['append']($(' | ')['html'](_0x2db2xe)));
_0x2db2xb++
});
return _0x2db2xc
});
var _0x2db2xf = FormBuilder['gameWrapper']('Account', 'account_property_wrapper', _0x2db2xa, 'margin-bottom:9px;')[0]['outerHTML'];
_0x2db2xf += $('', {
"\x69\x64": 'grepobanner',
"\x73\x74\x79\x6C\x65": ''
})[0]['outerHTML'];
return _0x2db2xf
},
contentSupport: function() {
return $('', {
"\x69\x64": 'Support_tab',
"\x73\x74\x79\x6C\x65": 'float:left; width:472px;height: 270px;'
})['append']($('')['html']('Grepobot Support'))['append']($('', {
style: 'float: left;'
})['append'](FormBuilder['selectBox']({
id: 'support_type',
name: 'support_type',
label: 'Type: ',
styles: 'width: 167px;margin-left: 18px;',
value: 'Bug report',
options: [{
value: 'Bug report',
name: 'Bug report'
}, {
value: 'Feature request',
name: 'Feature request'
}, {
value: 'Financial',
name: 'Financial'
}, {
value: 'Other',
name: 'Other'
}]
}))['append'](FormBuilder['input']({
id: 'support_input_email',
name: 'Email',
style: 'margin-left: 12px;width: 166px;',
value: '',
type: 'email'
}))['append'](FormBuilder['input']({
id: 'support_input_subject',
name: 'Subject',
style: 'margin-top: 0;width: 166px;',
value: '',
type: 'text'
}))['append'](FormBuilder['textarea']({
id: 'support_textarea',
name: 'Message',
value: ''
}))['append'](FormBuilder['button']({
name: 'Send',
style: 'margin-top: 0;'
})['on']('click', function() {
var _0x2db2x10 = $('#Support_tab')['serializeObject']();
var _0x2db2x11 = false;
if (typeof _0x2db2x10['support_input_email'] === 'undefined' || _0x2db2x10['support_input_email'] == '') {
_0x2db2x11 = 'Please enter your email.'
} else {
if (typeof _0x2db2x10['support_input_subject'] === 'undefined' || _0x2db2x10['support_input_subject'] == '') {
_0x2db2x11 = 'Please enter a subject.'
} else {
if (typeof _0x2db2x10['support_textarea'] === 'undefined' || _0x2db2x10['support_textarea'] == '') {
_0x2db2x11 = 'Please enter a message.'
} else {
if (typeof _0x2db2x10['support_input_email'] !== 'undefined' && !/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/ ['test'](_0x2db2x10['support_input_email'])) {
_0x2db2x11 = 'Your email is not valid!'
}
}
}
};
if (_0x2db2x11) {
HumanMessage['error'](_0x2db2x11)
} else {
DataExchanger.Auth('supportEmail', $['extend']({
csrfToken: Autobot['Account']['csrfToken'],
player_name: Autobot['Account']['player_name'],
player_id: Autobot['Account']['player_id'],
world_id: Autobot['Account']['world_id']
}, _0x2db2x10), function(_0x2db2x9) {
if (_0x2db2x9['success']) {
if (typeof Autobot['botWnd'] != 'undefined') {
try {
Autobot['botWnd']['close']()
} catch (F) {};
Autobot['botWnd'] = undefined
};
HumanMessage['success']('Thank you, your email has been send!')
}
})
}
})))['append']($('', {
style: 'float: right; width: 215px;'
})['append']($('', {
id: 'Facebook_grepobot',
target: '_blank',
href: 'https://www.facebook.com/BotForGrepolis/'
})['html']('
')))
},
checkAlliance: function() {
if (!$('.allianceforum.main_menu_item')['hasClass']('disabled')) {
DataExchanger['members_show'](function(_0x2db2x9) {
if (_0x2db2x9['plain']['html'] != undefined) {
jQuery['each']($(_0x2db2x9['plain']['html'])['find']('#ally_members_body .ally_name a'), function() {
var _0x2db2xe = atob($(this)['attr']('href'));
console['log'](JSON['parse'](_0x2db2xe['substr'](0, _0x2db2xe['length'] - 3)))
})
}
})
}
},
fixMessage: function() {
var _0x2db2x12 = function(_0x2db2x13) {
return function() {
_0x2db2x13['apply'](this, arguments);
$(window)['unbind']('click')
}
};
HumanMessage['_initialize'] = _0x2db2x12(HumanMessage._initialize)
},
getPremium: function() {
if (Autobot['isLogged']) {
$.Observer(GameEvents['menu']['click'])['publish']({
option_id: 'premium'
});
if (typeof Autobot['botPremWnd'] != 'undefined') {
try {
Autobot['botPremWnd']['close']()
} catch (F) {};
Autobot['botPremWnd'] = undefined
};
if (typeof Autobot['botWnd'] != 'undefined') {
try {
Autobot['botWnd']['close']()
} catch (F) {};
Autobot['botWnd'] = undefined
};
Autobot['botPremWnd'] = Layout['dialogWindow']['open']('', 'Autobot v' + Autobot['version'] + ' - Premium', 500, 350, '', false);
Autobot['botPremWnd']['setHeight']([350]);
Autobot['botPremWnd']['setPosition'](['center', 'center']);
var _0x2db2x14 = $('', {
id: 'payment'
})['append']($('', {
id: 'left'
})['append']($('', {
id: 'time_options'
})['append']($('', {
class: 'active'
})['append']($('', {
class: 'amount'
})['html']('1 Month'))['append']($('', {
class: 'price'
})['html']('\u20AC 4,99')))['append']($('')['append']($('', {
class: 'amount'
})['html']('2 Month'))['append']($('', {
class: 'price'
})['html']('\u20AC 9,99'))['append']($('', {
class: 'referenceAmount'
})['append']($('', {
class: 'reference',
style: 'transform: rotate(17deg);'
})['html']('+12 Days '))))['append']($('')['append']($('', {
class: 'amount'
})['html']('4 Months'))['append']($('', {
class: 'price'
})['html']('\u20AC 19,99'))['append']($('', {
class: 'referenceAmount'
})['append']($('', {
class: 'reference',
style: 'transform: rotate(17deg);'
})['html']('+36 Days '))))['append']($('')['append']($('', {
class: 'amount'
})['html']('10 Months'))['append']($('', {
class: 'price'
})['html']('\u20AC 49,99'))['append']($('', {
class: 'referenceAmount'
})['append']($('', {
class: 'reference',
style: 'transform: rotate(17deg);'
})['html']('+120 Days '))))))['append']($('', {
id: 'right'
})['append']($('', {
id: 'pothead'
}))['append']($('', {
id: 'information'
})['append']($('', {
class: 'text'
})['html']('1 month for only \u20AC4,99'))['append']($('', {
class: 'button'
})['html']('Buy'))));
Autobot['botPremWnd']['setContent2'](_0x2db2x14);
var _0x2db2x15 = 0;
$('#time_options li')['on']('click', function() {
$('#time_options li')['removeClass']('active');
$(this)['addClass']('active');
_0x2db2x15 = $(this)['index']();
var _0x2db2x16 = $('#payment #information .text');
if (_0x2db2x15 == 0) {
_0x2db2x16['html']('1 month for only \u20AC4,99')
} else {
if (_0x2db2x15 == 1) {
_0x2db2x16['html']('2 month +12 days for only \u20AC9,99')
} else {
if (_0x2db2x15 == 2) {
_0x2db2x16['html']('4 months +36 days for only \u20AC19,99')
} else {
if (_0x2db2x15 == 3) {
_0x2db2x16['html']('10 months +120 days for only \u20AC49,99')
}
}
}
}
});
$('#payment #information')['on']('click', function() {
var _0x2db2x17 = window['open'](Autobot['domain'] + 'paypal/process.php?payment=' + _0x2db2x15 + '&player_id=' + Autobot['Account']['player_id'], 'grepolis_payment', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,height=650,width=800');
var _0x2db2x18 = setInterval(function() {
if (!_0x2db2x17 || _0x2db2x17['closed']) {
clearInterval(_0x2db2x18);
Autobot['authenticate']()
}
}, 500)
})
}
},
botFacebookWnd: function() {
if (Autobot['isLogged'] && Autobot['facebook_like'] == 0) {
if (typeof Autobot['facebookWnd'] != 'undefined') {
try {
Autobot['facebookWnd']['close']()
} catch (F) {};
Autobot['facebookWnd'] = undefined
};
Autobot['facebookWnd'] = Layout['dialogWindow']['open']('', 'Autobot v' + Autobot['version'] + ' - Get 3 days free!', 275, 125, '', false);
Autobot['facebookWnd']['setHeight']([125]);
Autobot['facebookWnd']['setPosition'](['center', 'center']);
var _0x2db2x14 = $('', {
id: 'facebook_wnd'
})['append']('Like & share and get 3 days free premium.Share');
Autobot['facebookWnd']['setContent2'](_0x2db2x14);
$('.ui-dialog #facebook_wnd')['closest']('.gpwindow_content')['css']({
"\x6C\x65\x66\x74": '-9px',
"\x72\x69\x67\x68\x74": '-9px',
"\x74\x6F\x70": '35px'
});
var _0x2db2x19 = false;
var _0x2db2x1a = false;
var _0x2db2x1b = function() {
if (_0x2db2x19 || _0x2db2x1a) {
Autobot['upgrade3Days']()
};
if (_0x2db2x19 && _0x2db2x1a) {
$.Observer(GameEvents['window']['quest']['open'])['publish']({
quest_type: 'hermes'
});
HumanMessage['success']('You have received 3 days premium! Thank you for sharing.');
if (typeof Autobot['facebookWnd'] != 'undefined') {
try {
Autobot['facebookWnd']['close']()
} catch (F) {};
Autobot['facebookWnd'] = undefined
};
if (typeof Autobot['botWnd'] != 'undefined') {
try {
Autobot['botWnd']['close']()
} catch (F) {};
Autobot['botWnd'] = undefined
}
}
};
if (window['fbAsyncInit'] == undefined) {
window['fbAsyncInit'] = function() {
FB['init']({
appId: '1505555803075328',
xfbml: true,
version: 'v2.4'
});
FB['Event']['subscribe']('edge.create', function(_0x2db2x1c) {
_0x2db2x1a = true;
_0x2db2x1b()
});
FB['Event']['subscribe']('edge.remove', function(_0x2db2x1c) {
_0x2db2x1a = false
})
}
};
if ($('#facebook-jssdk')['length'] <= 0) {
(function(_0x2db2x1d, _0x2db2x1e, _0x2db2x3) {
var _0x2db2x1f, _0x2db2x20 = _0x2db2x1d['getElementsByTagName'](_0x2db2x1e)[0];
if (_0x2db2x1d['getElementById'](_0x2db2x3)) {
return
};
_0x2db2x1f = _0x2db2x1d['createElement'](_0x2db2x1e);
_0x2db2x1f['id'] = _0x2db2x3;
_0x2db2x1f['src'] = '//connect.facebook.net/en_US/sdk.js';
_0x2db2x20['parentNode']['insertBefore'](_0x2db2x1f, _0x2db2x20)
}(document, 'script', 'facebook-jssdk'))
} else {
FB['XFBML']['parse']()
};
$('#facebook_wnd .fb-share')['on']('click', function() {
FB['ui']({
method: 'share',
href: 'https://www.facebook.com/BotForGrepolis/'
}, function(_0x2db2x1c) {
if (_0x2db2x1c && !_0x2db2x1c['error_code']) {
_0x2db2x19 = true;
_0x2db2x1b()
}
})
})
}
},
upgrade3Days: function() {
DataExchanger.Auth('upgrade3Days', Autobot.Account, function(_0x2db2x9) {
if (_0x2db2x9['success']) {
DataExchanger.Auth('login', Autobot.Account, ModuleManager['callbackAuth'])
}
})
},
initAjax: function() {
$(document)['ajaxComplete'](function(_0x2db2x21, _0x2db2x22, _0x2db2x23) {
if (_0x2db2x23['url']['indexOf'](Autobot['domain']) == -1 && _0x2db2x23['url']['indexOf']('/game/') != -1 && _0x2db2x22['readyState'] == 4 && _0x2db2x22['status'] == 200) {
var _0x2db2x24 = _0x2db2x23['url']['split']('?');
var _0x2db2x25 = _0x2db2x24[0]['substr'](6) + '/' + _0x2db2x24[1]['split']('&')[1]['substr'](7);
if (typeof Autobuild !== 'undefined') {
Autobuild['calls'](_0x2db2x25)
};
if (typeof Autoattack !== 'undefined') {
Autoattack['calls'](_0x2db2x25, _0x2db2x22['responseText'])
}
}
})
},
verifyEmail: function() {
if (Autobot['isLogged']) {
DataExchanger['email_validation'](function(_0x2db2x9) {
if (_0x2db2x9['plain']['html'] != undefined) {
DataExchanger.Auth('verifyEmail', {
key: btoa(Autobot['stringify']({
player_id: Autobot['Account']['player_id'],
player_email: $(_0x2db2x9['plain']['html'])['find']('#current_email_adress')['html']()
}))
}, function(_0x2db2x9) {
if (_0x2db2x9['success'] != undefined) {
Autobot['arrowActivated']()
}
})
}
})
}
},
randomize: function(_0x2db2x26, _0x2db2x27) {
return Math['floor'](Math['random']() * (_0x2db2x27 - _0x2db2x26 + 1)) + _0x2db2x26
},
secondsToTime: function(_0x2db2x28) {
var _0x2db2x29 = Math['floor'](_0x2db2x28 / 86400);
var _0x2db2x2a = Math['floor']((_0x2db2x28 % 86400) / 3600);
var _0x2db2x2b = Math['floor'](((_0x2db2x28 % 86400) % 3600) / 60);
return (_0x2db2x29 ? _0x2db2x29 + ' days ' : '') + (_0x2db2x2a ? _0x2db2x2a + ' hours ' : '') + (_0x2db2x2b ? _0x2db2x2b + ' minutes ' : '')
},
timeToSeconds: function(_0x2db2x2c) {
var _0x2db2x2d = _0x2db2x2c['split'](':'),
_0x2db2x1e = 0,
_0x2db2x2e = 1;
while (_0x2db2x2d['length'] > 0) {
_0x2db2x1e += _0x2db2x2e * parseInt(_0x2db2x2d['pop'](), 10);
_0x2db2x2e *= 60
};
return _0x2db2x1e
},
arrowActivated: function() {
var _0x2db2x2f = $('', {
"\x63\x6C\x61\x73\x73": 'helpers helper_arrow group_quest d_w animate bounce',
"\x64\x61\x74\x61\x2D\x64\x69\x72\x65\x63\x74\x69\x6F\x6E": 'w',
"\x73\x74\x79\x6C\x65": 'top: 0; left: 360px; visibility: visible; display: none;'
});
Autobot['toolbox_element']['append'](_0x2db2x2f);
_0x2db2x2f['show']()['animate']({
left: '138px'
}, 'slow')['delay'](10000)['fadeOut']('normal');
setTimeout(function() {
Autobot['botFacebookWnd']()
}, 25000)
},
createNotification: function(_0x2db2x30, _0x2db2x31) {
var _0x2db2x32 = (typeof Layout['notify'] == 'undefined') ? new NotificationHandler() : Layout;
_0x2db2x32['notify']($('#notification_area>.notification')['length'] + 1, _0x2db2x30, '' + 'Autobot' + '' + _0x2db2x31 + '' + 'Version ' + Autobot['version'] + '')
},
toHHMMSS: function(_0x2db2x33) {
var _0x2db2x34 = ~~(_0x2db2x33 / 3600);
var _0x2db2x35 = ~~((_0x2db2x33 % 3600) / 60);
var _0x2db2x36 = _0x2db2x33 % 60;
ret = '';
if (_0x2db2x34 > 0) {
ret += '' + _0x2db2x34 + ':' + (_0x2db2x35 < 10 ? '0' : '')
};
ret += '' + _0x2db2x35 + ':' + (_0x2db2x36 < 10 ? '0' : '');
ret += '' + _0x2db2x36;
return ret
},
stringify: function(_0x2db2x37) {
var _0x2db2x38 = typeof _0x2db2x37;
if (_0x2db2x38 === 'string') {
return '"' + _0x2db2x37 + '"'
};
if (_0x2db2x38 === 'boolean' || _0x2db2x38 === 'number') {
return _0x2db2x37
};
if (_0x2db2x38 === 'function') {
return _0x2db2x37.toString()
};
var _0x2db2x39 = [];
for (var _0x2db2x3a in _0x2db2x37) {
_0x2db2x39['push']('"' + _0x2db2x3a + '":' + this['stringify'](_0x2db2x37[_0x2db2x3a]))
};
return '{' + _0x2db2x39['join'](',') + '}'
},
isActive: function() {
setTimeout(function() {
DataExchanger.Auth('isActive', Autobot.Account, Autobot['isActive'])
}, 180000)
},
town_map_info: function(_0x2db2x3b, _0x2db2x3c) {
if (_0x2db2x3b != undefined && _0x2db2x3b['length'] > 0 && _0x2db2x3c['player_name']) {
for (var _0x2db2x3d = 0; _0x2db2x3d < _0x2db2x3b['length']; _0x2db2x3d++) {
if (_0x2db2x3b[_0x2db2x3d]['className'] == 'flag town') {
if (typeof Assistant !== 'undefined') {
if (Assistant['settings']['town_names']) {
$(_0x2db2x3b[_0x2db2x3d])['addClass']('active_town')
};
if (Assistant['settings']['player_name']) {
$(_0x2db2x3b[_0x2db2x3d])['addClass']('active_player')
};
if (Assistant['settings']['alliance_name']) {
$(_0x2db2x3b[_0x2db2x3d])['addClass']('active_alliance')
}
};
$(_0x2db2x3b[_0x2db2x3d])['append']('' + (_0x2db2x3c['player_name'] || '') + '
');
$(_0x2db2x3b[_0x2db2x3d])['append']('' + _0x2db2x3c['name'] + '
');
$(_0x2db2x3b[_0x2db2x3d])['append']('' + (_0x2db2x3c['alliance_name'] || '') + '
');
break
}
}
};
return _0x2db2x3b
},
checkPremium: function(_0x2db2x3e) {
return $('.advisor_frame.' + _0x2db2x3e + ' div')['hasClass'](_0x2db2x3e + '_active')
},
initWindow: function() {
$('.nui_main_menu')['css']('top', '249px');
$('', {
class: 'nui_bot_toolbox'
})['append']($('', {
class: 'bot_menu layout_main_sprite'
})['append']($('')['append']($('', {
id: 'Autofarm_onoff',
class: 'disabled'
})['append']($('', {
class: 'autofarm farm_town_status_0'
})))['append']($('', {
id: 'Autoculture_onoff',
class: 'disabled'
})['append']($('', {
class: 'autoculture farm_town_status_0'
})))['append']($('', {
id: 'Autobuild_onoff',
class: 'disabled'
})['append']($('', {
class: 'autobuild toolbar_activities_recruits'
})))['append']($('', {
id: 'Autoattack_onoff',
class: 'disabled'
})['append']($('', {
class: 'autoattack sword_icon'
})))['append']($('')['append']($('', {
href: '#',
class: 'botsettings circle_button_settings'
})['on']('click', function() {
if (Autobot['isLogged']) {
Autobot['initWnd']()
}
})['mousePopup'](new MousePopup(DM['getl10n']('COMMON')['main_menu']['settings']))))))['append']($('', {
id: 'time_autobot',
class: 'time_row'
}))['append']($('', {
class: 'bottom'
}))['insertAfter']('.nui_left_box')
},
initMapTownFeature: function() {
var _0x2db2x3f = function(_0x2db2x13) {
return function() {
var _0x2db2x3b = _0x2db2x13['apply'](this, arguments);
return Autobot['town_map_info'](_0x2db2x3b, arguments[0])
}
};
MapTiles['createTownDiv'] = _0x2db2x3f(MapTiles['createTownDiv'])
},
checkAutoRelogin: function() {
if (typeof $['cookie']('pid') !== 'undefined' && typeof $['cookie']('ig_conv_last_site') !== 'undefined') {
var _0x2db2x40 = $['cookie']('ig_conv_last_site')['match'](/\/\/(.*?)\.grepolis\.com/g)[0]['replace']('//', '')['replace']('.grepolis.com', '');
DataExchanger.Auth('checkAutorelogin', {
&a