Jump to content
juandayz

1.6 [NEW TRADER FRIEND] not friendly not bandit,not hero, not neutral

Recommended Posts

 if a player logs in and then logs out... then comes back two days later does this count as two days?  or does it count actual hrs in-game and does it have to total 2 days...? so if a player plays 2hrs a day would they in theory have to to get that 2hrs per day for 24 days without dying, to achieve the 2 full days at 24hrs in order to gain access.....? 

Share this post


Link to post
Share on other sites
1 hour ago, [email protected] said:

 if a player logs in and then logs out... then comes back two days later does this count as two days?  or does it count actual hrs in-game and does it have to total 2 days...? so if a player plays 2hrs a day would they in theory have to to get that 2hrs per day for 24 days without dying, to achieve the 2 full days at 24hrs in order to gain access.....? 

it uses dayz_Survived variable. same as you can use in a debug monitor to show your players how time they have lived.

short answer its real time...

If your player disconect to day and he come back after 30 days.. then he have 30 days survived.

If you wanna add a plus to this  use this lil script on this trader to let you know how days survived you have

countdays.sqf (mpmissions\instance_11.chernarus\custom\)

Spoiler
private ["_countsurvived"];
_countsurvived = dayz_Survived;

[format["<t size='0.75' color='#FFCC00'>>%2 You have survived %1 days</t>",_countsurvived,(name player)],0,0,2,2] spawn BIS_fnc_dynamicText;

 

and at very bottom of fn_selfactions.sqf add:

Spoiler
private["_playerPos","_near"];

_playerPos = getPosATL player;
_near = count nearestObjects [_playerPos, ["ValentinaFit"], 3] > 0;
 
if (_near) then {
        if (s_player_countd < 0) then {
            s_player_countd = player addaction[("<t color=""#F7D708"">" + ("SurvivedDays") +"</t>"),"custom\countdays.sqf"];
        };
    } else {
        player removeAction s_player_countd;
        s_player_countd = -1;
    };			
	

 

 

Share this post


Link to post
Share on other sites
On 1/20/2017 at 4:09 AM, juandayz said:

it uses dayz_Survived variable. same as you can use in a debug monitor to show your players how time they have lived.

short answer its real time...

If your player disconect to day and he come back after 30 days.. then he have 30 days survived.

If you wanna add a plus to this  use this lil script on this trader to let you know how days survived you have

countdays.sqf (mpmissions\instance_11.chernarus\custom\)

  Hide contents

private ["_countsurvived"];
_countsurvived = dayz_Survived;

[format["<t size='0.75' color='#FFCC00'>>%2 You have survived %1 days</t>",_countsurvived,(name player)],0,0,2,2] spawn BIS_fnc_dynamicText;

 

and at very bottom of fn_selfactions.sqf add:

  Hide contents

private["_playerPos","_near"];

_playerPos = getPosATL player;
_near = count nearestObjects [_playerPos, ["ValentinaFit"], 3] > 0;
 
if (_near) then {
        if (s_player_countd < 0) then {
            s_player_countd = player addaction[("<t color=""#F7D708"">" + ("SurvivedDays") +"</t>"),"custom\countdays.sqf"];
        };
    } else {
        player removeAction s_player_countd;
        s_player_countd = -1;
    };			
	

 

 

does this banned cfg's for Epoch:
https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_anim/CfgBanned/CfgVehicles.hpp

Line 276 affect being able to use ValentinaFit as a trader....?  as of the 1061 update my custom trader has stopped working...

Share this post


Link to post
Share on other sites
On 4/14/2017 at 10:04 AM, [email protected] said:

does this banned cfg's for Epoch:
https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_anim/CfgBanned/CfgVehicles.hpp

Line 276 affect being able to use ValentinaFit as a trader....?  as of the 1061 update my custom trader has stopped working...

Not sure if this is your issue @[email protected]

I just followed the install instructions and after testing in-game (Bought and sold items from default trader, [ValentinaFit])

Script Works Perfect !

I think this lady is going to become my "Special Weapons" dealer.

Thanks for this @juandayz

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Tricks
      We are back! Ranked 7th overall in 2014! Classic DayZ Epoch PvP Server!! No stupid start bonus, no heavy military. Just classic Epoch gameplay with new updates!

       
      - Top of the Line Hardware - Overclocked 8700k servers with SSDs. Super high FPS!!

      - XP System & XP Trader - Acquire handy Perks, Skills, and Permits with our XP system!

      - Custom Traders - Totally custom traders unique to this server!

      - Military Bases - High Loot areas perfect for gearing up.

      - Custom Map Content - Aircraft Carriers, Secret Military Bases, New Towns, and more!

      - All The Major Mods - All the major mods like Coin System, Heli Evac, Hide from Zeds, and many more.

      - Lots of AI Missions - Challenging AI missions color-coded by difficulty.

      - Custom AI Missions for Groups - Static missions with super high difficulty and major loot rewards!

      - Realistic Loot Spawns - You wont find high-powered weapons while hunting for loot, realistic loot spawns.

      - No Heavy Weapons, Tanks, Attack Choppers, Jets - Just the classic Epoch vehicles with a few new additions!

      - Lots of Vehicles - Lots of vehicles scattered around the map. Some are ready to go, others need to be fixed first!

      - Base Building - Fully modular base building system with unique build items and crafting recipes.

      - Full Day/Night Cycle - Realistic day and night cycle, no stupid 24 hours daylight!!

      - Full Weather System - Rain, thunderstorms and snow in the winter!!

      - Destructible Base/Garage Doors - Base raiding without losing your whole base! Just the doors are destructible.

      - Abandoned Safes/Lockboxes - Abandoned bases will have their safes unlocked for you to raid!!

      - Fresh Server, All The Best Base Locations Still Available! - No more wipes, server is done and all progress will be saved.

      - Regular Updates/Suggestions Considered - Pass along ideas to the admin staff. We consider all changes.

      - Admin Events - Events with High Loot and great times! See pic below.

      - Active Admin Staff - Find us on Discord anytime or by email!





      Connect to us on DayZ Launcher or directly:

      [SHG]ClassicEpoch|XPSystem|CustomTraders|CustomAImissions|Coins|FPS++

      144.217.62.76:2302

      Discord: http://xn--discrd-zxa.com/join.php?v=OXHD95

      Email: [email protected]

      Website: Under construction


    • By Tricks
      I have been browsing the forums looking for unique mods to add to my server. I noticed Juandayz deleted a lot of his mods before leaving the community. Just curious if anyone has them all and would possibly repost them giving him full credit? I am particularly interested in his "Admin Skin" and "Debug" mods.
       
      Thanks community, here's hoping someone will step up!
    • By victorks
      my first work in editin :) https://uploaddeimagens.com.br/imagens/20180307202515_1-jpg https://uploaddeimagens.com.br/imagens/20180307202245_1-jpg DOWNLOAD: https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0 AI M2 NEED WAI: https://pastebin.com/GJMnPvZP ON THE MAP: https://pastebin.com/cyqH9rNV  
       
      https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0
       
       
       
       
       
       
       
       
       
    • By juandayz
      VIDEO:
      If (You dont have a custom compiles.sqf or a custom keyboard.sqf) exitWith { step1;}else{ proceed with step 2; } forEach user; 1-Making a custom compiles.sqf and custom keyboard.sqf
       
       
      2-In your CUSTOM!!! keyboard.sqf at bottom but before the last "_handled" paste:
      3-Create remote_key.sqf  (mpmissions\your instance\scripts\ )
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...