Results 1 to 6 of 6

Thread: Editing DropAll help [Quick Question]

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Question Editing DropAll help [Quick Question]

    Hey guys really quick here, can you help me edit this so that the bot DOESN'T drop my first inventory slot. I don't want to use DropAllExcept.

    Code:
    procedure DropLogs;
    var i: integer;
    begin
      for i:= 1 to 2 do
      begin
        DropPattern(Random(2) + 1);
        if InvCount = 0 then
          break;
      end;
    end;
    Thanks,
    kbScripts and KeepBotting

  2. #2
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    why can't you just use drop all except?

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Evlin View Post
    why can't you just use drop all except?
    It produces a "duplicate identifier" and/or "identifier expected" error when I try to use it.

  4. #4
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    can't you just fix that error? it would be much easier than trying to change this procedure..

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Evlin View Post
    can't you just fix that error? it would be much easier than trying to change this procedure..
    I've tried numerous times, can't seem to get it right.

  6. #6
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    If DropAllExcept(); is not working for you, try using DropArray();
    Simba Code:
    var
      whichInv: Array[0..27] of Integer;
      i: Integer;

    //First, declare the array:
    for i := 0 to 27 do
      whichInv[i] := i + 2;   //This will make whichInv = [2, 3, 4, 5, 6, 7, 8, 9..28]

    //Then use the function:
      DropArray(whichInv);

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •