SRL Archive - MSI Suggestions

Coal Bag Support


YoHoJo

2012-02-01 15:38:53

http://runescape.wikia.com/wiki/Coal_bag

Kyle Undefined

2012-02-01 15:41:46

For the mining scripts? I could add it I guess, although I don't have an account with it.

YoHoJo

2012-02-01 15:49:48

Coh3n does. Ask to borrow and do it :D

Coh3n

2012-02-01 19:45:11

Would have to be added somewhere in Mining.simba. Maybe like:

function MSI_MineInvFull: Boolean;
begin
Result := MSI_AutoInvFull(@MSI_MineRock)); // MSI_AutoInvFull in Skills.simba

if (MSI_Players[CurrentPlayer].CoalBag) then
if (MSI_FillCoalBag()) then // MSI_FillCoalBag would be in Mining.simba
begin
Result := false;
Result := MSI_AutoInvFull(@MSI_MineRock);
end;
end;
It'll still return true if it failed to fill the coal bag. The function MSI_FillCoalBag will have to add the inventory slot it's found in to the player's exceptions array, but that's easy. You can look at MSI_FindTool for a reference if needed.

bolshak25

2012-02-01 20:09:19

i have an account if you need one just pm me :)

Kyle Undefined

2012-02-20 01:59:06

This has been committed.