I am trying to get my head around these two Bank routines ...
- MSTPointToBankPoint
- BankPointToBankIndex
Could someone who understands these please explain them in detail for me ?
Thanks!![]()
I am trying to get my head around these two Bank routines ...
- MSTPointToBankPoint
- BankPointToBankIndex
Could someone who understands these please explain them in detail for me ?
Thanks!![]()
Ciao
NM
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 ...
- Why would you want to convert a Mainscreen point to one in the Bank ? I don't understand this.
- 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
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%).
There are currently 1 users browsing this thread. (0 members and 1 guests)