Cheshire Posted September 24, 2020 Share Posted September 24, 2020 [Obsolete] Guilds This has since been updated and implemented into the base engine. Retaining the post for future reference only. Description: Adds basic guild support to the engine, the UI is based on the Friend List. This was originally written as a test, submitted as a possible addition to the engine and rejected for future planning reasons. Use this at your own risk, this changes a LOT of different aspects of the source code and I am NOT going to take responsibility if you break your upgrade path! A future version of Intersect may or may not get an official Guild system, so don't say I didn't warn you. there's also no guarantee this will work on your build as it was written against an in-development version of Intersect, you may need to fix conflicts yourself as I am not going to keep updating this every other day. Features: Guild Creation through the event system based on a Player Variable for input. Event support for checking whether a player is in a guild with a specific rank or higher. Event support for disbanding guilds. Joining and Leaving Guilds (duh!) Guild Name display over player's heads. Guild Chat Basic Guild Ranks Localization Support Basic Guild UI on the client (Inviting players and leaving the guild, guild member list with online/offline status) Chat commands for elements not present in the UI (/gkick, /promote, /demote, /makeguildmaster) A configuration option that allows the server to toggle PvP between members of the same guild on or off. (By default, does not allow you to attack your own guild members) Media: Spoiler Git Patch: [Download] Made for no particular build of Beta 7, since they don't exist yet. May have some merge conflicts you may need to resolve yourself as 7.0 gets developped further. Worked as is on 23/09/2020. No I will not make it work on your build. It's provided as is. Additional Resources: [Download] These files are the basic GUI files, please add them to your client. Setup: Download and install the main patch file for the branch you are using. Download and install any update patches IN THE ORDER THEY ARE LISTED for the branch you are using. Download and copy the resource files provided above to your client folder for the GUI to display correctly. Compile and run the server and client, it should automatically generate the new configuration/language entries. Set up a new Player String Variable to store your player's guild name they can fill in, let them fill it in and create a guild with the supplied Event command. Create your guilds and get cracking! Xiphoid, Worldofjimmy, Justn and 11 others 13 1 Link to comment Share on other sites More sharing options...
Guest Posted September 24, 2020 Share Posted September 24, 2020 Impressive. Link to comment Share on other sites More sharing options...
Shenmue Posted September 26, 2020 Share Posted September 26, 2020 Thanks Joyce my gee Link to comment Share on other sites More sharing options...
jcsnider Posted November 16, 2020 Share Posted November 16, 2020 Small edit: EventCommand_CreateGuild.cs line 30 should be: cmbVariable.Items.AddRange(PlayerVariableBase.Names); Instead of cmbVariable.Items.AddRange(PlayerVariableBase.GetNameList()); The former sorts by the order in which the variables were created which is what IdFromList() expects. Also in GameInterface.cs after GameMenu.UpdateGuildList(); the following needs to be added: mShouldUpdateGuildList = false; Cheshire 1 Link to comment Share on other sites More sharing options...
Richy Posted November 17, 2020 Share Posted November 17, 2020 Thanks Joyce. Will be using your system in our project. :) Link to comment Share on other sites More sharing options...
Xiphoid Posted January 18, 2021 Share Posted January 18, 2021 friendly != player.Guild.IsMember(this) clean code for pvp option Link to comment Share on other sites More sharing options...
nvh Posted June 20, 2021 Share Posted June 20, 2021 On 17/11/2020 at 03:22, jcsnider said: Chỉnh sửa nhỏ: EventCommand_CreateGuild.cs dòng 30 phải là: cmbVariable.Items.AddRange(PlayerVariableBase.Names); Thay vì cmbVariable.Items.AddRange(PlayerVariableBase.GetNameList()); Trước đây sắp xếp theo thứ tự mà các biến được tạo, đó là những gì IdFromList () mong đợi. Cũng trong GameInterface.cs sau GameMenu.UpdateGuildList(); những điều sau cần được thêm vào: mShouldUpdateGuildList = false; can you use this in Intersect?? in future?? Link to comment Share on other sites More sharing options...
AisenArvalis Posted June 20, 2021 Share Posted June 20, 2021 Quote This has since been updated and implemented into the base engine. Retaining the post for future reference only. It's already part of the base engine in 0.7.120 or later. 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