Results 1 to 10 of 10

Thread: Inventory Empty

  1. #1
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Inventory Empty

    Hello,

    I've been looking for a command like "procedure DropAllLogs; " that would clean out the entire inventory. Is there such a procedure I can call, or do I have to make it myself?

    Also, if it has the ability, is there slot numbers it can preserve?

    Thanks.

  2. #2
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make your own.

    SCAR Code:
    Procedure DropStuff;
    var
      item: Integer;
    begin
      Status('Dropping Stuff');
      for item := 1 to 28 do
      dropitem(item);
    end;

    edit: Yeah, for item 1 to 28, will obviously drop 1 to 28, you could have 2 to 28, 1 to 27, etc etc..

    edit2: you could also change the first item to drop to a const, and make the script more "user friendly" if for example you was making a power miner/cutter. You could have "splat" as "wielded" and have the user make wielded = 1 if they have their axe wielded, or 2 if they don't have it wielded. You get the general idea ;p
    SCAR Code:
    program Splat;

    const
      Splat = 1;

    Procedure DropStuff;
    var
      item: Integer;
    begin
      Status('Dropping Stuff');
      for item := Splat to 28 do
      dropitem(item);
    end;

  3. #3
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    So for:
    Code:
    dropitem(item);
    This will drop the item in that slot.

    Does it go:
    1 2 3 4
    5 6 7 8
    9...etc
    ?
    Last edited by Cstrike; 10-11-2010 at 03:49 AM.

  4. #4
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes..

  5. #5
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, it goes from 1 to 4, 5-8, 9-13, 14-18, etc.

  6. #6
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    Yes, it goes from 1 to 4, 5-8, 9-13, 14-18, etc.
    I lolled @ 9-13

  7. #7
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why did you "lol" at 9-13?

  8. #8
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    Why did you "lol" at 9-13?
    Because your pattern, "1 to 4, 5-8, 9-13, 14-18, etc" epicly fails when it gets to 9-13, and then starts to skyrocket downhill until it epicly plunges into the epic lake.

  9. #9
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    Why did you "lol" at 9-13?
    1 2 3 4
    5 6 7 8
    9 10 11 12
    13...etc

    9 - 13 = 5
    It looks like 4 but it's five.

    Thanks Orange

  10. #10
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh yeah.
    Sorry. Lol.

    I was like tripletasking =/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Items in inventory help
    By wtf i sp4nk in forum OSR Help
    Replies: 2
    Last Post: 05-20-2007, 09:58 PM
  2. Inventory
    By 3Garrett3 in forum OSR Help
    Replies: 5
    Last Post: 03-18-2007, 01:42 AM

Posting Permissions

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