Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1718 from Murilo-BiO/clan_system
Implementation of Official Clan System
- Loading branch information
Showing
79 changed files
with
5,730 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//================= Hercules Configuration ================================ | ||
//= _ _ _ | ||
//= | | | | | | | ||
//= | |_| | ___ _ __ ___ _ _| | ___ ___ | ||
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| | ||
//= | | | | __/ | | (__| |_| | | __/\__ \ | ||
//= \_| |_/\___|_| \___|\__,_|_|\___||___/ | ||
//================= License =============================================== | ||
//= This file is part of Hercules. | ||
//= http://herc.ws - http://github.com/HerculesWS/Hercules | ||
//= | ||
//= Copyright (C) 2017 Hercules Dev Team | ||
//= | ||
//= Hercules is free software: you can redistribute it and/or modify | ||
//= it under the terms of the GNU General Public License as published by | ||
//= the Free Software Foundation, either version 3 of the License, or | ||
//= (at your option) any later version. | ||
//= | ||
//= This program is distributed in the hope that it will be useful, | ||
//= but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
//= GNU General Public License for more details. | ||
//= | ||
//= You should have received a copy of the GNU General Public License | ||
//= along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
//========================================================================= | ||
//= Clan System local configuration file. | ||
//========================================================================= | ||
|
||
clan_configuration: { | ||
|
||
// Maximum players for each clan | ||
MaxMembers: 500 | ||
|
||
// Maximum alliances/oppositions for each clan | ||
MaxRelations: 6 | ||
|
||
// how many hours player must be inactive to be kicked? | ||
// Disabled: 0 | ||
// Official: 336 (2 weeks) | ||
InactivityKickTime: 336 | ||
|
||
// Checks each clan member every 'InactivityCheckTime' hour(s) (default 24h, minimum value of 1h) | ||
InactivityCheckTime: 24 | ||
|
||
// Clan Database | ||
@include "db/clans.conf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
//================= Hercules Database ===================================== | ||
//= _ _ _ | ||
//= | | | | | | | ||
//= | |_| | ___ _ __ ___ _ _| | ___ ___ | ||
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| | ||
//= | | | | __/ | | (__| |_| | | __/\__ \ | ||
//= \_| |_/\___|_| \___|\__,_|_|\___||___/ | ||
//================= License =============================================== | ||
//= This file is part of Hercules. | ||
//= http://herc.ws - http://github.com/HerculesWS/Hercules | ||
//= | ||
//= Copyright (C) 2017 Hercules Dev Team | ||
//= | ||
//= Hercules is free software: you can redistribute it and/or modify | ||
//= it under the terms of the GNU General Public License as published by | ||
//= the Free Software Foundation, either version 3 of the License, or | ||
//= (at your option) any later version. | ||
//= | ||
//= This program is distributed in the hope that it will be useful, | ||
//= but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
//= GNU General Public License for more details. | ||
//= | ||
//= You should have received a copy of the GNU General Public License | ||
//= along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
//========================================================================= | ||
//= Clan System Database File. | ||
//========================================================================= | ||
|
||
clans: ( | ||
/************************************************************************** | ||
************* Entry structure ******************************************** | ||
************************************************************************** | ||
{ | ||
Id: ID (int) | ||
Const: "Const Name" (string) | ||
Name: "Clan Name" (string) | ||
Leader: "Leader Name" (string) | ||
Map: "Map Name" (string) | ||
MaxMembers: Max (int, optional, overrides MaxMembers on conf/clans.conf) | ||
KickTime: Hours (int, optional, overrides InactivityKickTime) | ||
CheckTime: Hours (int, optional, overrides InactivityCheckTime) | ||
Buff: { | ||
Icon: State Icon ID/Constant (int, you can find all ids on your lua folder: stateicon/efstids.lub or /src/map/constants.inc.h) | ||
Script: <" (optional) | ||
Script (it can be multi-line) | ||
"> | ||
} | ||
Allies: [ | ||
"CLAN_NAME_CONSTANT", (string) | ||
] | ||
Antagonists: [ | ||
"CLAN_NAME_CONSTANT", (string) | ||
] | ||
}, | ||
**************************************************************************/ | ||
{ | ||
Id: 1 | ||
Const: "SWORDCLAN" | ||
Name: "Sword Clan" | ||
Leader: "Raffam Oranpere" | ||
Map: "prontera" | ||
Buff: { | ||
Icon: "SI_SWORDCLAN" | ||
Script: <" | ||
bonus(bStr, 1); | ||
bonus(bVit, 1); | ||
bonus(bMaxHP, 30); | ||
bonus(bMaxSP, 10); | ||
"> | ||
} | ||
Allies: [ | ||
"GOLDENMACECLAN", | ||
] | ||
}, | ||
{ | ||
Id: 2 | ||
Const: "ARCWANDCLAN" | ||
Name: "Arc Wand Clan" | ||
Leader: "Devon Aire" | ||
Map: "geffen" | ||
Buff: { | ||
Icon: "SI_ARCWANDCLAN" | ||
Script: <" | ||
bonus(bInt, 1); | ||
bonus(bDex, 1); | ||
bonus(bMaxHP, 30); | ||
bonus(bMaxSP, 10); | ||
"> | ||
} | ||
Allies: [ | ||
"GOLDENMACECLAN", | ||
] | ||
Antagonists: [ | ||
"CROSSBOWCLAN", | ||
] | ||
}, | ||
{ | ||
Id: 3 | ||
Const: "GOLDENMACECLAN" | ||
Name: "Golden Mace Clan" | ||
Leader: "Berman Aire" | ||
Map: "prontera" | ||
Buff: { | ||
Icon: "SI_GOLDENMACECLAN" | ||
Script: <" | ||
bonus(bInt, 1); | ||
bonus(bLuk, 1); | ||
bonus(bMaxHP, 30); | ||
bonus(bMaxSP, 10); | ||
"> | ||
} | ||
Allies: [ | ||
"SWORDCLAN", | ||
"ARCWANDCLAN", | ||
"CROSSBOWCLAN", | ||
] | ||
}, | ||
{ | ||
Id: 4 | ||
Const: "CROSSBOWCLAN" | ||
Name: "Crossbow Clan" | ||
Leader: "Shaam Rumi" | ||
Map: "payon" | ||
Buff: { | ||
Icon: "SI_CROSSBOWCLAN" | ||
Script: <" | ||
bonus(bDex, 1); | ||
bonus(bAgi, 1); | ||
bonus(bMaxHP, 30); | ||
bonus(bMaxSP, 10); | ||
"> | ||
} | ||
Allies: [ | ||
"GOLDENMACECLAN", | ||
] | ||
Antagonists: [ | ||
"ARCWANDCLAN", | ||
] | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
19c9401
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finally thx haru and murilo bio
19c9401
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, after all this time it's finally here. kinda strange to see it. great stuff.