That drop repair pack script

O

old.Stamper2

Guest
Everyone seems to have that script, the one where you drop a repair kit when you leave the station. Think its useful but haven't found it.

Someone give me a link please and they'll be a repair pack waiting on the floor for you when the base goes down
smile.gif
 
O

old.zach

Guest
The one i (and other BL) use is of my own invention.

i believe writter is adding that feature to the next version of fast faves

- Zach
 
O

old.Speed

Guest
In Writer's Scripts, there is a script called Litterbug.cs. It is supposed to allow you to drop multiple items rather quickly (I think the repair pack is the default).

Anyone know if this has something to do with that fast_favourites.cs script Zach mentioned coz it's giving me sh*tloads of grief.

Cheers
Speed
 
O

old.harmless

Guest
If anyone is interested, here are two solutions for dropping the repair pack automatically while at an inv station.

The first is to buy and drop a repair pack when you buy your favourites.

function BuyMyFavorites(%fav)
{

// But a repair pack.

remoteEval(2048, buyitem, 30);

// Drop it.

Drop("Repair Pack");

// Buy the favourites.

CmdinventoryGui::buyFavorites(%fav);
}

// change the 'control' and the 1..5 to whatever you want to use as you favourite keys.

bindCommand(keyboard0, make, control, "1", TO, "BuyMyFavorites(1);");
bindCommand(keyboard0, make, control, "2", TO, "BuyMyFavorites(2);");
bindCommand(keyboard0, make, control, "3", TO, "BuyMyFavorites(3);");
bindCommand(keyboard0, make, control, "4", TO, "BuyMyFavorites(4);");
bindCommand(keyboard0, make, control, "5", TO, "BuyMyFavorites(5);");

The second is to automatically buy and drop a repair pack when you enter a station, but this requires Presto. The problem with this one, is that there is no way to distinguish a deployed inv station, so you will use up its energy quicker.

function Station::On()
{

// Get your current back pack.

%curr=GetMountedItem(1);

// If you don't have a back pack, then buy and drop one, otherwise drop the one you have.

if ( %curr != $Inv::Repair_Pack )
BuyDrop($Inv::Repair_Pack);
else
Drop($Inv::Name[%curr]);

// Re-buy the backpack you had.

if ( %curr != -1 )
remoteEval(2048, buyitem, %curr );
}

function BuyDrop(%item)
{
remoteEval(2048, buyitem, %item);
Drop($Inv::Name[%item]);
}

// Call function when a station is accessed.

Event::Attach(eventEnterStation, Station::On);


Just copy these bits of code to the end of your autoexec.cs.

Hope this is of use.
Regards Harmless.
 
O

old.zach

Guest
The new version of writers fast faves is out and has the drop repair pack feature, it take a while to set up but is well worth having.

- Zach
 

Users who are viewing this thread

Top Bottom