Skip to content

Instantly share code, notes, and snippets.

View guipenedo's full-sized avatar
👨‍🚀
This is the way

Guilherme Penedo guipenedo

👨‍🚀
This is the way
View GitHub Profile
@guipenedo
guipenedo / sell_res.js
Created March 27, 2020 19:04
Tampermonkey script to sell/buy resources for premium points - bypassing TW's detection technique
// ==UserScript==
// @name Premium Exchange Sell If Stock Not Full
// @description Automatically sell resources when the stock is not full. Fucks up their detection technique
// @author FunnyPocketBook, PhilipsNostrum
// @version 2.1
// @include https://*/game.php*screen=market*mode=exchange*
// @namespace https://greasyfork.org/users/151096
// ==/UserScript==
createInput();
var buyOrSell = 6; // Change this to 5 to buy resources, 6 to sell resources
@guipenedo
guipenedo / matlab_tw_scavenging.m
Last active January 13, 2021 08:01
Script to calculate best scavenging splits - TribalWars
% script to calculate best scavenging splits - TribalWars
% author: PhilipsNostrum (@guipenedo)
% calculate best split using fmincon for 1 spear, up to *upper* spears
upper=500;
% scavenge time (C is the loot capacity, for instance, 1 spear = 25 loot capacity)
% ((C*LF*10)^(2*DE)+DIS)*DF

Keybase proof

I hereby claim:

To claim this, I am signing this object: