Results 1 to 4 of 4

Thread: DropItem And how to use it?

  1. #1
    Join Date
    Oct 2006
    Location
    Ėstonia
    Posts
    71
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DropItem And how to use it?

    Droping stuff... Blah in every script droping is handled differently. So now i'd like to know how to use function DropItem to drop item's from slot 2 to 28...

  2. #2
    Join Date
    Feb 2008
    Location
    In the woods of Finland
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try this

    SCAR Code:
    Procedure Drop;
    var
     i: Integer;
    begin
     GameTab(4);
     for i := 2 to 28 do
     begin
       if ExistsItem(i) then
       begin
        DropItem(i);
       end;
     end;
    end;

    One simple way
    Cut & Drop or Stock Powerchonker


    Teh 3vil Oar H1t5 Chuck Norris Stone c0ld

  3. #3
    Join Date
    Oct 2006
    Location
    Ėstonia
    Posts
    71
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works... Thanks.

  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    You don't need a begin - End for If () Then or a For/ While loop if you use only one "line" - like this:

    SCAR Code:
    For I := 1 To 28 Do
      If ExistsItem(i) Then
        DropItem(i);

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
  •