A couple of scripts that list out the Type, Subtype, Average, Minimum and Maximum prices of all wares in your game to a logfile 12345.txt in the Reunion folder.
The output is formatted, and will vary from person to person depending on which scripts/mods they have installed.
It lists out ALL items in the game - even those with no price, and on my machine is 145kbytes.
There are two scripts - one is used to format the prices, the other to cycle through all the ware types and subtypes.
Script 1 - just run it
Code: Select all
Script a.Ware.Prices3
Version: 0
for Script Engine Version: 32
Description
Av Min Max prices
Arguments
Source Text
001 * list ave, min and max prices for a ware
002 $msga = '%s'
003 $msgware = ' %s'
004 $space = ' '
005
006 $wtype = 0
007 $wsub = -1
008 while $wtype < 33
009 write to log file #12345 append=[TRUE] printf: fmt=' ', null, null, null, null, null
010 write to log file #12345 append=[TRUE] printf: fmt='Ware Type = %s', $wtype, null, null, null, null
011 while $wsub < 2000
012 inc $wsub =
013 $ware = null
014 $ware = get ware from maintype $wtype and subtype $wsub
015 if $ware != null
016 $aveprice = get average price of ware $ware
017 $minprice = get min price of ware $ware
018 $maxprice = get max price of ware $ware
019 * Format subtype
020 gosub subtype
021
022 * Format average, minimum and maximum prices
023 @ $msgave = [THIS] -> call script 'a.Ware.Prices3.format' : Number to be formatted=$aveprice
024 @ $msgmin = [THIS] -> call script 'a.Ware.Prices3.format' : Number to be formatted=$minprice
025 @ $msgmax = [THIS] -> call script 'a.Ware.Prices3.format' : Number to be formatted=$maxprice
026
027 $message = $msgsubtype + $msgave + $msgmin + $msgmax + $msgware
028 write to log file #12345 append=[TRUE] printf: fmt=$message, $wsub, $aveprice, $minprice, $maxprice, $ware
029 end
030 end
031 inc $wtype =
032 $wsub = -1
033 end
034 return null
035
036 * Format Subtype
037 subtype:
038 $msgsubtype = $msga
039 if $wsub > 99
040 $msgsubtype = $msga
041 $msgtype = $msga
042 endsub
043 end
044 if $wsub > 9
045 $msgsubtype = $space + $msga
046 else
047 $msgsubtype = $space + $space + $msga
048 end
049 endsub
050
051 return null
Code: Select all
Script a.Ware.Prices3.format
Version: 0
for Script Engine Version: 32
Description
Format Av Min Max prices
Arguments
1: number , Value , 'Number to be formatted'
Source Text
001 * format ave, min and max prices for a ware
002 $msga = ' %s'
003 $space = ' '
004 $space2 = ' '
005 $space3 = $space2 + $space
006 $space4 = $space2 + $space2
007 $space5 = $space2 + $space3
008 $space6 = $space3 + $space3
009 $space7 = $space4 + $space3
010 $space8 = $space4 + $space4
011
012 $fmtmsg = $msga
013 if $number > 99999999
014 $fmtmsg = $msga
015 return $fmtmsg
016 end
017
018 if $number > 9999999
019 $fmtmsg = $space + $msga
020 return $fmtmsg
021 end
022
023 if $number > 999999
024 $fmtmsg = $space2 + $msga
025 return $fmtmsg
026 end
027
028 if $number > 99999
029 $fmtmsg = $space3 + $msga
030 return $fmtmsg
031 end
032
033 if $number > 9999
034 $fmtmsg = $space4 + $msga
035 return $fmtmsg
036 end
037
038 if $number > 999
039 $fmtmsg = $space5 + $msga
040 return $fmtmsg
041 end
042
043 if $number > 99
044 $fmtmsg = $space6 + $msga
045 return $fmtmsg
046 end
047
048 if $number > 9
049 $fmtmsg = $space7 + $msga
050 else
051 $fmtmsg = $space8 + $msga
052 return $fmtmsg
053 end
054
055 return $fmtmsg
Code: Select all
Ware Type = 5
0 29929912 22447434 37412390 Free Argon Trading Station
1 29215752 21911814 36519690 Split Trading Port
2 29800064 22350048 37250080 Paranid Trading Dock
3 30514228 22885671 38142785 Royal Boron Trading Station
4 28241892 21181419 35302365 Teladi Trading Station
5 129847780 140335507 119360053 Xenon Station
6 51160024 38370018 63950030 Argon Equipment Dock
7 48043676 36032757 60054595 Split Equipment Dock
8 48368296 36276222 60460370 Paranid Equipment Dock
9 48692916 36519687 60866145 Boron Equipment Dock
10 49991396 37493547 62489245 Teladi Space Equipment Dock
11 181786888 179289839 184283937 Xenon Station
12 194771668 189028424 200514912 Goner Temple
13 116863000 130596922 103129078 Pirate Base
14 77908668 58431501 97385835 Kha'ak Station
15 51160024 38370018 63950030 *** UNDEFINED ***
16 48692916 36519687 60866145 *** UNDEFINED ***
17 48368296 36276222 60460370 *** UNDEFINED ***
18 48043676 36032757 60054595 *** UNDEFINED ***
19 49991396 37493547 62489245 *** UNDEFINED ***
Boron - Ol Fh'art