-Dusty- wrote:The only problem is that the TL which delivers the Mines/Construction kits has to be in the player's property, otherwise it would not be possible to access the build command. But now some "clever" players will have the idea to sell the TL as soon as it is in their property... I have to find a way to prevent this.
Perhaps you can do something like this (not actual script, but a suggestion of events):
1 Store player account balance as variable "$bal"
2 Transfer TL to player
3 Execute TL command 1
4 Call Sub TL Exist
5 Store player account balance as variable "$bal"
6 Execute Command 2
6 Call Sub TL Exist
7 Store player account balance as variable "$bal"
8 Execute Command 3
9 Transfer TL back to AI
Sub TL_Exist
1 Does TL still exist in player property = true/false = $TL
2 If $TL = false then
3 If $bal > $bal + 20,000,000 (value of TL with some margin lower) then
4 Player money = Player money - value of TL * 2
5 Notify Player "Contract with ARES is terminated, you impounded and sold our TL, you have been penalized for breaching our contract"
6 End
7 Else
8 Notify player "TL was destroyed while performing it's duty, insurance has replaced it"
9 Call Sub TL replacement
10 Else
11 End sub
This is an over simplified way to describe what I'm talking about, and in the example I give there still might be the case the player earned 20 million in between execution of build commands, and then the TL was destroyed, so the sub thinks the TL was sold. But at some point, you should just let the issue go. If someone wants to exploit the script to sell the TL, they can just as likely use the cheats to add 20m to buy their own.
Alternatively, you can make the script only work on player owned TL's. If you need the ARES service, chances are you already have a TL of your own, or could easily afford one otherwise. You can still apply the insurance, but you completely side-step the issue of TL impounding because the player owned the TL in the first place.
Also, I can't download DUCT. The website is always down.