Trouble with Sea Chest custom spawn

Dear forum members,
for some time now we have been creating and maintaining new ways to help game server admins with questions and problems as quickly as possible, e.g. our Guides section and the Nitrado Community Discord.

Therefore, we inform you that the Nitrado Forum will be closed on March 31, 2023. We are consolidating our community support to our Discord channel, which is faster and more efficient. We have also seen incredible growth in our community due to the hard work of our moderators and our bots. We are confident that this move will ensure that we provide the best support possible for our users.

Thank you to all members for your continued use of the forum!

Assistance with all questions concerning your Nitrado service can now be found in these spots:
Community Discord: https://discord.gg/nitrado
Guides section: https://server.nitrado.net/guides
Support Wizard: https://support.nitrado.net
  • Hey there,


    So I am attempting to do a custom Sea Chest spawn with some loot goodies inside. I haven't had luck with getting a spawn location to work. Oddly, we have discovered seachests in other locations populated with the custom loot, but never in the place we actually want it to be. I'm going to add my code changes if anyone would mind proofreading them.


    Events.xml


    <event name="itemseachest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>16000</lifetime>

    <restock>1</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>0</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="100" min="100" type="SeaChest"/>

    </children>


    CFGeventspawns.xml


    <event name="ItemSEACHEST1">

    <pos x="2340" z="5038"" a="191.3" />


    Types.xml


    <type name="SeaChest">

    <nominal>25</nominal>

    <lifetime>300</lifetime>

    <restock>0</restock>

    <min>25</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="tools" />

    <usage name="Industrial" />

    <usage name="Farm" />

    <usage name="Coast" />


    CFGspawnabletypes.xml


    <type name="SeaChest">

    <cargo chance="1">

    <item name="BandageDressing" />

    </cargo>

    <cargo chance="1">

    <item name="BandageDressing" />

    </cargo>

    <cargo chance="1">

    <item name="Mag_AK74_45Rnd" />

    </cargo>

    <cargo chance="1">

    <item name="Mag_AK74_45Rnd" />

    </cargo>

    <cargo chance="1">

    <item name="SKS" />

    </cargo>

    <cargo chance="1">

    <item name="TetracyclineAntibiotics" />

    </cargo>


    *That's all I'll copy from the spawnable types, you get the idea and that part seems to be working


    Any advice would be much appreciated, thank you!

  • so you changed the names of the seachest in events and eventspawns to ItemSeaChest1?


    try these


    <event name="ItemSeaChest1">

    <pos x="1244.3" z="14552.4" a="-1" />

    </event>




    <event name="ItemSeaChest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>16000</lifetime>

    <restock>0</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>200</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="1" min="1" type="SeaChest"/>

    </children>

    </event>


    i noticed you missed the </event> tag on both codes