SRL Archive - MSI Suggestions

Scripts that don't have a bank nor want to drop materials


Camaro'

2010-12-17 15:27:20

Mainloop.simba

{******************************************************************************}
{ function MSI_AutoObjects: Boolean; }
{ By: The MSI Team }
{ Date: 04 August 2010 }
{ Description: Performs the specified skill }
{******************************************************************************}
function MSI_AutoObjects: Boolean;
var
scriptConst: Integer;
begin
if (not LoggedIn) then
Exit;

MSI_AddHeader('MSI_AutoObjects');

scriptConst := MSI_Players[CurrentPlayer].Scripts[CurrentScript].Name;

Result := MSI_Scripts[scriptConst].AutoObjects();
if (not(MSI_Scripts[scriptConst].BankType = NoBanking)) then //if you arent fighting, doing magic, when you dont wanna drop stuff
if (MSI_Scripts[scriptConst].BankType = NoBank) then //drop the items if not banking
begin
MSI_CountItems;
MSI_DropAll;
MSI_AddToProggy(PROG_ADD_LOADS, -1, -1, -1);
Result := True;
end;

MSI_CloseHeader('MSI_AutoObjects: ' + BoolToStr(Result));
end;

Globals.simba

type
TBank = (Bank, DBox, NoBank, NoBanking);

and in Scripts.simba in the magic script part, add this


BankType := NoBanking;

This will remove all the clutter from auto objects (not much now but with fighting there is)

Thanks

Coh3n

2010-12-17 15:38:07

Committed, although I changed it slightly.

I added 'Drop' to TBank, and change the Powerskillers to BankType := Drop, and in MSI_AutoObjects if (BankType = Drop) then.

Thought that makes more sense. ;)

Camaro'

2010-12-17 16:09:30

From: Coh3n
Committed, although I changed it slightly.

I added 'Drop' to TBank, and change the Powerskillers to BankType := Drop, and in MSI_AutoObjects if (BankType = Drop) then.

Thought that makes more sense. ;)


100% makes more sense, I was just too lazy to do the more proper way. Thanks a bunch:)

Coh3n

2010-12-17 17:36:11

[QUOTE=Camaro';759894]100% makes more sense, I was just too lazy to do the more proper way. Thanks a bunch:)[/QUOTE]
Too lazy? The only thing I changed was NoBanking -> Drop. :p

TomTuff

2010-12-17 17:41:35

What skills/situations would this be useful for?

Coh3n

2010-12-17 18:05:32

From: TomTuff
What skills/situations would this be useful for?

For TBank? Some scripts use a deposit box, which has different banking routines. Some scripts don't bank at all, they drop. Some don't bank nor drop (power fighter, magic). And some will use NPC banking routines; although, we don't actually have that yet.

NCDS

2010-12-17 19:35:30

From: Coh3n
And some will use NPC banking routines; although, we don't actually have that yet.


Do you know if Hobbit actually started that or not? If not I'll do it right now.

Camaro'

2010-12-17 19:41:18

From: Coh3n
Too lazy? The only thing I changed was NoBanking -> Drop. :p


Lol, I thought it was way more for some reason. Its all good :) Thanks.