Dayz更改物品生成概率,DayZ物品清单(带mod) 及 更改复活时带有的物品

 

1.初始物品生成概率设置

Dazy能设置物品的初始生成概率

配置文件路径

xxxxx\steam\steamapps\common\DayZServer\mpmissions\dayzOffline.chernarusplus\db\tepes.xml

 

可以通过这个网站进行配置,在网站加载完成后,把types.xml拖入,然后就能修改物品生成概率等信息

强烈建议更改配置前最好留个备份

 

网址 : https://dzsa.tools/

 

网站图片

 

 

 

 

 

 

例如这个物品

<type name="ACOGOptic">
    <nominal>60</nominal>
    <lifetime>14400</lifetime>
    <restock>1800</restock>
    <min>16</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="Military"/>
</type>

 

 其中

<type name="ACOGOptic"> 名称
<nominal>60</nominal>   最大限度(具体啥意思不清楚,应该是这个越大刷得概率越大)
<min>16</min>       最小限度(具体啥意思不清楚,应该和上面类似)
<cost>100</cost>     优先事项(个人理解是在同一个地点刷新的优先级,优先级大的物品先刷,不清楚理解对不对)
<restock>1800</restock> 补充库存时间(应该是间隔,不清楚理解对不对)
<lifetime>14400</lifetime> 物品生命周期(应该是物品存在的时间,过了这个时间没人去管就会刷没,不清楚理解对不对)




2.物品清单(就是物品包含的英文名称)

物品清单是从这个路径下的types.xml中提取出来的,因为有mod的缘故,有些物品原版可能没有。提取时带了这些mod:

物品清单是从这个路径下的types.xml中提取出来的,mod的物品清单在mod文件夹中的 xxxx_types.xml 找

 

 

提取到的物品清单

 

ACOGOptic
ACOGOptic_6x
AK101
AK101_Black
AK101_Green
AK74
AK74_Black
AK74_Green
AK74_Hndgrd
AK74_WoodBttstck
AKM
AKS74U
AKS74U_Black
AKS74U_Bttstck
AKS74U_Green
AK_Bayonet
AK_FoldingBttstck
AK_FoldingBttstck_Black
AK_FoldingBttstck_Green
AK_PlasticBttstck
AK_PlasticBttstck_Black
AK_PlasticBttstck_Green
AK_PlasticHndgrd
AK_RailHndgrd
AK_RailHndgrd_Black
AK_RailHndgrd_Green
AK_Suppressor
AK_WoodBttstck
AK_WoodBttstck_Black
AK_WoodBttstck_Camo
AK_WoodHndgrd
AK_WoodHndgrd_Black
AK_WoodHndgrd_Camo
ASVAL
AgaricusMushroom
AirborneMask
AlarmClock_Blue
AlarmClock_Green
AlarmClock_Red
AliceBag_Black
AliceBag_Camo
AliceBag_Green
AmmoBox
AmmoBox_00buck_10rnd
AmmoBox_12gaRubberSlug_10Rnd
AmmoBox_12gaSlug_10Rnd
AmmoBox_22_50Rnd
AmmoBox_308WinTracer_20Rnd
AmmoBox_308Win_20Rnd
AmmoBox_357_20Rnd
AmmoBox_380_35rnd
AmmoBox_45ACP_25rnd
AmmoBox_545x39Tracer_20Rnd
AmmoBox_545x39_20Rnd
AmmoBox_556x45Tracer_20Rnd
AmmoBox_556x45_20Rnd
AmmoBox_762x39Tracer_20Rnd
AmmoBox_762x39_20Rnd
AmmoBox_762x54Tracer_20Rnd
AmmoBox_762x54_20Rnd
AmmoBox_9x19_25rnd
AmmoBox_9x39AP_20Rnd
AmmoBox_9x39_20Rnd
Ammo_12gaPellets
Ammo_12gaRubberSlug
Ammo_12gaSlug
Ammo_22
Ammo_308Win
Ammo_308WinTracer
Ammo_357
Ammo_380
Ammo_40mm_Chemgas
Ammo_40mm_Explosive
Ammo_40mm_Smoke_Black
Ammo_40mm_Smoke_Green
Ammo_40mm_Smoke_Red
Ammo_40mm_Smoke_White
Ammo_45ACP
Ammo_545x39
Ammo_545x39Tracer
Ammo_556x45
Ammo_556x45Tracer
Ammo_762x39
Ammo_762x39Tracer
Ammo_762x54
Ammo_762x54Tracer
Ammo_9x19
Ammo_9x39
Ammo_9x39AP
Ammo_Flare
Ammo_FlareBlue
Ammo_FlareGreen
Ammo_FlareRed
Animal_BosTaurusF_Brown
Animal_BosTaurusF_Spotted
Animal_BosTaurusF_White
Animal_BosTaurus_Brown
Animal_BosTaurus_Spotted
Animal_BosTaurus_White
Animal_CanisLupus_Grey
Animal_CanisLupus_White
Animal_CapraHircusF
Animal_CapraHircus_Black
Animal_CapraHircus_Brown
Animal_CapraHircus_White
Animal_CapreolusCapreolus
Animal_CapreolusCapreolusF
Animal_CervusElaphus
Animal_CervusElaphusF
Animal_GallusGallusDomesticus
Animal_GallusGallusDomesticusF_Brown
Animal_GallusGallusDomesticusF_Spotted
Animal_GallusGallusDomesticusF_White
Animal_OvisAries
Animal_OvisAriesF
Animal_SusDomesticus
Animal_SusScrofa
Animal_UrsusArctos
AntiChemInjector
AntiPestsSpray
Apple
Armband_APA
Armband_Altis
Armband_BabyDeer
Armband_Bear
Armband_Black
Armband_Blue
Armband_Bohemia
Armband_BrainZ
Armband_CDF
Armband_CHEL
Armband_CMC
Armband_Cannibals
Armband_Chedaki
Armband_Chernarus
Armband_DayZ
Armband_Green
Armband_HunterZ
Armband_Livonia
Armband_LivoniaArmy
Armband_LivoniaPolice
Armband_NAPA
Armband_NSahrani
Armband_Orange
Armband_Pink
Armband_Pirates
Armband_RSTA
Armband_Red
Armband_Refuge
Armband_Rooster
Armband_SSahrani
Armband_Snake
Armband_TEC
Armband_UEC
Armband_White
Armband_Wolf
Armband_Yellow
Armband_Zenit
AssaultBag_Black
AssaultBag_Green
AssaultBag_Ttsko
AthleticShoes_Black
AthleticShoes_Blue
AthleticShoes_Brown
AthleticShoes_Green
AthleticShoes_Grey
Aug
AugShort
AuriculariaMushroom
AviatorGlasses
B95
BDUJacket
BDUPants
BUISOptic
Bait
BakedBeansCan
BakedBeansCan_Opened
Balaclava3Holes_Beige
Balaclava3Holes_Black
Balaclava3Holes_Blue
Balaclava3Holes_Green
BalaclavaMask_Beige
BalaclavaMask_Black
BalaclavaMask_Blackskull
BalaclavaMask_Blue
BalaclavaMask_Green
BalaclavaMask_Pink
BalaclavaMask_White
BallisticHelmet_Black
BallisticHelmet_Green
BallisticHelmet_UN
BandageDressing
Bandana_Blackpattern
Bandana_Camopattern
Bandana_Greenpattern
Bandana_Polkapattern
Bandana_Redpattern
BarbedBaseballBat
BarbedWire
Bark_Birch
Bark_Oak
BarrelHoles_Blue
BarrelHoles_Green
BarrelHoles_Red
BarrelHoles_Yellow
Barrel_Blue
Barrel_Green
Barrel_Red
Barrel_Yellow
BaseRadio
BaseballBat
BaseballCap_Beige
BaseballCap_Black
BaseballCap_Blue
BaseballCap_CMMG_Black
BaseballCap_CMMG_Pink
BaseballCap_Camo
BaseballCap_Olive
BaseballCap_Pink
BaseballCap_Red
Battery9V
BatteryCharger
BeanieHat_Beige
BeanieHat_Black
BeanieHat_Blue
BeanieHat_Brown
BeanieHat_Green
BeanieHat_Grey
BeanieHat_Pink
BeanieHat_Red
BearPelt
BearSteakMeat
BearTrap
Bear_Beige
Bear_Dark
Bear_Pink
Bear_White
Binoculars
Bitterlings
BloodBagEmpty
BloodBagFull
BloodBagIV
BloodTestKit
Blouse_Blue
Blouse_Green
Blouse_Violet
Blouse_White
BoarSteakMeat
BoletusMushroom
BomberJacket_Black
BomberJacket_Blue
BomberJacket_Brown
BomberJacket_Grey
BomberJacket_Maroon
BomberJacket_Olive
BomberJacket_SkyBlue
Bone
BoneBait
BoneHook
BoneKnife
Bonfire
BoonieHat_Black
BoonieHat_Blue
BoonieHat_DPM
BoonieHat_Dubok
BoonieHat_Flecktran
BoonieHat_NavyBlue
BoonieHat_Olive
BoonieHat_Orange
BoonieHat_Red
BoonieHat_Tan
BoxCerealCrunchin
BrassKnuckles_Dull
BrassKnuckles_Shiny
Breeches_Beetcheck
Breeches_Beige
Breeches_Black
Breeches_Blackcheck
Breeches_Blue
Breeches_Browncheck
Breeches_Green
Breeches_Pink
Breeches_Red
Breeches_White
BrisketSpread
BrisketSpread_Opened
Broom
Broom_Birch
BurlapSack
BurlapSackCover
BurlapStrip
CZ527
CZ550
CZ61
CZ75
CableReel
Camonet
CanOpener
CaninaBerry
CanisterGasoline
Canteen
CanvasPantsMidi_Beige
CanvasPantsMidi_Blue
CanvasPantsMidi_Grey
CanvasPantsMidi_Red
CanvasPantsMidi_Violet
CanvasPants_Beige
CanvasPants_Blue
CanvasPants_Grey
CanvasPants_Red
CanvasPants_Violet
CarBattery
CarRadiator
CarTent
CargoPants_Beige
CargoPants_Black
CargoPants_Blue
CargoPants_Green
CargoPants_Grey
Carp
CarpFilletMeat
CatFoodCan
CatFoodCan_Opened
Cauldron
CharcoalTablets
Chemlight_Blue
Chemlight_Green
Chemlight_Red
Chemlight_White
Chemlight_Yellow
ChernarusMap
ChernarusMap_Open
ChernarusSportShirt
ChestHolster
ChickenBreastMeat
ChildBag_Blue
ChildBag_Green
ChildBag_Red
Chips
ChristmasTree
CivSedanDoors_BackLeft
CivSedanDoors_BackLeft_Black
CivSedanDoors_BackLeft_BlackRust
CivSedanDoors_BackLeft_WhiteRust
CivSedanDoors_BackLeft_Wine
CivSedanDoors_BackLeft_WineRust
CivSedanDoors_BackRight
CivSedanDoors_BackRight_Black
CivSedanDoors_BackRight_BlackRust
CivSedanDoors_BackRight_WhiteRust
CivSedanDoors_BackRight_Wine
CivSedanDoors_BackRight_WineRust
CivSedanDoors_CoDriver
CivSedanDoors_CoDriver_Black
CivSedanDoors_CoDriver_BlackRust
CivSedanDoors_CoDriver_WhiteRust
CivSedanDoors_CoDriver_Wine
CivSedanDoors_CoDriver_WineRust
CivSedanDoors_Driver
CivSedanDoors_Driver_Black
CivSedanDoors_Driver_BlackRust
CivSedanDoors_Driver_WhiteRust
CivSedanDoors_Driver_Wine
CivSedanDoors_Driver_WineRust
CivSedanHood
CivSedanHood_Black
CivSedanHood_BlackRust
CivSedanHood_WhiteRust
CivSedanHood_Wine
CivSedanHood_WineRust
CivSedanTrunk
CivSedanTrunk_Black
CivSedanTrunk_BlackRust
CivSedanTrunk_WhiteRust
CivSedanTrunk_Wine
CivSedanTrunk_WineRust
CivSedanWheel
CivSedanWheel_Ruined
CivilianBelt
CivilianSedan
CivilianSedan_Black
CivilianSedan_Wine
ClaymoreMine
Cleaver
Colt1911
CombatBoots_Beige
CombatBoots_Black
CombatBoots_Brown
CombatBoots_Green
CombatBoots_Grey
CombatKnife
CombinationLock
CombinationLock4
Compass
ConstructionHelmet_Blue
ConstructionHelmet_Lime
ConstructionHelmet_Orange
ConstructionHelmet_Red
ConstructionHelmet_White
ConstructionHelmet_Yellow
ContaminatedArea_Dynamic
CookingStand
CourierBag
CowPelt
CowSteakMeat
CowboyHat_Brown
CowboyHat_black
CowboyHat_darkBrown
CowboyHat_green
CoyoteBag_Brown
CoyoteBag_Green
Crackers
CrookedNose
Crowbar
CrudeMachete
DarkMotoHelmet_Black
DarkMotoHelmet_Blue
DarkMotoHelmet_Green
DarkMotoHelmet_Grey
DarkMotoHelmet_Lime
DarkMotoHelmet_Red
DarkMotoHelmet_White
DarkMotoHelmet_Yellow
DarkMotoHelmet_YellowScarred
DeadChicken_Brown
DeadChicken_Spotted
DeadChicken_White
DeadRabbit
DeadRooster
Deagle
Deagle_Gold
DeerPelt
DeerSteakMeat
DenimJacket
Derringer_Black
Derringer_Grey
Derringer_Pink
DesignerGlasses
DirtBikeHelmet_Black
DirtBikeHelmet_Blue
DirtBikeHelmet_Chernarus
DirtBikeHelmet_Green
DirtBikeHelmet_Khaki
DirtBikeHelmet_Mouthguard
DirtBikeHelmet_Police
DirtBikeHelmet_Red
DirtBikeHelmet_Visor
DisinfectantAlcohol
DisinfectantSpray
DogFoodCan
DogFoodCan_Opened
DressShoes_Beige
DressShoes_Black
DressShoes_Brown
DressShoes_Sunburst
DressShoes_White
DryBag_Black
DryBag_Blue
DryBag_Green
DryBag_Orange
DryBag_Red
DryBag_Yellow
DuctTape
EasterEgg
ElectronicRepairKit
Engraved1911
Epinephrine
EpoxyPutty
FAL
FAMAS
FNP45_MRDSOptic
FNX45
Fabric
FaceCover_Improvised
Fal_FoldingBttstck
Fal_OeBttstck
FangeKnife
FarmingHoe
FeetCover_Improvised
Fence
FenceKit
FirefighterAxe
FirefighterAxe_Black
FirefighterAxe_Green
FirefighterJacket_Beige
FirefighterJacket_Black
FirefightersHelmet_Red
FirefightersHelmet_White
FirefightersHelmet_Yellow
FirefightersPants_Beige
FirefightersPants_Black
Fireplace
FireplaceIndoor
Firewood
FireworksLauncher
FirstAidKit
FishNetTrap
FishingRod
Flag_APA
Flag_Altis
Flag_BabyDeer
Flag_Bear
Flag_Bohemia
Flag_BrainZ
Flag_CDF
Flag_CHEL
Flag_CMC
Flag_Cannibals
Flag_Chedaki
Flag_Chernarus
Flag_DayZ
Flag_HunterZ
Flag_Livonia
Flag_LivoniaArmy
Flag_LivoniaPolice
Flag_NAPA
Flag_NSahrani
Flag_Pirates
Flag_RSTA
Flag_Refuge
Flag_Rooster
Flag_SSahrani
Flag_Snake
Flag_TEC
Flag_UEC
Flag_White
Flag_Wolf
Flag_Zenit
Flaregun
FlashGrenade
Flashlight
FlatCap_Black
FlatCap_BlackCheck
FlatCap_Blue
FlatCap_Brown
FlatCap_BrownCheck
FlatCap_Grey
FlatCap_GreyCheck
FlatCap_Red
FryingPan
FurCourierBag
FurImprovisedBag
GP5GasMask
GardenLime
GardenPlot
GardenPlotGreenhouse
GardenPlotPolytunnel
GasMask
GasMask_Filter
GasMask_Filter_Improvised
GhillieAtt_Mossy
GhillieAtt_Tan
GhillieAtt_Woodland
GhillieBushrag_Mossy
GhillieBushrag_Tan
GhillieBushrag_Woodland
GhillieHood_Mossy
GhillieHood_Tan
GhillieHood_Woodland
GhillieSuit_Mossy
GhillieSuit_Tan
GhillieSuit_Woodland
GhillieTop_Mossy
GhillieTop_Tan
GhillieTop_Woodland
GiftBox_Large_1
GiftBox_Large_2
GiftBox_Large_3
GiftBox_Large_4
GiftBox_Medium_1
GiftBox_Medium_2
GiftBox_Medium_3
GiftBox_Medium_4
GiftBox_Small_1
GiftBox_Small_2
GiftBox_Small_3
GiftBox_Small_4
GiftWrapPaper
Glock19
GoatPelt
GoatSteakMeat
GorkaEJacket_Autumn
GorkaEJacket_Flat
GorkaEJacket_PautRev
GorkaEJacket_Summer
GorkaHelmet
GorkaHelmetVisor
GorkaPants_Autumn
GorkaPants_Flat
GorkaPants_PautRev
GorkaPants_Summer
GreatHelm
GreenBellPepper
Grenade_ChemGas
Guts
Hacksaw
Hammer
HandDrillKit
HandSaw
HandcuffKeys
Handcuffs
HandcuffsLocked
HandsCover_Improvised
HatchbackDoors_CoDriver
HatchbackDoors_CoDriver_Blue
HatchbackDoors_CoDriver_BlueRust
HatchbackDoors_CoDriver_GreenRust
HatchbackDoors_CoDriver_White
HatchbackDoors_CoDriver_WhiteRust
HatchbackDoors_Driver
HatchbackDoors_Driver_Blue
HatchbackDoors_Driver_BlueRust
HatchbackDoors_Driver_GreenRust
HatchbackDoors_Driver_White
HatchbackDoors_Driver_WhiteRust
HatchbackHood
HatchbackHood_Blue
HatchbackHood_BlueRust
HatchbackHood_GreenRust
HatchbackHood_White
HatchbackHood_WhiteRust
HatchbackTrunk
HatchbackTrunk_Blue
HatchbackTrunk_BlueRust
HatchbackTrunk_GreenRust
HatchbackTrunk_White
HatchbackTrunk_WhiteRust
HatchbackWheel
HatchbackWheel_Ruined
Hatchback_02
Hatchback_02_Black
Hatchback_02_Blue
Hatchback_02_Door_1_1
Hatchback_02_Door_1_1_Black
Hatchback_02_Door_1_1_BlackRust
Hatchback_02_Door_1_1_Blue
Hatchback_02_Door_1_1_BlueRust
Hatchback_02_Door_1_1_RedRust
Hatchback_02_Door_1_2
Hatchback_02_Door_1_2_Black
Hatchback_02_Door_1_2_BlackRust
Hatchback_02_Door_1_2_Blue
Hatchback_02_Door_1_2_BlueRust
Hatchback_02_Door_1_2_RedRust
Hatchback_02_Door_2_1
Hatchback_02_Door_2_1_Black
Hatchback_02_Door_2_1_BlackRust
Hatchback_02_Door_2_1_Blue
Hatchback_02_Door_2_1_BlueRust
Hatchback_02_Door_2_1_RedRust
Hatchback_02_Door_2_2
Hatchback_02_Door_2_2_Black
Hatchback_02_Door_2_2_BlackRust
Hatchback_02_Door_2_2_Blue
Hatchback_02_Door_2_2_BlueRust
Hatchback_02_Door_2_2_RedRust
Hatchback_02_Hood
Hatchback_02_Hood_Black
Hatchback_02_Hood_BlackRust
Hatchback_02_Hood_Blue
Hatchback_02_Hood_BlueRust
Hatchback_02_Hood_RedRust
Hatchback_02_Trunk
Hatchback_02_Trunk_Black
Hatchback_02_Trunk_BlackRust
Hatchback_02_Trunk_Blue
Hatchback_02_Trunk_BlueRust
Hatchback_02_Trunk_RedRust
Hatchback_02_Wheel
Hatchback_02_Wheel_Ruined
Hatchet
HeadCover_Improvised
HeadlightH7
HeadlightH7_Box
Headtorch_Black
Headtorch_Grey
Heatpack
HighCapacityVest_Black
HighCapacityVest_Olive
HikingBootsLow_Beige
HikingBootsLow_Black
HikingBootsLow_Blue
HikingBootsLow_Grey
HikingBoots_Black
HikingBoots_Brown
HikingJacket_Black
HikingJacket_Blue
HikingJacket_Green
HikingJacket_Red
HockeyHelmet_Black
HockeyHelmet_Blue
HockeyHelmet_Red
HockeyHelmet_White
HockeyMask
Honey
Hoodie_Black
Hoodie_Blue
Hoodie_Brown
Hoodie_Green
Hoodie_Grey
Hoodie_Red
Hook
HumanSteakMeat
HunterPants_Autumn
HunterPants_Brown
HunterPants_Spring
HunterPants_Summer
HunterPants_Winter
HuntingBag
HuntingJacket_Autumn
HuntingJacket_Brown
HuntingJacket_Spring
HuntingJacket_Summer
HuntingJacket_Winter
HuntingKnife
HuntingOptic
HuntingVest
ImprovisedBag
ImprovisedExplosive
ImprovisedFishingRod
ImprovisedSuppressor
IodineTincture
Izh18
Izh43Shotgun
Jeans_Black
Jeans_Blue
Jeans_BlueDark
Jeans_Brown
Jeans_Green
Jeans_Grey
JoggingShoes_Black
JoggingShoes_Blue
JoggingShoes_Red
JoggingShoes_Violet
JoggingShoes_White
JumpsuitJacket_Blue
JumpsuitJacket_Gray
JumpsuitJacket_Green
JumpsuitJacket_Red
JumpsuitPants_Blue
JumpsuitPants_Green
JumpsuitPants_Grey
JumpsuitPants_Red
JungleBoots_Beige
JungleBoots_Black
JungleBoots_Brown
JungleBoots_Green
JungleBoots_Olive
KashtanOptic
KazuarOptic
KitchenKnife
KitchenTimer
KobraOptic
KukriKnife
LabCoat
LactariusMushroom
LandMineTrap
Land_Wreck_Volha_Police
Land_Wreck_hb01_aban1_police
Land_Wreck_hb01_aban2_police
Land_Wreck_sed01_aban1_police
Land_Wreck_sed01_aban2_police
Lard
LargeGasCanister
LargeTent
LeatherBelt_Beige
LeatherBelt_Black
LeatherBelt_Brown
LeatherBelt_Natural
LeatherGloves_Beige
LeatherGloves_Black
LeatherGloves_Brown
LeatherGloves_Natural
LeatherHat_Beige
LeatherHat_Black
LeatherHat_Brown
LeatherHat_Natural
LeatherJacket_Beige
LeatherJacket_Black
LeatherJacket_Brown
LeatherJacket_Natural
LeatherKnifeSheath
LeatherPants_Beige
LeatherPants_Black
LeatherPants_Brown
LeatherPants_Natural
LeatherSack_Beige
LeatherSack_Black
LeatherSack_Brown
LeatherSack_Natural
LeatherSewingKit
LeatherShirt_Natural
LeatherShoes_Beige
LeatherShoes_Black
LeatherShoes_Brown
LeatherShoes_Natural
LeatherStorageVest_Beige
LeatherStorageVest_Black
LeatherStorageVest_Brown
LeatherStorageVest_Natural
LegsCover_Improvised
Lockpick
LongTorch
LongWoodenStick
Longhorn
LugWrench
Lunchmeat
Lunchmeat_Opened
M16A2
M18SmokeGrenade_Green
M18SmokeGrenade_Purple
M18SmokeGrenade_Red
M18SmokeGrenade_White
M18SmokeGrenade_Yellow
M4A1
M4A1_Black
M4A1_Green
M4_CQBBttstck
M4_CarryHandleOptic
M4_MPBttstck
M4_MPHndgrd
M4_OEBttstck
M4_PlasticHndgrd
M4_RISHndgrd
M4_RISHndgrd_Black
M4_RISHndgrd_Green
M4_Suppressor
M4_T3NRDSOptic
M65Jacket_Black
M65Jacket_Khaki
M65Jacket_Olive
M65Jacket_Tan
M67Grenade
M68Optic
M79
M9A1_Bayonet
MKII
MP5K
MP5_Compensator
MP5_PlasticHndgrd
MP5_RailHndgrd
MP5k_StockBttstck
Machete
Mackerel
MackerelFilletMeat
MacrolepiotaMushroom
Mag_1911_7Rnd
Mag_AK101_30Rnd
Mag_AK74_30Rnd
Mag_AK74_45Rnd
Mag_AKM_30Rnd
Mag_AKM_Drum75Rnd
Mag_AKM_Palm30Rnd
Mag_Aug_30Rnd
Mag_CMAG_10Rnd
Mag_CMAG_20Rnd
Mag_CMAG_30Rnd
Mag_CMAG_40Rnd
Mag_CZ527_5rnd
Mag_CZ550_10Rnd
Mag_CZ61_20Rnd
Mag_CZ75_15Rnd
Mag_Deagle_9rnd
Mag_FAL_20Rnd
Mag_FAMAS_25Rnd
Mag_FNX45_15Rnd
Mag_Glock_15Rnd
Mag_IJ70_8Rnd
Mag_MKII_10Rnd
Mag_MP5_15Rnd
Mag_MP5_30Rnd
Mag_P1_8Rnd
Mag_PP19_64Rnd
Mag_Ruger1022_15Rnd
Mag_Ruger1022_30Rnd
Mag_STANAG_30Rnd
Mag_STANAG_60Rnd
Mag_SVD_10Rnd
Mag_Saiga_5Rnd
Mag_Saiga_8Rnd
Mag_Saiga_Drum20Rnd
Mag_Scout_5Rnd
Mag_UMP_25Rnd
Mag_VAL_20Rnd
Mag_VSS_10Rnd
Magnum
MakarovIJ70
ManSuit_Beige
ManSuit_Black
ManSuit_Blue
ManSuit_Brown
ManSuit_DarkGrey
ManSuit_Khaki
ManSuit_LightGrey
ManSuit_White
Marmalade
Matchbox
MeatTenderizer
MedicalScrubsHat_Blue
MedicalScrubsHat_Green
MedicalScrubsHat_White
MedicalScrubsPants_Blue
MedicalScrubsPants_Green
MedicalScrubsPants_White
MedicalScrubsShirt_Blue
MedicalScrubsShirt_Green
MedicalScrubsShirt_White
MediumGasCanister
MediumTent
MediumTent_Green
MediumTent_Orange
Megaphone
MetalPlate
MetalWire
Mich2001Helmet
MilitaryBelt
MilitaryBeret_CDF
MilitaryBeret_ChDKZ
MilitaryBeret_NZ
MilitaryBeret_Red
MilitaryBeret_UN
MilitaryBoots_Beige
MilitaryBoots_Black
MilitaryBoots_Bluerock
MilitaryBoots_Brown
MilitaryBoots_Redpunk
MiniDress_BlueChecker
MiniDress_BlueWithDots
MiniDress_BrownChecker
MiniDress_GreenChecker
MiniDress_Pink
MiniDress_PinkChecker
MiniDress_RedChecker
MiniDress_WhiteChecker
Morphine
Mosin9130
Mosin9130_Black
Mosin9130_Camo
Mosin9130_Green
Mosin_Bayonet
Mosin_Compensator
MotoHelmet_Black
MotoHelmet_Blue
MotoHelmet_Green
MotoHelmet_Grey
MotoHelmet_Lime
MotoHelmet_Red
MotoHelmet_White
MotoHelmet_Yellow
MountainBag_Blue
MountainBag_Green
MountainBag_Orange
MountainBag_Red
MouthRag
Mp133Shotgun
NBCBootsGray
NBCBootsYellow
NBCGlovesGray
NBCGlovesYellow
NBCHoodGray
NBCHoodYellow
NBCJacketGray
NBCJacketYellow
NBCPantsGray
NBCPantsYellow
NVGHeadstrap
NVGoggles
Nail
NailBox
NailedBaseballBat
Netting
NioshFaceMask
NurseDress_Blue
NurseDress_White
NylonKnifeSheath
OMNOGloves_Brown
OMNOGloves_Gray
OfficerHat
OffroadHatchback
OffroadHatchback_Blue
OffroadHatchback_White
OrientalMachete
OrienteeringCompass
OvenIndoor
P1
PP19
PP19_Bttstck
PSO11Optic
PSO1Optic
PUScopeOptic
PainkillerTablets
Pajka
Pajka_Opened
Paper
ParamedicJacket_Blue
ParamedicJacket_Crimson
ParamedicJacket_Green
ParamedicPants_Blue
ParamedicPants_Crimson
ParamedicPants_Green
PartyTent
PartyTent_Blue
PartyTent_Brown
PartyTent_Lunapark
Pate
Pate_Opened
PeachesCan
PeachesCan_Opened
Pear
Pen_Black
Pen_Blue
Pen_Green
Pen_Red
PepperSeeds
PepperSeedsPack
PersonalRadio
PetrolLighter
Pickaxe
PigPelt
PigSteakMeat
PileOfWoodenPlanks
PilotkaCap
Pipe
PipeWrench
PistolOptic
PistolSuppressor
Pitchfork
PlantMaterial
Plant_Pepper
Plant_Potato
Plant_Pumpkin
Plant_Tomato
Plant_Zucchini
Plastic_Explosive
PlateCarrierHolster
PlateCarrierPouches
PlateCarrierVest
PleurotusMushroom
Pliers
Plum
PoliceCap
PoliceJacket
PoliceJacketOrel
PolicePants
PolicePantsOrel
PoliceVest
PorkCan
PorkCan_Opened
PortableGasLamp
PortableGasStove
Pot
Potato
PotatoSeed
PowderedMilk
PowerGenerator
PressVest_Blue
PressVest_LightBlue
PrisonUniformJacket
PrisonUniformPants
PrisonerCap
Pumpkin
PumpkinHelmet
PumpkinSeeds
PumpkinSeedsPack
PurificationTablets
QuiltedJacket_Black
QuiltedJacket_Blue
QuiltedJacket_Green
QuiltedJacket_Grey
QuiltedJacket_Orange
QuiltedJacket_Red
QuiltedJacket_Violet
QuiltedJacket_Yellow
RDG2SmokeGrenade_Black
RDG2SmokeGrenade_White
RGD5Grenade
RabbitLegMeat
RabbitPelt
RabbitSnareTrap
RadarCap_Black
RadarCap_Blue
RadarCap_Brown
RadarCap_Green
RadarCap_Red
Rag
Raincoat_Black
Raincoat_Blue
Raincoat_Green
Raincoat_Orange
Raincoat_Pink
Raincoat_Red
Raincoat_Yellow
Rangefinder
ReflexOptic
ReflexVest
RemoteDetonator
RemoteDetonatorReceiver
RemoteDetonatorTrigger
Repeater
Rice
RidersJacket_Black
Roadflare
Rope
RopeBelt
Ruger1022
SKS
SKS_Bayonet
SVD
Saiga
Saiga_Bttstck
SalineBag
SalineBagIV
SaltySticks
SambucusBerry
SantasBeard
SantasHat
Sardines
SardinesCan
SardinesCan_Opened
SawedoffB95
SawedoffFAMAS
SawedoffIzh18
SawedoffIzh43Shotgun
SawedoffMagnum
SawedoffMosin9130
SawedoffMosin9130_Black
SawedoffMosin9130_Camo
SawedoffMosin9130_Green
Scout
Scout_Chernarus
Scout_Livonia
Screwdriver
SeaChest
Sedan_02
Sedan_02_Door_1_1
Sedan_02_Door_1_1_Grey
Sedan_02_Door_1_1_GreyRust
Sedan_02_Door_1_1_Red
Sedan_02_Door_1_1_RedRust
Sedan_02_Door_1_1_YellowRust
Sedan_02_Door_1_2
Sedan_02_Door_1_2_Grey
Sedan_02_Door_1_2_GreyRust
Sedan_02_Door_1_2_Red
Sedan_02_Door_1_2_RedRust
Sedan_02_Door_1_2_YellowRust
Sedan_02_Door_2_1
Sedan_02_Door_2_1_Grey
Sedan_02_Door_2_1_GreyRust
Sedan_02_Door_2_1_Red
Sedan_02_Door_2_1_RedRust
Sedan_02_Door_2_1_YellowRust
Sedan_02_Door_2_2
Sedan_02_Door_2_2_Grey
Sedan_02_Door_2_2_GreyRust
Sedan_02_Door_2_2_Red
Sedan_02_Door_2_2_RedRust
Sedan_02_Door_2_2_YellowRust
Sedan_02_Grey
Sedan_02_Hood
Sedan_02_Hood_Grey
Sedan_02_Hood_GreyRust
Sedan_02_Hood_Red
Sedan_02_Hood_RedRust
Sedan_02_Hood_YellowRust
Sedan_02_Red
Sedan_02_Trunk
Sedan_02_Trunk_Grey
Sedan_02_Trunk_GreyRust
Sedan_02_Trunk_Red
Sedan_02_Trunk_RedRust
Sedan_02_Trunk_YellowRust
Sedan_02_Wheel
Sedan_02_Wheel_Ruined
SewingKit
SharpWoodenStick
SheepPelt
SheepSteakMeat
ShelterFabric
ShelterKit
ShelterLeather
ShelterSite
ShelterStick
Shirt_BlueCheck
Shirt_BlueCheckBright
Shirt_GreenCheck
Shirt_PlaneBlack
Shirt_RedCheck
Shirt_WhiteCheck
ShortJeans_Black
ShortJeans_Blue
ShortJeans_Brown
ShortJeans_Darkblue
ShortJeans_Green
ShortJeans_Red
Shovel
Sickle
SkateHelmet_Black
SkateHelmet_Blue
SkateHelmet_Gray
SkateHelmet_Green
SkateHelmet_Red
Skirt_Blue
Skirt_Red
Skirt_White
Skirt_Yellow
SlacksPants_Beige
SlacksPants_Black
SlacksPants_Blue
SlacksPants_Brown
SlacksPants_DarkGrey
SlacksPants_Khaki
SlacksPants_LightGrey
SlacksPants_White
SledgeHammer
SlicedPumpkin
SmallFishTrap
SmallGasCanister
SmallGuts
SmallProtectorCase
SmallStone
SmershBag
SmershVest
Sneakers_Black
Sneakers_Gray
Sneakers_Green
Sneakers_Red
Sneakers_White
SodaCan_Cola
SodaCan_Fronta
SodaCan_Kvass
SodaCan_Pipsi
SodaCan_Spite
SpaghettiCan
SpaghettiCan_Opened
SparkPlug
SpearBone
SpearStone
Splint
Splint_Applied
SportGlasses_Black
SportGlasses_Blue
SportGlasses_Green
SportGlasses_Orange
Spotlight
Ssh68Helmet
StarlightOptic
StartKitIV
SteakKnife
Stone
StoneKnife
SurgicalGloves_Blue
SurgicalGloves_Green
SurgicalGloves_LightBlue
SurgicalGloves_White
SurgicalMask
Sweater_Blue
Sweater_Gray
Sweater_Green
Sweater_Red
TLRLight
TShirt_Beige
TShirt_Black
TShirt_Blue
TShirt_Green
TShirt_Grey
TShirt_OrangeWhiteStripes
TShirt_Red
TShirt_RedBlackStripes
TShirt_White
TTSKOBoots
TTSKOPants
TTsKOJacket_Camo
TacticalBaconCan
TacticalBaconCan_Opened
TacticalGloves_Beige
TacticalGloves_Black
TacticalGloves_Green
TacticalGoggles
TacticalShirt_Black
TacticalShirt_Grey
TacticalShirt_Olive
TacticalShirt_Tan
TaloonBag_Blue
TaloonBag_Green
TaloonBag_Orange
TaloonBag_Violet
TankerHelmet
TannedLeather
TelnyashkaShirt
TerritoryFlag
TerritoryFlagKit
TetracyclineAntibiotics
Thermometer
ThickFramesGlasses
ThinFramesGlasses
TireRepairKit
Tomato
TomatoSeeds
TomatoSeedsPack
Torch
TorsoCover_Improvised
TortillaBag
TrackSuitJacket_Black
TrackSuitJacket_Blue
TrackSuitJacket_Green
TrackSuitJacket_LightBlue
TrackSuitJacket_Red
TrackSuitPants_Black
TrackSuitPants_Blue
TrackSuitPants_Green
TrackSuitPants_LightBlue
TrackSuitPants_Red
Tripod
TripwireTrap
TruckBattery
Truck_01_Covered
Truck_01_Covered_Blue
Truck_01_Covered_Orange
Truck_01_Door_1_1
Truck_01_Door_1_1_Blue
Truck_01_Door_1_1_BlueRust
Truck_01_Door_1_1_GreenRust
Truck_01_Door_1_1_Orange
Truck_01_Door_1_1_OrangeRust
Truck_01_Door_2_1
Truck_01_Door_2_1_Blue
Truck_01_Door_2_1_BlueRust
Truck_01_Door_2_1_GreenRust
Truck_01_Door_2_1_Orange
Truck_01_Door_2_1_OrangeRust
Truck_01_Hood
Truck_01_Hood_Blue
Truck_01_Hood_BlueRust
Truck_01_Hood_GreenRust
Truck_01_Hood_Orange
Truck_01_Hood_OrangeRust
Truck_01_Wheel
Truck_01_WheelDouble
Truck_01_WheelDouble_Ruined
Truck_01_Wheel_Ruined
TunaCan
TunaCan_Opened
UKAssVest_Black
UKAssVest_Camo
UKAssVest_Khaki
UKAssVest_Olive
UMP45
USMCJacket_Desert
USMCJacket_Woodland
USMCPants_Desert
USMCPants_Woodland
UndergroundStash
UniversalLight
UnknownFoodCan
UnknownFoodCan_Opened
Ushanka_Black
Ushanka_Blue
Ushanka_Green
VSS
VitaminBottle
Watchtower
WatchtowerKit
WaterBottle
WaterproofBag_Green
WaterproofBag_Orange
WaterproofBag_Yellow
WeaponCleaningKit
WeldingMask
Wellies_Black
Wellies_Brown
Wellies_Green
Wellies_Grey
Whetstone
WildboarPelt
Winchester70
WitchHat
WitchHood_Black
WitchHood_Brown
WitchHood_Red
WolfPelt
WolfSteakMeat
WomanSuit_Beige
WomanSuit_Black
WomanSuit_Blue
WomanSuit_Brown
WomanSuit_DarkGrey
WomanSuit_Khaki
WomanSuit_LightGrey
WomanSuit_White
WoodAxe
WoodenCrate
WoodenLog
WoodenPlank
WoodenStick
WoolCoat_Beige
WoolCoat_Black
WoolCoat_BlackCheck
WoolCoat_Blue
WoolCoat_BlueCheck
WoolCoat_BrownCheck
WoolCoat_Green
WoolCoat_GreyCheck
WoolCoat_Red
WoolCoat_RedCheck
WorkingBoots_Beige
WorkingBoots_Brown
WorkingBoots_Green
WorkingBoots_Grey
WorkingBoots_Yellow
WorkingGloves_Beige
WorkingGloves_Black
WorkingGloves_Brown
WorkingGloves_Yellow
Wreck_Mi8_Crashed
Wreck_SantasSleigh
Wreck_UH1Y
Wrench
XmasLights
ZSh3PilotHelmet
Zagorky
ZagorkyChocolate
ZagorkyPeanuts
ZmbF_BlueCollarFat_Blue
ZmbF_BlueCollarFat_Green
ZmbF_BlueCollarFat_Red
ZmbF_BlueCollarFat_White
ZmbF_CitizenANormal_Beige
ZmbF_CitizenANormal_Blue
ZmbF_CitizenANormal_Brown
ZmbF_CitizenBSkinny
ZmbF_Clerk_Normal_Blue
ZmbF_Clerk_Normal_Green
ZmbF_Clerk_Normal_Red
ZmbF_Clerk_Normal_White
ZmbF_DoctorSkinny
ZmbF_HikerSkinny_Blue
ZmbF_HikerSkinny_Green
ZmbF_HikerSkinny_Grey
ZmbF_HikerSkinny_Red
ZmbF_JoggerSkinny_Blue
ZmbF_JoggerSkinny_Brown
ZmbF_JoggerSkinny_Green
ZmbF_JoggerSkinny_Red
ZmbF_JournalistNormal_Blue
ZmbF_JournalistNormal_Green
ZmbF_JournalistNormal_Red
ZmbF_JournalistNormal_White
ZmbF_MechanicNormal_Beige
ZmbF_MechanicNormal_Green
ZmbF_MechanicNormal_Grey
ZmbF_MechanicNormal_Orange
ZmbF_MilkMaidOld_Beige
ZmbF_MilkMaidOld_Black
ZmbF_MilkMaidOld_Green
ZmbF_MilkMaidOld_Grey
ZmbF_NurseFat
ZmbF_ParamedicNormal_Blue
ZmbF_ParamedicNormal_Green
ZmbF_ParamedicNormal_Red
ZmbF_PatientOld
ZmbF_PoliceWomanNormal
ZmbF_ShortSkirt_beige
ZmbF_ShortSkirt_black
ZmbF_ShortSkirt_brown
ZmbF_ShortSkirt_checks
ZmbF_ShortSkirt_green
ZmbF_ShortSkirt_grey
ZmbF_ShortSkirt_red
ZmbF_ShortSkirt_stripes
ZmbF_ShortSkirt_white
ZmbF_ShortSkirt_yellow
ZmbF_SkaterYoung_Brown
ZmbF_SkaterYoung_Striped
ZmbF_SkaterYoung_Violet
ZmbF_SurvivorNormal_Blue
ZmbF_SurvivorNormal_Orange
ZmbF_SurvivorNormal_Red
ZmbF_SurvivorNormal_White
ZmbF_VillagerOld_Blue
ZmbF_VillagerOld_Green
ZmbF_VillagerOld_Red
ZmbF_VillagerOld_White
ZmbM_CitizenASkinny_Blue
ZmbM_CitizenASkinny_Brown
ZmbM_CitizenASkinny_Grey
ZmbM_CitizenASkinny_Red
ZmbM_CitizenBFat_Blue
ZmbM_CitizenBFat_Green
ZmbM_CitizenBFat_Red
ZmbM_ClerkFat_Brown
ZmbM_ClerkFat_Grey
ZmbM_ClerkFat_Khaki
ZmbM_ClerkFat_White
ZmbM_CommercialPilotOld_Blue
ZmbM_CommercialPilotOld_Brown
ZmbM_CommercialPilotOld_Grey
ZmbM_CommercialPilotOld_Olive
ZmbM_ConstrWorkerNormal_Beige
ZmbM_ConstrWorkerNormal_Black
ZmbM_ConstrWorkerNormal_Green
ZmbM_ConstrWorkerNormal_Grey
ZmbM_DoctorFat
ZmbM_FarmerFat_Beige
ZmbM_FarmerFat_Blue
ZmbM_FarmerFat_Brown
ZmbM_FarmerFat_Green
ZmbM_FirefighterNormal
ZmbM_FishermanOld_Blue
ZmbM_FishermanOld_Green
ZmbM_FishermanOld_Grey
ZmbM_FishermanOld_Red
ZmbM_HandymanNormal_Beige
ZmbM_HandymanNormal_Blue
ZmbM_HandymanNormal_Green
ZmbM_HandymanNormal_Grey
ZmbM_HandymanNormal_White
ZmbM_HeavyIndustryWorker
ZmbM_HermitSkinny_Beige
ZmbM_HermitSkinny_Black
ZmbM_HermitSkinny_Green
ZmbM_HermitSkinny_Red
ZmbM_HikerSkinny_Blue
ZmbM_HikerSkinny_Green
ZmbM_HikerSkinny_Yellow
ZmbM_HunterOld_Autumn
ZmbM_HunterOld_Spring
ZmbM_HunterOld_Summer
ZmbM_HunterOld_Winter
ZmbM_Jacket_beige
ZmbM_Jacket_black
ZmbM_Jacket_blue
ZmbM_Jacket_bluechecks
ZmbM_Jacket_brown
ZmbM_Jacket_greenchecks
ZmbM_Jacket_grey
ZmbM_Jacket_khaki
ZmbM_Jacket_magenta
ZmbM_Jacket_stripes
ZmbM_JoggerSkinny_Blue
ZmbM_JoggerSkinny_Green
ZmbM_JoggerSkinny_Red
ZmbM_JournalistSkinny
ZmbM_MechanicSkinny_Blue
ZmbM_MechanicSkinny_Green
ZmbM_MechanicSkinny_Grey
ZmbM_MechanicSkinny_Red
ZmbM_MotobikerFat_Beige
ZmbM_MotobikerFat_Black
ZmbM_MotobikerFat_Blue
ZmbM_NBC_Grey
ZmbM_NBC_Yellow
ZmbM_OffshoreWorker_Green
ZmbM_OffshoreWorker_Orange
ZmbM_OffshoreWorker_Red
ZmbM_OffshoreWorker_Yellow
ZmbM_ParamedicNormal_Black
ZmbM_ParamedicNormal_Blue
ZmbM_ParamedicNormal_Green
ZmbM_ParamedicNormal_Red
ZmbM_PatientSkinny
ZmbM_PatrolNormal_Autumn
ZmbM_PatrolNormal_Flat
ZmbM_PatrolNormal_PautRev
ZmbM_PatrolNormal_Summer
ZmbM_PolicemanFat
ZmbM_PolicemanSpecForce
ZmbM_PolicemanSpecForce_Heavy
ZmbM_PrisonerSkinny
ZmbM_Santa
ZmbM_SkaterYoung_Blue
ZmbM_SkaterYoung_Brown
ZmbM_SkaterYoung_Green
ZmbM_SkaterYoung_Grey
ZmbM_SoldierNormal
ZmbM_VillagerOld_Blue
ZmbM_VillagerOld_Green
ZmbM_VillagerOld_White
ZmbM_priestPopSkinny
ZmbM_usSoldier_Heavy_Woodland
ZmbM_usSoldier_Officer_Desert
ZmbM_usSoldier_normal_Desert
ZmbM_usSoldier_normal_Woodland
ZmijovkaCap_Black
ZmijovkaCap_Blue
ZmijovkaCap_Brown
ZmijovkaCap_Green
ZmijovkaCap_Red
Zucchini
ZucchiniSeeds
ZucchiniSeedsPack
​
物品清单

 

提取脚本(基于python)

import xml.etree.ElementTree as ET  #这个软件包貌似原本就自带

tree=ET.parse("types.xml")    # 读取文件
# print(tree)
root=tree.getroot()#获取根节点

print(root.tag)#打印根节点的值

types = root.findall("type")    # 获取所有type节点

# 打印所有的type节点的name属性值
for type in types:
    print(type.attrib['name'])

 

3.更改复活时带有的物品

找到如下路径中的 init.c 文件

xxxx\steam\steamapps\common\DayZServer\mpmissions\dayzOffline.chernarusplus

留个备份!!!!!这个改错会打不开服务器

文件原始内容

void main()
{
    //INIT ECONOMY--------------------------------------
    Hive ce = CreateHive();
    if ( ce )
        ce.InitOffline();

    //DATE RESET AFTER ECONOMY INIT-------------------------
    int year, month, day, hour, minute;
    int reset_month = 9, reset_day = 20;
    GetGame().GetWorld().GetDate(year, month, day, hour, minute);

    if ((month == reset_month) && (day < reset_day))
    {
        GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
    }
    else
    {
        if ((month == reset_month + 1) && (day > reset_day))
        {
            GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
        }
        else
        {
            if ((month < reset_month) || (month > reset_month + 1))
            {
                GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
            }
        }
    }
}

class CustomMission: MissionServer
{
    void SetRandomHealth(EntityAI itemEnt)
    {
        if ( itemEnt )
        {
            float rndHlt = Math.RandomFloat( 0.45, 0.65 );
            itemEnt.SetHealth01( "", "", rndHlt );
        }
    }

    override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
    {
        Entity playerEnt;
        playerEnt = GetGame().CreatePlayer( identity, characterName, pos, 0, "NONE" );
        Class.CastTo( m_player, playerEnt );

        GetGame().SelectPlayer( identity, m_player );

        return m_player;
    }

    override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
    {
        EntityAI itemClothing;
        EntityAI itemEnt;
        ItemBase itemBs;
        float rand;

        itemClothing = player.FindAttachmentBySlotName( "Body" );
        if ( itemClothing )
        {
            SetRandomHealth( itemClothing );
            
            itemEnt = itemClothing.GetInventory().CreateInInventory( "BandageDressing" );
            if ( Class.CastTo( itemBs, itemEnt ) )
                itemBs.SetQuantity( 2 );

            string chemlightArray[] = { "Chemlight_White", "Chemlight_Yellow", "Chemlight_Green", "Chemlight_Red" };
            int rndIndex = Math.RandomInt( 0, 4 );
            itemEnt = itemClothing.GetInventory().CreateInInventory( chemlightArray[rndIndex] );
            SetRandomHealth( itemEnt );

            rand = Math.RandomFloatInclusive( 0.0, 1.0 );
            if ( rand < 0.35 )
                itemEnt = player.GetInventory().CreateInInventory( "Apple" );
            else if ( rand > 0.65 )
                itemEnt = player.GetInventory().CreateInInventory( "Pear" );
            else
                itemEnt = player.GetInventory().CreateInInventory( "Plum" );

            SetRandomHealth( itemEnt );
        }
        
        itemClothing = player.FindAttachmentBySlotName( "Legs" );
        if ( itemClothing )
            SetRandomHealth( itemClothing );
        
        itemClothing = player.FindAttachmentBySlotName( "Feet" );
    }
};

Mission CreateCustomMission(string path)
{
    return new CustomMission();
}
查看文件原始内容

自用文件更改后的内容

void main()
{
    //INIT ECONOMY--------------------------------------
    Hive ce = CreateHive();
    if ( ce )
        ce.InitOffline();

    //DATE RESET AFTER ECONOMY INIT-------------------------
    int year, month, day, hour, minute;
    int reset_month = 9, reset_day = 20;
    GetGame().GetWorld().GetDate(year, month, day, hour, minute);

    if ((month == reset_month) && (day < reset_day))
    {
        GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
    }
    else
    {
        if ((month == reset_month + 1) && (day > reset_day))
        {
            GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
        }
        else
        {
            if ((month < reset_month) || (month > reset_month + 1))
            {
                GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
            }
        }
    }
}

class CustomMission: MissionServer
{
    void SetRandomHealth(EntityAI itemEnt)
    {
        if ( itemEnt )
        {
            float rndHlt = Math.RandomFloat( 0.5, 1.0 );
            itemEnt.SetHealth01( "", "", rndHlt );
        }
    }

    override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
    {
        Entity playerEnt;
        playerEnt = GetGame().CreatePlayer( identity, characterName, pos, 0, "NONE" );
        Class.CastTo( m_player, playerEnt );

        GetGame().SelectPlayer( identity, m_player );

        return m_player;
    }

    override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
    {
        EntityAI itemClothing;
        EntityAI itemEnt;
        ItemBase itemBs;
        
        float food;
        float Baobao;
        float Wuqi;
        
        itemClothing = player.FindAttachmentBySlotName( "Body" );
        if ( itemClothing )
        {
            SetRandomHealth( itemClothing );
            
            itemEnt = itemClothing.GetInventory().CreateInInventory( "BandageDressing" );
            if ( Class.CastTo( itemBs, itemEnt ) )
                itemBs.SetQuantity( 4 );

            string chemlightArray[] = { "Chemlight_White", "Chemlight_Yellow", "Chemlight_Green", "Chemlight_Red" };
            int rndIndex = Math.RandomInt( 0, 4 );
            itemEnt = itemClothing.GetInventory().CreateInInventory( chemlightArray[rndIndex] );
            SetRandomHealth( itemEnt );
            //武器
            int randNum = Math.RandomInt( 10,30 );
            Wuqi = Math.RandomFloatInclusive(0.0, 1.0);
            if ( Wuqi < 0.05 ){
                //斧头
                itemEnt = player.GetInventory().CreateInInventory("FirefighterAxe");
            }else if ( Wuqi < 0.35 )
                //棒球棍
                itemEnt = player.GetInventory().CreateInInventory("BaseballBat");
            else if ( Wuqi < 0.6 )
                itemEnt = player.GetInventory().CreateInInventory("Pipe");
            else if ( Wuqi < 0.8 )
                itemEnt = player.GetInventory().CreateInInventory("SteakKnife");
            else if ( Wuqi < 0.985 )
                itemEnt = player.GetInventory().CreateInInventory("BrassKnuckles_Dull");
            else{
                itemEnt = player.GetInventory().CreateInInventory("Makarovlj70");
                itemEnt = player.GetInventory().CreateInInventory("Ammo_380");
                itemBs = ItemBase.Cast(itemEnt);
                itemBs.SetQuantity(randNum);
            }
                
            //
            Baobao = Math.RandomFloatInclusive(0.0, 1.0);
            if ( Baobao < 0.33 )
                itemEnt = player.GetInventory().CreateInInventory("ChildBag_Blue");
            else if ( Baobao > 0.66 )
                itemEnt = player.GetInventory().CreateInInventory("ChildBag_Green");
            else
                itemEnt = player.GetInventory().CreateInInventory("ChildBag_Red");
            
            int i=0;
            
            //随机食物
            randNum = Math.RandomInt( 2, 5 );
            food = Math.RandomFloatInclusive( 0.0, 1.0 );
            if ( food < 0.35 ){
                for(i=0;i<randNum;i++){
                    itemEnt = player.GetInventory().CreateInInventory( "Apple" );
                }
            }else if ( food > 0.65 ){
                for(i=0;i<randNum;i++){
                    itemEnt = player.GetInventory().CreateInInventory( "Pear" );
                }
            }else{
                for(i=0;i<randNum;i++){
                    itemEnt = player.GetInventory().CreateInInventory( "Plum" );
                }
            }
            SetRandomHealth( itemEnt );
        }
        
        itemClothing = player.FindAttachmentBySlotName( "Legs" );
        if ( itemClothing )
            SetRandomHealth( itemClothing );
        
        itemClothing = player.FindAttachmentBySlotName( "Feet" );
    }
};

Mission CreateCustomMission(string path)
{
    return new CustomMission();
}

 

 

 

 

更改方法

 

(首先得有c的基础,一直很懵逼为啥.c能有class。。。。。)

 

主要是在 重写初始装备设置 这一函数下更改

override void StartingEquipSetup(PlayerBase player, bool clothesChosen)

以下语句将物品添加到身上

itemEnt = itemClothing.GetInventory().CreateInInventory( "物品英文名称,见上面的物品列表" );

以下语句将物品添加到仓库(满了会在手上,再满应该会在地上,表示没试过)

itemEnt = player.GetInventory().CreateInInventory( "物品英文名,见上面物品列表" );

以下语句给物品增加耐久

itemEnt = player.GetInventory().CreateInInventory("物品英文名称");
itemBs = ItemBase.Cast(itemEnt);
SetRandomHealth(itemEnt);

 

其他

可以用来参考的网站

//DayZ服务器新人出生装备修改教程
https://www.xiongtianqi.cn/thread-301984-1-1.html

//分享使用 init.c 文件 DayZSA自定义普通玩家或VIP和管理员出生装备
https://www.xiongtianqi.cn/thread-309839-1-1.html


//DayZ服务器全局变量,道具,车载,武器,事件,资源,等等设置教程
https://www.xiongtianqi.cn/thread-301981-1-1.html

//一些Github和外网的资源

//nickige/init-modded Public
https://github.com/nickige/init-modded/blob/master/init.c

//
https://pastebin.com/ptajKquu

//可以到这个网页去找相关的东西或者问别人,这貌似算是个dayz的论坛
https://discord.com/channels

 

posted @ 2022-07-18 11:11  AnyWriter  阅读(4958)  评论(0编辑  收藏  举报
本文版权归作者:@ AnyWriter 所有,欢迎转载,转载必须清楚标注原文地址,否则保留追究法律责任的权利。