Advice requested for simple inventory drop

Discussion in 'Script Requests' started by WildCard45, Sep 24, 2009.

Advice requested for simple inventory drop
  1. Unread #1 - Sep 24, 2009 at 7:37 PM
  2. WildCard45
    Joined:
    Sep 24, 2009
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0

    WildCard45 Newcomer

    Advice requested for simple inventory drop

    I am new to SCAR, but not to programming so much - so I was able to get a simple script going to dump all 28 carried inventory items using ClickWindMouse. This works okay, but I need your help in using this in another way.

    Before, I was powermining manually, and then would run the script to dump the inventory.

    Now I am power mining in the desert, and am carrying 27 water flasks. What I am trying to do is now manually mine 1x, and then dump that mined item onto the floor.

    Problem: Is there a way I could script a 'dump28thItem' SCAR script that would be constantly running, but maybe could activate/dump 28th item under the following conditions:
    a) It checks to see if there is anything in the 28th spot and dumps it
    b) It waits for me to hit a certain key (eg cntr+F3), then dumps it.

    Suggestions? Just looking for help in speeding up the dumping of that one inventory slot while I manually mine.

    Thanks!
    WC
     
  3. Unread #2 - Sep 24, 2009 at 8:40 PM
  4. Hey321
    Joined:
    Jul 30, 2007
    Posts:
    503
    Referrals:
    0
    Sythe Gold:
    0

    Hey321 Forum Addict

    Advice requested for simple inventory drop

    Code:
    If (IsFkeyDown(Number)) Then
    //code here
    For your second question.

    Your first one would need SRL and a loop.

    Code:
    program New;
    {.include srl/srl.scar}
    
    begin
      SetupSRL;
      Repeat
        If(ExistsItem(28))Then
          DropItem(28);
      Until(IsFkeyDown(9))
    end.
    This will continually check to see if an item exists in slot 28, then drop it, all using SRL. If you're looking for undetectable Runescape functions, I suggest downloading SCAR 3.21, and getting SRL #38, Dev Rev.

    Check out Freddy1990.com for SCAR, and Villavu.com for SRL (although I believe SRL has built in support in SCAR in this version, but may not in future versions).

    It helps to cut down on everything. Dropping everything looks like this in SRL:

    Code:
    If(IsFkeyDown(9))Then
      DropAll;
    Feel free to private message me if you have any more questions, and I'll do my best to help you!

    ~Sandstorm
     
  5. Unread #3 - Sep 24, 2009 at 9:29 PM
  6. WildCard45
    Joined:
    Sep 24, 2009
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0

    WildCard45 Newcomer

    Advice requested for simple inventory drop

    Thanks so much Hey321, incredible advice. I'll work on this tonight and get back to you tomorrow on my success or failure.

    Thanks.so.much!
     
  7. Unread #4 - Nov 16, 2009 at 12:47 AM
  8. Ghostman
    Joined:
    Jul 19, 2008
    Posts:
    62
    Referrals:
    0
    Sythe Gold:
    0

    Ghostman Member

    Advice requested for simple inventory drop

    Code:
    Procedure Droplog;
    var
     i:integer;
    begin
     for i:= 2 to 28 do
      begin
       If ExistsItem(i) then
       DropItem(i);
       Loads:=Loads+27;
     end;
    end;
    Remember you must have i has a integer
     
< Seroko's SCAR Scripts | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site