Results 1 to 9 of 9

Thread: Deposit box problem

  1. #1
    Join Date
    Dec 2011
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default Deposit box problem

    I'm doing some brainstorming for a script I'm writing but I'm having a slight issue with depositing my items to a deposit box, since I don't want to deposit all of them (everything except the first slot to be exact).
    First I figured I might try using the SRL banking stuff but the screen isn't identical, however I found something interesting that might help me out a little.

    http://docs.villavu.com/srl-5/bank.h...t=deposit#id16
    PHP Code:
    function DepositItemBox(ItemInteger): TBox;

    // Returns a TBox surround Item (1 to 28) in the Deposit Box screen. 
    I'm not a 100% sure what TBox is though, and I can't find any documentation on it.
    Got any suggestions or other information on this?
    Or am I going about this completely retardedly?

    Cheers,
    shebee

  2. #2
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    TBox is a box created by two TPoints (TPoint is made up of an x and a y co-ordinate) -
    One being the top left of the box and the other being the bottom right.
    e.g. the constants MSX1, MSY1, MSX2, MSX2 are co-ordinates that could make up a TBox.
    So there you have it. A box defined by 2 points.

  3. #3
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    A TBox is a collection of coordinates that form a box.

    It is made from two points like this:

    A------------?
    ?---------- ?
    ?---------- ?
    ?---------- ?
    --------------B

    Except points have coordinates, so a TBox is four coordinates: X1, Y1, X2, Y2

    The X1 and Y1 are the top-left corner, and the X2 and Y2 are the botton-right corner.

    Hopefully that helps and isn't too confusing

  4. #4
    Join Date
    Dec 2011
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    So it returns 2 points, alright.
    I guess there's no way I can use this for "searching" an item in the deposit box, since I want to deposit all except a certain slot.
    Think I'll take a look at the SRL included deposit thing that excludes slots, but meanwhile any ideas?

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    If it is all the the same item you can make a DTM of the item and search for it in the inventory and the if you find the DTM just use clickmouse2(false) which i believe right clicks and select the option deposit all.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  6. #6
    Join Date
    Dec 2011
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    I thought of DTMs, but I'd have to include a big list of possible items...
    Maybe I could just check the deposit box for items that aren't of the DTM I want to deposit (so the opposite of checking what items to deposit, check what items it doesn't recognize and deposit them).
    But how do I confine the DTM search to the deposit box?
    I can't help but think that there's a way simpler way to do this.

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by shebee View Post
    I thought of DTMs, but I'd have to include a big list of possible items...
    Maybe I could just check the deposit box for items that aren't of the DTM I want to deposit (so the opposite of checking what items to deposit, check what items it doesn't recognize and deposit them).
    But how do I confine the DTM search to the deposit box?
    I can't help but think that there's a way simpler way to do this.
    Use Deposit( 2, 28, True) It works for depositscreen and bankscreen

    Creds to DannyRS for this wonderful sig!

  8. #8
    Join Date
    Dec 2011
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Use Deposit( 2, 28, True) It works for depositscreen and bankscreen
    Thanks!
    I should've checked the actual code before posting... :/
    Maybe update the documentation on this?
    Last edited by shebee; 02-20-2013 at 10:41 PM.

  9. #9
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by shebee View Post
    Thanks!
    I should've checked the actual code before posting... :/
    Maybe update the documentation on this?
    I saw it by reading the function (doubleclick on it @ functionlist) :
    if (not(BScreen)) then
    DScreen := DepositScreen;

    Creds to DannyRS for this wonderful sig!

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
  •