// ==UserScript== // @name The West - Quick items search // @namespace TomRobert // @author neversleep1911 (modified by Darius II; updated by Tom Robert) // @description Find sets and buffs quick and easy! // @include http*://*.the-west.*/game.php* // @version 1.0.8 // @grant none // @downloadURL none // ==/UserScript== (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 () { var quicksearch = { version: '1.0.8', name: 'Quick items search', author: 'neversleep1911 (modified by Darius II; updated by Tom Robert)', minGame: '2.05', maxGame: Game.version.toString(), website: 'https://greasyfork.org/scripts/7434', }; langs = { en_US: { language: 'None (English)', ApiGui: 'Searching for specific sets or buffs? Easy job using this script.
Just some clicks and the items, which you wanted to find, are showed in your inventory.', contact: 'Contact', adventure: '-Adventures', work: '-Work', duel: '-Duels', energy: '-Energy', skill: '-Skill points', fk: '-Fort battles', speed: '-Speed', lp: '-Health points', special: '-Premium/special', event: '-Events', chests: '-Open & unpack', gold: 'Golden set', greenhorn: 'Greenhorn set', holiday: 'Holiday set', dancer: 'Dancer\'s set', farmer: 'Farmer\'s set', gentleman: 'Gentleman\'s set', indian: 'Indian\'s set', mexican: 'Mexivan\'s set', pilgrimF: 'Pilgrim\'s dress set', pilgrimM: 'Pirlgrim\'s set', charlatan: 'Charlatan\'s set', sleepy: 'Sleepyhead', twtimes: 'TW-Times Set', collector: 'Collector\'s set', easterbunny: 'Easter bunny set', firefighter: 'Firefighter set', walker: 'Walker set', natty: 'Natty Bumppo\'s set', allan: 'Allan Quatermain\'s set', chingachgook: 'Chingachgook\'s set', cupid: 'Cupid\'s set', cartwright: 'Cartwright\'s set', doc: 'Doc\'s set', freeman: 'Freeman\'s set', party: 'Party set', fair: 'Fair set', soap: 'Soap opera set', christopher: 'Christopher\'s parade set', wood: 'Wood magician\'s set', will: 'Will Munny\'s set', jeremiah: 'Jeremiah Johnson\'s set', elfego: 'Elfego Baca\'s set', independence: 'Clothing of Independence', fire: 'Fire and Ice', eighthour: 'Eight-hour day supply', franke: 'Frank Eaton\'s set', george: 'George McJunkin\'s set', king: 'King Fisher\'s set', bavarian: 'Traditional Bavarian Outfit', prairie: 'Prairie Set', adventurer: 'Adventurer Set', duelset: 'Duel Set', worker: 'Worker Set', soldier: 'Soldier Set', thunder: 'Thunder and lightning', nightmare: 'Nightmare set', confederate: 'Confederate Set', noname: 'The Set with no name', winter: 'Winter Set', valentine: 'Valentin\'s set', lover: 'Lover\'s set', stpatrick: 'St. Patrick\'s Set', lonerider: 'Lone Rider', cullen: 'Cullen Baker\'s set', bass: 'Bass Reeve\'s set', pat: 'Pat Desmond\'s set', easter: 'Easter Showdown set', steam: 'Steam and Punk', blackbart: 'Black Bart\'s set', bob: 'Bob Dalton\'s set', jesse: 'Jesse Chisholm\'s set', thomas: 'Thomas Jefferson\'s Independence set', nihon: 'Nihon no Buki', outlaw: 'The Outlaw\'s gear', bill: 'Bill Doolin\'s set', deadwood: 'Deadwood Dick\'s set', frankj: 'Frank Jame\'s set', ludwig: 'Ludwig\'s Oktoberfest set', manitus: 'Manitu\'s weapons', gonzales: 'Gonzales\' Speedstar Set', catrina: 'La Catrina set', mariachi: 'El Mariachi set', nobleman: 'Nobleman\'s set', aztecan: 'Aztecan set', ghost: 'Ghosts of Christmas set', romeo: 'Romeo Oh Romeo', bartender: 'Bartender\'s Set', nothingFoundTitle: 'Search cancelled', nothingFound: 'No items of this type found!', }, de_DE: { language: 'German (Deutsch)', ApiGui: 'Schnelles Finden von Setgegenständen und Buffs im Inventar.', contact: 'Kontakt', adventure: '-Abenteuer-Buffs', work: '-Arbeiten-Buffs', duel: '-Duell-Buffs', energy: '-Erholungs-Buffs', skill: '-Fertigkeiten-Buffs', fk: '-Fortkampf-Buffs', speed: '-Geschwindigkeits-Buffs', lp: '-Lebenspunkte-Buffs', special: '-Premium/Special', event: '-Events', chests: '-Öffnen & Auspacken', gold: 'Goldenes Set', greenhorn: 'Greenhorset', holiday: 'Feiertagsset', dancer: 'Set der Tänzerin', farmer: 'Farmerset', gentleman: 'Set des Gentleman', indian: 'Indianerset', mexican: 'Mexikanerset', pilgrimF: 'Pilgerinset', pilgrimM: 'Pilgerset', charlatan: 'Quacksalberset', sleepy: 'Morgenmuffelset', twtimes: 'TWTimes-Set', collector: 'Sammlerset', easterbunny: 'Gewand des Osterhasen', firefighter: 'Feuerwehrset', walker: 'Walker Set', natty: 'Natty Bumppos Set', allan: 'Allan Quatermains Set', chingachgook: 'Chingachgooks Set', cupid: 'Amors Verkleidung', cartwright: 'Cartwrights Set', doc: 'Docs Set', freeman: 'Freemans Set', party: 'Party-Set', fair: 'Jahrmarktsset', soap: 'Seifenoperset', christopher: 'Christophers Paradeset', wood: 'Set des Holzmagiers', will: 'Will Munnys Set', jeremiah: 'Jeremiah Johnsons Set', elfego: 'Elfego Bacas Set', independence: 'Kleider der Unabhängigkeit', fire: 'Feuer und Eis', eighthour: '8-Stunden-Arbeitstag', franke: 'Frank Eatons Set', george: 'George McJunkins Set', king: 'King Fishers Set', bavarian: 'Bayrisches Outfit', prairie: 'Prärie-Set', adventurer: 'Abenteurerset', duelset: 'Duellantenset', worker: 'Arbeiterset', soldier: 'Soldatenset', thunder: 'Blitz und Donner', nightmare: 'Albtraumset', confederate: 'Konföderierten-Set', noname: 'Das Set ohne Namen', winter: 'Winterset', valentine: 'Valentins Set', lover: 'Set des Liebhabers', stpatrick: 'St. Patrick\'s Set', lonerider: 'Lone Rider', cullen: 'Cullen Bakers Set', bass: 'Bass Reeves Set', pat: 'Pat Desmonds Set', easter: 'Ostershowdown-Set', steam: 'Steam und Punk', blackbart: 'Black Barts Set', bob: 'Bob Daltons Set', jesse: 'Jesse Chisholms Set', thomas: 'Thomas Jeffersons Unabhängigkeitsset', nihon: 'Nihon no Buki', outlaw: 'Banditenausrüstung', bill: 'Bill Doolins Set', deadwood: 'Deadwood Dicks Set', frankj: 'Frank James Set', ludwig: 'Ludwigs Oktoberfest Set', manitus: 'Manitus Waffen', gonzales: 'Gonzales\' Speedstar Set', catrina: 'La-Catrina-Set', mariachi: 'El-Mariachi-Set', nobleman: 'Set des Adeligen', aztecan: 'Aztekenset', ghost: 'Set der Geister der Weihnacht', romeo: 'Romeo Oh Romeo', bartender: 'Set des Barkeepers', nothingFoundTitle: 'Suche abgebrochen', nothingFound: 'Keine Gegenstände dieser Art gefunden!', }, es_ES: { language: 'Spanish (español)', ApiGui: 'Este script nos ayuda a que, con solo 2 clicks, poder ver todos los tipos de buff o conjuntos que tenemos para una cosa específica.
Le damos al boton de la derecha con forma de "B" y elegimos el tipo de buff que queramos y nos saldra en el inventario.', contact: 'Contacto', adventure: '-Buffs de Aventuras', work: '-Buffs de Trabajo', duel: '-Buffs de Duelo', energy: '-Buffs Energia', skill: '-Buffs de Habilidades', fk: '-Buffs de Batalla', speed: '-Buffs de Velocidad', lp: '-Buffs de Salud', special: '-Premio/especial', event: '-Eventos', chests: '-Cajas y cofres', gold: 'Equipo de oro', greenhorn: 'Kit de novato', holiday: 'Kit festivo', dancer: 'Conjunto de la bailarina', farmer: 'Conjunto del campesino', gentleman: 'Conjunto del caballero', indian: 'Conjunto del indio', mexican: 'Conjunto del mexicano', pilgrimF: 'Conjunto de la peregrina', pilgrimM: 'Conjunto del peregrino', charlatan: 'Conjunto del matasanos', sleepy: 'Gruñón mañanero', twtimes: 'TW Times set', collector: 'Conjunto de Coleccionista', easterbunny: 'Conjunto de conejo de Pascua', firefighter: 'Equipo para bombero', walker: 'Conjunto de Walker', natty: 'Set de Natty Bumppo', allan: 'Set de Allain Quatermain', chingachgook: 'Set de Chingachgook', cupid: 'Set de Cupido', cartwright: 'Set de Cartwright', doc: 'Set de Doc', freeman: 'Set de Freeman', party: 'Conjunto de fiesta', fair: 'Set de feriante', soap: 'Set de famosa', christopher: 'Set de cabalgata de Christopher', wood: 'Conjunto de madera de mago', will: 'Set de Will Munny', jeremiah: 'Set de Jeremiah Johnson', elfego: 'Set de Elfego Baca', independence: 'Ropa de la Independencia', fire: 'Hielo y fuego', eighthour: 'Suministra heno ocho horas', franke: 'Set de Frank Eaton', george: 'Set de George Mcjunkin', king: 'Set de King Fisher', bavarian: 'Equipo tradicional de Baviera', prairie: 'Conjunto de la pradera', adventurer: 'Conjunto de Aventurero', duelset: 'Conjunto de duelo', worker: 'Conjunto de trabajador', soldier: 'Conjunto de Soldado', thunder: 'Rayos y luces', nightmare: 'Set de pesadilla', confederate: 'Set confederado', noname: 'El set sin nombre', winter: 'Set del invierno', valentine: 'Herramienta de San Valentin', lover: 'Conjunto del Lover', stpatrick: 'Conjunto de St. Patrick', lonerider: 'Llanero solitario', cullen: 'Set de Cullen Baker', bass: 'Set de Bass Reeves', pat: 'Set de Pat Desmond', easter: 'Set de Pascua', steam: 'Vapor y punk', blackbart: 'Set de Black Bart', bob: 'Set de Bob Dalton', jesse: 'Set de Jesse Chisholm', thomas: 'Conjunto de la independencia de Thomas Jefferson', nihon: 'Nihon no Buki', outlaw: 'Equipo de forajido', bill: 'Set de Bill Doolin', deadwood: 'Set de Deadwood Dick', frankj: 'Set de Frank James', ludwig: 'Conjunto de Ludwif Oktoberfest', manitus: 'Armas de Manitu', gonzales: 'Conjunto de la estrella de la velocidad Gonzales', catrina: 'Conjunto de Catrina', mariachi: 'Conjunto Mariachi', nobleman: 'Set de Noble', aztecan: 'Set Azteca', ghost: 'Conjunto del fantasma de la navidad', romeo: 'Romeo oh Romeo', bartender: 'Conjunto de Barman', nothingFoundTitle: 'Búsqueda cancelado', nothingFound: 'No tienes de este tipo!', }, pl_PL: { language: 'Polish (polski)', ApiGui: 'Wyszukiwarka wzmocnień, przedmiotów i zestawy.
Skrypt szuka w plecaku zestawy oraz inne przedmioty danego typu.', contact: 'Kontakt', adventure: '-Przygody', work: '-Punkty pracy', duel: '-Pojedynki', energy: '-Energia', skill: '-Umiejętności', fk: '-Bitwy fortowe', speed: '-Prędkość', lp: '-HP', special: '-Premia/specjalny', event: '-Eventy', chests: '-Przedmioty - Skrzynie', gold: 'Złoty komplet', greenhorn: 'Zestaw nowicjusza', holiday: 'Zestaw świąteczny', dancer: 'Komplet Tancerki', farmer: 'Komplet Farmera', gentleman: 'Komplet Dżentelmena', indian: 'Komplet Dżentelmena', mexican: 'Komplet Meksykanina', pilgrimF: 'Komplet Pielgrzyma(damski)', pilgrimM: 'Komplet Pielgrzyma', charlatan: 'Komplet Konowała', sleepy: 'Śpioszek', twtimes: 'Zestaw "Echo The West"', collector: 'Zestaw kolekcjonera', easterbunny: 'Zestaw zajączka wielkanocnego', firefighter: 'Komplet strażaka', walker: 'Zestaw Walkera', natty: 'Zestaw Nathaniela Bumppo', allan: 'Zestaw Allana Quatermaina', chingachgook: 'Zestaw Chingachgooka', cupid: 'Zestaw kupidyna', cartwright: 'Zestaw Cartwrighta', doc: 'Zestaw Doca', freeman: 'Zestaw Freemana', party: 'Zestaw imprezowy', fair: 'Zestaw cyrkowy', soap: 'Zestaw opery mydlanej', christopher: 'Zestaw paradny Christophera', wood: 'Zestaw leśnego maga', will: 'Zestaw Willa Munnyego', jeremiah: 'Zestaw Jeremiaha Johnsona', elfego: 'Zestaw Elfego Baca', independence: 'Zestaw Niepodległości', fire: 'Ogień i lód', eighthour: 'Zestaw Ośmiogodzinny', franke: 'Zestaw Franka Eatona', george: 'Zestaw Georga McJunkina', king: 'Zestaw Kinga Fishera', bavarian: 'Tradycyjny strój bawarski', prairie: 'Zestaw preriowy', adventurer: 'Zestaw poszukiwacza przygód', duelset: 'Zestaw zawadiaki', worker: 'Zestaw robotnika', soldier: 'Zestaw żołnierza', thunder: 'Grzmot i piorun', nightmare: 'Zestaw koszmaru', confederate: 'Zestaw konfederatów', noname: 'Nienazwany zestaw', winter: 'Zimowe zestaw', valentine: 'Walentynkowa zestaw', lover: 'Uroczy zestaw', stpatrick: 'Zestaw św. Patryka', lonerider: 'Samotny strażnik', cullen: 'Zestaw Cullena Bakera', bass: 'Zestaw Bassa Reevesa', pat: 'Zestaw Pata Desmonda', easter: 'Zestaw wielkanocnej rozgrywki', steam: 'Para i Punk', blackbart: 'Zestaw Black Barta', bob: 'Zestaw Boba Daltona', jesse: 'Zestaw Jessego Chisholma', thomas: 'Zestaw Niepodległości Jeffersona', nihon: 'Nihon no Buki', outlaw: 'Sprzęt wyjętego spod prawa', bill: 'Zestaw Billa Doolinsa', deadwood: 'Zestaw Deadwooda Dicksa', frankj: 'Zestaw Franka Jamesa', ludwig: 'Zestaw Ludwika Oktoberfest', manitus: 'Bronie Manitu', gonzales: 'Zestaw Speedy Gonzales', catrina: 'Komplet La Catriny', mariachi: 'Komplet Mariachi', nobleman: 'Komplet Szlachcica', aztecan: 'Aztecki komplet', ghost: 'Zestaw Ducha świąt Bożego Narodzenia', romeo: 'Romeo oh Romeo', bartender: 'Zestaw Barmana', nothingFoundTitle: 'Szukam...', nothingFound: 'Nie posiadasz żadnych przedmiotów tego typu!', }, it_IT: { language: 'Italian (italiano)', ApiGui: 'Searching for specific sets or buffs? Easy job using this script.
Just some clicks and the items, which you wanted to find, are showed in your inventory.', contact: 'Contact', adventure: '-Avventure', work: '-Bonus Lavoro', duel: '-Bonus Duello', energy: '-Bonus Energia', skill: '-Bonus Abilità', fk: '-Bonus Forte', speed: '-Bonus Velocità', lp: '-Bonus Punti Vita', special: '-Premio/speciale', event: '-Eventi', chests: '-Aprire e decomprimere', gold: 'Abito dorato', greenhorn: 'Set del novizio', holiday: 'Set vacanze', dancer: 'Abito della ballerina', farmer: 'Abito del contadino', gentleman: 'Abito da gentiluomo', indian: 'Abito da Indiano', mexican: 'Abito da Messicano', pilgrimF: 'Vestito da pellegrino', pilgrimM: 'Abito da Pellegrino', charlatan: 'Abito da ciarlatano', sleepy: 'Dormiglione', twtimes: 'Set del giornalaio', collector: 'Set del Collezionista', easterbunny: 'Set del coniglio pasquale', firefighter: 'Abito da pompiere', walker: 'Set di Walker', natty: 'Set di Natty Bumppo', allan: 'Set di Allan Quatermain', chingachgook: 'Set di Chingachgook', cupid: 'Set di Cupido', cartwright: 'Set di Cartwright', doc: 'Set di Doc', freeman: 'Set di Freeman', party: 'Abito della festa', fair: 'Set della fiera', soap: 'Set della Soap Opera', christopher: 'Set da parata di Christopher', wood: 'Set mago del legno', will: 'Set di Will Munny', jeremiah: 'Set di Jeremiah Johnson', elfego: 'Set di Elfego Baca', independence: 'Abiti dell\'indipendenza', fire: 'Fuoco e Ghiaccio', eighthour: 'Fornitura di fieno per otto ore', franke: 'Set di Frank Eaton', george: 'Set di George McJunkin', king: 'Set di King Fisher', bavarian: 'Abiti tradizionali bavaresi', prairie: 'Set della prateria', adventurer: 'Set dell\'avventuriero', duelset: 'Set del duellante', worker: 'Set del lavoratore', soldier: 'Set del soldato', thunder: 'Tuono e fulmine', nightmare: 'Set dell\'incubo', confederate: 'Set confederato', noname: 'Il set senza nome', winter: 'Set inverno', valentine: 'Set di San Valentino', lover: 'Set dell\'amore', stpatrick: 'Set di San Patrizio', lonerider: 'Lone Rider', cullen: 'Set di Cullen Baker', bass: 'Set di Bass Reeves', pat: 'Set di Pat Desmond', easter: 'Set del regolamento dei conti di Pasqua', steam: 'Steam and Punk', blackbart: 'Set di Black Bart', bob: 'Set di Bob Dalton', jesse: 'Set di Jesse Chisholm', thomas: 'Set dell\'Indipendenza di Thomas Jefferson', nihon: 'Nihon no Buki', outlaw: 'Attrezzatura del Fuorilegge', bill: 'Set di Bill Doolin', deadwood: 'Set di Deadwood Dick', frankj: 'Set di Frank James', ludwig: 'Set dell\'Oktoberfest di Ludwig', manitus: 'Armi di Manitu', gonzales: 'Set del velocista Gonzales', catrina: 'Set di La Catrina', mariachi: 'Set di El Mariachi', nobleman: 'Set di Nobleman', aztecan: 'Set azteco', ghost: 'Set degli spiriti di Natale', romeo: 'Romeo Oh Romeo', bartender: 'Set del barista', nothingFoundTitle: 'Ricerca di articoli', nothingFound: 'Non è stato trovato nulla!', }, pt_PT: { language: 'Portuguese (português)', ApiGui: 'Searching for specific sets or buffs? Easy job using this script.
Just some clicks and the items, which you wanted to find, are showed in your inventory.', contact: 'Contact', adventure: '-Aventuras', work: '-Buffs Trabalho', duel: '-Buffs Duelo', energy: '-Buffs Energia', skill: '-Buffs Habilidade', fk: '-Buffs Batalha', speed: '-Buffs Velocidade', lp: '-Buffs Saúde', special: '-Prêmio/especial', event: '-Eventos', chests: '-Abrir e desempacotar', gold: 'Conjunto dourado', greenhorn: 'Conjunto de novato', holiday: 'Conjunto festivo', dancer: 'Conjunto de dançarina', farmer: 'Conjunto de agricultor', gentleman: 'Conjunto de cavalheiro', indian: 'Conjunto de índio', mexican: 'Conjunto de mexicano', pilgrimF: 'Conjunto de peregrina', pilgrimM: 'Conjunto de peregrino', charlatan: 'Conjunto de charlatão', sleepy: 'Distraído', twtimes: 'Conjunto Estrela d\'Oeste', collector: 'Conjunto de colecionador', easterbunny: 'Conjunto de Coelho da Páscoa', firefighter: 'Conjunto de bombeiro', walker: 'Conjunto do Walker', natty: 'Conjunto do Natty Bumppo', allan: 'Conjunto do Allain Quatermain', chingachgook: 'Conjunto do Chingachgooks', cupid: 'Conjunto de Cupido', cartwright: 'Conjunto do Cartwright', doc: 'Conjunto do Doc', freeman: 'Conjunto do Freeman', party: 'Conjunto de festa', fair: 'Conjunto de feira', soap: 'Conjunto de Novela', christopher: 'Conjunto de desfile do Christopher', wood: 'Conjunto do mágico da madeira', will: 'Conjunto do Will Munny', jeremiah: 'Conjunto do Jeremiah Johnson', elfego: 'Conjunto do Elfego Baca', independence: 'Conjunto da Independência', fire: 'Fogo e Gelo', eighthour: 'Fornecimento de feno para 8 horas', franke: 'Conjunto do Frank Eaton', george: 'Conjunto do George McJunkin', king: 'Conjunto do King Fisher', bavarian: 'Traje Tradicional Bávaro', prairie: 'Conjunto da Pradaria', adventurer: 'Conjunto de Aventureiro', duelset: 'Conjunto de Duelo', worker: 'Conjunto de Trabalhador', soldier: 'Conjunto de Soldado', thunder: 'Relâmpagos e Trovões', nightmare: 'Conjunto Assustador', confederate: 'Conjunto da confederação', noname: 'Conjunto sem nome', winter: 'Conjunto de inverno', valentine: 'Conjunto de Dia dos Namorados', lover: 'Conjunto dos apaixonados', stpatrick: 'Conjunto de St. Patrick', lonerider: 'O ranger solitário', cullen: 'Conjunto do Cullen Baker', bass: 'Conjunto do Bass Reeves', pat: 'Conjunto do Pat Desmond', easter: 'Conjunto de Páscoa', steam: 'Poder do vapor', blackbart: 'Conjunto do Black Bart', bob: 'Conjunto do Bob Dalton', jesse: 'Conjunto do Jesse Chisholm', thomas: 'Conjunto da Independência do Thomas Jefferson', nihon: 'Nihon no Buki', outlaw: 'Equipamento do Bandido', bill: 'Conjunto do Bill Doolin', deadwood: 'Conjunto do Deadwood Dick', frankj: 'Conjunto do Frank James', ludwig: 'Conjunto Oktoberfest do Ludwig', manitus: 'Armas do Manitu', gonzales: 'Conjunto do Gonzales', catrina: 'Conjunto de La Catrina', mariachi: 'Conjunto de Mariachi', nobleman: 'Conjunto de Nobre', aztecan: 'Conjunto de Azteca', ghost: 'Conjunto do fantasma de Natal', romeo: 'Romeu Oh Romeu', bartender: 'Conjunto de Empregado de Mesa', nothingFoundTitle: 'Search cancelled', nothingFound: 'No items of this type found!', }, fr_FR: { language: 'French (français)', ApiGui: 'Avec cette script, il est très facile de trouver les sets ou les buffs qu\'on cherche.
Après qu\'on a cliqué une catégorie, les objets recherchés sont affichés dans l\'inventaire.', contact: 'Contact', adventure: '-Aventures', work: '-Travail', duel: '-Duels', energy: '-Bonus de repos', skill: '-Aptitudes', fk: '-Fort bataille', speed: '-Vitesse', lp: '-Points de vie bonus', special: '-Prime/spéciale', event: '-Événements', chests: '-Ouvrir et déballer', gold: 'Set en or', greenhorn: 'Set du blanc-bec', holiday: 'Set spécial pour les fêtes', dancer: 'Set de danseuse', farmer: 'Set de fermier', gentleman: 'Set du gentleman', indian: 'Set d\'Indien', mexican: 'Set de Mexicain', pilgrimF: 'Set de pèlerine', pilgrimM: 'Set de pèlerin', charlatan: 'Set de charlatan', sleepy: 'Grincheux', twtimes: 'Set TW-Times', collector: 'Set du collectionneur', easterbunny: 'Set du lapin de Pâques', firefighter: 'Set de pompier', walker: 'Set de Walker', natty: 'Set de Natty Bumppo', allan: 'Set d\'Allan Quatermain', chingachgook: 'Set de Chingachgook', cupid: 'Set de Cupidon', cartwright: 'Set de Cartwright', doc: 'Set de Doc', freeman: 'Set de Freeman', party: 'Set de fête', fair: 'Set du forain', soap: 'Set de Soap Opéra', christopher: 'Set de la parade de Christopher', wood: 'Set du magicien du bois', will: 'Set de Will Munny', jeremiah: 'Set de Jeremiah Johnson', elfego: 'Set d\'Elfego Baca', independence: 'Vêtements de l\'indépendance', fire: 'Feu et glace', eighthour: 'Journée de travail à 8h', franke: 'Set de Franck Eaton', george: 'Set de George McJunkin', king: 'Set de King Fisher', bavarian: 'Tenue traditionnelle bavaroise', prairie: 'Set de l\'ouest', adventurer: 'Set de l\'aventurier', duelset: 'Set du duelliste', worker: 'Set de l\'ouvrier', soldier: 'Set du soldat', thunder: 'Tonnerre et foudre', nightmare: 'Set du cauchemar', confederate: 'Set confédéré', noname: 'Set sans nom', winter: 'Set d\'hiver', valentine: 'Set de Valentin', lover: 'Set de l\'amoureux', stpatrick: 'Set de la Saint-Patrick', lonerider: 'Cavalier solitaire', cullen: 'Set de Cullen Baker', bass: 'Set de Bass Reeve', pat: 'Set de Pat Desmond', easter: 'Set de la confrontation de Pâques', steam: 'Vapeur & Punk', blackbart: 'Set de Black Bart', bob: 'Set de Bob Dalton', jesse: 'Set de Jesse Chisholm', thomas: 'Set de l\'indépendance de Thomas Jefferson', nihon: 'Nihon no Buki', outlaw: 'Équipement du hors-la-loi', bill: 'Set de Bill Doolin', deadwood: 'Set de Deadwood Dick', frankj: 'Set de Franck James', ludwig: 'Set de l\'Oktoberfest de Ludwig', manitus: 'Armes de Manitu', gonzales: 'Set de Gonzales Speedy', catrina: 'Set de La Catrina', mariachi: 'Set du Mariachi', nobleman: 'Set de l\'Aristocrate', aztecan: 'Set Aztèque', ghost: 'Set des fantômes de Noël', romeo: 'Roméo Oh Roméo ', bartender: 'Set du barman', nothingFoundTitle: 'Recherche arrêté', nothingFound: 'Pas d\'objets de cette sorte trouvé!', }, /*en_US: { language: 'None (English)', ApiGui: 'Searching for specific sets or buffs? Easy job using this script.
Just some clicks and the items, which you wanted to find, are showed in your inventory.', contact: 'Contact', adventure: '-Adventures', work: '-Work', duel: '-Duels', energy: '-Energy', skill: '-Skill points', fk: '-Fort battles', speed: '-Speed', lp: '-Health points', special: '-Premium/special', event: '-Events', chests: '-Open & unpack', gold: '', greenhorn: '', holiday: '', dancer: '', farmer: '', gentleman: '', indian: '', mexican: '', pilgrimF: '', pilgrimM: '', charlatan: '', sleepy: '', twtimes: '', collector: '', easterbunny: '', firefighter: '', walker: '', natty: '', allan: '', chingachgook: '', cupid: '', cartwright: '', doc: '', freeman: '', party: '', fair: '', soap: '', christopher: '', wood: '', will: '', jeremiah: '', elfego: '', independence: '', fire: '', eighthour: '', franke: '', george: '', king: '', bavarian: '', prairie: '', adventurer: '', duelset: '', worker: '', soldier: '', thunder: '', nightmare: '', confederate: '', noname: '', winter: '', valentine: '', lover: '', stpatrick: '', lonerider: '', cullen: '', bass: '', pat: '', easter: '', steam: '', blackbart: '', bob: '', jesse: '', thomas: '', nihon: '', outlaw: '', bill: '', deadwood: '', frankj: '', ludwig: '', manitus: '', gonzales: '', catrina: '', mariachi: '', nobleman: '', aztecan: '', ghost: '', romeo: '', bartender: '', nothingFoundTitle: 'Search cancelled', nothingFound: 'No items of this type found!',*/ }; quicksearch.getLang = function () { return langs.hasOwnProperty(Game.locale) ? Game.locale : 'en_US'; }; var lang = quicksearch.getLang(); lang = langs[lang]; var quicksearchApi = TheWestApi.register('QuickSearch', quicksearch.name, quicksearch.minGame, quicksearch.maxGame, quicksearch.author, quicksearch.website); quicksearchApi.setGui('
Language detected: ' + lang.language + '

' + lang.ApiGui + '

' + quicksearch.name + ' v' + quicksearch.version + '


' + lang.contact + ':'); var TW_Widgets = new Object(); TW_Widgets.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 () { self.isHovered = true; repaint(); }; var mouseOut = function () { self.isHovered = false; repaint(); }; this.obj = $('
').css('background-image', 'url(' + image + ')'); this.obj.hover(mouseIn, mouseOut); this.obj.click(clicked); $('div#ui_menubar').append($('
').append(this.obj).append('
')); }; var TW_Sets = [ { name: lang.adventure, items: [ 1879, 1909, 1910, 1991, 2110, 2111, 2112, 2113, 2114, 2115, 2121, 2122, 2285, 2286, 2287, 2288, 2289, ] }, { name: lang.work, items: [ 1879, 1891, 1928, 1934, 1939, 1940, 1981, 1982, 1984, 1997, 1998, 2100, 2101, 2102, 2103, 2104, 2105, 2118, 2126, 2128, 2129, 2130, 2164, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2225, 2247, 2248, 2249, 2250, 2251, 2268, 2270, 2285, 2286, 2287, 2288, 2289, 2290, 2291, 2313, 2314, 2317, 2318, 2321, 2322, 2325, 2326, 2353, 2391, 2465, 2466, 2467, 2468, 2484, 2491, 2493, 2495, 2497, 2516, 2525, 2528, 2531, 2576, 2667, 2696, 12701, 13701, 17028, 21342, 21343, 185200, 253800 ] }, { name: lang.duel, items: [ 1863, 1864, 1871, 1872, 1882, 1901, 1908, 1916, 1934, 1938, 1939, 1946, 1952, 1981, 1982, 1984, 1985, 1988, 2128, 2129, 2130, 2268, 2285, 2286, 2287, 2288, 2289, 2293, 2355, 2391, 2467, 2468, 2484, 2516, 2529, 2576, 2669, 2695, 12703, 13703, 17028, 185202 ] }, { name: lang.energy, items: [ 1890, 1892, 1898, 1928, 1937, 1943, 1969, 1970, 1971, 1985, 1997, 2128, 2129, 2130, 2235, 2294, 2296, 2312, 2316, 2320, 2324, 2356, 2358, 2485, 2486, 2491, 2493, 2495, 2497, 2525, 2670, 2672, 12704, 12706, 13704, 13706, 16100, 17028, 21341, 21345, 185203, 185205 ] }, { name: lang.skill, items: [ 1863, 1864, 1871, 1872, 1873, 1879, 1946, 1977, 1978, 1979, 1981, 1982, 1984, 1988, 2285, 2286, 2287, 2288, 2289, 2516, 2525, 2528, 2529, 2530, 2531, 253800 ] }, { name: lang.fk, items: [ 1872, 1873, 1900, 1909, 1910, 1946, 1949, 1982, 1990, 1991, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2127, 2258, 2259, 2260, 2261, 2269, 2285, 2286, 2287, 2288, 2289, 2467, 2516, 2522, 2525, 2529, 2530, 2576, 253800 ] }, { name: lang.speed, items: [ 1918, 1919, 1926, 1927, 1934, 1937, 1952, 1968, 1987, 2135, 2229, 2262, 2263, 2264, 2284, 2292, 2354, 2470, 2473, 2476, 2479, 2491, 2493, 2495, 2497, 2519, 2668, 12702, 13702, 185201 ] }, { name: lang.lp, items: [ 1883, 1892, 1898, 1946, 1974, 1991, 2116, 2117, 2235, 2253, 2254, 2255, 2256, 2257, 2295, 2296, 2357, 2358, 2486, 2525, 2671, 2672, 12705, 12706, 13705, 13706, 16100, 17028, 185204, 185205 ] }, { name: lang.special, items: [ 1977, 1978, 1979, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2247, 2248, 2249, 2250, 2251, 2270, 2302, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 2320, 2321, 2322, 2323, 2324, 2325, 2326, 2421, 2465, 2466, 2467, 2468, 2470, 2472, 2473, 2475, 2476, 2478, 2479, 2481, 2482, 2484, 2485, 2486, 2491, 2493, 2495, 2497, 2559, 2560, 2576, 2695, 2696, 21340, 21341, 21342, 21343 ] }, { name: lang.event, items: [ 55, 2557, 2558, 2561, 2562, 2563, 2564, 2564, 2566, 2567, 2590, 2591, 2592, 2593, 2594, 2619, 2620, 2621, 2622, 2623, 2665, 2666, 2675, 2676, 2677, 2678, 2679, 2680, 2692, 2693, 12700 ] }, { name: lang.chests, items: [ 1868, 1869, 1878, 1887, 1888, 1897, 1905, 1906, 1915, 1923, 1924, 1933, 1960, 1961, 1964, 1967, 1975, 1976, 2131, 2132, 2133, 2134, 2136, 2137, 2138, 2139, 2144, 2152, 2172, 2173, 2174, 2175, 2176, 2187, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2226, 2227, 2297, 2298, 2299, 2300, 2305, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2336, 2337, 2338, 2345, 2359, 2360, 2361, 2362, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2393, 2394, 2395, 2396, 2397, 2421, 2460, 2461, 2462, 2487, 2488, 2489, 2490, 2499, 2507, 2518, 2521, 2524, 2527, 2533, 2534, 2535, 2536, 2537, 2538, 2540, 2542, 2556, 2557, 2558, 2559, 2560, 2561, 2562, 2563, 2564, 2564, 2566, 2567, 2579, 2580, 2581, 2585, 2586, 2587, 2588, 2589, 2590, 2591, 2592, 2593, 2594, 2602, 2603, 2604, 2605, 2606, 2614, 2615, 2616, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2626, 2627, 2628, 2629, 2630, 2645, 2646, 2647, 2648, 2650, 2665, 2666, 2673, 2674, 2675, 2676, 2677, 2678, 2679, 2680, 2685, 2687, 2688, 2689, 2690, 2692, 2693, 2694, 12700, 12709, 12710, 12711, 13711, 17000, 17001, 17002, 17003, 17004, 17005, 17006, 17007, 17008 ] }, { name: lang.gold, items: [ 50, 136, 858, ] }, { name: lang.greenhorn, items: [ 52, 262, 438, 569, 607, 859, 10148, 11118, 40000, ] }, { name: lang.holiday, items: [ 137, 258, 437, 567, 609, 856, 1759, 10181, 40200 ] }, { name: lang.dancer, items: [ 259, 368, 433, 566, 665, 1772, 10149, 11138, ] }, { name: lang.farmer, items: [ 219, 321, 409, 797, 10025, 11005, 41045, ] }, { name: lang.gentleman, items: [ 235, 354, 427, 537, 664, 1715, 10075, 11077, ] }, { name: lang.indian, items: [ 96, 253, 369, 429, 512, 602, 904, 10094, 11137, ] }, { name: lang.mexican, items: [ 95, 254, 312, 428, 561, 600, 792, 903, 10054, ] }, { name: lang.pilgrimF, items: [ 256, 372, 431, 528, 723, 10218, 11035, ] }, { name: lang.pilgrimM, items: [ 257, 373, 432, 529, 768, 10219, 11034, ] }, { name: lang.charlatan, items: [ 224, 340, 435, 527, 794, 854, 10085, 11085, 44020, ] }, { name: lang.sleepy, items: [ 47, 132, 261, 375, 436, 1717, 11207, 41203, ] }, { name: lang.twtimes, items: [ 40031, 41206, 42253, 185145, 185146, ] }, { name: lang.collector, items: [ 58, 140, 264, 439, 575, 611, 863, 2409, 10150, 11139, 40002, ] }, { name: lang.easterbunny, items: [ 63, 265, 440, 11140, 40003, ] }, { name: lang.firefighter, items: [ 1762 ] }, { name: lang.walker, items: [ 154, 279, 454, 592, 10164, 11154, 40019, ] }, { name: lang.natty, items: [ 68, 152, 277, 452, 590, 879, 10162, 11152, 40017, ] }, { name: lang.allan, items: [ 69, 153, 278, 453, 591, 880, 10163, 11153, 40018, ] }, { name: lang.chingachgook, items: [ 67, 151, 276, 451, 589, 878, 10161, 11151, 40016, ] }, { name: lang.cupid, items: [ 165, 290, 465, 637, 887, 10175, 11165, 40030, 41003, ] }, { name: lang.cartwright, items: [ 293, 468, 640, 2191, 10178, 11168, 40034, 41006, ] }, { name: lang.doc, items: [ 292, 467, 639, 2190, 10177, 11167, 40033, 41005, ] }, { name: lang.freeman, items: [ 291, 466, 638, 2189, 10176, 11166, 40032, 41004, ] }, { name: lang.party, items: [ 295, 470, 10180, 11170, 40036, 41008, ] }, { name: lang.fair, items: [ 294, 469, 642, 2223, 10179, 11169, 40035, 41007, ] }, { name: lang.soap, items: [ 481, 10192, 11181, 40048, 41019, 42007, ] }, { name: lang.christopher, items: [ 482, 10193, 11182, 40049, 41020, 42008, ] }, { name: lang.wood, items: [ 185147, 185148, 185149, 185150, 185151, 185152, ] }, { name: lang.will, items: [ 87, 183, 490, 895, 10201, 11190, 40057, 41028, 42016, ] }, { name: lang.jeremiah, items: [ 88, 184, 491, 896, 10202, 11191, 40058, 41029, 42017, ] }, { name: lang.elfego, items: [ 89, 185, 492, 897, 10203, 11192, 40059, 41030, 42018, ] }, { name: lang.independence, items: [ 494, 661, 2301, 10205, 11193, 40061, 41032, 42020, ] }, { name: lang.fire, items: [ 90, 186, 898, ] }, { name: lang.eighthour, items: [ 2352, 40062, ] }, { name: lang.franke, items: [ 91, 187, 495, 899, 10206, 11195, 40063, 41033, 42021, ] }, { name: lang.george, items: [ 92, 188, 496, 900, 10207, 11196, 40064, 41034, 42022, ] }, { name: lang.king, items: [ 93, 189, 497, 901, 10208, 11197, 40065, 41035, 42023, ] }, { name: lang.bavarian, items: [ 498, 663, 2363, 10209, 11198, 40066, 41036, 42024, ] }, { name: lang.prairie, items: [ 499, 11199, 10210, 40067, 41037, 42025, ] }, { name: lang.adventurer, items: [ 10213, 11202, 40070, 41040, 42028, 43002, ] }, { name: lang.duelset, items: [ 10214, 11203, 40071, 41041, 42029, 43003, ] }, { name: lang.worker, items: [ 10215, 11204, 40072, 41042, 42030, 43004, ] }, { name: lang.soldier, items: [ 10216, 11205, 40073, 41043, 42031, 43005, ] }, { name: lang.thunder, items: [ 94, 190, 902, ] }, { name: lang.nightmare, items: [ 10217, 11206, 40074, 41044, 42032, 43006, ] }, { name: lang.confederate, items: [ 10211, 11200, 40068, 41038, 42026, 43000, ] }, { name: lang.noname, items: [ 10212, 11201, 41039, 40069, 42027, 43001, ] }, { name: lang.winter, items: [ 97, 191, 667, 905, 2539, 10261, 11273, 40202, 41200, 42201, 43200, ] }, { name: lang.valentine, items: [ 682, 932, 2555, 10302, 11276, 40205, 41204, 42204, 43203, 44032, 45018, ] }, { name: lang.lover, items: [ 10303, 11277, 40206, 41205, 42205, 43204, ] }, { name: lang.stpatrick, items: [ 684, 933, 2577, 10304, 11278, 40207, 41207, 42206, 43205, 44033, 45019, ] }, { name: lang.lonerider, items: [ 687, ] }, { name: lang.cullen, items: [ 934, 10305, 11279, 40208, 41208, 42207, 43206, 44034, 45020, ] }, { name: lang.bass, items: [ 935, 10306, 11280, 41209, 40209, 42208, 43207, 44035, 45021, ] }, { name: lang.pat, items: [ 936, 10307, 11281, 40210, 41210, 42209, 43208, 44036, 45022, ] }, { name: lang.easter, items: [ 937, 685, 2583, 10308, 11282, 40211, 41211, 42210, 43209, 44037, 45023, ] }, { name: lang.steam, items: [ 938, 44038, 45024, ] }, { name: lang.blackbart, items: [ 691, 2610, 10325, 11300, 40230, 41225, 42225, 43225, ] }, { name: lang.bob, items: [ 692, 2611, 10326, 11301, 40231, 41226, 42226, 43226, ] }, { name: lang.jesse, items: [ 693, 2612, 10327, 11302, 41227, 40232, 42227, 43227, ] }, { name: lang.thomas, items: [ 694, 940, 2613, 10328, 11303, 40233, 41228, 42228, 44051, 43228, 45031, ] }, { name: lang.nihon, items: [ 941, 44052, 45032, ] }, { name: lang.outlaw, items: [ 696, 950, 2640, 10340, 11310, 40240, 41240, 42240, 43240, 44060, 45040, ] }, { name: lang.bill, items: [ 2641, 10341, 11311, 40241, 41241, 42241, 43241, 48000, ] }, { name: lang.deadwood, items: [ 2642, 10342, 11312, 40242, 41242, 42242, 43242, 48001, ] }, { name: lang.frankj, items: [ 2643, 10343, 11313, 40243, 41243, 42243, 43243, 48002, ] }, { name: lang.ludwig, items: [ 951, 2644, 10344, 11314, 41244, 40244, 42244, 43244, 44061, 45041, 48003, ] }, { name: lang.manitus, items: [ 952, 44062, 45042, ] }, { name: lang.gonzales, items: [ 953, 2649, 10345, 11315, 40245, 41245, 42245, 43245, 44063, 45043, 48004, ] }, { name: lang.catrina, items: [ 954, 2660, 10346, 11316, 40246, 41246, 42246, 43246, 44070, 45044, 48005, ] }, { name: lang.mariachi, items: [ 955, 2661, 10347, 11317, 41247, 40247, 42247, 43247, 44071, 45045, 48006, ] }, { name: lang.nobleman, items: [ 956, 2662, 10348, 11318, 40248, 41248, 42248, 43248, 44072, 45046, 48007, ] }, { name: lang.aztecan, items: [ 957, 2663, 10349, 11319, 40249, 41249, 42249, 43249, 44073, 45047, 48008, ] }, { name: lang.ghost, items: [ 958, 2684, 10350, 11320, 40250, 41250, 42250, 43250, 44074, 45048, 48010, ] }, { name: lang.romeo, items: [ 959, 2691, 10351, 11321, 40251, 41251, 42251, 43251, 44075, 45049, 48011, ] }, { name: lang.bartender, items: [ 10352, 11322, 40252, 41252, 42252, 43252, ] }, ]; TW_Sets.sort(function (a, b) { var a1 = a.name.toUpperCase(), b1 = b.name.toUpperCase(); if (a1 == b1) return 0; return a1 > b1 ? 1 : - 1; }); var TW_QuickSearch = new Object(); TW_QuickSearch.name = 'Quick items search'; TW_QuickSearch.gui = { }; TW_QuickSearch.gui.popupMenu = null; TW_QuickSearch.init = function () { TW_QuickSearch.gui.menuButton = new TW_Widgets.MenuButton('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAZCAYAAABzVH1EAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QoTBiYArTu6FwAADftJREFUWMMl1tmz3mdBwPHv8zy/fXm3s+ecLE3aLG0a0sWQ2jKlRaotSFspm7JUOoIMoxfi6IXjyI0jN3ojDDoOiozgKFzIoBSxA21ppaG1LU1CkyY5Jyc9+3nPu/7e9/2tz+MF/8N3PvMVf/7Jd5jNjTat2Tu49PY1zHBE7Efk3piwivFrKZNS0IiaDLOMbr+HX5UMbE0TC0pDPWyw0xuxut2hnadgKaajGtUkY6Hhc+pEi82NlOn5BVbe3iAfj6g1WiSJJmpqLB906tGIA8ZjTdLro52UshBoryIqLJwgZK/dZ7s3ZG9cIF1JpFwsUzFTcxF/8cQd5thtd/AnX/o6m5VGlIAlKbVBGRtjbLRIsUxFhcRIg6MVuZC4JiBXPSQKoyu0kfiWR1FO2FeDP/3jp9h59XmUF3Dw5nt4/RcX2MkSjICqzHFFDAxIUwvb9am8hDKTW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U5ErkJggg==', TW_QuickSearch.name, TW_QuickSearch.popup ); }; TW_QuickSearch.popup = function (button, e) { if (!TW_QuickSearch.gui.popupMenu) { TW_QuickSearch.gui.popupMenu = new west.gui.Selectbox().setWidth(250); TW_QuickSearch.gui.popupMenu.addListener(TW_QuickSearch.findSet); TW_QuickSearch.gui.popupMenu.addClass('TW_QS_ZiB'); for (var i = 0; i < TW_Sets.length; i++) TW_QuickSearch.gui.popupMenu.addItem(i, TW_Sets[i].name); } TW_QuickSearch.gui.popupMenu.show(e); $('.TW_QS_ZiB ul').css({ 'overflow-x': 'hidden', 'overflow-y': 'auto' }); }; TW_QuickSearch.findSet = function (id) { var items, invItems = [ ]; try { items = TW_Sets[id].items; } catch (e) { return; } for (var i = 0; i < items.length; i++) { var invItem = Bag.getItemByItemId(items[i]); if (invItem) invItems.push(invItem); } if (invItems.length > 0) { if (!Bag.loaded) { var f = function (res) { EventHandler.listen('inventory_loaded', function () { Wear.open(); Inventory.showSearchResult(res); return EventHandler.ONE_TIME_EVENT; }); return Bag.loadItems(); }(invItems); } else { Wear.open(); Inventory.showSearchResult(invItems); } } else { var dlg = new west.gui.Dialog(lang.nothingFoundTitle, lang.nothingFound); dlg.addButton('ok'); dlg.setIcon(west.gui.Dialog.SYS_WARNING); dlg.show(); } }; $(document).ready(TW_QuickSearch.init); }));