FAO - Xai Trade Scripter & Users.

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

harag9
Posts: 421
Joined: Tue, 4. Mar 03, 17:51
x2

FAO - Xai Trade Scripter & Users.

Post by harag9 »

Just reporting that I've found and corrected a bug in the trade script files:

FILENAME: Xai.lib.trade.find.best.seller.xml

013 $seller = find station: product $ware with best price: max.price=$home.ware.price, amount=$ware.amount.toBuy, max.jumps=$home.maxJumps, startsector=$home.sector, trader=$ship
014 skip if $seller
015 $seller = find station sells: resource $ware with best price: max.price=$home.ware.price, amount=$ware.amount.toBuy, max.jumps=$home.maxJumps, startsector=$home.sector, trader=$ship
016 *write to player logbook: sprintf: fmt='Best seller for %s is %s.', $ware, $seller, null, null, null


Add line 14 & 15 to the above file... I had a problem my SSP would not get any crystals from a trade station a couple jumps away and the above fixed solved this.

Al.
mr_south
Posts: 35
Joined: Wed, 31. Dec 03, 19:00
x2

Post by mr_south »

Your fix is correct.
This is another example that no matter how careful one tries to be, things just can't get perfect. :evil:
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

Fixed version is now available for download on Xai Corporation www.error691.com/Xai
VALENSN
Posts: 29
Joined: Tue, 23. Dec 03, 00:34
x3

Post by VALENSN »

Nice work all!

Return to “X²: The Threat - Scripts and Modding”