User Tools

Site Tools


modding:function:objgetbuyprice

Discuss this page on this pages TalkPage

objGetBuyPrice

See objGetBuyPrice at Xelerus

Syntax (objGetBuyPrice spaceObject itemStruct)
Arguments 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 cash, item, spaceobject
Description Finds the cost it would cost to buy the item from the space object and returns it.

Example

(objGetBuyPrice gSource (itmCreate 0x4001 1))

Returns the price of a light titanium armor for the calling object.

Returns 0 for items the station is not interested in; it returns Nil for items that are not listed. (from 0.99) Return to Functions list

modding/function/objgetbuyprice.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1