Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Arma 3 koth server files

Newbie Spellweaver
Joined
Apr 26, 2017
Messages
6
Reaction score
2
Ok I've been trying to find the solution for the script problem.
Then came across this
Dont think that it will work burnt it is similarl with KOTH K/S.intit.sqf.
So I'm going to try to copy the intit.sqf of KOTH, and I'm going to ask other people to try to.......



Code:
#define __SVAR__(var1,var2) var1 = compileFinal (if(typeName var2 isEqualTo "STRING") then {var2} else {str(var2)}) 

 #define __SCVAR__(var) var = compileFinal (if(typeName var isEqualTo "STRING") then {var} else {str(var)}) 

 /* 

 File: init.sqf (server) 

 Author:JakeTheSnake0 

 Author:DeadP4lxl 

 Description: 

 Main server init file. 

 */ 

 private["_version","_dllFile","_dllFile","_timeRaw","_timeArray","_timeFinal"]; 

 



[] call compile preProcessFileLineNumbers "\koth_server\config.sqf"; 

 



// INFISTAR CHECK 

 if(!isNil "INFISTARVERSION") then { 

 if(call sd_disableInfiCheck) exitWith {__SVAR__(sd_admin_useInfiStar,FALSE)}; 

 diag_log format ["SD_SERVER:: INFISTAR FOUND (VERSION: %1)",INFISTARVERSION]; 

 __SVAR__(sd_admin_useInfiStar,TRUE); 

 } else { 

 diag_log "SD_SERVER:: INFISTAR NOT FOUND"; 

 __SVAR__(sd_admin_useInfiStar,FALSE); 

 }; 

 



diag_log format ["SD_SERVER:: TICKET COUNTER SET TO: %1 TICKETS",sd_tickets]; 

 



sd_server_isReady = false; 

 publicVariable "sd_server_isReady"; 

 



// EXEC SOME SERVER SCRIPTS 

 [] spawn SCRIPTS_fnc_airDrop; 

 [] spawn SCRIPTS_fnc_functions; 

 [] spawn SCRIPTS_fnc_killCounter; 

 [] spawn SCRIPTS_fnc_killSystem; 

 [] spawn SCRIPTS_fnc_setTimeGlobal; 

 //[] spawn SCRIPTS_fnc_fightzone; // TEMP DISABLE! SCRIPT NOT FINISHED 

 



// DATABASE INIT 

 if(isNil {uiNamespace getVariable "sd_sql_id"}) then { 

 // RANDOM ID GENERATOR FOR MAXIMUM SECURITY 

 sd_sql_id = round(random(999999)); 

 __SVAR__(sd_sql_id,sd_sql_id); 

 uiNamespace setVariable ["sd_sql_id",sd_sql_id]; 

 // VERSION CHECK OF EXTDB 

 _version = "extDB2" callExtension "9:VERSION"; 

 if(_version isEqualTo "") exitWith {diag_log "EXTDB ERROR:: DLL FILE NOT FOUND ! CHECK THE INSTALLATION !"}; 

 if((parseNumber _version) < 64) exitWith {diag_log format["EXTDB ERROR:: KOTH NEED VERSION 64 OR HIGHER ! CURRENT VERSION: %1",_version];}; 

 // START EXTDB AND ADD DATABASE 

 "extDB2" callExtension "9:ADD_DATABASE:KOTH"; 

 "extDB2" callExtension format ["9:ADD_DATABASE_PROTOCOL:KOTH:SQL_RAW_v2:%1:ADD_QUOTES",(call sd_sql_id)]; 

 // START LOGING FOR EXTDB 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "LOG") isEqualTo 1) then { 

 "extDB2" callExtension "9:ADD_PROTOCOL:LOG:PUNISH:KOTH_PUNISHLOG"; 

 "extDB2" callExtension "9:ADD_PROTOCOL:LOG:HACKER:KOTH_HACKLOG"; 

 diag_log "EXTDB:: LOGGING IS ENABLED"; 

 diag_log "EXTDB:: PUNISH AND HACKER LOG CREATED"; 

 }; 

 // START STEAM API FOR EXTDB 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "STEAM") isEqualTo 1) then { 

 STEAM_ID = round(random(999999)); 

 __SCVAR__(STEAM_ID); 

 uiNamespace setVariable ["STEAM_ID",STEAM_ID]; 

 "extDB2" callExtension "9:START_VAC"; 

 "extDB2" callExtension format["9:ADD_PROTOCOL:STEAM_V2:%1",(call STEAM_ID)]; 

 diag_log "EXTDB:: STEAM/VAC IS ENABLED"; 

 }; 

 // START MISC API FOR EXTDB 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "MISC") isEqualTo 1) then { 

 MISC_ID = round(random(999999)); 

 __SCVAR__(MISC_ID); 

 uiNamespace setVariable ["MISC_ID",MISC_ID]; 

 "extDB2" callExtension format["9:ADD_PROTOCOL:MISC:%1",(call MISC_ID)]; 

 diag_log "EXTDB:: MISC IS ENABLED"; 

 }; 

 // START RCON API FOR EXTDB 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "RCON") isEqualTo 1) then { 

 RCON_ID = round(random(999999)); 

 __SCVAR__(RCON_ID); 

 uiNamespace setVariable ["RCON_ID",RCON_ID]; 

 "extDB2" callExtension "9:START_RCON:RCON"; 

 "extDB2" callExtension format["9:ADD_PROTOCOL:RCON:%1",(call RCON_ID)]; 

 _rconStatus = "extDB2" callExtension "9:RCON_STATUS"; 

 if(_rconStatus isEqualTo "[1]") then { 

 diag_log "EXTDB:: RCON IS ENABLED"; 

 } else { 

 diag_log "EXTDB:: RCON DISABLED"; 

 }; 

 }; 

 "extDB2" callExtension "9:LOCK"; 

 _lockStatus = "extDB2" callExtension "9:LOCK_STATUS"; 

 if(_lockStatus isEqualTo "[1]") then { 

 diag_log "EXTDB:: LOCK SUCCESSFULL"; 

 } else { 

 diag_log "EXTDB:: LOCK FAILED"; 

 }; 

 } else { 

 sd_sql_id = uiNamespace getVariable "sd_sql_id"; 

 __SVAR__(sd_sql_id,sd_sql_id); 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "RCON") isEqualTo 1) then { 

 RCON_ID = uiNamespace getVariable "RCON_ID"; 

 __SVAR__(RCON_ID,RCON_ID); 

 }; 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "STEAM") isEqualTo 1) then { 

 STEAM_ID = uiNamespace getVariable "STEAM_ID"; 

 __SVAR__(STEAM_ID,STEAM_ID); 

 }; 

 if(getNumber(configFile >> "CfgServerSettings" >> "DATABASE" >> "MISC") isEqualTo 1) then { 

 MISC_ID = uiNamespace getVariable "MISC_ID"; 

 __SVAR__(MISC_ID,MISC_ID); 

 }; 

 }; 

 



// PROCEDURES 

 ["CALL resetPunishedPlayers",1] call DB_fnc_queryHandler; 

 ["CALL resetPlayerSide",1] call DB_fnc_queryHandler; 

 ["CALL resetTeamkills",1] call DB_fnc_queryHandler; 

 



// SERVER IS READY LETS PROCCED WITH OTHER STUFF 

 sd_server_isReady = true; 

 publicVariable "sd_server_isReady

- - - Updated - - -

Best I could do|MIGHT NOT WORK|
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Apr 26, 2017
Messages
6
Reaction score
2
Code:
PLAYERUID = getPlayerUID player;
saveStats={
_varName=profileNamespace getVariable format["%1%2%3%4%5", "k", "ot", "h", "k", "ey"];
_realVarArray=profileNamespace getVariable _varName;
statvars = _realVarArray select 1;
level = 25;
experience = 25725;
next_level_required_exp = 28000 - 25725;
perk_count = statvars select 3;
perks = statvars select 4;
cash = 18676;
owned_weapons = statvars select 6;
owned_scopes = statvars select 7;
owned_launchers = statvars select 8;
owned_handguns = statvars select 9;
total_exp = statvars select 10;
money_earned = statvars select 11;
playtime = statvars select 12;
bought_weapon = statvars select 13;
bought_scope = statvars select 14;
bought_launcher = statvars select 15;
bought_handgun = statvars select 16;
skin_selected = statvars select 17;
[level,experience,next_level_required_exp,perk_count,perks,+cash,owned_weapons,+owned_scopes,+owned_launchers,+owned_handguns,+total_exp,money_earned,playtime,bought_weapon,bought_scope,bought_launcher,bought_handgun,skin_selected]
};
_varName = profileNamespace getVariable format["%1%2%3%4%5", "k", "ot", "h", "k", "ey"];
_stats = call saveStats;
profileNamespace setVariable[_varName,[format["%1%2%3%4", "K", "O", "T", "H2"],_stats,"TOBEREPLACED"]];
saveProfileNamespace;
hint "Updated profile!";

- - - Updated - - -

If that one doesn't work try this one
 
Last edited:
Initiate Mage
Joined
May 30, 2017
Messages
3
Reaction score
0
The links are dead even the ones someone re-posted? can someone please re-share?
 
Initiate Mage
Joined
Jun 6, 2017
Messages
2
Reaction score
0
If someone has a copy of the original files ill reupload them. Feel free to pm me if you want to keep it private, Ill keep reuploading the files. Seeing how this guy has the server files this must be the real official files. Can't wait to try them out!
 
Back
Top