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

tcamps

Non-stop Poster
Reaction score
109
A couple of bugs are being fixed. There is currently a serious bug that occurs when server time is not UTC/GMT, preventing snipes from being generated. This is a priority, and a more complex problem than I expected. I hope to have an international fix soon. EDIT: This seems to be fixed, which was easier than I thought. Please report any timing issues here.

The use of defensive power instead of population for sniping has been added prematurely without testing, but this does not seem to be the cause of the problem. The minimumSnipePopulation option has been replaced with minimumSnipeDefense, with a default of 10,000. (Approx. 75 sp+sw) This can be a single value or an object, with sub-values infantry, cavalry, and archer. If only a number is provided, it will be split evenly between infantry and cavalry defense. The main post will be updated and these comments will be deleted once the feature has been fully completed.
 
Last edited:

Zalinor

Non-stop Poster
Reaction score
203

For the last 24 to 48 hours I find that when I run the script it shows
"Loading Ez-Snipe..."
Then it gets stuck on "Making snipes and checking for sigils..." with no progression from this point.

W97 both Owned account and sat account exhibit the same issue.
 

tcamps

Non-stop Poster
Reaction score
109
Thanks for letting me know. I can’t reproduce this on my end. Please PM me with with script as pasted in your quickbar, the browser you’re using, as well as all output in the JavaScript console.
 

tcamps

Non-stop Poster
Reaction score
109
After working with Zalinor I've fixed the bug. It appeared on worlds where archers were disabled.
 

NATMUS

Guest
I have a couple questions about this script. If i could talk to you over skype or discord let me know.

Thank you
 

ShamanHero.fr

Guest
Hello,

I've try to translate it for frenchs servers but he didn't work, if u could contact me on skype (rush1417), I have a couple questions.

Thanks
 

tcamps

Non-stop Poster
Reaction score
109
A new bug has been discovered on Swedish servers at tribalwars.se. The calculated travel times are ~4% longer than what TW actually uses, meaning snipe times will be incorrect on those servers. It appears that .se servers are using a different travel time calculation than .net. There aren't any issues on other servers that I'm aware of. A ticket has been submitted, I hope to hear back soon.

Here is the ticket I submitted with my proof, maybe someone here can shed some light on this.
I've written a snipe script that is being translated to Swedish, for use on the "sv43.tribalwars.se" server. The travel time calculations done on .net servers does not seem to match .se servers.

I've been told that travel time is calculated as:

(World Speed) x (Troop Speed Factor) x (Unit Speed) x (# Fields)

On sv43.tribalwars.se, if sending swords to a village 19 fields away, I get:

(1.7) x (0.6) x (22) x (19) = 426.36 minutes = 7.106 hours = 7 hours, 5 minutes
(Server settings: https://sv43.tribalwars.se/page/settings)

However, when actually sending those troops, the travel time is 6 hours, 49 minutes. There are no troop speed buffs. This is about a 4% difference.

Do different servers use different calculations for troop speed?
 
Last edited:

DeletedUser

Guest
Increased speed means more distance is covered in a given amount of time. E.g. speed 2 doesn't mean it takes twice as much time to cover a given distance; rather it takes half as much time.

22 * 19 / 1.7 / 0.6 = 409.80 minutes = 6.83 hours = 6 hours, 49 minutes
 

tcamps

Non-stop Poster
Reaction score
109
I've changed travel time calculations as @cheesasaurus suggested and the issue appears to be fixed. Please post here if you have any problems.
 

DeletedUser110019

Guest
is tcamps scripts being blocked for creati on w97?

or is it just a w97 issue?


"It's not broken, you just can't use it" This msg makes me sad :(
 
Last edited:

Zalinor

Non-stop Poster
Reaction score
203
is tcamps scripts being blocked for creati on w97?

or is it just a w97 issue?


"It's not broken, you just can't use it" This msg makes me sad :(
I was going to post here a while back, but I thought it was Creati using their contacts to block me (and others) :D. Can only assume W97 which is somehow blacklisted or bugged.

It's a non-archer world @tcamps if that is something which is causing the bug again
 

tcamps

Non-stop Poster
Reaction score
109
Nah, Creati and IL are blacklisted on w97 for now, that's what you guys get for ganging up on us ;)

Creati's got Ibra Gonza anyway

For the record, OBEY on w96 is blacklisted as well for being too OP
 
Last edited:

tcamps

Non-stop Poster
Reaction score
109
I should mention that some organizational changes were made recently and I've received some messages on reddit about the script breaking. I've responded and fixed all of the ones I've received so far. Please post here if you see anything breaking or buggy.

Also, the EZ-Snipe script is the only one that has blacklists, my other scripts do not
 

DeletedUser120800

Guest
Hi,

The "reference" page for minimum snipes, what is it, there is no guide? I type 200lc and it brings up 26,000 LC.

I don't know what it's showing me.

Edit: And another thing, why does yours show the "destination" village in the table and my run doesn't? Mine only shows the source village. Was this to help deal with too many brackets?
 
Last edited:

tcamps

Non-stop Poster
Reaction score
109
Yeah that reference tool needs to be reworked, the interface is crap.

It’s showing you the total offensive and defensive power of the troops that you enter in. So you type 200 LC, and it shows that LC gives 26,000 total offensive cavalry power. As you add different troops, the numbers on the bar graph shows how much offense/defense each type of troop provides.

For source/target village, you want to change the “Display” option, it’s set to All by default. That screenshot is using “By Target Village”. The list of settings here needs to be updated
 

tcamps

Non-stop Poster
Reaction score
109
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 ;) )
 

Gwaihir aka Bluetomahawk

Guest
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 ;) )


oh wow, so people giving you "advices" and playing smartasses only to crack it instead of making their own... talk about copyright... :cool:

since no one ever told you; "le me", in the name of TW community, and especially all not blacklisted people thank you for investing all that time and effort into making such great tools... GG tyler.
 
Top