Guild Warehouse

You are here:
← All Topics
Version: 2019.200 Requirements:uMMORPG3d, ToolsScript Define:None
Core Changes:YesTutorial Video:No

Description

This is an adaption of the original warehouse script by Cioa. It adds a “Guild based warehouse” to the game. You must be in a Guild to access and only your guild members can deposit and withdraw items and gold to the warehouse. This allows players to share items across their guild members. You can use the original warehouse script in addition to this one, if you want.


Core Changes

  1. [Required] Open the following script Player.cs. See Changes...

    Locate this line:
        [Command]
        public void CmdLeaveGuild()
        {
            // validate
            if (InGuild())
                GuildSystem.LeaveGuild(guild.name, name);
        }

    Modify to match:

        [Command]
        public void CmdLeaveGuild()
        {
            // validate
            if (InGuild()) {
                GuildSystem.LeaveGuild(guild.name, name);
            	resetGuildWarehouse();
            }
        }

Installation

  1. [Required] Add UCE_UI_GuildWarehouseUpgradePanel to your canvas
  2. [Required] Add UCE_UI_GuildWarehouse to your canvas
  3. [Required] Assign gold inventory text value on UCE_UI_GuildWarehouse
  4. [Required] Assign guild warehouse upgrade panel on UCE_UI_GuildWarehouse
  5. [Required] Attach UCE_UI_NpcGuildWarehouseDialogue to NpcDialogue in canvas
  6. [Required] Add “ButtonGuildWarehouse” to NpcDialogue Buttons
  7. [Required] Assign all properties in UCE_UI_NpcGuildWarehouseDialogue
  8. [Required] Check “OffersGuildWarehouse” on any Npc
  9. [Required] Edit both Item Storage and Gold Storage, as well as Upgrade Cost on the new “Warehouse Config” scriptable object.
  10. [Required] Assign the “Warehouse Config” scriptable object to each one of your player prefabs.

Screenshot


Extra

  • You edit the guild warehouse size and upgrades on your player prefabs. You must make sure that they are the same on ALL player prefabs who can be in the same guild, otherwise it will cause errors!

Support the IndieMMO Team Today!

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.