From 72eb42d50d277a0e9d86cbe672242a913385dd63 Mon Sep 17 00:00:00 2001 From: Brett Nordin Date: Fri, 9 Mar 2018 10:14:12 -0700 Subject: [PATCH] Removed Weapon Spam --- .../ExileServer_system_database_connect.sqf | 1 + .../ExileServer_system_process_noobFilter.sqf | 20 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Exile Mission File/Exile_Server_Overrides/ExileServer_system_database_connect.sqf b/Exile Mission File/Exile_Server_Overrides/ExileServer_system_database_connect.sqf index 1827244..5a9e857 100644 --- a/Exile Mission File/Exile_Server_Overrides/ExileServer_system_database_connect.sqf +++ b/Exile Mission File/Exile_Server_Overrides/ExileServer_system_database_connect.sqf @@ -36,6 +36,7 @@ if ((_result select 0) isEqualTo 0) then }; ExileServerStartTime = (call compile ("extDB3" callExtension "9:LOCAL_TIME")) select 1; "Database protocol initialized!" call ExileServer_util_log; + "You are running Extdb3, If you run into issues please post on the forum under the extdb3 conversion." call ExileServer_util_log; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:TRADING:Exile_TradingLog"; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:DEATH:Exile_DeathLog"; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:TERRITORY:Exile_TerritoryLog"; diff --git a/Exile Mission File/Exile_Server_Overrides/ExileServer_system_process_noobFilter.sqf b/Exile Mission File/Exile_Server_Overrides/ExileServer_system_process_noobFilter.sqf index bc79c0d..6b8aaad 100644 --- a/Exile Mission File/Exile_Server_Overrides/ExileServer_system_process_noobFilter.sqf +++ b/Exile Mission File/Exile_Server_Overrides/ExileServer_system_process_noobFilter.sqf @@ -5,24 +5,24 @@ * www.exilemod.com * © 2015 Exile Mod Team * - * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. + * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ - + private["_arsenal","_weaponClassNames","_className","_linkedItems","_i"]; _arsenal = "true" configClasses (missionConfigFile >> "CfgExileArsenal"); _weaponClassNames = []; { _className = configName _x; - try + try { - if (isClass (configFile >> "CfgWeapons" >> _className >> "LinkedItems")) then + if (isClass (configFile >> "CfgWeapons" >> _className >> "LinkedItems")) then { _linkedItems = "true" configClasses (configFile >> "CfgWeapons" >> _className >> "LinkedItems"); { - if (isText(_x >> "item")) then + if (isText(_x >> "item")) then { - if !((getText (_x >> "item")) isEqualTo "") then + if !((getText (_x >> "item")) isEqualTo "") then { throw true; }; @@ -31,22 +31,18 @@ _weaponClassNames = []; forEach _linkedItems; }; } - catch + catch { _weaponClassNames pushBack _className; }; } forEach _arsenal; -if ((count _weaponClassNames) > 0) then +if ((count _weaponClassNames) > 0) then { - for "_i" from 0 to 100 do - { "ERROR! ERROR! ERROR! ERROR! ERROR! ERROR!" call ExileServer_util_log; - }; "You have added weapons to your server that spawn in with attachments." call ExileServer_util_log; "This will allow duping and money farming!" call ExileServer_util_log; "To solve this, please remove the following weapons from your loot tables and trader config OR replace them with their non-attachment equivalent:" call ExileServer_util_log; format ["%1", _weaponClassNames] call ExileServer_util_log; "Example: Use arifle_Katiba_F instead of arifle_Katiba_ACO_pointer_snds_F." call ExileServer_util_log; }; -