[Guide] A newbie's guide to scripts

crom

Guest
Well, I originally wrote this for .co.uk, about 6 months ago. Thought I might as well edit it for here, as people seemed to find it useful over there.

First off, this guide will cover the basics of scripts; what they are, how to use them, and how they help you. It won't actually include any scripts, as these can be found here, along with a description of how each individual one works, and how to edit it. This guide is not indented for experienced players, as indicated in the title. I will only cover the very basics.

Why is this guide necessary?
Well, over the years that I've been playing, there have been hundreds of people whom I have taught how to use scripts. I'm writing this to (hopefully) get all basic info about scripts into one place, so that I, and other people, can point them in the direction of this thread, rather than having to explain it to each individual player.

What is a script?
Scripts are codes, which generally aid you playing tribalwars. They are written in Javascript, one of the most common programming languages. I am totally useless at JS, so don't ask me how you actually make one. I just abuse other people's cleverness, and steal their scripts :icon_wink:

How do I use them?
This depends on whether or not you have a premium account.
Without Premium: Not all scripts will work, for example the mass-recruit script, which uses a page which non-premium users do not have! For the ones which do work, either save the script as a bookmark, and click that, or copy and paste it into the address bar and hit return. Bookmarking is much, much easier though. (See below for more detailed guide for particular browsers)

With Premium: Open up your quickbar (settings > edit quickbar). Click on "Add new link" and give it a sensible name. Then copy the script into the "Target-URL" box, and hit OK. (Yes, you may add a picture if you wish to make your quickbar pretty)

Why do I need them?
Scripts will help you no end with your daily routine. Things which would usually take hours can be completed in ten minutes, with the click of a button. Some people say they ruin the game, some choose not to use them because of this, but personally? I think that whilst they're allowed, use them! Well, if you wish to continue with your life!

The scripting rules
The rules are available from the help pages, so I won't go over them, but a lot of people ask me why there need to be rules in place. If there weren't rules with scripting, people would be able to run an account without actually touching it. Accounts could look after themselves, eliminating all skill involved. People could manage totally amazing timing, noble trains in 3 ms, and then splitting these trains! Which would not be a good thing.

A guide to bookmarking in each browser (For non-PA) - Massive thanks to Fluffy88 for the screenshots, and some of the writing for these

Firefox

[SPOIL]
How to create a new bookmark on Firefox;
Firstly just in case you don't have your bookmarks bar visible I will show you how to do that.

Open firefox and once it has loaded right click anywhere along the menu bar,
now you get a little pop-up with a few options something like this,
[SPOIL]
first.png
[/SPOIL]
Now click "Bookmarks Toolbar" and it should appear.

Once you have the bar visible to create a new bookmark you have to right click the Bookmarks bar itself,
and again you get a pop-up, now click "New Bookmark..."
This will give you a pop-up to create the new bookmark, enter the name for the new bookmark and since this guide is for scripts we paste the new Script into the location box.
[SPOIL]
second.png
[/SPOIL]
You can enter a Keyword or Description if you like but they are not needed.
Hit add and thats it.

Now that is it, your new script is installed in your Bookmarks Bar[/SPOIL]

Internet Explorer 8

[SPOIL]
Bookmark guide for IE8;
First to show the Bookmarks Bar or Favourites Bar in IE, Just right click on the menu bar and click "Favourites Bar" now the Favourites Bar should be visible.

To add a new script to the Favourites Bar,
First on the menu bar at the top click Favourites >> Add to Favourites.. and it will give you a pop-up,
Now in this new window change the name to something suitable and in the drop down menu select the Favourites Bar and click "Add".
[SPOIL]
firstIE8.png
[/SPOIL]
Your new Bookmark is set for the current page so we need to change the url.
Right click the new Bookmark and select Properties.

In the new window there is a URL field, we need to paste our new script into the field in place of the current path(make sure to remove the current path before pasting the script into it).
You can set a shortcut key but that is not necessary.
Now click Ok you should get a warning "The protocol JavaScript does not....." just hit yes and that should be it,
[SPOIL]
secondIE8.png
[/SPOIL]
your new script is on your Favourites Bar.
[/SPOIL]

Opera

[SPOIL]
Bookmark guide for Opera;
Firstly, when Opera is open, press F4 to open the "Panels" sidebar. Then click on the star, to see your bookmarks.
[SPOIL]
operascreen1.png
[/SPOIL]

Now, click on "Add" (must click on the arrow next to it) then "New Bookmark" Click in the name box and name it appropriately. In the address box, copy and paste the script you will be using.
[SPOIL]
operascreen2.png
[/SPOIL]

Finally, from the Panels sidebar, find your bookmark, and whilst holding shift, drag it to the bookmark's bar, and it should look something like this:
[SPOIL]
operascreen3.png
[/SPOIL]

Then you're done![/SPOIL]

And finally, I hope that this guide helps anyone who is unsure about scripts. Anything that you think I've missed out which should be included, or want extra help, feel free to pm me!

Feel free to nick any content from here if you wish. A little note saying I wrote it would be nice, but I'm not fussed. Enjoy!

~ Crom.
 
Last edited:

File Not Found

Guest
If people are able to install a single quickbar link, or even if they can't, then, they can use a tool like "Miss File's Quickbar Constructor (MFQBC)", to install many commonly used scripts onto their quickbar with ease, even when MFQBC is run from the address bar.

It also has versions that can be customized by somebody distributing MFQBC to the "newbie" in question.




-----> Miss File's Quickbar Constructor Thread <-----
 
Last edited:

DeletedUser

Guest
Very good Guide!
Very good and every new player to TW should read this ASAP

Note to self: Must pass this on to my tribe.
 
Last edited by a moderator:

hanibalii

Guest
good guide, i would have also mentioned how if you put farming links bookmarks in a group on opera, you can click open all folder items, and farm everything (or run lots of scripts) at once :)
 

crom

Guest
If people are able to install a single quickbar link, or even if they can't, then, they can use a tool like "Miss File's Quickbar Constructor (MFQBC)", to install many commonly used scripts onto their quickbar with ease, even when MFQBC is run from the address bar.

It also has versions that can be customized by somebody distributing MFQBC to the "newbie" in question.




-----> Miss File's Quickbar Constructor Thread <-----
I'll put a link to that in sometime soon :) Looks helpful. And err...Anything else you feel I've missed out, either give me a pm, or post in here, and I can add it in!
 
Top