Ubidibity

DayZ server contractor spawns

Mar 31st, 2026
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | Gaming | 0 0
  1. Need nails or a sparkplug but don't have four hours to run up and down the coast? Cheat. Why not, it's your server.
  2.  
  3. cfgeconomycore.xml, add before </economycore>
  4. <!-- Custom spawnabletypes - WoodenCrate with nails -->
  5. <ce folder="custom">
  6. <file name="cfgspawnabletypes.xml" type="spawnabletypes" />
  7. </ce>
  8.  
  9. sample cfgeventspawns.xml, add to bottom, these are defined later
  10. <event name="StaticContractorCrate">
  11. <pos x="13254.6" z="10712.1" a="0.0" />
  12. </event>
  13. <!-- <event name="StaticContractorSledgeHammer">
  14. <event name="StaticContractorShovel">
  15. <pos x="13261.9" z="10733.9" a="0.0" />
  16. </event> -->
  17.  
  18. events.xml has the event definitions (db folder):
  19. <event name="StaticContractorCrate">
  20. <nominal>1</nominal>
  21. <min>1</min>
  22. <max>1</max>
  23. <lifetime>7200</lifetime>
  24. <restock>0</restock>
  25. <saferadius>60</saferadius>
  26. <distanceradius>60</distanceradius>
  27. <cleanupradius>60</cleanupradius>
  28. <flags deletable="0" init_random="0" remove_damaged="0"/>
  29. <position>fixed</position>
  30. <limit>child</limit>
  31. <active>1</active>
  32. <children>
  33. <child lootmax="0" lootmin="0" max="1" min="1" type="WoodenCrate"/>
  34. </children>
  35. </event>
  36. <!-- <event name="StaticContractorShovel">
  37. <nominal>1</nominal>
  38. <min>1</min>
  39. <max>1</max>
  40. <lifetime>60</lifetime>
  41. <restock>0</restock>
  42. <saferadius>60</saferadius>
  43. <distanceradius>60</distanceradius>
  44. <cleanupradius>60</cleanupradius>
  45. <flags deletable="0" init_random="0" remove_damaged="0"/>
  46. <position>fixed</position>
  47. <limit>child</limit>
  48. <active>1</active>
  49. <children>
  50. <child lootmax="0" lootmin="0" max="1" min="1" type="FieldShovel"/>
  51. </children>
  52. </event> -->
  53.  
  54. cfgspawnabletypes.xml shouldn't get mangled, but just override or add what you want to tweak. Extras don't matter, it just
  55. helps if you want to change ContractorShovel to a Contractor Hatchet:
  56. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  57. <spawnabletypes>
  58. <type name="WoodenCrate">
  59. <hoarder />
  60. <!-- Guaranteed NailBoxes - separate slots are more consistent -->
  61. <cargo chance="1.00">
  62. <item name="Hammer" chance="1.00" min="1" max="1" />
  63. </cargo>
  64. <cargo chance="1.00">
  65. <item name="NailBox" chance="1.00" min="5" max="5" />
  66. </cargo>
  67. <cargo chance="1.00">
  68. <item name="NailBox" chance="1.00" min="1" max="1" />
  69. </cargo>
  70. </type>
  71. <type name="SledgeHammer">
  72. </type>
  73. <type name="Hatchet">
  74. </type>
  75. <type name="FieldShovel">
  76. </type>
  77. </spawnabletypes>
  78. (so add anything not already listed in the event spawner xml)
  79. this will work until the next day's check for updates/validate then expect this behavior:
  80. [2026-03-31 03:26:48] Validation: corrupt chunk b6151c860b4fdcab313866b7fc2e0ede8d8105e2 has de3efbb5ed6b08b3a593c0ebf3b2af7fa10b2536 at offset 0 (1907 bytes)
  81. [2026-03-31 03:26:48] Validation: 1 chunks corrupt of 1 total in file "mpmissions\dayzOffline.chernarusplus\cfgeconomycore.xml"
  82. [2026-03-31 03:26:48] Validation: corrupt chunk e6bb31ee27578757d62f9803ac56f9496efd3d8f has a67dc68d6939081deb357c528c6ba3ae43125ec4 at offset 0 (81403 bytes)
  83. [2026-03-31 03:26:48] Validation: 1 chunks corrupt of 1 total in file "mpmissions\dayzOffline.chernarusplus\cfgeventspawns.xml"
  84. [2026-03-31 03:26:48] Validation: corrupt chunk bc67d56d134f62fd9ea4586592a930d48c0592ce has 5ce7b6120b7ca5de34ea29257f53ad4a6d4e65fe at offset 0 (51477 bytes)
  85. [2026-03-31 03:26:48] Validation: 1 chunks corrupt of 1 total in file "mpmissions\dayzOffline.chernarusplus\db\events.xml"
  86. [2026-03-31 03:26:52] Validation: full scan in "c:\dayz-server" found 3/429 mismatching files (134.79 KB/3.96 GB) in 32 seconds).
  87.  
  88. afterwhich you'll need to restore/re-edit those three files.
Add Comment
Please, Sign In to add comment