Results 1 to 17 of 17

Thread: Drop procedure?

  1. #1
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Drop procedure?

    Ok, lol, I know this sounds really dumb, but can someone get me a script that just drops your whole inventory, I need to study it because I've been needing one so i can somehow get one in a script im trying to do, but cant do it, so if someone can do that, that'd be awesome...

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    There are many many ways to do this.
    You could do:

    SCAR Code:
    {Description: Drops all items}
    DropAll;

    {Description: Drops all except item(s) specified by inventory number(s).}
    DropExcept(I: array of Integer);
    {EX} DropExcept([1, 6]); {will keep items 1 and 6}

    {Drops Until hits Position.}
    DropToPosition(StartPosition, EndPosition: Integer);
    {EX} DropToPosition(2, 28) {will drop items 2 to 28}

    {Description: Drops item at given position (1-28)}
    DropItem(i: Integer);
    {EX} DropItem(3) {will drop item in 3rd inv spot}

  3. #3
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can i just see one way that works please? thanks

  4. #4
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeh, but see, what do i have to include, and how would i set this up?

    --EDIT--
    sorry for the double post, i thought he just posted a new post, but just edited his...

  5. #5
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    just include srl.scar

    EX
    SCAR Code:
    {.include srl/srl.scar}

    begin
      DropAll;
    end.
    that's it

  6. #6
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, it never works if i do that

    i'll give it a try though

  7. #7
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    lol why, what does it do(or not do)?

  8. #8
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i dont remember, but it says like the ; is expeted or something, idk, i had rev #6 i think and SRL 3.12 or w\e it was before the newest update

  9. #9
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Well post the error if you get one =]

  10. #10
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, lol, it's working, i think, but how do i change the mouse speed?

    nvm, i lied, it doesnt work, it just moves the mouse to the right, really slowly, and wont let me do anything else...

  11. #11
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no one can help (yeh, bump, i am very sorry)

  12. #12
    Join Date
    May 2006
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okay, do exactly as he said, i'll post a chunk of script for you to look at.

    SCAR Code:
    if InvFull then
       begin
        DropToPosition(2, 28);
        if AxeEquipped then DropAll;

    pretty much AxeEquipped was a constant and it would only leave the first spot open if it has the axe equipped. srop to position drops everything from slots 2, to 28, using right click drop.

    "If I Pwn Before I Wake, I Pray To Jagex My Account Not To Take."



  13. #13
    Join Date
    Jan 2007
    Location
    Hamilton, New Zealand
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No I had this same problem

    SCAR Code:
    program New;
    {.include srl/srl.scar}
     
    begin
      SetupSRL;
      DropAll;
    end.

    You didnt put the srl setup part so mouse speed = 0, REALLY SLOW!

  14. #14
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ss23 View Post
    No I had this same problem

    SCAR Code:
    program New;
    {.include srl/srl.scar}
     
    begin
      SetupSRL;
      DropAll;
    end.

    You didnt put the srl setup part so mouse speed = 0, REALLY SLOW!
    yes, that's works great, but how can I have a custom speed?

  15. #15
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes open up the srl.scar include(C:\Program Files\SCAR 3.13\includes\SRL\SRL.scar), scroll to the procedure 'SetupSRL;' and in it, change the variable 'MouseSpeed' to whatever you want.
    SCAR Code:
    procedure SetupSRL;
    begin
      MouseSpeed := 15; //here
      NickNameBMP := 0;
      CheckHPFirst := True;
      Reincarnate := False;

    then just make sure to use 'SetupSRL;' at the beginning of all your scripts.

  16. #16
    Join Date
    Nov 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, ok, ty guys so much for the help!

  17. #17
    Join Date
    Nov 2007
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure Drop;
    begin
    If (InvFull) then
    begin
    droptoposition (1, 28);
    end else
    Drop;
    end;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Drop Procedure
    By HempLord in forum OSR Help
    Replies: 12
    Last Post: 04-16-2008, 06:18 PM
  2. Drop Procedure mucking up =[
    By Submersal in forum OSR Help
    Replies: 7
    Last Post: 11-03-2007, 01:14 AM
  3. Easiest Drop procedure lol
    By destroyface in forum Research & Development Lounge
    Replies: 25
    Last Post: 08-31-2007, 09:20 PM
  4. Drop All Procedure?
    By Rune Hacker in forum OSR Help
    Replies: 13
    Last Post: 04-08-2007, 02:11 AM
  5. Drop Procedure
    By TheGodfather in forum OSR Help
    Replies: 6
    Last Post: 02-13-2007, 06:59 PM

Posting Permissions

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