// ==UserScript==
// @name The West - Selector de Buffs
// @namespace HALCON DE ORO
// @author HALCON DE ORO
// @description Encontrar Buff rapidamente
// @include https://*.the-west.*/game.php*
// @version 5.0
// @downloadURL none
// ==/UserScript==
// translation:Tom Robert(Ingles, Aleman y frances),HALCON DE ORO(Español),pantomas(Polish),tw81(Italiano),gamer(Portugues),Surge(Eslovaco),ruud99(Holandes)
(function (func) {
var script = document.createElement('script');
script.setAttribute('type', 'application/javascript');
script.textContent = '(' + func.toString() + ')();';
document.body.appendChild(script);
document.body.removeChild(script);
})(function () {
BUSCADOR = {
version: '4.2.1',
name: 'Selector de buffs',
author: 'neversleep1911 (Actualizacion de HALCON DE ORO)',
minGame: '2.01',
maxGame: Game.version.toString(),
website: 'https://greasyfork.org/es/scripts/6314',
updateUrl:'http://yourjavascript.com/701360421110/buff.js',
updateAd: 'https://greasyfork.org/es/scripts/6314-the-west-selector-de-buffs',
buff: [],
langs: {
en: {
language: 'English',
adventure: '*Adventures',
work: '*Work',
duel: '*Duels',
energy: '*Energy',
skill: '*Skill points',
fortbattle: '*Fort battles',
speed: '*Speed',
health: '*Health points',
motivationjob: '*Motivation',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Premium/special',
events: '*Events',
chests: '*Open & unpack',
nothingFound: 'No items of this type found!',
},
de: {
language: 'Deutsch',
adventure: '*Abenteuer',
work: '*Arbeit',
duel: '*Duell',
energy: '*Erholung',
skill: '*Fertigkeiten',
fortbattle: '*Fortkampf',
speed: '*Geschwindigkeit',
health: '*Lebenspunkte',
motivation: '*Motivation',
experience: '*Erfahrung',
special: '*Premium/Special',
events: '*Events',
chests: '*Öffnen & Auspacken',
nothingFound: 'Keine Gegenstände dieser Art gefunden!',
},
es: {
language: 'Español',
adventure: 'Aventuras',
work: 'Puntos de trabajo',
duel: 'Duelo',
energy: 'Energía',
skill: 'Habilidades',
fortbattle: 'Batalla',
speed: 'Velocidad',
health: 'Salud',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: 'Experience',
special: 'Premio/especial',
events: 'Eventos',
chests: 'Cajas y cofres',
nothingFound: '¡No tienes de este tipo!',
},
pl: {
language: 'Polish (polski)',
adventure: '*Przygody',
work: '*Prace',
duel: '*Pojedynki',
energy: '*Energia',
skill: '*Umiejętności',
fortbattle: '*Bitwy fortowe',
speed: '*Prędkość',
health: '*HP',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Premia/specjalny',
events: '*Eventy',
chests: '*Przedmioty - Skrzynie',
nothingFound: 'Nie posiadasz żadnych przedmiotów tego typu!',
},
it: {
language: 'italiano',
adventure: '*Avventure',
work: '*Bonus Lavoro',
duel: '*Bonus Duello',
energy: '*Bonus Energia',
skill: '*Bonus Abilità',
fortbattle: '*Bonus Forte',
speed: '*Bonus Velocità',
health: '*Bonus Punti Vita',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Premio/speciale',
events: '*Eventi',
chests: '*Aprire e decomprimere',
nothingFound: 'Non è stato trovato nulla!',
},
pt: {
language: 'português',
adventure: '*Aventuras',
work: '*Buffs Trabalho',
duel: '*Buffs Duelo',
energy: '*Buffs Energia',
skill: '*Buffs Habilidade',
fortbattle: '*Buffs Batalha',
speed: '*Buffs Velocidade',
health: '*Buffs Saúde',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experiência',
special: '*Prêmio/especial',
events: '*Eventos',
chests: '*Abrir e desempacotar',
nothingFound: 'Nenhum item deste tipo encontrado!',
},
fr: {
language: 'français',
adventure: '*Aventures',
work: '*Travail',
duel: '*Duels',
energy: '*Bonus de repos',
skill: '*Aptitudes',
fortbattle: '*Fort bataille',
speed: '*Vitesse',
health: '*Points de vie bonus',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Prime/spéciale',
events: '*Événements',
chests: '*Ouvrir et déballer',
nothingFound: 'Pas d\'objets de cette sorte trouvé!',
},
sk: {
language: 'slovenčina',
adventure: '*Dobrodružstvá',
work: '*Práca',
duel: '*Duely',
energy: '*Energia',
skill: '*Schopnosti',
fortbattle: '*Boje',
speed: '*Cestovanie',
health: '*Zdravie',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Prémia/špeciálne',
events: '*Eventy',
chests: '*Tašky a truhly',
nothingFound: 'Nemáte tento typ!',
},
nl: {
language: 'Nederlands',
adventure: '*Avontuur',
work: '*Werkzaamheid',
duel: '*Duels',
energy: '*Actiepunten',
skill: '*Vaardigheden',
fortbattle: '*Fort gevechten',
speed: '*Snelheid',
health: '*Levenspunten',
motivationjob: 'Motivación de trabajo',
motivationduel: 'Motivación de duelo',
experience: '*Experience',
special: '*Premium/speciaal',
events: '*Events',
chests: '*Openen',
nothingFound: 'Er kon geen voorwerp van dit type worden!',
},
},
updateLang: function () {
var lg = BUSCADOR.langs;
BUSCADOR.lang = lg[localStorage.getItem('scriptsLang')] ? localStorage.getItem('scriptsLang') : lg[Game.locale.substr(0, 2)] ? Game.locale.substr(0, 2) : 'en';
BUSCADORlang = lg[BUSCADOR.lang];
},
};
TheWestApi.register('BUSCADOR', BUSCADOR.name, BUSCADOR.minGame, BUSCADOR.maxGame, BUSCADOR.author, BUSCADOR.website).setGui('
' +'
' + BUSCADOR.name +'
'+ ' v' + BUSCADOR.version + '');;
//Cambio en la interfaz para que entren mas scripts.
$('div#ui_bottomright').css({
'right': '55px'
});
/*
$('div#ui_right').css({
'right': '35px'
});
$('#westforts_link_div').css({
'right': '40px'
});
$('div#ui_menubar').css({
'bottom': '110px'
});
$('div#buffbars').css({
'right': '35px'
});
*/
BUSCADOR.updateLang();
var langBox = new west.gui.Combobox();
for (var j in BUSCADOR.langs)
langBox.addItem(j, BUSCADOR.langs[j].language);
langBox.select(BUSCADOR.lang);
var saveBtn = new west.gui.Button(BUSCADORlang.save, function () {
localStorage.setItem('scriptsLang', langBox.getValue());
BUSCADOR.updateLang();
});
BUSCADOR.MenuButton = function (image, title, onclick) {
var self = this;
this.isHovered = false;
this.onClick = onclick;
var clicked = function (e) {
if (self.onClick) {
self.onClick(self, e);
}
};
var repaint = function () {
var x = !self.isHovered ? 0 : - 25;
self.obj.css('background-position', x + 'px 0px');
};
var mouseIn = function () {
repaint();
};
var mouseOut = function () {
repaint();
};
this.obj = $('