grazskin Posted July 22, 2014 Report Share Posted July 22, 2014 I want to change the Veins so they don't spawn Sapphires, and Ruby's? because I want my players to use my Gem vendor to convert there gems to the next tier, and just not find a ruby and become instantly rich etc.. Link to comment Share on other sites More sharing options...
fr1nk Posted July 22, 2014 Report Share Posted July 22, 2014 remove.sqf Remove sapphires and rubies from the pool of gems: 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 More sharing options...
grazskin Posted July 22, 2014 Author Report Share Posted July 22, 2014 wow thanks, I does this remove them completely? or just from the veins? because I want people to have them just not find them. would I add this through my init.sqf ? Link to comment Share on other sites More sharing options...
fr1nk Posted July 22, 2014 Report Share Posted July 22, 2014 As far as I know, it only removes them from veins as minable gems. Edit the following files, then copy them to your mission file. init.sqf From: call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; To: call compile preprocessFileLineNumbers "[your folder layout]\compiles.sqf"; compiles.sqf From: player_removeObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf"; To: player_removeObject = compile preprocessFileLineNumbers "[your folder layout]\remove.sqf"; remove.sqf From: 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]]; }; }; To: if (_isMine) then { if((random 10) <= 4) then { _gems = ["ItemTopaz","ItemObsidian","ItemAmethyst","ItemEmerald","ItemCitrine"]; _gem = _gems select (floor(random (count _gems))); _selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]]; }; }; Re-pack PBO, upload, restart server. xBowBii 1 Link to comment Share on other sites More sharing options...
grazskin Posted July 22, 2014 Author Report Share Posted July 22, 2014 thanks Link to comment Share on other sites More sharing options...
Semezky Posted July 23, 2014 Report Share Posted July 23, 2014 thanks This way, to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines. Link to comment Share on other sites More sharing options...
fr1nk Posted July 23, 2014 Report Share Posted July 23, 2014 This way, to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines. "config of Mine" ? Link to comment Share on other sites More sharing options...
Uro Posted July 23, 2014 Report Share Posted July 23, 2014 "config of Mine" ? I think he's talking about the config files :rolleyes: This way, to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines. The config file only has the class configuration of the model for the Mine Veins not the output from the remove script. If this is not working for you, maybe check over your code versus what fr1nk told you in post of this thread. These files have to be pulled to your mission file to apply any changes to them. Link to comment Share on other sites More sharing options...
fr1nk Posted July 23, 2014 Report Share Posted July 23, 2014 I think he's talking about the config files :rolleyes: The config file only has the class configuration of the model for the Mine Veins not the output from the remove script. If this is not working for you, maybe check over your code versus what fr1nk told you in post of this thread. These files have to be pulled to your mission file to apply any changes to them. That's kinda what I guessed but from what I see, the only gem-related info in the config files is the actual definition of the classes. I dunno, time to drink MOAR COFFEE! edit: and...I just noticed you already commented about the class configuration. Really do need more coffee.. Uro 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now