Closed EmptySD closed 1 year ago
They added some script functions in the game. I still need to add the market summary back and the memory button at least. But it will take some time.
It does not work because extensions are isolated from the page events. You can simulate or break the isolation, but another problem is that travian sends server requests to validate the coordinates. Travian can catch bots and scripts if they validate both X and Y fields in a short time.
Added basic M(emory) button on market. Not fully functional. Only autocompletes resources needed. Village coordinates are not updated. The resources in the memory are not cleared after sending.
It does not work because extensions are isolated from the page events. You can simulate or break the isolation, but another problem is that travian sends server requests to validate the coordinates. Travian can catch bots and scripts if they validate both X and Y fields in a short time.
Is there a reason why do you fill in XY? That parameters can always be fetched from URL (by marketplace) in format of xy or map id.
Because the M function will refresh the page if it's using the url coordinates.
Also M stores the coordinates of the village where the resources are needed.
Fixed in 2.23.6
Is there a way to make an input in new market place? I tried the following: val, focus+input, trigger: keydown, keypress, keyup, change, text, textInput, ajax post directly to send script, different headers, etc. Nothing seams to work.