Jump to content

Recommended Posts

Hey there everyone.

 

I was putting all the gems in my servers' traders but I would really like to know if anyone knew the rarity of each gem so I could change the price accordingly. It seems that Rubies seem to be the most rare, but I cannot find any documentation on it. Does anyone know the gem rarity?

Share this post


Link to post
Share on other sites

40% chance for gems to drop at veins...i think 'what' will be when dropped is random.

 

I see. Well, thank you very much for your help! I appreciate it. I hope to find out soon if each gem has a different rarity or if it's all just random.

Share this post


Link to post
Share on other sites

40% chance for gems to drop at veins...i think 'what' will be when dropped is random.

 

Sorry for  the double post, but do you know of any way to change the drop rates of certain gems or the chance of getting a gem from a vein?

 

Thanks for the quick reply by the way.

Share this post


Link to post
Share on other sites

my guess is you have to 'unpbo' all of the dayz_code.pbo in a folder and use an advanced notepad like notepad++ or ultraedit to search for all occurrences of MaxMineVeins in the files in the folder.

Some script will be using that value and probably somewhere near there would be the function that generates gems on Veins based on that value.

Or search the word Topaz, etc...to see whats happening and where...eventually you'll find it :)

Share this post


Link to post
Share on other sites

my guess is you have to 'unpbo' all of the dayz_code.pbo in a folder and use an advanced notepad like notepad++ or ultraedit to search for all occurrences of MaxMineVeins in the files in the folder.

Some script will be using that value and probably somewhere near there would be the function that generates gems on Veins based on that value.

Or search the word Topaz, etc...to see whats happening and where...eventually you'll find it :)

 

Alright that's great! Thank you very much once again buddy. For the quick replies and for your knowledge. I'll make sure I do that. I'll report back to the thread once I'm finished to see if it works.

 

Thanks once again!

Share this post


Link to post
Share on other sites

Alright that's great! Thank you very much once again buddy. For the quick replies and for your knowledge. I'll make sure I do that. I'll report back to the thread once I'm finished to see if it works.

 

Thanks once again!

 

Found it for you :P

 

\actions\remove.sqf

        if (_isMine) then {
            if((random 10) <= 4) then {
                _gems = ["ItemTopaz","ItemObsidian","ItemSapphire","ItemAmethyst","ItemEmerald","ItemCitrine","ItemRuby"];
                _gem = _gems select (floor(random (count _gems)));
                _selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
            };
        };

40% chance to spawn a random gem.

 

If you want to overwrite it..copy this file in your MPMission\dayz_code\actions

 

and in your compiles.sqf change player_removeObject to this:

player_removeObject =        compile preprocessFileLineNumbers "dayz_code\actions\remove.sqf";

Then make your changes there in remove.sqf

Share this post


Link to post
Share on other sites

necro bump.

 

Trying to do this, not working D:

		if (_isMine) then {
			if((random 10) <= 10) then {
				_gems = ["ItemTopaz","ItemObsidian"];
				_gem = _gems select (floor(random (count _gems)));
				_selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
			};
		};

Still dropping other gems. 

 

init.sqf

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
call compile preprocessFileLineNumbers "custom\compiles.sqf";       //Compile custom compiles
progressLoadingScreen 1.0;

custom/compiles.sqf

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; // fnc_usec_selfActions - adds custom actions to dayz code
player_removeObject =        compile preprocessFileLineNumbers "dayz_code\actions\player_removeObject.sqf";
if (!isDedicated) then {
	player_build		= compile preprocessFileLineNumbers "custom\snap_build\player_build.sqf";
	player_buildControls	= compile preprocessFileLineNumbers "custom\snap_build\player_buildControls.sqf";
	snap_object		= compile preprocessFileLineNumbers "custom\snap_build\snap_object.sqf";
};

Share this post


Link to post
Share on other sites

Found it for you :P

 

\actions\remove.sqf

        if (_isMine) then {
            if((random 10) <= 4) then {
                _gems = ["ItemTopaz","ItemObsidian","ItemSapphire","ItemAmethyst","ItemEmerald","ItemCitrine","ItemRuby"];
                _gem = _gems select (floor(random (count _gems)));
                _selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
            };
        };

40% chance to spawn a random gem.

 

If you want to overwrite it..copy this file in your MPMission\dayz_code\actions

 

and in your compiles.sqf change player_removeObject to this:

player_removeObject =        compile preprocessFileLineNumbers "dayz_code\actions\remove.sqf";

Then make your changes there in remove.sqf

Hi Sandbird, thanks for finding this.

 

If I wanted to make them even rarer than 10% by having it set to:

if((random 10) <= 1) then {

 

could I change that line to read like this:

if((random 100) <= 4) then {

 

Would this make it a 4% chance? Or, am I way off piste! :)

 

Thanks again

Share this post


Link to post
Share on other sites

 

necro bump.

 

Trying to do this, not working D:

		if (_isMine) then {
			if((random 10) <= 10) then {
				_gems = ["ItemTopaz","ItemObsidian"];
				_gem = _gems select (floor(random (count _gems)));
				_selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
			};
		};

Still dropping other gems. 

 

init.sqf

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
call compile preprocessFileLineNumbers "custom\compiles.sqf";       //Compile custom compiles
progressLoadingScreen 1.0;

custom/compiles.sqf

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; // fnc_usec_selfActions - adds custom actions to dayz code
player_removeObject =        compile preprocessFileLineNumbers "dayz_code\actions\player_removeObject.sqf";
if (!isDedicated) then {
	player_build		= compile preprocessFileLineNumbers "custom\snap_build\player_build.sqf";
	player_buildControls	= compile preprocessFileLineNumbers "custom\snap_build\player_buildControls.sqf";
	snap_object		= compile preprocessFileLineNumbers "custom\snap_build\snap_object.sqf";
};
I have the same situation. bump
 
I editing:
if((random 10) <= 4) then { 
to
if((random 100) <= 1) then {
But remained 40% and still dropping other gems..
 

 

Share this post


Link to post
Share on other sites

 

The line in your custom compiles.sqf should point to the location of your customized remove.sqf file, like this:

player_removeObject = compile preprocessFileLineNumbers "scripts\remove.sqf";

 

I figured out that if you have a custom fn_selfActions.sqf you also need to go in and change the locations for the remove.sqf otherwise it wont work.

Share this post


Link to post
Share on other sites

Hi sorry to ask here but where can I get the ore vein gems mod? I have searched but cant seem to find it.. guessing been so tired I'm missing it or something :S

It depends what you mean....ore veins exist as default in Epoch unless you have switched them off by zeroing this line in your mission init file:

MaxMineVeins = 50;

If you mean, how do I set up a trader where gems can be bought & sold there are a few different ways of doing that with various threads on these forums showing you how.

Share this post


Link to post
Share on other sites

hmm, ok, thought it was in there as standard.

 

Go ahead and add that in the config section of your init file and you should be good to go... :) something life this...:

DynamicVehicleFuelLow = 10;
DynamicVehicleFuelHigh = 35;
MaxMineVeins = 50;
DZE_vehicleAmmo = 0; //Default = 0, deletes ammo from vehicles with machine guns every restart if set to 0.

Share this post


Link to post
Share on other sites

veins already have topaz and stuff in them? or is that a script to add them?

the file to read and potentially override is called remove.sqf. You can find this in your dayz_code\actions folder.

 

If you leave it as standard it will drop any gem at a 40% chance. It is totally random which gem it chooses to drop if the 40% chance is successful.

 

I override this file by dropping it into my custom folder and changing the 3 calls to it (one in compiles and 2 in fn_selfActions) to point to the overridden file. I have then edited and reduced the % chance in the now custom remove.sqf as we use gems as higher currency on GoG's World and a 40% chance of a gem drop is too high.

 

Hope this helps.

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 Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
    • By FG_Trap
      Made this in my free time awhile ago thought id make it public.
      Right Alt is the key to open the menu.
      Install instructions are inside the download.
      https://github.com/NWDZ-Trapxxgods/traps-menu
       
       
      here is a picture of the server menu
       
    • By lordacus
      so i have been making a server between trying to get my provider to update their mods section. after getting this don i found the server with epoch and infistar were conflicting each other such as: when joining i can use infistar but when i press f9 or i to enter my inventory or f10 for the mobile pad it then conflicts (i think) infistar and i can no longer use it. any ideas on how to stop this
       
    • By vbawol
      Open world survival mod set just two years after the mass extinction of billions of people. Those that remain are left with remnants of a once technological society. Try to survive, build, or explore your way through the harsh dynamic environment.
      Features
      Powerful persistence framework for Arma 3 with native Windows and Linux dedicated server support. Fully configurable script based security checks. Base Building re-envisioned for Arma 3 PhysX. Persistent secure and insecure storage devices. Upgradeable locking doors. Barter based economy and trading systems backed a single currency ¤ called "Krypto". Hostile Environment with several different types of antagonists, Air and Water temperature extremes, and Earthquakes. Hunting, Fishing, Tame Dogs, Explore & Loot: Wrecked ships, Abandoned vehicles and buildings, Perform task based missions and more! Open source APL-SA Epoch Survival MP gamemode. Open source APL-SA Modders resource configs and Class List. Assets can be used as a mod dependency on Steam workshop.
    • By Achef
      Greetings!
      So I recently started up in a new host and haven't gotten to make the server run, found that a ca/modules bis_fnc issue is recurring but doesn't affect players when running coop missions like the default arma 2 oa ones, but when trying with Epoch hive won't connect/start despite being configured.
      Hive error
      Meanwhile at line 23...
       
      I'm still bad with Pastebin, sorry.
       
      This error has been chasing me for 2 days now
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...