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

John Mccalum

Members
  • Content Count

    84
  • Joined

  • Last visited

Everything posted by John Mccalum

  1. John Mccalum

    mod money

    up?
  2. John Mccalum

    loot zombies

    Hi everybody. I'm looking for where to go to add loot in zombies when they die, and also in the equipment that we find. What ficghier to modify and what to put? thank you
  3. John Mccalum

    server vps

    just copy / paste works? After I just have to edit the information in the server files?
  4. John Mccalum

    help CFTools

    Hello Here I have a server and I use CFTools Omega and when I connect to my own server I have this message " kick Reason: Could not resolve your IP address" what can I do to correct this? thank you in advance
  5. John Mccalum

    update

    Hello I would like to know if it's noraml that my server is in 464 and my game in 525? Because of this I can not access my server and other players. Will there be an update of the server? thank you in advance
  6. John Mccalum

    help CFTools

    it's good the people of this site correct me the worries. Thank you
  7. John Mccalum

    Stamina

    yes me either it does not work since the update
  8. John Mccalum

    mods

    Hi everybody How do I activate mod on my server? I saw that it is necessary to add an order but I do not know where. thank you in advance
  9. John Mccalum

    night waiter

    Hello I would like to know how to run my server with 30 min of night before restarting the server or at least once a day. thank you in advance
  10. John Mccalum

    night waiter

    thank you
  11. John Mccalum

    Safe Zones

    There has been evolution for safezone? because I do not evolve I still have no messages when I arrive on the spot
  12. John Mccalum

    Safe Zones

    when i enter the safezone i should have a message to say it but nothing does it. Where can it come from? please
  13. John Mccalum

    Safe Zones

    when i put this line of code for the safezone i take a lot of damage when i appear it's normal?
  14. John Mccalum

    Safe Zones

    can't compile mission init script Mpmissions\dayzOffline.chernarusplus\init.c(171): fonction Oninit is marked as override, but there is fonction with this name in the base class this is the error massage that can I do? Thank you
  15. John Mccalum

    Safe Zones

    Hello, I do not want an error message to start I put my init.c and the error message void main() { Hive ce = CreateHive(); if (ce) ce.InitOffline(); Weather weather = g_Game.GetWeather(); weather.GetOvercast().SetLimits(0.0, 0.1); weather.GetRain().SetLimits(0.0, 0.1); weather.GetFog().SetLimits(0.0, 0.1); weather.GetOvercast().SetForecastChangeLimits(0.0, 0.2); weather.GetRain().SetForecastChangeLimits(0.0, 0.1); weather.GetFog().SetForecastChangeLimits(0.15, 0.45); weather.GetOvercast().SetForecastTimeLimits(1800, 1800); weather.GetRain().SetForecastTimeLimits(600, 600); weather.GetFog().SetForecastTimeLimits(1800, 1800); weather.GetOvercast().Set(Math.RandomFloatInclusive(0.0, 0.3), 0, 0); weather.GetRain().Set(Math.RandomFloatInclusive(0.0, 0.2), 0, 0); weather.GetFog().Set(Math.RandomFloatInclusive(0.0, 0.1), 0, 0); weather.SetWindMaximumSpeed(15); weather.SetWindFunctionParams(0.1, 0.3, 50); } class CustomMission: MissionServer { bool m_StaminaStatus; bool m_SafeZone; vector SAFEZONE_LOACTION = "12432.80 0 9538.90"; //Map coords (position of the safe zone) Current Coords: [Green Mountain - Radio Tower (Military Base)] float SAFEZONE_RADIUS = 200; //In meter string ENTRY_MESSAGE = "Welcome to The SafeZone! Godmode ENABLED!"; string EXIT_MESSAGE = "You Have Left The SafeZone! Godmode DISABLED!"; //Runs every tick (Stat time tick!) IMPORANT: Does reduce about 120 FPS when server is High-Full Pop! void SafeZoneHandle(PlayerBase player) { float distance; string ZoneCheck, GUID; GUID = player.GetIdentity().GetPlainId(); //Steam 64 Param1<string> Msgparam; distance = vector.Distance(player.GetPosition(),SAFEZONE_LOACTION); if (distance <= SAFEZONE_RADIUS) //Player Inside Zone { g_Game.GetProfileString("SafeZoneStatus"+ GUID, ZoneCheck); if (ZoneCheck == "true") //Already in zone { return; } else { g_Game.SetProfileString("SafeZoneStatus"+ GUID, "true"); Msgparam = new Param1<string>( ENTRY_MESSAGE ); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity()); } } else if (distance > SAFEZONE_RADIUS) //Plauer Outside of Zone { g_Game.GetProfileString("SafeZoneStatus"+ GUID, ZoneCheck); if (ZoneCheck == "false") { return; } else { g_Game.SetProfileString("SafeZoneStatus"+ GUID, "false"); Msgparam = new Param1<string>( EXIT_MESSAGE ); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity()); } } } override void TickScheduler(float timeslice) { GetGame().GetWorld().GetPlayerList(m_Players); if( m_Players.Count() == 0 ) return; for(int i = 0; i < SCHEDULER_PLAYERS_PER_TICK; i++) { if(m_currentPlayer >= m_Players.Count() ) { m_currentPlayer = 0; } PlayerBase currentPlayer = PlayerBase.Cast(m_Players.Get(m_currentPlayer)); if (m_StaminaStatus) { currentPlayer.GetStatStamina().Set(1000); } if (m_SafeZone) { SafeZoneHandle(currentPlayer); } //Check if player is near safezone currentPlayer.OnTick(); m_currentPlayer++; } } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE"); Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } void addMags(PlayerBase player, string mag_type, int count) { if (count < 1) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); } player.SetQuickBarEntityShortcut(mag, 1, true); } EntityAI assaultClass(PlayerBase player) { EntityAI gun = player.GetHumanInventory().CreateInHands("M4A1"); gun.GetInventory().CreateAttachment("M4_RISHndgrd_Black"); gun.GetInventory().CreateAttachment("M4_MPBttstck_Black"); gun.GetInventory().CreateAttachment("M4_Suppressor"); gun.GetInventory().CreateAttachment("ACOGOptic"); addMags(player, "Mag_STANAGCoupled_30Rnd", 3); return gun; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { player.RemoveAllItems(); player.GetInventory().CreateInInventory("Jeans_Black"); player.GetInventory().CreateInInventory("TacticalShirt_Black"); player.GetInventory().CreateInInventory("AthleticShoes_Black"); player.GetInventory().CreateInInventory("CowboyHat_black"); player.GetInventory().CreateInInventory("AssaultBag_Black"); player.GetInventory().CreateInInventory("SodaCan_Pipsi"); player.GetInventory().CreateInInventory("Canteen"); player.GetInventory().CreateInInventory("SpaghettiCan"); player.GetInventory().CreateInInventory("HuntingKnife"); player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); player.GetInventory().CreateInInventory("MakarovIJ70"); player.GetInventory().CreateInInventory("AmmoBox_380_35rnd"); ItemBase rags = player.GetInventory().CreateInInventory("Rag"); rags.SetQuantity(4); EntityAI primary; EntityAI axe = player.GetInventory().CreateInInventory("WoodAxe"); player.LocalTakeEntityToHands(primary); player.SetQuickBarEntityShortcut(primary, 0, true); player.SetQuickBarEntityShortcut(rags, 2, true); player.SetQuickBarEntityShortcut(axe, 3, true); } }; Mission CreateCustomMission(string path) { return new CustomMission(); } static vector zonepvp_pos1 = {5231.25, 0, 9820.31};// point1 static vector zonepvp_pos2 = {2321.25, 0, 8452.31};// point2 override void OnInit() { m_SafeZone = true; m_StaminaStatus = true; //Enable it = Unlimited Stamina GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 60000, true); // 10 min // DOES NOT BELONG TO PVP ZONE!!! super.OnInit(); GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(CheckPVPZone, 5000, true); //pvp //CHANGED TO 5 SECONDS TO AVOID SERVER STRESS } void CheckPVPZone()//pvp { bool in_zone1 = true; bool in_zone2 = true; ref array<Man> players = new array<Man>; GetGame().GetPlayers( players ); if ( players.Count() > 0 ) { for ( int i = 0; i < players.Count(); i++ ) { PlayerBase player; Class.CastTo(player, players.Get(i)); float dist1 = vector.Distance(player.GetPosition(),zonepvp_pos1); float dist2 = vector.Distance(player.GetPosition(),zonepvp_pos2); if (dist1 > 346) in_zone1 = false; //DISTANCE ZONE 1 if (dist2 > 346) in_zone2 = false;// DISTANCE ZONE 2 if(!in_zone1 && !in_zone2) //distance from the center to the player, from where the player will receive warnings and damage { float newHeal = player.GetHealth("", "") - 5; //5 - this is damage to the player //CHANGED TO 5 BECAUSE OF TIME-CHANGE ABOVE player.SetHealth("", "", newHeal); string messPlayers = "Hey, you (" + player.GetIdentity().GetName() + ") go back, and then is healthy!"; Param1<string> m_MessageParam = new Param1<string>(messPlayers); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity()); } } } }
  16. John Mccalum

    Safe Zones

    I downloaded everything that was given with it but it does not. :(
  17. John Mccalum

    Safe Zones

    Hello When I made the change of my server with this safezone it has a bug it cuts as soon as I connect on it. Is this normal? Thank you
  18. John Mccalum

    script equipment

    Hi all I am looking for a command to allow the player to appear with a complete equipment of the style all the clothes in black with an M4 in hand and ammunition in the pockets. thank you in advance
  19. John Mccalum

    script equipment

    thanks :)
  20. John Mccalum

    two servers

    Hello everyone Here I create 2 servers and I would like to put one in Slave. I open ports 2302 2402, 27015 and 27016 on each of the two servers (server 1 = 2302 and 27015) (server 2 =2402 and 27016), but they are not mandatory between them :( What else do I need to do? ? Thank you in advance
  21. John Mccalum

    two servers

    ah this method does not work? what's the risk for the servers?
  22. John Mccalum

    two servers

    in fact I can not do the command in cmd :( it tells me access denied I write: mklink G:\jeux\steamapps\common\DayZServer\mpmissions\dayzOffline.chernarusplus\storage_1 G:\jeux\steamapps\common\DayZServer2\mpmissions\dayzOffline.chernarusplus\storage_1 where is the concern? please
  23. John Mccalum

    two servers

    Yes I have both servers but I can not understand the part I wrote you in my previous message
  24. John Mccalum

    two servers

    then you need to start them both once and stop them again and delete the players.db in storage_2 in server 1 or 2? replace the DAYZ_SERVER_FOLDER with your DayZ Server Folder and the MISSION_NAME with the fitting mission name. which server is the number 1 or the number 2?
  25. John Mccalum

    DayZToolbox Editor

    precisely I have nothing to double click in the folder
×