The Advanced Trade System in UOX3 was originally created by Magiu§(çhe) (email@example.com)
Script Involved: Regions.dfn
THIS DOCUMENT MAY BE OUT OF DATE!
For every region you can add:
- GOOD=[num] (Num is set as an identifier on items of a specific type in the .dfn files.)
- BUYABLE=[num] (Num range from -oo to +oo and is the % to add or remove from item value. (1000=100.0% , 342=34.2%)
For example: If you have IRON ORE set as GOOD 1 (set in the items-file resources.dfn) with VALUE=5 GP, and set the following in region 3 (britain): GOOD=1 BUYABLE=-153 when you go into Britain and say VENDOR BUY you see the IRON ORE as value 4...why??? Simple: BUYABLE=-153 -153 / 1000 =-0.153 (as -15.3% of original prize) -0.153 x 5 (IRON ORE VALUE) = -0.765 5 (IRON ORE VALUE) - 0.756 = 4(.235)
For Example: If you set IRON ORE as GOOD=1 with VALUE=10 and RANDOMVALUE=-100 100, its value changes every restock-time ranging from 9 (-10.0%) to 11 (10.0%). This changes will be added after calculating SELLABLE and BUYABLE and take affect when you say VENDOR BUY or VENDOR SELL.