Skip to content

Commit

Permalink
Implement Grade Enchant User Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheraf authored and MishimaHaruna committed Jan 5, 2022
1 parent 94c1db6 commit 4f9fc21
Show file tree
Hide file tree
Showing 36 changed files with 1,433 additions and 6 deletions.
4 changes: 4 additions & 0 deletions conf/map/battle/feature.conf
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,8 @@ features: {
// true: enable
// false: disable (Default)
replace_refine_npcs: false

// Defines the maximum grade level that can be enchanted using the grade enchant ui
// Possible values 0-7 (No Grade - SS Grade)
grader_max_used: 4
}
1 change: 1 addition & 0 deletions conf/map/logs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ map_log: {
// 0x08000000 - (2) Refine
// 0x10000000 - (L) Log items looted by monsters
// 0x20000000 - (3) Achievements
// 0x40000000 - (4) Grade Enchant
// Example: Log trades+vending+script items+created items: 1+2+32+1024 = 1059
// Please note that moving items from inventory to cart and back is not logged by design.
enable: 0xFFFFFFFF
Expand Down
156 changes: 156 additions & 0 deletions db/pre-re/grade_db.conf
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
}
}
)
56 changes: 56 additions & 0 deletions db/pre-re/item_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100571,4 +100571,60 @@ item_db: (
AegisName: "AssacrossStone_Bottom2"
Name: "AssacrossStone_Bottom2"
},
{
Id: 1000321
AegisName: "Amber"
Name: "Amber"
Weight: 100
BuyingStore: true
},
{
Id: 1000322
AegisName: "Etel_Dust"
Name: "Etel Dust"
Weight: 1
BuyingStore: true
},
{
Id: 1000323
AegisName: "Etel_Stone"
Name: "Etel Stone"
Weight: 10
BuyingStore: true
},
{
Id: 1000325
AegisName: "Etel_Skyblue_Jewel"
Name: "Etel Skyblue Jewel"
Weight: 10
BuyingStore: true
},
{
Id: 1000326
AegisName: "Etel_Topaz"
Name: "Etel Topaz"
Weight: 10
BuyingStore: true
},
{
Id: 1000327
AegisName: "Etel_Violet_Jewel"
Name: "Etel Violet Jewel"
Weight: 10
BuyingStore: true
},
{
Id: 1000328
AegisName: "Etel_Amber"
Name: "Etel Amber"
Weight: 10
BuyingStore: true
},
{
Id: 1000337
AegisName: "Blessed_Etel_Dust"
Name: "Blessed Etel Dust"
Weight: 10
BuyingStore: true
},
)
156 changes: 156 additions & 0 deletions db/re/grade_db.conf
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
}
}
)
Loading

0 comments on commit 4f9fc21

Please sign in to comment.