Results 1 to 7 of 7

Thread: Explanation: Two Bank Routines

  1. #1
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation Explanation: Two Bank Routines

    I am trying to get my head around these two Bank routines ...

    1. MSTPointToBankPoint
    2. BankPointToBankIndex


    Could someone who understands these please explain them in detail for me ?

    Thanks!
    Ciao
    NM

  2. #2
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Quote Originally Posted by NickMystre View Post
    I am trying to get my head around these two Bank routines ...

    1. MSTPointToBankPoint
    2. BankPointToBankIndex


    Could someone who understands these please explain them in detail for me ?

    Thanks!
    Simba Code:
    function MSTPointToBankPoint(P: TPoint): TPoint;

    Converts a point on the Mainscreen to the point in the Bank.

    Simba Code:
    function BankPointToBankIndex(P: TPoint): Integer;

    Converts a Bank Point (Row,Col) to Bank Index (spot in bank). (0, 0) = 1

    just double click the function in simba

  3. #3
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation RE: BankPoint-/MSTPoint- routines

    Quote Originally Posted by CRU1Z1N View Post
    Simba Code:
    function MSTPointToBankPoint(P: TPoint): TPoint;

    Converts a point on the Mainscreen to the point in the Bank.

    Simba Code:
    function BankPointToBankIndex(P: TPoint): Integer;

    Converts a Bank Point (Row,Col) to Bank Index (spot in bank). (0, 0) = 1

    just double click the function in simba
    Some questions ...

    1. Why would you want to convert a Mainscreen point to one in the Bank ? I don't understand this.
    2. WRT: BankPointToBankIndex(P: TPoint) -> Does this refer to the first bank tab (Infinity) where you have all the items listed, and you can reference them using the row / column method ie Row 5, Column 2 could be Tab 2 / Item 2 for example.


    Thanks!
    Ciao
    NM

  4. #4
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    These are useless by themselves, their real use is in this:

    GetMSBankItemAmount(x, y);

    Both the above just help this function work. With this, you can find an Item in bank with the method of your choice and once you have x and y coordinates of the item, you can call an Integer and make it equal to the above like this:

    Shark: Integer;

    Shark := GetMSBankItemAmount(x, y);

    This will sell you how many Sharks you have in your bank if you indeed have a Shark in (x, y). This is just an example but you can use this to find the amount of any item in your bank.
    GLH Tutorial ~ OpenGL Scripting
    http://villavu.com/forum/showthread.php?p=1292150

    GLH Scripts ~ Abyssal Scripts
    http://villavu.com/forum/showthread.php?p=1293187
    Current Projects:
    A) DemiseSlayer Pro (Released/100%).
    B) Demise Power Miner(Released/100%).
    C) Demise Pyramid Plunder(Planning Stage/0%).

  5. #5
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by NickMystre View Post
    Some questions ...

    1. Why would you want to convert a Mainscreen point to one in the Bank ? I don't understand this.
    2. WRT: BankPointToBankIndex(P: TPoint) -> Does this refer to the first bank tab (Infinity) where you have all the items listed, and you can reference them using the row / column method ie Row 5, Column 2 could be Tab 2 / Item 2 for example.


    Thanks!
    I think the Bank point refers to Col, Row as a TPoint.
    I'm back

  6. #6
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation RE: BankPoint-/MSTPoint- routines

    Quote Originally Posted by DemiseScythe View Post
    These are useless by themselves, their real use is in this:

    GetMSBankItemAmount(x, y);

    Both the above just help this function work. With this, you can find an Item in bank with the method of your choice and once you have x and y coordinates of the item, you can call an Integer and make it equal to the above like this:

    Shark: Integer;

    Shark := GetMSBankItemAmount(x, y);

    This will sell you how many Sharks you have in your bank if you indeed have a Shark in (x, y). This is just an example but you can use this to find the amount of any item in your bank.
    @DemiseScythe: Yes, thank you. That is the missing link for me. I appreciate the help. Thanks!
    Ciao
    NM

  7. #7
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation RE: BankPoint-/MSTPoint- routines

    Quote Originally Posted by smurg View Post
    I think the Bank point refers to Col, Row as a TPoint.
    I resorted to playing with these routines for a bit and 'discovered' (for want of a better term) the tpoint connection. Thanks for the confirmation.
    Ciao
    NM

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
  •