Skip to content

Preparation for Alliances#58

Open
ronancpl wants to merge 22 commits intoiw2d:mainfrom
ronancpl:main
Open

Preparation for Alliances#58
ronancpl wants to merge 22 commits intoiw2d:mainfrom
ronancpl:main

Conversation

@ronancpl
Copy link

I implemented the functional methods for Alliances. Missing server-client interaction measures.

Wishful thinking

It's as much of an honor for me to be part of all this prospect for the community of MapleStory. The final objective, enquest to give the users the best potential experience at mapling. I would dedicate all my maple-related work until now to my parents and siblings, whom I cherish dearly. That's it.

Alliance server-side implementation.
Prepare for compile.
A stretch on request and results of Alliances.
Added CRUD for Alliances
Create methods for alliance management.
}

public static CentralServerNode getCentralServerNode() {
return centralServerNode;
Copy link
Owner

@iw2d iw2d Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be unintuitive, but we cannot call functions on CentralServerNode directly. Instead, all communications between channel/login/central instances are done via packets so that they may run in separate processes - see ChannelServerHandler.java, LoginServerhandler.java, CentralServerHandler.java.

I will add a task for myself to make some changes so that this is clearer.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There. Solved the part where the CentralServerNode was not being sent the packets for Alliances.

Made amends with proper packets to CentralServerNode on Alliances instead of calling Server direcly.
ronancpl and others added 8 commits November 23, 2025 07:49
Alliance server-side implementation.
Prepare for compile.
A stretch on request and results of Alliances.
Added CRUD for Alliances
Create methods for alliance management.
Made amends with proper packets to CentralServerNode on Alliances instead of calling Server direcly.
}

public boolean addGuild(int guildId) {
if (canAddGuild(guildId)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inverse logic?

should be if (!canAddGuild(guildId))

}

public int getAllianceId() {
return guildId;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allianceid

Clear inverse logic.
Implement ChangeGrade and Destroy alliances.
Implemented central server node handling for set grade names on alliances.
Implemented central server node handling for update member count for alliances.
Implemented central server node handling for change master in alliances.
@ronancpl ronancpl mentioned this pull request Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants