-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Grade Enchant User Interface
- Loading branch information
1 parent
94c1db6
commit 4f9fc21
Showing
36 changed files
with
1,433 additions
and
6 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
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,156 @@ | ||
//================= Hercules Database ===================================== | ||
//= _ _ _ | ||
//= | | | | | | | ||
//= | |_| | ___ _ __ ___ _ _| | ___ ___ | ||
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| | ||
//= | | | | __/ | | (__| |_| | | __/\__ \ | ||
//= \_| |_/\___|_| \___|\__,_|_|\___||___/ | ||
//================= License =============================================== | ||
//= This file is part of Hercules. | ||
//= http://herc.ws - http://github.com/HerculesWS/Hercules | ||
//= | ||
//= Copyright (C) 2021 Hercules Dev Team | ||
//= Copyright (C) 2021 Asheraf | ||
//= | ||
//= 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/>. | ||
//========================================================================= | ||
//= Grade Enchanting Database | ||
//========================================================================= | ||
|
||
/************************************************************************** | ||
************* Entry structure ******************************************** | ||
************************************************************************** | ||
{ | ||
Grade: "(string)" // Constant of the grade level ITEM_GRADE_* | ||
SuccessChance: // Base success change of the grade | ||
Announce: "(string)" // Flag for sending a client message to notify the client of the | ||
enchanting status. can be any of "None", "Success", "Failure", "Always". | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "(string)" // Constant of the item to be used as material | ||
ItemAmount: (int) // The amount required of the material | ||
ZenyCost: (int) // The zero amount required when using the material | ||
FailureBehavior: "(string)" // The failure behavior when using the material | ||
can be any of "Keep", "Destroy", "Downgrade". | ||
}, | ||
// ... (can be repeated up to MAX_GRADE_MATERIALS times) | ||
) | ||
BlessingInfo: { | ||
ItemId: "(string)" // Constant of the item to be used as blessing | ||
ItemAmount: (int) // The amount of items required for each blessing | ||
BonusPerItem: (int) // The success chance bonus given from the blessing | ||
MaxUsable: (int) // The maximum usable amount of blessings. | ||
} | ||
} | ||
**************************************************************************/ | ||
|
||
grade_db: ( | ||
{ | ||
Grade: "ITEM_GRADE_NONE" | ||
SuccessChance: 70 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Skyblue_Jewel" | ||
ItemAmount: 1 | ||
ZenyCost: 100000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Skyblue_Jewel" | ||
ItemAmount: 5 | ||
ZenyCost: 500000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 1 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_D" | ||
SuccessChance: 60 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Topaz" | ||
ItemAmount: 1 | ||
ZenyCost: 175000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Topaz" | ||
ItemAmount: 5 | ||
ZenyCost: 875000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 3 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_C" | ||
SuccessChance: 50 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Violet_Jewel" | ||
ItemAmount: 1 | ||
ZenyCost: 1000000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Violet_Jewel" | ||
ItemAmount: 5 | ||
ZenyCost: 2000000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 5 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_B" | ||
SuccessChance: 40 | ||
Announce: "Always" | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Amber" | ||
ItemAmount: 1 | ||
ZenyCost: 2000000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Amber" | ||
ItemAmount: 5 | ||
ZenyCost: 4000000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 7 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
} | ||
) |
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,156 @@ | ||
//================= Hercules Database ===================================== | ||
//= _ _ _ | ||
//= | | | | | | | ||
//= | |_| | ___ _ __ ___ _ _| | ___ ___ | ||
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| | ||
//= | | | | __/ | | (__| |_| | | __/\__ \ | ||
//= \_| |_/\___|_| \___|\__,_|_|\___||___/ | ||
//================= License =============================================== | ||
//= This file is part of Hercules. | ||
//= http://herc.ws - http://github.com/HerculesWS/Hercules | ||
//= | ||
//= Copyright (C) 2021 Hercules Dev Team | ||
//= Copyright (C) 2021 Asheraf | ||
//= | ||
//= 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/>. | ||
//========================================================================= | ||
//= Grade Enchanting Database | ||
//========================================================================= | ||
|
||
/************************************************************************** | ||
************* Entry structure ******************************************** | ||
************************************************************************** | ||
{ | ||
Grade: "(string)" // Constant of the grade level ITEM_GRADE_* | ||
SuccessChance: // Base success change of the grade | ||
Announce: "(string)" // Flag for sending a client message to notify the client of the | ||
enchanting status. can be any of "None", "Success", "Failure", "Always". | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "(string)" // Constant of the item to be used as material | ||
ItemAmount: (int) // The amount required of the material | ||
ZenyCost: (int) // The zero amount required when using the material | ||
FailureBehavior: "(string)" // The failure behavior when using the material | ||
can be any of "Keep", "Destroy", "Downgrade". | ||
}, | ||
// ... (can be repeated up to MAX_GRADE_MATERIALS times) | ||
) | ||
BlessingInfo: { | ||
ItemId: "(string)" // Constant of the item to be used as blessing | ||
ItemAmount: (int) // The amount of items required for each blessing | ||
BonusPerItem: (int) // The success chance bonus given from the blessing | ||
MaxUsable: (int) // The maximum usable amount of blessings. | ||
} | ||
} | ||
**************************************************************************/ | ||
|
||
grade_db: ( | ||
{ | ||
Grade: "ITEM_GRADE_NONE" | ||
SuccessChance: 70 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Skyblue_Jewel" | ||
ItemAmount: 1 | ||
ZenyCost: 100000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Skyblue_Jewel" | ||
ItemAmount: 5 | ||
ZenyCost: 500000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 1 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_D" | ||
SuccessChance: 60 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Topaz" | ||
ItemAmount: 1 | ||
ZenyCost: 175000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Topaz" | ||
ItemAmount: 5 | ||
ZenyCost: 875000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 3 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_C" | ||
SuccessChance: 50 | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Violet_Jewel" | ||
ItemAmount: 1 | ||
ZenyCost: 1000000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Violet_Jewel" | ||
ItemAmount: 5 | ||
ZenyCost: 2000000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 5 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
}, | ||
{ | ||
Grade: "ITEM_GRADE_B" | ||
SuccessChance: 40 | ||
Announce: "Always" | ||
MaterialInfo: ( | ||
{ | ||
ItemId: "Etel_Amber" | ||
ItemAmount: 1 | ||
ZenyCost: 2000000 | ||
FailureBehavior: "Destroy" | ||
}, | ||
{ | ||
ItemId: "Etel_Amber" | ||
ItemAmount: 5 | ||
ZenyCost: 4000000 | ||
FailureBehavior: "Downgrade" | ||
} | ||
) | ||
BlessingInfo: { | ||
ItemId: "Blessed_Etel_Dust" | ||
ItemAmount: 7 | ||
BonusPerItem: 1 | ||
MaxUsable: 10 | ||
} | ||
} | ||
) |
Oops, something went wrong.