Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Ballroghdemon

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ballroghdemon

  • Rank
    On the Coast
  1. Ballroghdemon

    Not compile - Init.c Event and message

    Thank you very much, understood and I will try to go deeper into that language to see if I am able to compile it, perhaps what I am trying is complicated, at least for me, I appreciate at least your response and help. Thanks in advance. All the best.
  2. Ballroghdemon

    Not compile - Init.c Event and message

    Thank you very much for your help. Do you think it would be possible, at least with that degree of error, to detect the event and send the notification? I'm messing with how the class system works and I can't get it to compile correctly. Estoy valorando esta alternativa class CustomMission: MissionServer { override void OnInitPhaseEvent(EventType type, Param params) { super.OnInitPhaseEvent(type, params); if (type == EventType.ON_INIT_PHASE_START) { if (GetGame().IsServer()) { PlayerBase.Event_OnItemInInventory.Insert(OnItemInInventory); } } } void OnItemInInventory(PlayerBase player, EntityAI item) { if (item.GetType() == "Zen_Virus_Brain") { player.MessageStatus("¡Enhorabuena! Has recogido un kukri y lo has añadido a tu inventario."); } } }; Mission CreateCustomMission(string path) { return new CustomMission(); }
  3. Ballroghdemon

    Not compile - Init.c Event and message

    I try to implement the code to identify the event of adding an object to the inventory, check it and if it matches the correct one send a notification, I have this code but I am not able to compile it, can you help me? thank you so much. class CustomMission: MissionServer { override void OnItemAddedToInventory(EntityAI item, InventoryLocation src, InventoryLocation dst, PlayerBase player) { super.OnItemAddedToInventory(item, src, dst, player); if (item.GetType() == "Kukri") { player.MessageStatus("¡Enhorabuena! Has recogido un kukri y lo has añadido a tu inventario."); } } }
×