Difference between revisions of "ShowBarterMenu"
Jump to navigation
Jump to search
imported>AlexanderSig |
imported>Qazaaq (moving vendor instructions) |
||
Line 18: | Line 18: | ||
*If you call it with 100 discount, it will allow the player to view an NPC's inventory like a container -- freely move things back and forth. | *If you call it with 100 discount, it will allow the player to view an NPC's inventory like a container -- freely move things back and forth. | ||
==See Also== | |||
== | *[[Creating a new vendor]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 15:08, 28 April 2009
Description
ShowBarterMenu Displays the Barter Menu. It is not called on a Reference and can take 1 parameter. The parameter is in the range [ -100, 100 ] and denotes the percentage of discount on Sell prices / inflation on Buy prices. See examples below.
Syntax
ShowBarterMenu PercentDiscount
Examples
ShowBarterMenu 50
sbm 50
The Barter Menu shows up, and the vendor sells items at 50% of their normal sell price and will buy items at 150% of their normal buy price.
Notes
- The parameter default is 0 (no change to prices).
- If you call it with 100 discount, it will allow the player to view an NPC's inventory like a container -- freely move things back and forth.