Jump to content
  • 0
Sign in to follow this  
lowrey

[Epoch] Briefing Script

Question

Hi all,

 

This script is from Darkside Altis Life Server by Brun - All credit should be attributed to Darkside and the team:

 

1. Create a file called briefing.sqf (it can be called anything you like tbh).

 

2. in the briefing.sqf file add:

 

/*
This was pulled from Darkside Altis Life Server by Brun
Modified by Mike Lowrey @ ArmaEpoch - December 2nd 2014
*/
 
if (!isDedicated) then {
 
waitUntil { alive player && time > 0 && !isnull (finddisplay 46)};
 
sleep 5;
 
player createDiarySubject ["serverrules","Server Rules"];
player createDiarySubject ["controls","Controls"];
 
 
player createDiaryRecord ["serverrules",
[
"Server Rules", 
"
<br/><font color = '#B70009'>If you break the rules your account will be banned from all our servers.</font color><br/>
 
<font color = '#B70009'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#B70009'>1. </font color>No Glitching.<br/>
<font color = '#B70009'>2. </font color>No Hacking.<br/>
<font color = '#B70009'>3. </font color>No Duping items or Krypto. This will result in an instant and perma ban!<br/>
<font color = '#B70009'>4. </font color>No Base Griefing.<br/>
<font color = '#B70009'>5. </font color>No Excessive Swearing.<br/>
<font color = '#B70009'>6. </font color>No Voice In Chat.<br/>
<font color = '#B70009'>7. </font color>No Racism.<br/>
"
]
];
 
// Controls Section
 
player createDiaryRecord ["controls",
[
"Controls",
"
<br/><font color = '#E4E00C'>General Controls </font color><br/><br/>
<font color = '#E4E00C'>I: </font color>Main Interaction key which is used for picking up items/money, interacting with cars, interact with traders and looting trash.<br/><br/>
<font color = '#E4E00C'>Mouse Wheel: </font color>Shows option to Search items<br/>
<font color = '#E4E00C'>~: </font color>Shows Debug Menu<br/>
<font color = '#E4E00C'>Ctrl + T: </font color>Opens Player Trade window<br/><br/><br/>
 
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#0CE413'>Building Controls </font color><br/>
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#0CE413'>Special Instructions</font color><br/><br/>
Before a player can start building, they must first gain some energy. This can be done in three ways...<br/><br/>
 
Vehicles - While in any vehicle with the engine running, the player will gain approximately 5 energy every 10 seconds.<br/><br/>
Solar/Wind Power - If the player is within 75 meters of a solar farm tower or wind turbine they will gain approximately 5 energy every 10 seconds.<br/><br/>
Energy Packs - By double clicking an energy pack in your inventory, there is an option to use. This will give the player energy instantly, but will use up the energy pack (small energy pack = 100 energy. large energy pack = 1000 energy).<br/>
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/><br/>
 
<font color = '#0CE413'>1: </font color>Toggle Fixed snap building mode and place object<br/>
<font color = '#0CE413'>2: </font color>Toggle Free building mode and place object<br/>
<font color = '#0CE413'>3: </font color>Snap type<br/>
<font color = '#0CE413'>4: </font color>Build object (Used for building Storage Devices Tipi and Shelf Kit)<br/>
<font color = '#0CE413'>Space: </font color>Grab objects<br/>
<font color = '#0CE413'>Q: </font color>Center object in front of players view<br/>
<font color = '#0CE413'>E: </font color>Free Rotate<br/>
<font color = '#0CE413'>Page Up: </font color>Lift object<br/>
<font color = '#0CE413'>Page Down: </font color>Lower object<br/>
<font color = '#0CE413'>Home: </font color>Push object away from you<br/>
<font color = '#0CE413'>End: </font color>Move object towards you<br/>
<font color = '#0CE413'>Ctrl + I: </font color>Upgrade an existing structure<br/><br/><br/><br/> "
 
 
]
];
 
};
 
3. Save the file
4. You can add the briefing.sqf file to any folder in your mission.pbo, for the purpose of this guide I used a folder called "custom"
5. Now add the following line to your init.sqf or fn_init file (if you have a custom one) in your mission.pbo:
 
[] execVM "custom\briefing.sqf";
 
You're done. Now when you or your players press M you will have two new menu options called:
 
Server Rules
Controls
 
You can add as many custom menus as you see fit. Just add: 
 
player createDiarySubject ["SHORTNAME","MENUNAME"];
 
and follow the same format as the previous menus.
 
Hope this helps,
 
Thanks,
 
Mike.
 
 
 
 
 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 

Hi all,

 

This script is from Darkside Altis Life Server by Brun - All credit should be attributed to Darkside and the team:

 

1. Create a file called briefing.sqf (it can be called anything you like tbh).

 

2. in the briefing.sqf file add:

 

/*
This was pulled from Darkside Altis Life Server by Brun
Modified by Mike Lowrey @ ArmaEpoch - December 2nd 2014
*/
 
if (!isDedicated) then {
 
waitUntil { alive player && time > 0 && !isnull (finddisplay 46)};
 
sleep 5;
 
player createDiarySubject ["serverrules","Server Rules"];
player createDiarySubject ["controls","Controls"];
 
 
player createDiaryRecord ["serverrules",
[
"Server Rules", 
"
<br/><font color = '#B70009'>If you break the rules your account will be banned from all our servers.</font color><br/>
 
<font color = '#B70009'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#B70009'>1. </font color>No Glitching.<br/>
<font color = '#B70009'>2. </font color>No Hacking.<br/>
<font color = '#B70009'>3. </font color>No Duping items or Krypto. This will result in an instant and perma ban!<br/>
<font color = '#B70009'>4. </font color>No Base Griefing.<br/>
<font color = '#B70009'>5. </font color>No Excessive Swearing.<br/>
<font color = '#B70009'>6. </font color>No Voice In Chat.<br/>
<font color = '#B70009'>7. </font color>No Racism.<br/>
"
]
];
 
// Controls Section
 
player createDiaryRecord ["controls",
[
"Controls",
"
<br/><font color = '#E4E00C'>General Controls </font color><br/><br/>
<font color = '#E4E00C'>I: </font color>Main Interaction key which is used for picking up items/money, interacting with cars, interact with traders and looting trash.<br/><br/>
<font color = '#E4E00C'>Mouse Wheel: </font color>Shows option to Search items<br/>
<font color = '#E4E00C'>~: </font color>Shows Debug Menu<br/>
<font color = '#E4E00C'>Ctrl + T: </font color>Opens Player Trade window<br/><br/><br/>
 
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#0CE413'>Building Controls </font color><br/>
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/>
<font color = '#0CE413'>Special Instructions</font color><br/><br/>
Before a player can start building, they must first gain some energy. This can be done in three ways...<br/><br/>
 
Vehicles - While in any vehicle with the engine running, the player will gain approximately 5 energy every 10 seconds.<br/><br/>
Solar/Wind Power - If the player is within 75 meters of a solar farm tower or wind turbine they will gain approximately 5 energy every 10 seconds.<br/><br/>
Energy Packs - By double clicking an energy pack in your inventory, there is an option to use. This will give the player energy instantly, but will use up the energy pack (small energy pack = 100 energy. large energy pack = 1000 energy).<br/>
<font color = '#0CE413'>----------------------------------------------------------------------------------------</font color><br/><br/>
 
<font color = '#0CE413'>1: </font color>Toggle Fixed snap building mode and place object<br/>
<font color = '#0CE413'>2: </font color>Toggle Free building mode and place object<br/>
<font color = '#0CE413'>3: </font color>Snap type<br/>
<font color = '#0CE413'>4: </font color>Build object (Used for building Storage Devices Tipi and Shelf Kit)<br/>
<font color = '#0CE413'>Space: </font color>Grab objects<br/>
<font color = '#0CE413'>Q: </font color>Center object in front of players view<br/>
<font color = '#0CE413'>E: </font color>Free Rotate<br/>
<font color = '#0CE413'>Page Up: </font color>Lift object<br/>
<font color = '#0CE413'>Page Down: </font color>Lower object<br/>
<font color = '#0CE413'>Home: </font color>Push object away from you<br/>
<font color = '#0CE413'>End: </font color>Move object towards you<br/>
<font color = '#0CE413'>Ctrl + I: </font color>Upgrade an existing structure<br/><br/><br/><br/> "
 
 
]
];
 
};
 
3. Save the file
4. You can add the briefing.sqf file to any folder in your mission.pbo, for the purpose of this guide I used a folder called "custom"
5. Now add the following line to your init.sqf or fn_init file (if you have a custom one) in your mission.pbo:
 
[] execVM "custom\briefing.sqf";
 
You're done. Now when you or your players press M you will have two new menu options called:
 
Server Rules
Controls
 
You can add as many custom menus as you see fit. Just add: 
 
player createDiarySubject ["SHORTNAME","MENUNAME"];
 
and follow the same format as the previous menus.
 
Hope this helps,
 
Thanks,
 
Mike.

 

 

Loads up for me and other admins. Not for players?

Share this post


Link to post
Share on other sites
  • 0

Loads up for me and other admins. Not for players?

 

That's very odd. Works fine for me and all my players!

 

log on as a none admin and see the .rtp logs or have one of your players give you theirs.

 

Let me know what you find out.

 

Mike.

Share this post


Link to post
Share on other sites
  • 0

That's very odd. Works fine for me and all my players!

 

log on as a none admin and see the .rtp logs or have one of your players give you theirs.

 

Let me know what you find out.

 

Mike.

 

Seems to have fixed itself.

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
Answer this question...

×   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...
Sign in to follow this  

  • Similar Content

    • By ElViper
      I am starting to build an overpoch server and at the moment I have no scripts, just Epoch and Overwatch, but the trader menus aren't showing. The AI are there but no scroll option. help?
    • By Coco-Nuts
      Hello there,
       
      Firstly, I don't know if what I made is allowed by the dev team so if it's not allowed, I will removed this topic.
      Also, I made a tutorial in this place cause there is not yet a Script section.
       
       
      [Preview]
       
      So, there are 2 files in this tutorial, 1 file called "welcome.sqf" show a welcome message.
      It looks like this (clic on the picture to extend) :
       

       
       
      The second file named "popup.sqf" show differents custom messages on the right side like this :
       

       
       
      [installation]
       
      Create an "init.sqf" file in your mission folder and put this code inside :
       
      call compile preprocessFileLineNumbers "\x\addons\a3_epoch_code\init\both_init.sqf"; if (isDedicated) then { call compile preprocessFileLineNumbers "\x\addons\a3_epoch_server\init\server_init.sqf"; } else { call compile preprocessFileLineNumbers "\x\addons\a3_epoch_code\init\client_init.sqf"; }; //Custom message [] execVM "custom\welcome.sqf"; [] execVM "custom\popup.sqf";  Then, create a folder called custom in your mission.
      Download and put these files inside :
       
      welcome.sqf 
      popup.sqf
       
       
      [battlEye]
       
      You have to modify your script.txt file in your BattlEye folder.
      Change the number 7 with the number 1 at lines 1 - 2 - 20 - 21
       
       
      [Antihack] 
       
      In your folder @EpochHive, you have to comment the line : {"\x\addons\a3_epoch_code\compile\setup\EPOCH_clientInit.sqf", "EPOCH_clientInit"},
      in the epochAH.hpp file.
       
       
      That's all :)
       
       
      I DO NOT take credits about these 2 files, they come from Altis Server.
    • By Gator
      Hello.. I do have my infistar custom dialog to false _CUD = false. And I have not changed anything in my fn_selfAction.sqf. This is the Error I am getting when someone trys to open up the Trader Menu. The trader menu does work for Admins. 
       
      These are the 3 Errors I am getting,not sure which one is causing it and how do i fix it?  Thanks.
       
      1.
      Error in expression <= count weapons _x; _cntBOT = _mags+_weps; if (_cntBOT > 50)>   Error position: <_mags+_weps; if (_cntBOT > 50)>     2.
      Error in expression <ve do { _dayzActions = ([ DonorSkins,wardrobe,s_player_maintain_ar>   Error position: <DonorSkins,wardrobe,s_player_maintain_ar>   Error Undefined variable in expression: donorskins   3. if ((_characterID != _charIDvar) && (_charIDv>   Error position: <_characterID != _charIDvar) && (_charIDv>   Error Undefined variable in expression: _characterid Error in expression <ayz_playerName') || (dayz_playerName != _name) || ((name player != 'Error: No un>   Error position: <_name) || ((name player != 'Error: No un>   Error Undefined variable in expression: _name  
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...