游戏达人
![Rank: 7](static/image/common/star_level3.gif) ![Rank: 7](static/image/common/star_level2.gif) ![Rank: 7](static/image/common/star_level1.gif)
- 贡献度
- 320
- 金元
- 18840
- 积分
- 3174
- 精华
- 1
- 注册时间
- 2011-5-14
![QQ](static//image/common/qq_big.gif)
|
Selling produced wares from the home station: same as in 1 it will get a list of all sell offers and shuffle it, but
here, instead of checking player own station for buy offers, it will
strait search for npc offers. Here it again will do 2 attempts for each
sell offer with the same logic as described above, just inverted, lower
gets higher and -0.4 (-0.7) becomes +0.4 (+0.7). The requirement for
amount here is replaced with total price, which is unitprice x amount,
this will make sure, that it can also pick offers, which have e.g. 10%
lower amount, but 10% higher price.
Mode 3: free trader mode
I programmed this mode first and in my opinion that this is the core of
this script. It performs incredibly, it finds profitable trades within
seconds, even if there are many offers available and you set up the max
gates distance to max. In addition, the more freedom you allow your ship
(the more offers are known to you, the more wares you allow, the more
jumps you allow), the more likely it is to find a profitable offer,
which means faster success with more data instead of the opposite.
The logic is following: precalculate the minimum profit and max relative
price depending on the management skill of the pilot (for the rel price
its: 1 star = -0.4; 5 star = -0.7; and for profit its: 1 star = 5
credits for each m³ cargo capacity of the ship and 5 star = 9
credits/m³). Then shuffle the list of the allowed wares to trade. Then
for each ware search for a sell offer with calculated max relative
price, if found a sell offer, search for a buy offer, which would bring
the minimum profit. With minimum said here, it is possible, that it
finds an offer, which just fulfills the requirement, but it is also
possible, that it finds the best possible offer for more than double of
the minimum profit, even if your pilot has 1 star management, it’s all
RNG. If nothing found continue with the next ware in list.
|
|