Jump to content
Haduuken

[Tutorial] Uranium Mine 4.4

Recommended Posts

Difficulty: Easy

Author: StonerGaming

The Uranium Mine Does NOT Have Radiation

This is my first tutorial, so if there is any issues I will help you fix it. Hope this was helpful

Lets Get Started

Step 1.

Open Mission.Altis/Config/Config_vitems.hpp And Add

    class uranium_unrefined {
        variable = "uraniumUnrefined";
        displayName = "STR_Item_UraniumOre";
        weight = 5;
        buyPrice = -1;
        sellPrice = -1;
        illegal = true;
        edible = -1;
        icon = "";
    };

    class uranium_refined {
        variable = "uraniumRefined";
        displayName = "STR_Item_Uranium";
        weight = 3;
        buyPrice = -1;
        sellPrice = 3200;
        illegal = true;
        edible = -1;
        icon = "";
    };	

Step 2.

Open Mission.Altis/Config/Config_vitems.hpp And Add (Shops Location)

    class uranium {
        name = "STR_Shops_Uranium";
        side = "civ";
        license = "";
        level[] = { "", "", -1, "" };
        items[] = { "uranium_refined" };
    };

Step 3.

Open Mission.Altis/Config/Config_Gather.hpp And Add

        class uranium_unrefined {
            amount = 1;
            zones[] = { "uranium_mine" };
            item = "pickaxe";
            mined[] = { "uranium_unrefined" };
            zoneSize = 30;
        };

Step 4.

Open Mission.Altis/Config/Config_Licenses.hpp And Add

    class uranium {
        variable = "uranium";
        displayName = "STR_License_Uranium";
        price = 5000;
        illegal = true;
        side = "civ";
    };	

Step 5.

Open Mission.Altis/Config/Config_Process.hpp And Add

    class uranium {
        MaterialsReq[] = {{"uranium_unrefined",1}};
        MaterialsGive[] = {{"uranium_refined",1}};
        Text = "STR_Process_Uranium";
        //ScrollText = "Refine Uranium";
        NoLicenseCost = 1120;
    };	

Step 6.

Open Mission.Altis/stringtable.xml And Add

        <Key ID="STR_Item_UraniumOre">
            <Original>Uranium Ore</Original>
        </Key>
        <Key ID="STR_Item_Uranium">
            <Original>Uranium</Original>
        </Key>
        <Key ID="STR_License_Uranium">
            <Original>Uranium Processing</Original>
        </Key>		
        <Key ID="STR_Process_Uranium">
            <Original>Processing Uranium</Original>		
		</key>
        <Key ID="STR_MAR_Uranium_Trader">
            <Original>Uranium Trader</Original>
        </Key>	

Step 7.

Open You mission.sqm in the arma 3 editor, place a npc and add (For The Processing)

this enableSimulation false;  this allowDamage false;  this addAction[localize"STR_MAR_Process_Uranium",life_fnc_processAction,"uranium",0,false,false,"",' life_inv_uraniumunrefined > 0 && !life_is_processing && !life_action_inUse'];  this addAction[format["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "uranium" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "uranium" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"uranium",0,false,false,"",' !license_civ_uranium && playerSide isEqualTo civilian '];

Step 8.

Open You mission.sqm in the arma 3 editor, Place A Marker Named Uranium Processing (Location You Chose The NPC)

Step 9.

Open You mission.sqm in the arma 3 editor, Place A NPC Down And Add (For The Uranium Trader)

this allowDamage false; this enableSimulation false; this addAction[localize"STR_MAR_Uranium_Trader",life_fnc_virt_menu,"uranium"];

Step 10.

Open You mission.sqm in the arma 3 editor, Place A Marker Named Uranium Trader (Location You Chose The NPC Trader)

Step 11.

Open You mission.sqm in the arma 3 editor, Place A Marker Named Uranium Mine, With variable name as uranium_mine

All Done

Edited by StonerGaming

Share this post


Link to post
Share on other sites

Please post a way to make the area radioactive so people take damage while in the Uranium Radioactive Zone and a way to make the wearer of a Scientist Suit take no damage while in a radioactive zone. Thanks!

Share this post


Link to post
Share on other sites
4 hours ago, Mastermind said:

Please post a way to make the area radioactive so people take damage while in the Uranium Radioactive Zone and a way to make the wearer of a Scientist Suit take no damage while in a radioactive zone. Thanks!

I haven't found a way to make it radioactive.

Share this post


Link to post
Share on other sites

Fallowed the guide for uranium step by step. The mine works fine, Uranium Trader looks to be good, I get the license no problem. However when i go to the processor i can buy the uranium license but after that i look at the NPC and scroll nothing shows up. Ive used the exact code you have above any idea? 

Share this post


Link to post
Share on other sites
1 hour ago, winter said:

Fallowed the guide for uranium step by step. The mine works fine, Uranium Trader looks to be good, I get the license no problem. However when i go to the processor i can buy the uranium license but after that i look at the NPC and scroll nothing shows up. Ive used the exact code you have above any idea? 

Copy the code you added to the npc

 

Share this post


Link to post
Share on other sites

I posted a copied uranium script for 3.8.1.4 , maybe you can take a look at it and get some idea as to how to write the radioactive zones, it also has the scientist suit so u can take a look at that aswell and get an idea for both. Thanks.

Share this post


Link to post
Share on other sites
53 minutes ago, StonerGaming said:

Copy the code you added to the npc

 

this enableSimulation false;  this allowDamage false;  this addAction[localize"STR_MAR_Process_Uranium",life_fnc_processAction,"uranium",0,false,false,"",' life_inv_uranium > 0 && !life_is_processing && !life_action_inUse'];  this addAction[format["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "uranium" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "uranium" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"uranium",0,false,false,"",' !license_civ_uranium && playerSide isEqualTo civilian '];

 

Share this post


Link to post
Share on other sites
On ‎9‎/‎24‎/‎2016 at 10:53 PM, NotImpor7ant said:

I can buy the license but cannot process at all.

I have been trying to work on it, did you do everything correctly?

 

Share this post


Link to post
Share on other sites
1 hour ago, Chimps47 said:

Its going to work - you havent done anything special besides add shops and items to the server

Yeah I know, unless they change the files

 

Share this post


Link to post
Share on other sites
2 hours ago, UltimaA380 said:

Wait, how do I make a "zone" so if you are not in it you cant do it

 

To make a zone you take a marker like the diamond mine then use the marker code

Share this post


Link to post
Share on other sites
34 minutes ago, StonerGaming said:

To make a zone you take a marker like the diamond mine then use the marker code

Ok, but even if I have the license I cant proccess mine, or even open the shop menu.

Share this post


Link to post
Share on other sites
Just now, UltimaA380 said:

I... think so? I downloaded the latest like a week ago

I know it works for 4.4r3 but I believe there was a new release have yet to test it on the new release

Share this post


Link to post
Share on other sites
1 minute ago, UltimaA380 said:

Thats odd because all of the code is the same for the other shops too from what I can see but I cant mine sell nor proccess

You added everything to the .xml file. try  redoing everything

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.


×
×
  • Create New...