Results 1 to 4 of 4

Thread: full inv and run to bank and despoit problem

  1. #1
    Join Date
    Jan 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Question full inv and run to bank and despoit problem

    Im trying to make a script i dont know if im doing this right im kinda noobish at this but im trying to get this to work


    begin
    function backpackIsFull(): boolean;
    procedure runTobank();
    var
    pathTobank: TPointArray;
    begin
    if not isLoggedIn() then
    exit;
    pathTobank := [Point(263, 388), Point(263, 388), Point(226, 346), Point(209, 305), Point(199, 253), Point(191, 212), Point(177, 173), Point(167, 149), Point(150, 140), Point(126, 171), Point(89, 202), Point(84, 227), Point(101, 239), Point(114, 260), Point(137, 271), Point(142, 270)];


    end;

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    please use Simba tags
    Simba Code:
    1. begin
    2. function backpackIsFull(): boolean;
    3. procedure runTobank();
    4. var
    5. pathTobank: TPointArray;
    6. begin
    7. if not isLoggedIn() then
    8. exit;
    9. pathTobank := [Point(263, 388), Point(263, 388), Point(226, 346), Point(209, 305), Point(199, 253), Point(191, 212), Point(177, 173), Point(167, 149), Point(150, 140), Point(126, 171), Point(89, 202), Point(84, 227), Point(101, 239), Point(114, 260), Point(137, 271), Point(142, 270)];
    10.  
    11.  
    12. end;

    I'm not really sure what I'm looking at here. Can you explain?
    Last edited by Citrus; 12-21-2015 at 08:16 PM.

  3. #3
    Join Date
    Jun 2015
    Location
    New Zealand
    Posts
    322
    Mentioned
    2 Post(s)
    Quoted
    131 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    please use Simba tags
    Simba Code:
    1. begin
    2. function backpackIsFull(): boolean;
    3. procedure runTobank();
    4. var
    5. pathTobank: TPointArray;
    6. begin
    7. if not isLoggedIn() then
    8. exit;
    9. pathTobank := [Point(263, 388), Point(263, 388), Point(226, 346), Point(209, 305), Point(199, 253), Point(191, 212), Point(177, 173), Point(167, 149), Point(150, 140), Point(126, 171), Point(89, 202), Point(84, 227), Point(101, 239), Point(114, 260), Point(137, 271), Point(142, 270)];
    10.  
    11.  
    12. end;

    He wants the script to tell the character to run to the bank when inventory is full.



    I'm not really sure what I'm looking at here. Can you explain?
    instagib2001 - Do you have an SPS map setup for the co-ordinates? You'll need to define the procedure to check if the inventory is full, and place that before this procedure in the main loop of the script.

  4. #4
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    It looks like you have mashed two procedures/functions together.

    Simba Code:
    procedure runTobank();
    var
      pathTobank: TPointArray;
    begin
      if not isLoggedIn() then
        exit;

      pathTobank := [Point(263, 388), Point(263, 388), Point(226, 346), Point(209, 305), Point(199, 253), Point(191, 212), Point(177, 173), Point(167, 149), Point(150, 140), Point(126, 171), Point(89, 202), Point(84, 227), Point(101, 239), Point(114, 260), Point(137, 271), Point(142, 270)];

      SPS.walkPath(pathToBank);
    end;

    procedure loop();
    begin
      if tabBackpack.isFull() then
        runToBank()
      else begin
        writeLn('pack is not full yet');
        // mine rocks?
      end;

    end;

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
  •