SRL Archive - MSI Archives

[OUTDATED] A Guide on Woodcutting.scar


Naum

2010-04-23 12:24:26

A Guide on Woodcutting.scar

Where all your questions will be answered…


    Procedure MSI_WaitWhileChopping(TreeX, TreeY: Integer; TreeInfo: TMSObject);
    {************************************************* *****************************}
    { Procedure MSI_WaitWhileChopping(TreeX, TreeY: Integer; TreeInfo: TMSObject); }
    { By: marpis }
    { Description: Wait while tree's been cut }
    {************************************************* *****************************}
    • As the name and the description suggests, this procedure will wait while the script is chopping. It will perform various anti-bans (MSI_AntiBan. Check the Antiban.scar file here), random checking (also in Antiban.scar) and anti-logout procedures while waiting.
    • TreeX and TreeY are the coordinates of where the tree is on the main screen, and TreeInfo is a TMSObject (check the Globals.scar file for the type here).

    [*]Function MSI_ChopTree(Which: TIntegerArray): Boolean;
    {************************************************* *****************************}
    { Function MSI_ChopTree(Which: TIntegerArray): Boolean; }
    { By: marpis }
    { Description: Chops tree }
    {************************************************* *****************************}
    • Using TMSObject, this function will chop the nearest tree declared in the 'Which' integer array and then wait until the tree is chopped. The integer array will be an array of the constants used for the tree objects. For example:

    • MSI_ChopTree([OBJ_TREE_NORMAL, OBJ_TREE_WILLOW, OBJ_TREE_YEW]);
  • Function MSI_ChopInvFull(Which: TIntegerArray): Boolean;
  • {************************************************* *****************************}
    { Function MSI_ChopInvFull(Which: TIntegerArray): Boolean; }
    { By: marpis }
    { Description: Chops trees until inventory is full }
    {************************************************* *****************************}
    • Using MSI_ChopTree, this function will chop trees until the inventory is full.
  • function MSI_PowerChop(WhichTrees, WhichLogs: TIntegerArray): Boolean;
  • {************************************************* *****************************}
    { function MSI_PowerChop(WhichTrees, WhichLogs: TIntegerArray): Boolean; }
    { By: marpis and Coh3n }
    { Description: Chops trees until inventory is full, then drops. }
    { Time is in milliseconds. }
    {************************************************* *****************************}
    • This function will chop the tree chosen and then drop all the logs that's specified in the WhichLogs array.

Sir R. M8gic1an

2010-07-04 08:21:00

Please post all comments in original thread, here:
http://villavu.com/forum/showthread.php?t=56326

~RM