Commands EZ-Snipe

tcamps

Non-stop Poster
Reaction score
109
Author
tcamps
Contributors
N/A
Quickbar Entry
javascript:
window.ezsSettings = { minimumSnipeDefense: { infantry: 2000, cavalry: 2000, archer: 0 }, offensiveSnipes: false, maximumTimeUntilLaunch: 4 }
$.getScript('https://tylercamp.me/tw/ez-snipe.js')
Public?
Public
This is a snipe script I wrote since most of the ones I've seen are crap... seriously, including Scouts as a snipe option?



Screenshots:
L7GyK1K.png
AwB3nNp.png
q5UTEth.png

Script:
javascript:
window.ezsSettings = { minimumSnipeDefense: { infantry: 2000, cavalry: 2000, archer: 0 }, offensiveSnipes: false, maximumTimeUntilLaunch: 4 }
$.getScript('https://tylercamp.me/tw/ez-snipe.js')

This script requires Premium. Internet explorer is unsupported. Only tested on the latest version of Google Chrome. This script will NOT WORK if you don't have translations set for your server. Translation packs can be found at the end of this post.

EZ-Snipe can be used (and ONLY be used) to snipe trains to your own villas. It has the usual features:

- Gets target villa and landing time
- Gets list of villas and units
- Calculates launch times
What it does differently:
- Select trains to snipe directly from your Incomings page
- Ignores empty villas ("minimumSnipeDefense" setting)
- Autodetects sigils/support movement buffs
- Links are provided to make it faster to set up a snipe
- Multiple BB code table formats
- Provide your own translations for the script without needing to change the script. (See instructions below.)
And when ran on your Notebook with snipe info it will:
- Auto-remove snipes that have passed their launch time
- Change the color of snipes that will be launching soon
- Display launch times in local time
- (Ran in your Player Notebook, not in Village Notes!)

Revolutio w97 said:
I'm fighting for life - especially with that snipe script - I'm unstoppable - LOL - literally - anyone who knows how to use that sh** - is a god - u should charge

bro I was on my friends acc - on casual - helping him - sniped like 9 trains with that sh** LOL
blue banana w96 said:
that sh** is f***ing glorifiable
Pretty funny How Tribal wars exists for 100 worlds and nobody can get a better snipe script than you
Pretty impressive if you think it like that

EZ-Snipe can generate a ridiculous amount of snipe opportunities - missing a snipe isn't a problem when you have over 50 options for a single incoming.

Instructions:
Main Script Usage
Run the script and it should direct you to your Incomings Overview page. This is not necessary if you're there already.

Select incomings using the checkboxes, as though you were attempting to label the incomings. The script will snipe only the incomings you've selected.

Run the script - A "loading..." message should appear above the list of incomings, replaced shortly with BB code regarding possible snipes - source village, launch time, and unit types to send. Paste this into the forums or in your Notebook for later reference.

Options
Change the script text to change various default options.

The settings format is: { settingName: value, otherName: value, ... }.
Be sure not to delete any braces '{ }', colons ':', or commas ','!

The settings available are:
- minimumSnipeDefense - A snipe won't be listed if there aren't enough troops to meet this minimum
- minimumRemainingPopulation - A snipe won't be listed if sending the snipe would leave the village with less population than this minimum
- maximumTimeUntilLaunch - Snipes with a landing time larger than this won't be listed. Value is in hours.


Enhancer Usage
1. Run EZ-Snipe on some incomings
2. Copy and paste the BB-code output into your Player Notebook (will NOT work on notes for a village!)
3. Run EZ-Snipe again on your Notebook page to load EZ-Snipe Enhancer

Translations
Built-in translations are provided for .net, .us, and .com.br servers. Custom translations can be written and submitted as described below.
Providing translations requires modifying the script saved in your quickbar. If you're making your own translation, your quickbar link should look something like this:

javascript:
var translationFormat = `
server = en

T_COMPACT_MODE = Compact Mode
T_LANDS_AT = Landing Time
T_LAUNCH_TIME = Launch Time
... etc.
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js')

Note the part: 'var translationFormat = `...`'. The contents of your translation goes between the two BACKTICKS ``. They MUST be backticks. (On a US keyboard, this is the key to the left of the '1' key at the top of your keyboard.)

The contents of translationFormat follow a strict format.

Setting the Server for your Translation
The server for the translation is defined at the top, 'en' in this case. This is determined by the FIRST PART OF THE URL WHEN IN-GAME. For example, I play w96 on the tribalwars.net server. When I log into w96, the URL starts with: 'en96.tribalwars.net'. 'en' is the name of the server.

Text Keys and Providing Translations
The actual translations are entered in the format T_TEXT_KEY=TRANSLATED TEXT. You can see a full list of text keys and their english versions in the sample translation below.

Special Text Keys
Some text keys require 'parameters'. These text keys are described in the reference translation below.

Minimum Requirements
Translation is required for EZ-Snipe to work on other servers. However, only some text needs to be translated to get it working. Other text is optional. The required translations are listed in the reference translation below, in the section REQUIRED TRANSLATIONS.

Sample Translations

# Anything starting with a '#' will be ignored
# This translation for tribalwars.net

# Change the value after the '=' for each text entry code

# Any errors or missing codes will be shown in the JAVASCRIPT CONSOLE (open with Ctrl+Shift+J on Chrome)

# THIS MUST COME BEFORE ANYTHING ELSE. For tribalwars.net, worlds are labeled 'en90', 'en91', etc. so the server is 'en'.
server = en

# Optional - These are text shown in the script
# These must be defined but don't need to be translated
T_ALL = All
T_ALL_SNIPES = All Snipes
T_BB_CODE = BB-code
T_BY_DST_VILLA = By Target Village
T_BY_SRC_VILLA = By Source Village
T_COMPACT_MODE = Compact Mode
T_LANDS_AT = Landing Time
T_LAUNCH_TIME = Launch Time
T_LOADING_ENHANCER = Loading notebook enhancer...
T_LOADING_SCRIPT = Loading EZ-Snipe...
T_MAKE_SNIPES_CHECK_SIGILS = Making snipes and checking for sigils...
T_NO_INCS_SELECTED = No incomings were selected for sniping!
T_RUN_ON_INCOMINGS = This script needs to be ran on the Incomings page, I'll bring you there now.
T_TARGET = Target
T_TARGET_VILLA = Target Village
T_SOURCE = Source
T_SOURCE_VILLA = Source Village
T_TROOP_REQ = Troop Req.
T_TROOPS = Troops
T_USE_TROOP_ICONS = Use Troop Icons
T_OPTIONS = Options
T_OPTIONS_SNIPE = Snipe Options
T_DISPLAY = Display:
T_SNIPE = Snipe
T_REFRESH_1 = This script will not update when you check/uncheck incomings below!
T_REFRESH_2 = Run the script again to update with those changes.
T_MINIMUM_SNIPE_DEF = Minimum Snipe Def.
T_ANTI_INFANTRY = anti-infantry
T_ANTI_CAVALRY = anti-cavalry
T_ANTI_ARCHER = anti-archer
T_USE_OFFENSIVE_SNIPES = Offensive Snipes
T_MAX_LAUNCH_TIME = Max Hours Until Launch

# Parts in '{{}}' should be left UNTRANSLATED!
T_SNIPE_TIME_RANGE = Snipes between {{currentTime}} and {{endTime}}
T_SNIPES_FROM_SRC = Snipes from {{source}}
T_SNIPES_TO_DST = Snipes to {{target}}
T_NUM_SNIPES_MADE = {{count}} snipes made

# These are multi-text values
# These require 12 entries separated by a comma ','
M_TROOP_COMMON_NAMES = Spear, Sword, Axe, Archer, Scout, Light Cav., Mounted Ar., Heavy Cav., Ram, Catapult, Paladin, Nobleman
M_TROOP_SHORTHAND_NAMES = sp, sw, axe, ar, sc, lc, ma, hc, ram, cat, pally, noble

###### TRANSLATION REQUIRED
# These are in-game text - they must match EXACTLY!

## Text shown when a village has a support buff active
T_INCOMING_SUPPORT_BUFF = Incoming support sent while this is active will travel {{perc}}% faster
## Text shown on the "incomings" page when an attack is arriving today
T_TODAY_AT = today at {{time}}
## Text shown on the "incomings" page when an attack is arriving tomorrow
T_TOMORROW_AT = tomorrow at {{time}}
## Text shown on the "incomings" page when an attack is arriving on a specific date
T_ON_AT = on {{date}} at {{time}}

# Note - this is an old translation and is missing some text...

# tribalwars.com.br
server = br
T_ALL = Tudo
T_ALL_SNIPES = Todos os snips
T_BB_CODE = Código BB
T_BY_DST_VILLA = Por aldeia alvo
T_BY_SRC_VILLA = Por aldeia fonte
T_COMPACT_MODE = Modo compacto
T_LANDS_AT = Hora de chegada
T_LAUNCH_TIME = Hora de envio
T_LOADING_ENHANCER = Carregando potenciador de bloco de notas...
T_LOADING_SCRIPT = Carregando EZ-Snipe...
T_MAKE_SNIPES_CHECK_SIGILS = Fazendo snips e procurando por sigilos...
T_NO_INCS_SELECTED = Nenhum ataque foi selecionado para snip!
T_RUN_ON_INCOMINGS = Este script precisa ser executado na página Chegando, vou trazer à você agora
T_SNIPE_TIME_RANGE = Snips entre {{currentTime}} e {{endTime}}
T_SNIPES_FROM_SRC = Snips a partir de {{source}}
T_SNIPES_TO_DST = Snips para {{target}}
T_TARGET = Alvo
T_TARGET_VILLA = Aldeia alvo
T_SOURCE = Fonte
T_SOURCE_VILLA = Aldeia fonte
T_TROOP_REQ = Tropa necessária
T_TROOPS = Tropas
T_USE_TROOP_ICONS = Usar ícones de tropas
T_OPTIONS = Opções
T_INCOMING_SUPPORT_BUFF = Apoio recebido enquanto isso estiver ativo vai viajar {{perc}}% mais rápido
T_TODAY_AT = Hoje às {{time}}
T_TOMORROW_AT = Amanhã às {{time}}
T_ON_AT = Em {{date}} às {{time}}
T_SNIPE = Snips
T_DISPLAY = Mostrar
T_NUM_SNIPES_MADE = {{count}} snips gerados
T_REFRESH_1 = Este script não será atualizado quando você marcar/desmascar as entradas abaixo.
T_REFRESH_2 = Rode o script novamente para atualizar com aquelas mudanças.
M_TROOP_COMMON_NAMES = Lanceiro,Espadachim,Bárbaro,Arqueiro,Explorador,Cavalaria Leve,Arqueiro à cavalo,Cavalaria Pesada,Aríete,Catapulta,Paladino,Nobre
M_TROOP_SHORTHAND_NAMES = lança,esp,bb,arc,expl,cl,arc cav,cp,aríete,cata,pala,nobre

Translation Template
This is a barebones example to be modified.
javascript:
var translationFormat = `
server =

# These are text shown in the script
T_ALL =
T_ALL_SNIPES =
T_BB_CODE =
T_BY_DST_VILLA =
T_BY_SRC_VILLA =
T_COMPACT_MODE =
T_LANDS_AT =
T_LAUNCH_TIME =
T_LOADING_ENHANCER =
T_LOADING_SCRIPT =
T_MAKE_SNIPES_CHECK_SIGILS =
T_NO_INCS_SELECTED =
T_RUN_ON_INCOMINGS =
T_SNIPE_TIME_RANGE = {{currentTime}} {{endTime}}
T_SNIPES_FROM_SRC = {{source}}
T_SNIPES_TO_DST = {{target}}
T_TARGET =
T_TARGET_VILLA =
T_SOURCE =
T_SOURCE_VILLA =
T_TROOP_REQ =
T_TROOPS =
T_USE_TROOP_ICONS =
T_OPTIONS =
T_OPTIONS_SNIPE =
T_DISPLAY =
T_SNIPE =
T_NUM_SNIPES_MADE = {{count}}
T_REFRESH_1 =
T_REFRESH_2 =
T_MINIMUM_SNIPE_DEF =
T_ANTI_INFANTRY =
T_ANTI_CAVALRY =
T_ANTI_ARCHER =
T_USE_OFFENSIVE_SNIPES =
T_MAX_LAUNCH_TIME =

# These are multi-text values
# These require 12 entries separated by a comma ','
M_TROOP_COMMON_NAMES = , , , , , , , , , , ,
M_TROOP_SHORTHAND_NAMES = , , , , , , , , , , ,

# These are in-game text - they must match EXACTLY!
T_INCOMING_SUPPORT_BUFF = {{perc}}
T_TODAY_AT = {{time}}
T_TOMORROW_AT = {{time}}
T_ON_AT = {{date}} {{time}}
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js')

Tools and Troubleshooting
Sometimes you mis-spell a text key, or forget/delete a key, or make some other mistake. For most problems, the script will tell you what's missing and what's incorrect so that you can fix it.
To view this troubleshooting information, you must open the JavaScript console in your browser to see the messages. On Google Chrome, you can open this by pressing 'Ctrl+Shift+J'.

Problems with your translation will be shown as WARNINGS, for example:
X0s0RPl.png

Your custom translation will not be loaded until all warnings are gone.

You can test your translation without being on the server it's intended for. For example, you may write a translation for 'br' and force the script to use it on 'en'. This is done by changing the URL on your page and running the script again. Change your URL by adding #lang={SERVER} at the end. For example:

https://en96.tribalwars.net/game.php?screen=overview_villages&mode=incomings#lang=br

This will force the script to load the 'br' translation even though it's ran on the 'en' server.

Sharing Translations
If you've modified your quickbar to include a 'translationFormat', you can share that directly with other players so they can use your translation.

Submitting Your Translation
Send me a PM with the translation that you have been using. I will inspect the translation and include it in the official script.

Copy and paste the whole text into your quickbar, no further editing required.

.net, .us, and .co.uk servers do not require a translation pack.

javascript:
var translationFormat = `
server = br

# This is missing 7 translations but the script will still work.

# tribalwars.com.br

T_ALL = Tudo
T_ALL_SNIPES = Todos os snips
T_BB_CODE = Código BB
T_BY_DST_VILLA = Por aldeia alvo
T_BY_SRC_VILLA = Por aldeia fonte
T_COMPACT_MODE = Modo compacto
T_LANDS_AT = Hora de chegada
T_LAUNCH_TIME = Hora de envio
T_LOADING_ENHANCER = Carregando potenciador de bloco de notas...
T_LOADING_SCRIPT = Carregando EZ-Snipe...
T_MAKE_SNIPES_CHECK_SIGILS = Fazendo snips e procurando por sigilos...
T_NO_INCS_SELECTED = Nenhum ataque foi selecionado para snip!
T_RUN_ON_INCOMINGS = Este script precisa ser executado na página Chegando, vou trazer à você agora
T_SNIPE_TIME_RANGE = Snips entre {{currentTime}} e {{endTime}}
T_SNIPES_FROM_SRC = Snips a partir de {{source}}
T_SNIPES_TO_DST = Snips para {{target}}
T_TARGET = Alvo
T_TARGET_VILLA = Aldeia alvo
T_SOURCE = Fonte
T_SOURCE_VILLA = Aldeia fonte
T_TROOP_REQ = Tropa necessária
T_TROOPS = Tropas
T_USE_TROOP_ICONS = Usar ícones de tropas
T_OPTIONS = Opções
T_INCOMING_SUPPORT_BUFF = Apoio recebido enquanto isso estiver ativo vai viajar {{perc}}% mais rápido
T_TODAY_AT = Hoje às {{time}}
T_TOMORROW_AT = Amanhã às {{time}}
T_ON_AT = Em {{date}} às {{time}}
T_SNIPE = Snips
T_DISPLAY = Mostrar
T_NUM_SNIPES_MADE = {{count}} snips gerados
T_REFRESH_1 = Este script não será atualizado quando você marcar/desmascar as entradas abaixo.
T_REFRESH_2 = Rode o script novamente para atualizar com aquelas mudanças.
M_TROOP_COMMON_NAMES = Lanceiro,Espadachim,Bárbaro,Arqueiro,Explorador,Cavalaria Leve,Arqueiro à cavalo,Cavalaria Pesada,Aríete,Catapulta,Paladino,Nobre
M_TROOP_SHORTHAND_NAMES = lança,esp,bb,arc,expl,cl,arc cav,cp,aríete,cata,pala,nobre
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js');

javascript:
var translationFormat = `
server = sv

# These are text shown in the script
T_ALL = Alla
T_ALL_SNIPES = Alla Snipes
T_BB_CODE = BB-Kod
T_BY_DST_VILLA = Destination
T_BY_SRC_VILLA = Ursprung
T_COMPACT_MODE = Kompaktläge
T_LANDS_AT = Ankomst
T_LAUNCH_TIME = Skicka vid
T_LOADING_ENHANCER = Laddar…
T_LOADING_SCRIPT = Laddar EZ-Snipe …
T_MAKE_SNIPES_CHECK_SIGILS = Gör iordning snipes
T_NO_INCS_SELECTED = Inga Attacker Valda För Snipe
T_RUN_ON_INCOMINGS = Kör På Inkommande
T_SNIPE_TIME_RANGE = Snipes Mellan {{currentTime}} Och {{endTime}}
T_SNIPES_FROM_SRC = Snipes Från {{source}}
T_SNIPES_TO_DST = Snipes Till {{target}}
T_TARGET = Destination
T_TARGET_VILLA = Destinationsby
T_SOURCE = Ursprung
T_SOURCE_VILLA = Ursprungsby
T_TROOP_REQ = Långsammaste enheten
T_TROOPS = Enheter
T_USE_TROOP_ICONS = Använd Enhetsikoner
T_OPTIONS = Alternativ
T_OPTIONS_SNIPE= Snipe Alternativ
T_MINIMUM_SNIPE_DEF= Minsta Möjliga Snipeförsvar
T_USE_OFFENSIVE_SNIPES= Offensiva Snipes
T_MAX_LAUNCH_TIME= Max Timmar till Attack
T_ANTI_INFANTRY= Anti Infantri
T_ANTI_CAVALRY= Anti Kavalleri
T_ANTI_ARCHER= Anti Bågskytt
T_DISPLAY = Visa
T_SNIPE = Snipe
T_NUM_SNIPES_MADE = {{count}} Snipes Gjorda
T_REFRESH_1 = This script will not update when you check/uncheck incomings below!
T_REFRESH_2 = Run the script again to update with those changes.

# These are multi-text values
# These require 12 entries separated by a comma ','
M_TROOP_COMMON_NAMES =Spjutman, Svärdsman,Yxman ,Bågskytt ,Spejare ,Lätt Kavallerist ,Beriden Bågskytt ,Tung Kavallerist ,Murbräcka ,Katapult ,Paladin ,Adelsman
M_TROOP_SHORTHAND_NAMES =Spjut ,Svärd ,Yx ,Båg ,Spej ,LK ,BB ,TK ,RAM ,Kata ,Pala ,Adel

# These are in-game text - they must match EXACTLY!
T_INCOMING_SUPPORT_BUFF = Inkommande assistans skickat medans detta är aktivt kommer färdas {{perc}} snabbare
T_TODAY_AT = idag kl {{time}}
T_TOMORROW_AT = imorgon kl {{time}}
T_ON_AT = den {{date}} kl {{time}}
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js')

javascript:
var translationFormat = `
server = pt

# tribalwars.com.pt

T_ALL = Tudo
T_ALL_SNIPES = Todos os snipes
T_BB_CODE = Códigos BB's
T_BY_DST_VILLA = Por aldeia alvo
T_BY_SRC_VILLA = Por aldeia origem
T_COMPACT_MODE = Modo compacto
T_LANDS_AT = Hode de chegada
T_LAUNCH_TIME = Hora de envio
T_LOADING_ENHANCER = A carregar bloco de notas...
T_LOADING_SCRIPT = A caregar EZ-SNIPE
T_MAKE_SNIPES_CHECK_SIGILS = A fazer snipes e procurando por sigilos.
T_NO_INCS_SELECTED = Nenhum ataque selecionado para snipar!
T_RUN_ON_INCOMINGS = Tem de ser executado na página A chegar
T_SNIPE_TIME_RANGE = Snipes entre {{currentTime}} e {{endTime}}
T_SNIPES_FROM_SRC = Snipes a partir de {{source}}
T_SNIPES_TO_DST = Snipes para {{target}}
T_TARGET = Alvo
T_TARGET_VILLA = Aldeia alvo
T_SOURCE = Origem
T_SOURCE_VILLA = Aldeia origem
T_TROOP_REQ = Tipo de tropa
T_TROOPS = Tropas
T_USE_TROOP_ICONS = Usar ícones de tropas
T_OPTIONS = Opções
T_OPTIONS_SNIPE = Opções de snipe
T_DISPLAY = Mostrar
T_SNIPE = Snipes
T_NUM_SNIPES_MADE = {{count}} snipes gerados
T_REFRESH_1 = Este script será atualizado após marcares/desmascares as entradas acima.
T_REFRESH_2 = Usa o script novamente para atualizar as novas mudanças.
T_MINIMUM_SNIPE_DEF = Mínimo de defesa para snipe
T_ANTI_INFANTRY = Anti-Infataria
T_ANTI_CAVALRY = Anti-Cavalaria
T_ANTI_ARCHER = Anti-Arqueiro
T_USE_OFFENSIVE_SNIPES = Usar tropas ofensivas nos snipes
T_MAX_LAUNCH_TIME = Horas máximas de envio

# These are multi-text values
# These require 12 entries separated by a comma ','
M_TROOP_COMMON_NAMES = Lanceiro,Espadachim,Bárbaro,Arqueiro,Explorador,Cavalaria Leve,Arqueiro à cavalo,Cavalaria Pesada,Aríete,Catapulta,Paladino,Nobre
M_TROOP_SHORTHAND_NAMES = lança,espada,barb,arco,explora,cl,arc cav,cp,aríete,cata,pala,nobre

# These are in-game text - they must match EXACTLY!
T_INCOMING_SUPPORT_BUFF = Apoio recebido enquanto estiver ativo vai viajar {{perc}}% mais rápido
T_TODAY_AT = Hoje às {{time}}
T_TOMORROW_AT = Amanhã às {{time}}
T_ON_AT = Em {{date}} às {{time}}
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js')
javascript:
var translationFormat = `
server = it

# tribals.it

T_ALL = Tutti
T_ALL_SNIPES = Tutte le ninjate
T_BB_CODE = BB-code
T_BY_DST_VILLA = Per Villaggio Obiettivo
T_BY_SRC_VILLA = Per villaggio di origine
T_COMPACT_MODE = Modalità compatta
T_LANDS_AT = Orario di arrivo
T_LAUNCH_TIME = Orario di lancio
T_LOADING_ENHANCER = Caricamento visualizzazione appunti...
T_LOADING_SCRIPT = Caricamento script...
T_MAKE_SNIPES_CHECK_SIGILS = Calcolo ninjate in corso...
T_NO_INCS_SELECTED = Nessun attacco selezionato!
T_RUN_ON_INCOMINGS = Questo script va lanciato dalla schermata "In arrivo", ti ci porterò ora.
T_TARGET = Obiettivo
T_TARGET_VILLA = Villaggio obiettivo
T_SOURCE = Origine
T_SOURCE_VILLA = Villaggio di origine
T_TROOP_REQ = Truppe richieste
T_TROOPS = Truppe
T_USE_TROOP_ICONS = Usa icone truppe
T_OPTIONS = Opzioni
T_OPTIONS_SNIPE = Opzioni ninjate
T_DISPLAY = Mostra:
T_SNIPE = Ninjata
T_REFRESH_1 = Lo script non si aggiornerà quando selezioni/deselezioni attacchi qui sotto!
T_REFRESH_2 = Esegui nuovamente lo script per aggiornarlo con questi cambiamenti.
T_MINIMUM_SNIPE_DEF = Minima difesa per ninjata
T_ANTI_INFANTRY = anti-fanteria
T_ANTI_CAVALRY = anti-cavalleria
T_ANTI_ARCHER = anti-arcieri
T_USE_OFFENSIVE_SNIPES = Ninjare anche con le off
T_MAX_LAUNCH_TIME = Ore massime al lancio

# Parts in '{{}}' should be left UNTRANSLATED!
T_SNIPE_TIME_RANGE = Ninjate tra le {{currentTime}} e {{endTime}}
T_SNIPES_FROM_SRC = Ninjate da {{source}}
T_SNIPES_TO_DST = Ninjate su {{target}}
T_NUM_SNIPES_MADE = {{count}} ninjate trovate

# These are multi-text values
# These require 12 entries separated by a comma ','
M_TROOP_COMMON_NAMES = Lancia, Spada, Ascia, Arco, Esploratore, Cavalleria Leggera, Arciere a cavallo, Cavalleria pesante, Ariete, Catapulta, Paladino, Nobile
M_TROOP_SHORTHAND_NAMES = sp, sw, axe, ar, sc, lc, ma, hc, ram, cat, pally, noble

###### TRANSLATION REQUIRED
# These are in-game text - they must match EXACTLY!
## Text shown when a village has a support buff active
T_INCOMING_SUPPORT_BUFF = Supporti in arrivo inviati nel mentre che questo è attivo viaggeranno {{perc}}% più veloci.
## Text shown on the "incomings" page when an attack is arriving today
T_TODAY_AT = oggi alle {{time}}
## Text shown on the "incomings" page when an attack is arriving tomorrow
T_TOMORROW_AT = domani alle {{time}}
## Text shown on the "incomings" page when an attack is arriving on a specific date
T_ON_AT = il {{date}} alle {{time}}
`;
$.getScript('https://tylercamp.me/tw/ez-snipe.js')

This script is approved by Tribal Wars as of 27/01/2018, ticket t12168060.
 
Last edited:
Upvote 7

Ibra Gonza II

Non-stop Poster
Reaction score
140
It’s come to my attention that others have bypassed the various protection measures on the script. If you have a cracked copy, PM me with your version and your changes. I will open-source the script if there are enough individual exploits.

The script is already feature-complete so there’s no point in strengthening its security if people will use the cracked version anyway.

(@Ibra Gonza II ;) )

Hi,

I'm not sure what you are referring to but I did not crack your script. So please do not falsely accuse me of such things unless you have the evidence to back it up. Which you don't, because I didn't crack it and haven't attempted to either.

But perhaps I should tell everyone how it would be possible to crack it? ;)

PS: Please note that I am not even currently playing any worlds myself, so I have no use whatsoever in spreading a cracked version of your script.
 
Last edited:

tcamps

Non-stop Poster
Reaction score
109
Sorry Ibra, didn't mean to start a spat, and didn't mean anything bad by it. I'm much less salty than Gwaihir seems to be. I know of few scripters and your account is in Creati (which is blacklisted), so I made a shot in the dark. But if you are aware of an exploit, feel free.
 

Noobkillz

Guest
Hello can you contact me on skype and explain some things for me? I do as in the video but there's no BB codes coming up.
I play on the Swedish servers.
 

DeletedUser122905

Guest
I'm playin on w105 and same code I use in w104 is not working. Would you mind looking into it ?
 

DeletedUser122781

Guest
Tried to translate T_LOADING_SCRIPT but server es is not supported
Tried to translate T_MAKE_SNIPES_CHECK_SIGILS but server es is not supported
Tried to translate T_TOMORROW_AT but server es is not supported

why?
 

DeletedUser94897

Guest
If one person has 1 village, then can he produce the snipe time list bbcode, and copy this for another friend. That friend can paste into their own notebook and run the enhancer. Will this work?
 

tcamps

Non-stop Poster
Reaction score
109
Tried to translate T_LOADING_SCRIPT but server es is not supported
Tried to translate T_MAKE_SNIPES_CHECK_SIGILS but server es is not supported
Tried to translate T_TOMORROW_AT but server es is not supported

why?
Are you using any translation for EZ-Snipe? Can you post the script you're using?

can you make this work for one villas?
You can't snipe for yourself if you only have one village (aside from cancel-snipes, which aren't covered by this script.)

If one person has 1 village, then can he produce the snipe time list bbcode, and copy this for another friend. That friend can paste into their own notebook and run the enhancer. Will this work?
It will work, though it wouldn't be useful - they'd have snipes listed from your own village, which they can't control. If you want to snipe someone else's village, that's a separate process. This is now publically supported but not documented. You can watch this video to learn more:
 
Last edited:

DeletedUser94897

Guest
If you want to snipe someone else's village, that's a separate process. This is now publically supported but not documented. You can watch this video to learn more:
Awesome!
From the video am I right in saying...
1. Tribe friend (who has 1 village) posts his attack/arrival times of suspected train. He should post his own village too.
2. We manually text-copy the arrival time (Jun 01, 2018 22:54:35:026) of the 2nd or 3rd train.
3. Whilst in the forum thread page, if we click on EZ/Better-Snipe then it'll convert the page to show village IDs in the thread postings. (ideally showing tribe friend's village ID).
4. Click on the "shown" village ID (of tribe friend) and we get a "pop-up question". We enter/paste in the arrival time of the 2nd or 3rd train.
5. Click OK and it's now added to the snipe queue list.
6. Click on Incoming Attacks (Overviews, Incoming, Groups: All). Click on EZ/Better-Snipe again to convert the page. The snipe list/queue is shown.


That snipe list/queue will execute at the time.

Question: Will it use the default min. snipe def? (ie. 2500 anti-inf, 2500 anti-cav). How do I change these values? What if I have 2 or more snipes. Will they all use the same min.snipe def units?
 

tcamps

Non-stop Poster
Reaction score
109
@andwan0 Yes, exactly.

All snipes will share the same settings. You can change the values by editing those inputs and clicking the "Recalculate" button.
 

DeletedUser94897

Guest
@andwan0 Yes, exactly.

All snipes will share the same settings. You can change the values by editing those inputs and clicking the "Recalculate" button.

Whilst in the Incoming page, we click EZ/Better-Snipe to convert the page and it shows list of snipe/queue.
I copy the BBcode and paste it into my notebook. I click on EZ/Better-Snipe again to convert my notebook... and when it's near the time.. the Launch Time column goes red text. I click on Source Village and this pops up new window. I drag window so I have the 2 windows side by side... In the Attack/Support window I click Support to see "Confirm Support for ...."

The time comes and my notebook updates (the row disappears!)
But my "confirm support" window does nothing. No command was issued?
 

DeletedUser122781

Guest
Are you using any translation for EZ-Snipe? Can you post the script you're using?

  • Code:
    vartranslationFormat = `
    server = es
    
    T_ALL = Todos
    T_ALL_SNIPES = Todos los snips
    T_BB_CODE = Código BB
    T_BY_DST_VILLA = Por pueblo objetivo
    T_BY_SRC_VILLA = Por pueblo
    T_COMPACT_MODE = Modo compacto
    T_LANDS_AT = Hora de llegada
    T_LAUNCH_TIME = Hora de envio
    T_LOADING_ENHANCER = Cargando bloc de notas...
    T_LOADING_SCRIPT = Cargando EZ-Snipe...
    T_MAKE_SNIPES_CHECK_SIGILS = Haciendo snips...
    T_NO_INCS_SELECTED = ¡Ningún ataque fue seleccionado para snip!
    T_RUN_ON_INCOMINGS = Este script se debe ejecutar en la página de ataques entrantes
    T_SNIPE_TIME_RANGE = Snip entre {{currentTime}} y {{endTime}}
    T_SNIPES_FROM_SRC = Snip desde {{source}}
    T_SNIPES_TO_DST = Snip para {{target}}
    T_TARGET = Objetivo
    T_TARGET_VILLA = Pueblo objetivo
    T_SOURCE = Fuente
    T_SOURCE_VILLA = Pueblo fuente
    T_TROOP_REQ = Tropas necessarias
    T_TROOPS = Tropas
    T_USE_TROOP_ICONS = Usar iconos de tropas
    T_OPTIONS = Opciones
    T_OPTIONS_SNIPE = Opciones de snips
    T_DISPLAY = Mostrar
    T_SNIPE = Snip
    T_NUM_SNIPES_MADE = {{count}} Snips generados
    T_REFRESH_1 = Este script no se actualizará al marcar / desenmascarar las entradas siguientes.
    T_REFRESH_2 = Gire la secuencia de comandos de nuevo para actualizar con estos cambios.
    T_MINIMUM_SNIPE_DEF = Defensa minima para snip
    T_ANTI_INFANTRY = anti-infanteria
    T_ANTI_CAVALRY = anti-caballeria
    T_ANTI_ARCHER = anti-arqueros
    T_USE_OFFENSIVE_SNIPES = snips ofensivos
    T_MAX_LAUNCH_TIME = Max Horas Hasta Lanzar
    
    M_TROOP_COMMON_NAMES = Spear, Sword, Axe, Archer, spy, Light, marcher, Heavy, Ram, Catapult, knight, Nobleman
    M_TROOP_SHORTHAND_NAMES = sp, sw, axe, ar, sc, lc, ma, hc, ram, cat, pally, noble
    
    T_INCOMING_SUPPORT_BUFF = Apoyos enviados mientras esto este activo llegaran {{perc}}% mas rapido
    T_TODAY_AT = hoy a las {{time}}
    T_TOMORROW_AT = mañana a las {{time}}
    T_ON_AT = el {{date}} a las {{time}}
    `;
    $.getScript('https://tylercamp.me/tw/ez-snipe.js')
It was working some weeks ago :(
 

tcamps

Non-stop Poster
Reaction score
109
@mofitex You have a typo at the beginning of your script - where it says "vartranslationFormat", it should instead be "var translationFormat"
 

DeletedUser94897

Guest
@andwan0 I'm not sure what you're asking



The script will not fill in sniping troops automatically
Not fill in troop numbers.
In your tube, after you paste in the bbcode snipe list into notebook. Then click on first snipe, it opens new window of rally point. Then you click Support and it asks to confirm Support.
You wait and wait... then when the first snipe timer hits 0, the rally point Support button automatically depress and automatically sends.
Is this what's meant to happen?
 

tcamps

Non-stop Poster
Reaction score
109
Ah, it does not automatically press send, in that video I'm using the Space Bar instead of clicking.

(It would be illegal for it to automatically press Send)
 

DeletedUser122781

Guest

phil1

New Member
Reaction score
2
Would it be possible to add in a feature to vary incoming support speed(%) for sigil of distress or the tribe skill friendship.
 
Top