diff --git a/Crypto/scripts/5_Mission/MissionServer.c b/Crypto/scripts/5_Mission/MissionServer.c index 880290e..e938964 100644 --- a/Crypto/scripts/5_Mission/MissionServer.c +++ b/Crypto/scripts/5_Mission/MissionServer.c @@ -5,14 +5,16 @@ modded class MissionServer extends MissionBase { override void OnMissionStart() { super.OnMissionStart(); - string ModFile = "Crypto_types.xml"; - string Path = "Crypto\\xmls\\"; - CopyXmlFile(Path + ModFile, ModFile); if (!m_Handler){ m_Handler = new CyptoMarketHandler("", new TStringArray); } Print("[Crypto] OnInit"); GetCryptoConfig(); + if (GetCryptoConfig().ManagedTypesFile){ + string ModFile = "Crypto_types.xml"; + string Path = "Crypto\\xmls\\"; + CopyXmlFile(Path + ModFile, ModFile); + } SpawnCryptoTraders(); GetRPCManager().AddRPC( "Crypto", "RPCCryptoConfig", this, SingeplayerExecutionType.Both ); } diff --git a/xmls/Crypto_types.xml b/xmls/Crypto_types.xml new file mode 100644 index 0000000..6b81c04 --- /dev/null +++ b/xmls/Crypto_types.xml @@ -0,0 +1,135 @@ + + + + + + 2 + 7200 + 600 + 0 + -1 + -1 + 100 + + + + + + + 8 + 7200 + 600 + 3 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + + 10 + 7200 + 600 + 5 + -1 + -1 + 100 + + + + + + \ No newline at end of file