WildlingInvader
Non-stop Poster
- Reaction score
- 113
- Author
- TheAHouse
- Contributors
- N/A
- Quickbar Entry
-
javascript: function findCoords() {
let text = $('#coordsInput');
let coords = text.val().match(/\d{3}\|\d{3}/g);
coords == null ? text.val('No coords found') : text.val(coords.join(' '));
text.select();
}
(() => {
let ui = `<div><textarea id="coordsInput" rows="6" cols="55">Paste text with coords here</textarea><br><button onclick="findCoords()">Find Coords</button></div>`;
$('#header_info').after(ui);
})();
- Public?
- Public
Script to extract all coords from a tribalwars text.
Just copy paste a tribalwars text within the textbox and the script will extract all coords within.
Just copy paste a tribalwars text within the textbox and the script will extract all coords within.
Last edited:
Upvote
1