Shinko to Kuma

Still Going Strong
Reaction score
776
Author
Shinko to Kuma
Contributors
N/A
Quickbar Entry
javascript:
var premiumBtnEnabled=false;
$.getScript('https://shinko-to-kuma.com/scripts/scavengingFinal.js');
Public?
Public
Just a small reminder to everyone (as I see other markets giving this topic attention): while this script is approved on international, this does not mean it is approved on other markets. An approval on international only makes it legal to use on Tribal Wars Beta and Tribal Wars US. Any other market will need approval from that specific market!

If you have not done so, you are at risk of being banned on these other markets. It is strongly recommended to submit this script for review on your respective markets beforehand.


Last update: 11 JUNE 2019 - REWRITING CODE FROM SCRATCH
https://puu.sh/DEi8Q.mp4

13 June: added a counter that says how many times the script got used by all users :D

How to use:

Bind the script to one of your quickbar numbers (for example, numpad3)

press numpad3, enter, 4 times, one time for each option. It will end up having sent out all categories for the exact same runtime.

Scavenge script:

Code:
javascript:
var premiumBtnEnabled=false;
$.getScript('https://shinko-to-kuma.com/scripts/scavengingFinal.js');

Youtube tutorial by Marshyyy


Preview:
CK0Wl.gif


Feel free to give feedback in comments or report any problems, I will attempt to fix them asap.


Current known bugs: None?




Update 27/02: fixed for .US worlds
Update 02/03: ADDED AUTOMATED GRABBING OF VARIABLES! Great progress
Update 07/03: Added functionality on hopefully all servers! (Cant test myself on every server so please give feedback)
Update 08/03: Rewrote and condensed script, fixed recalculation bug when going past certain limits
Update 09/03: Adjusted script to work for mobile app!
Update 16/03: Approved on .nl! Ticket nr. #T13037887
Update 05/04: Added option to disable individual categories
 
Last edited by a moderator:
Upvote 8

Shinko to Kuma

Still Going Strong
Reaction score
776
On some servers they changed their scavenge object, to fix it just change the array index from 0 to 1 on line 28
From
PHP:
var scavengeInfo = JSON.parse($('html').find('script:contains("ScavengeScreen")').html().match(/\{.*\:\{.*\:.*\}\}/g)[0]);
to
PHP:
var scavengeInfo = JSON.parse($('html').find('script:contains("ScavengeScreen")').html().match(/\{.*\:\{.*\:.*\}\}/g)[1]);
it’s already fixed normally, I added in an exception for servers that still run on the old version too
 

nightblade.greyswandir

Contributing Poster
Reaction score
24
One suggestion, can you implement second option for time, one that is active now is to limit time not to exceed what is in time field. So can you add scavenge FOR [amount of hours] and then script will set amount of troops that are needed to scavenge for that amount of hours in highest scavenging level available, until it use enough troops to fil all, or it can add all that is left in last available scavenging level if there is not enough, no matter that one will be shorter time.
 

Your High-ness

Well-Known Member
Reaction score
22
excellent script! love it
Can it be used for non-round numbers? like an hour and a half or 2 hours and a quarter .. etc
 

Deleted User - 11483970

Guest
hey I was wondering if you guys could make a an update or another script that works off of res amount? Like if I want to get 1000 res from each option and it would input the proper amount of troops instead of just time. also if it could fill as much troops as necessary for the 1st option than 2nd then 3rd and forth so that it doesnt decrease the amount to even it out across the 4 options. sorry for long post lol
 

Akhenaten

New Member
Reaction score
0
Hey there!

The script dosen't work anymore.

riqDQBf.png

Is there any solution?

Sorry, the script i have is this:
Code:
javascript:
    //Creators: Sophie "Shinko to Kuma" - Mitchell "Superdog"
$.getScript('https://dl.dropboxusercontent.com/s/fjvfvfa20xpaii2/scavengingfinal.js');
 

Shinko to Kuma

Still Going Strong
Reaction score
776
Hey there!

The script dosen't work anymore.

riqDQBf.png

Is there any solution?

Sorry, the script i have is this:
Code:
javascript:
    //Creators: Sophie "Shinko to Kuma" - Mitchell "Superdog"
$.getScript('https://dl.dropboxusercontent.com/s/fjvfvfa20xpaii2/scavengingfinal.js');

Wait till I either pay for the premium version of dropbox (120 euro annually, so not really excited for that)
or till it gets unblocked by dropbox. Seems like my scripts got used over 100k times today :/
 

Akhenaten

New Member
Reaction score
0
Wait till I either pay for the premium version of dropbox (120 euro annually, so not really excited for that)
or till it gets unblocked by dropbox. Seems like my scripts got used over 100k times today :/

They are, because you are our savior.

I would donate to you, but my country has limited the purchase of dollars so... :c
 

Evil Omen

Well-Known Member
Reaction score
92
I just got word that they are working on fixing it. Someone sent me a discord screenshot:

1618682783128.png
 

TW.PLAYER

Active Member
Reaction score
14
javascript:
var keepHome = {
"spear": 500,
"sword": 500,
"axe": 0,
"archer": 0,
"light": 0,
"marcher": 0,
"heavy": 0
}
var troopTypeEnabled = {
"spear": true,
"sword": true,
"axe": true,
"archer": true,
"light": true,
"marcher": true,
"heavy": true,
};
javascript:
var premiumBtnEnabled=false;
$.getScript('https://shinko-to-kuma.com/scripts/massScavenge.js');
 

Phenomenal Bean

New Member
Reaction score
0
Is this script out dated or am I doing something wrong here? I've attempted adding it to my quick bar but doesn't seem to be working properly? I even followed Marshys video and it still doesn't work? Does it matter which browser were using?
 
Top