Changed T
# Conflicts: # Examples/Example Mission File/Exile.Altis/Exile_Server_Overrides/ExileServer_object_construction_database_insert.sqf
This commit is contained in:
parent
985d5ee048
commit
276d5d8288
26
@ExileServer/extdb3-conf.ini
Normal file
26
@ExileServer/extdb3-conf.ini
Normal file
@ -0,0 +1,26 @@
|
||||
[Main]
|
||||
Version = 1
|
||||
|
||||
Randomize Config File = false
|
||||
;; Randomizes Config File after loading.
|
||||
;; Recommend to turn on, if you have enabled filepatching on arma.
|
||||
|
||||
Allow Reset = false
|
||||
;; Allows 9:RESET, usefull for development work
|
||||
|
||||
Thread = 0;
|
||||
;; Option to force number of worker threads for extDB3.
|
||||
;; Min = 2, Max = 6
|
||||
|
||||
[Log]
|
||||
Flush = true;
|
||||
;; Flush logfile after each update.
|
||||
;; Option really only usefull if running DEBUG BUILD
|
||||
|
||||
|
||||
[exile]
|
||||
IP = DatabaseIp
|
||||
Port = 3306
|
||||
Username = DatabaseUsername
|
||||
Password = DatabasePassword
|
||||
Database = DatabaseSchemaName
|
@ -1,4 +1,5 @@
|
||||
ExileServer_system_database_connect = "Exile_Server_Overrides\ExileServer_system_database_connect.sqf";
|
||||
ExileServer_system_process_noobFilter = "Exile_Server_Overrides\ExileServer_system_process_noobFilter.sqf";
|
||||
ExileServer_world_initialize = "Exile_Server_Overrides\ExileServer_world_initialize.sqf";
|
||||
ExileServer_util_time_uptime = "Exile_Server_Overrides\ExileServer_util_time_uptime.sqf";
|
||||
ExileServer_util_time_currentTime = "Exile_Server_Overrides\ExileServer_util_time_currentTime.sqf";
|
||||
|
@ -0,0 +1,46 @@
|
||||
/**
|
||||
* ExileServer_system_process_noobFilter
|
||||
*
|
||||
* Exile Mod
|
||||
* www.exilemod.com
|
||||
* © 2015 Exile Mod Team
|
||||
*
|
||||
* 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
|
||||
{
|
||||
if (isClass (configFile >> "CfgWeapons" >> _className >> "LinkedItems")) then
|
||||
{
|
||||
_linkedItems = "true" configClasses (configFile >> "CfgWeapons" >> _className >> "LinkedItems");
|
||||
{
|
||||
if (isText(_x >> "item")) then
|
||||
{
|
||||
if !((getText (_x >> "item")) isEqualTo "") then
|
||||
{
|
||||
throw true;
|
||||
};
|
||||
};
|
||||
}
|
||||
forEach _linkedItems;
|
||||
};
|
||||
}
|
||||
catch
|
||||
{
|
||||
_weaponClassNames pushBack _className;
|
||||
};
|
||||
}
|
||||
forEach _arsenal;
|
||||
if ((count _weaponClassNames) > 0) then
|
||||
{
|
||||
"You have weapons in your loot tables that spawn 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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user