Name:
objGetBuyPrice
Syntax:
(objGetBuyPrice spaceObject itemStruct)
Argument List:
spaceObject: The space object that you want to get the buying price of.
itemStruct: The itemStruct of the item that you want to get the price of.
Returns:
number: The amount that this space object will sell the item for.
Category:
item, spaceObject
Description:
Finds the cost it would cost to buy the item from the space object and returns it.
Example:
Code: Select all
(objGetBuyPrice gSource (itmCreate 0x4001 1))
Returns the price of a light titanium armor for the calling object.
Comment:
For the gplayership returns Nil. Also remember the buy in it means from the players point of view not the spaceobjects.