Jump to content
  • 0

How would I prevent gemstones spawning in veins?


Chris9183

Question

It may be a simple issue, but I have no idea where to look in the server files/code for this and was wondering if someone could point me in the right direction at least. I've built and implemented a little endgame currency system on my server that is based on rubies, and I don't want players being able to extract rubies from mining veins as this would sortof ruin the system.

 

Does anyone know how to prevent them from spawning in veins?

 

Thanks for any assistance.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Can probably change this around somehow:
 
remove.sqf, line 211
 
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]];
};
};

 

Link to comment
Share on other sites

  • 0

 

Can probably change this around somehow:
 
remove.sqf, line 211
 
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]];
};
};

 

 

Awesome, well now i can chose which gems spawn, im wondering if

((random 10) <= 4)

would be the percent chance of spawn?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...