Guild Warehouse
Version: | 2019.200 | Requirements: | uMMORPG3d, Tools | Script Define: | None |
Core Changes: | Yes | Tutorial 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
- [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
- [Required] Add UCE_UI_GuildWarehouseUpgradePanel to your canvas
- [Required] Add UCE_UI_GuildWarehouse to your canvas
- [Required] Assign gold inventory text value on UCE_UI_GuildWarehouse
- [Required] Assign guild warehouse upgrade panel on UCE_UI_GuildWarehouse
- [Required] Attach UCE_UI_NpcGuildWarehouseDialogue to NpcDialogue in canvas
- [Required] Add “ButtonGuildWarehouse” to NpcDialogue Buttons
- [Required] Assign all properties in UCE_UI_NpcGuildWarehouseDialogue
- [Required] Check “OffersGuildWarehouse” on any Npc
- [Required] Edit both Item Storage and Gold Storage, as well as Upgrade Cost on the new “Warehouse Config” scriptable object.
- [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!