Results 1 to 4 of 4

Thread: Quick question

  1. #1
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Red face Quick question

    Hi, I am kinda new to scripting, I've done alot of tutorials but I am trying to work out a little thing with InvCount.
    How do i make it so the script will go to the bank if there is nothing in the inventory?

    I tried to make it so the script delivers some text if there is nothing there, but when I start the script it displays the message even if there is stuff in the inventory.

    so far I have:
    Simba Code:
    begin
    SetupSRL;
    If InvCount = 0 Then;
    begin
          WriteLn('No More Logs');  // Will change this to banking later
         end;
          LogsUnBurnto;
    Repeat
        Wait(6000);
        LogsToBurno;
    Until(InvCount = 0);
    end.

    Oh, and yes, I did try googling it ): and searching it, but all the InvCount's there were not what I needed.

    Thanks for your help

  2. #2
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    try this:

    Code:
    begin
    SetupSRL;
    If InvCount = 0 Then // you did a ; here, which you shouldn't do after 'then'.
    begin
          WriteLn('No More Logs');  // Will change this to banking later
    end;
          LogsUnBurnto;
    Repeat
        Wait(6000);
        LogsToBurno;
    Until(InvCount = 0);
    end.
    And to open a bank you have to call a OpenBank function, I don't know which one but it should be one of these:

    * OpenBank
    * OpenBankChest
    * OpenBankChestEdge
    * OpenBankFast
    * OpenBankNPC
    * OpenBankQuiet

    Or you could of course make your own bank opening function or change one of these.
    Last edited by Master BAW; 10-28-2012 at 06:31 PM.
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  3. #3
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What a silly mistake ): lol

    Thanks so much

  4. #4
    Join Date
    Dec 2009
    Posts
    380
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    I'm assuming you want to firemake? Judging by the name "Logs to Burn"?


    You could do:

    Simba Code:
    // Something to begin the fire

    repeat
      // Insert failsafes, waits, etc. You will want to make sure that
      // if the fire goes out and there's still logs it'll make another fire, or
      // whatever you may want to check for.
    until InvCoult=0


    // Whatever procedures/functions you want to do after Inv is empty.
    // Like Walking to Bank
    // Then Banking
    // Then Walking to the spot
    // Then restarting the fire, etc.
    Currently: Playing OSRS legit until I get bored

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
  •