mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update server for playerGroup column in HiveExt
Requires DLL Published in this commit as well as a database update. Execute the added SQL in the 1.0.6_Updates.sql on your database. Use Hive child 204 to update the new column _key = format["CHILD:204:%1:%2:%3:", (getPlayerUID player), dayZ_instance, [Array of playerUIDs of group members]]; _key call server_hiveWrite;
This commit is contained in:
@@ -90,8 +90,9 @@ if (!_isNew) then {
|
||||
_inventory = _primary select 4;
|
||||
_backpack = _primary select 5;
|
||||
_survival = _primary select 6;
|
||||
_model = _primary select 7;
|
||||
_hiveVer = _primary select 8;
|
||||
_group = _primary select 7;
|
||||
_model = _primary select 8;
|
||||
_hiveVer = _primary select 9;
|
||||
if !(_model in AllPlayers) then {_model = "Survivor2_DZ";};
|
||||
} else {
|
||||
_isInfected = if (DZE_PlayerZed) then {_primary select 3} else {0};
|
||||
|
||||
@@ -9,6 +9,11 @@ ALTER TABLE `Object_DATA` CHANGE `Hitpoints` `Hitpoints` VARCHAR(1024) CHARACTER
|
||||
ALTER TABLE Object_DATA MODIFY COLUMN CharacterID bigint(20);
|
||||
ALTER TABLE Object_DATA MODIFY COLUMN Hitpoints varchar(1024);
|
||||
|
||||
-- ----------------------------
|
||||
-- Update player_data to support group system with ~100 players per group
|
||||
-- ----------------------------
|
||||
ALTER TABLE player_data ADD playerGroup varchar(2048) NOT NULL DEFAULT '[]';
|
||||
|
||||
-- ----------------------------
|
||||
-- Fix typo from 1.0.5.1 updates causing Merlin and CH53 to show as magazines instead of vehicles
|
||||
-- ----------------------------
|
||||
|
||||
@@ -75,6 +75,7 @@ CREATE TABLE IF NOT EXISTS `Player_DATA` (
|
||||
`PlayerName` varchar(128) CHARACTER SET utf8 NOT NULL DEFAULT 'Null',
|
||||
`PlayerMorality` int(11) NOT NULL DEFAULT '0',
|
||||
`PlayerSex` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`playerGroup` varchar(2048) NOT NULL DEFAULT '[]';
|
||||
PRIMARY KEY (`PlayerUID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user