Gu3st...
2010-12-13 12:53:36
To cope with skills that require items to be taken out of the bank, and not only deposit items, I've added BankObjects to the TScript record.
This means that for each record you can specify what function you want to use to handle banking. Woodcutting and Mining uses BankMaterials, while other skills (like cooking) will have it's custom function.
To add a custom function, just add "BankObjects := @blah;"
to the script record.
When I think about it, it would be better if we had one function named "HandleBanking";
This means that for each record you can specify what function you want to use to handle banking. Woodcutting and Mining uses BankMaterials, while other skills (like cooking) will have it's custom function.
To add a custom function, just add "BankObjects := @blah;"
to the script record.
When I think about it, it would be better if we had one function named "HandleBanking";
function HandleBanking(WhichSkill) : Bool;
begin
case WhichSkill of
skill_woodcutting: BankMaterials;
skill_mining: BankMaterials;
...
end;
end;Which makes me think about another function; function MSI_SetupSkill(WhichSkill : Integer): Boolean;…