Jump to content
Sign in to follow this  
Snipes Murphy

[Broken] Adding Ruby Mine 4.x

Recommended Posts

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════

Difficulty: Very Easy

Published By: Snipes Murphy

Version: 4.x

Credit

Tonic

You will need 2 32x32 icons that are a paa file and one needs to be called rubyr and the other ruby

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════

First go into your Config_vitems.hpp

MAKE SURE TO CHANGE NULL TO YOUR SET PRICE

class ruby_raw {
        variable = "RubyRaw";
        displayName = "STR_Item_RubyRaw";
        weight = 6;
        buyPrice = -1;
        sellPrice = -1;
        illegal = false;
        edible = -1;
        icon = "icons\rubyr";
    };

    class ruby_refined {
        variable = "rubyrefined";
        displayName = "STR_Item_Ruby";
        weight = 4;
        buyPrice = -1;
        sellPrice = NULL;
        illegal = false;
        edible = -1;
        icon = "icons\ruby";
    };

Now go into your Config_vitems.hpp

class ruby {
        name = "STR_Shops_Ruby";
        side = "civ";
        license = "";
        level[] = { "", "", -1, "" };
        items[] = { "ruby_refined" };
    };

Next in your Config_Gather.hpp

class ruby_raw {
            amount = 1;
            zones[] = { "ruby_mine" };
            item = "pickaxe";
            mined[] = { "ruby_raw" };
            zoneSize = 50;
        };

The next file is Config_Licenses.hpp

MAKE SURE TO SET NULL TO YOUR SET PRICE

class ruby {
        variable = "ruby";
        displayName = "STR_License_Ruby";
        price = NULL;
        illegal = false;
        side = "civ";
    };

Now go into your Config_Process.hpp

class ruby {
        MaterialsReq[] = {{"ruby_raw",1}};
        MaterialsGive[] = {{"ruby_refined",1}};
        Text = "STR_Process_Ruby";
        ScrollText = "Refine Ruby";
        NoLicenseCost = 1275;
    };

Next go into your stringtable.xml

		<Key ID="STR_Item_RubyRaw">
            <Original>Ruby Raw</Original>
        </Key>
        <Key ID="STR_Item_Ruby">
            <Original>Ruby</Original>
        </Key>
        <Key ID="STR_License_Ruby">
            <Original>Ruby Processing</Original>
        </Key>		
        <Key ID="STR_Process_Ruby">
            <Original>Processing Ruby</Original>		
		</Key>
        <Key ID="STR_MAR_Ruby_Trader">
            <Original>Ruby Trader</Original>
        </Key>

The INIT For the Process NPC is

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

The INIT For the Trader NPC is

this allowDamage false; this enableSimulation false; this addAction[localize"STR_MAR_Ruby_Trader",life_fnc_virt_menu,"ruby"];

Now Finally go and find a nice area for the ruby mine and place a empty marker with the Variable

ruby_mine

 

Now you Should Be good to go make sure to go and check all the Process in the map to make sure you didn't stuff it up

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════

fadedserverslogo.png 

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════

Need anything else? message me of what you need done and ill upload that to the forums

 

 

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, Snipes Murphy said:

thats not to hard its just a picture behind the ATM GUI, removing the boarders and moving the buttons around simple as that.

It would be great if you could make a Tutorial

Edited by AmaZiinG

Share this post


Link to post
Share on other sites

i followed this and when i go to the mine and use my pickaxe says not a mine near by im using 4.4 so this should be working all the other mines work however i feel that this tutorial should be more in depth on the mine being added to the map. 

 

_____

good work & also why does this come up and the mine doesnt work?

Share this post


Link to post
Share on other sites
On ‎11‎/‎29‎/‎2016 at 10:07 PM, Alfie_MNYMN said:

i followed this and when i go to the mine and use my pickaxe says not a mine near by im using 4.4 so this should be working all the other mines work however i feel that this tutorial should be more in depth on the mine being added to the map. 

 

_____

good work & also why does this come up and the mine doesnt work?

make sure when you add the code to the config_gather yu put the the variable name as the name set for the zone

Share this post


Link to post
Share on other sites
On 12/7/2016 at 11:24 PM, Alfie_MNYMN said:

like i said i followed the tutorial and still doesn't work for AltisLife 4.4

Like StonerGaming Said the script for Config_Gather.hpp should be placed inside there if it isnt working you are having issues that are irreverent to my script.

Share this post


Link to post
Share on other sites

tried for 5.0 and getting not near a resources area. i have my zone set to 150 i see that @.Twitch.tv/TwinnieWTF said to remove it but does that make u have to stand right under the area and does it fix this problem??

 

class ruby_raw {
            amount = 12;
            zones[] = { "ruby_mine" };
            item = "pickaxe";
            mined[] = { "ruby_raw" };
            zoneSize = 150;
        };

Edited by MT519

Share this post


Link to post
Share on other sites
On 8/14/2017 at 0:12 PM, MT519 said:

tried for 5.0 and getting not near a resources area. i have my zone set to 150 i see that @.Twitch.tv/TwinnieWTF said to remove it but does that make u have to stand right under the area and does it fix this problem??

 

class ruby_raw {
            amount = 12;
            zones[] = { "ruby_mine" };
            item = "pickaxe";
            mined[] = { "ruby_raw" };
            zoneSize = 150;
        };

This is broken. It was never fixed.

Share this post


Link to post
Share on other sites
5 hours ago, StonerGaming said:

This is broken. It was never fixed.

that sucks, and its in the list of working scripts lol. time for an update on that list ALRPG ?!?!?

Share this post


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

that sucks, and its in the list of working scripts lol. time for an update on that list ALRPG ?!?!?

they refuse to update it. I have requested multiple times for them to update it with my tobacco field script which works. if you have anymore issues I can always add the mine for you myself

Share this post


Link to post
Share on other sites
On 17/08/2017 at 6:03 PM, Haduuken said:

they refuse to update it. I have requested multiple times for them to update it with my tobacco field script which works. if you have anymore issues I can always add the mine for you myself

Hello do you have the link for your tobacco field script, please

I would like to add more farm on my server so i can use yours to an exemple

 

Thanks

Share this post


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

Hello do you have the link for your tobacco field script, please

I would like to add more farm on my server so i can use yours to an exemple

 

Thanks

4

 

  • Like 1

Share this post


Link to post
Share on other sites
On 9.11.2016 at 3:44 PM, .Twitch.tv/TwinnieWTF said:

Process  Fix For 4.4r4 - 4.5  is working

The INIT For the Process NPC is

life_inv_Ruby     change to this  life_inv_RubyRaw  and edit

 Config_Gather.hpp       zoneSize = 50; <--- Delete this

 

The INIT For the Process NPC is

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

 

And it will be ok

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.