Tankpal Instructions

 

Overview:

Tankpal is designed to run in conjunction with El-Tank. It adds extra functionality to improve your macroing experience =). Basically it started as a return to base macro when I noticed eltank walking down hills in archer mode. Over time as I noticed things that I'd like added, or other plugins that some people had trouble getting to work I've kept adding till its gone way beyond the original concept. The main functionality people will like is the looting/salvaging. This is designed to work most of the time. Occasionally a corpse wont be opened, or a piece of salvage you pick up wont be salvaged, or perhaps it will start a second bag of salvage before finishing the first. This is basically due to being extra safe about messing something up. I figure a 95% successful safe script is better than a 100% successful script that goes haywire.

Tankpal is meant to be run afk. It regularly takes over your mouse and keyboard. Its safest to not touch either of these while its running, but I would at least recommend not trying to chat ingame while its doing a loot sequence. Wait until it turns El-Tank back on before continuing your conversation.

Warning:

I've done everything possible to ensure that nothing gets salvaged that shouldn't be. Every item that gets created near you gets a unique identifier. I check that the item you click your mouse on to drag into the ust has the exact same identifier that the item you picked up off the corpse has. This is AC however, lag spikes happen, freaky stuff occurs, theres no 100% guarantee something wont mess up. Be very wary of macroing with gear that you can't afford to lose. Stuff you wear should be that much safer, but bows/wands etc that you unequip should be considered at small risk.

Installing:

 If you have not already done so, please download the latest version of Skunkworks from http://skunkworks.sourceforge.net/ and install it.

Extract the files in  Tankpal.zip and copy into the c:\program files\skunkworks\Libraries folder.

When you are ingame you just select Tankpal from the dropdown list of projects in Skunkworks and click the go button. This starts the script running and brings up a decal style panel from which you choose the options you want to run.

 

Options:

Main page:

Loot page:

Logoff page:

 

Modifying the script:

Since this script was basically developed for my own use then distributed to guild members/allies, there are some things in it that suit me, but may not suit you. I'll give instructions here on how you can make modifications to suit yourself. You may like to backup the script first by copying it to another directory so you can copy it back if need be. To edit the script, go to your c:\program files\Skunkworks\Libraries folder, right click on the tankpal.js file and select edit. This should open the script in a text editor of some kind.

Salvage Materials:

To add or remove materials to be salvaged, scroll down through the script until you get to the function Loot() section. If you scroll down through this section you'll see a part that begins:

MatType = " ";
switch(CurrentLoot.material) {

and then goes on to list a whole lot of case materialMaterialTypes: such as:

case materialBlackOpal: 
        MatType = "Black Opal";
        Salvage(CurrentLoot, MatType);
        break;

If you want to add a material I haven't got listed, copy and paste one of the lots of 4 lines after the last material, but before the default: line. Change the case to be the material you want, and change the MatType = to be the material type you want. If you're unsure about what the materialCode is for your material, then if you go to your Skunkworks folder in the start menu of your pc (i.e., like your going to start an application), you'll see it comes with documentation. Open this and select the API constants section, then the material section. You should find the material code you want in there.

Panel Defaults:

At the moment the script has a set of defaults that suits me, but may not suit you. To change any of the defaults, edit the tankpal.js file and you'll notice right at the top a long list of lines that each start with var. and end with a comment describing what that variable is for. There is one for each option on the panel, and it should be easy to find which one you want using the name and the comment. Just change the value after the = to what you want the default to be.

Friends List:

In the code section starting with:

function MyHandlers_OnObjectCreatePlayer(aco)

scroll down to the part that begins:

if (Friends)
{

and add another case similar to the existing ones using the name of your friend. This is case sensitive!

Shit List:

In the code section starting with:

function MyHandlers_OnObjectCreatePlayer(aco)

scroll down past the friends list (see above) and go to the next list of playernames and add another case with the name of the person you want added to the shit list.

Trophies:

Basically anything you want to pick up by name. Scroll down to the part of the file that begins:

function Trophy(CurrentLoot)
{

and add the item you want. To stop picking up an item just put a // in front of the case (such as Virindi Singularity Key). To start picking up an item remove the //.