Addition of attribute system configuration file.

Contributed by facab.
This commit is contained in:
MobiusDevelopment
2019-05-09 11:17:02 +00:00
parent b66e9ca517
commit 3d9011a87d
82 changed files with 3543 additions and 1677 deletions

View File

@@ -0,0 +1,107 @@
##+-------+----------------+----------------+----------------+----------------+----------------+
##| Grade | Stone | Crystal | Stone-Super | Crystal-Super | Jewel |
##+-------+----------------+----------------+----------------+----------------+----------------+
##| | Weapon | Armor | Weapon | Armor | Weapon | Armor | Weapon | Armor | Weapon | Armor |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| S | 50% | 60% | 30% | 50% | 100% | 100% | 80% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| S80 | 50% | 80% | 40% | 70% | 100% | 100% | 90% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| S84 | 50% | 80% | 50% | 80% | 100% | 100% | 100% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| R | 50% | 100% | 60% | 80% | 100% | 100% | 100% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| R95 | 50% | 100% | 60% | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
##| R99 | 50% | 100% | 60% | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
##+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+
# ---------------------------------------------------------------------------
# Stone Chance
# ---------------------------------------------------------------------------
SWeaponStone = 50
S80WeaponStone = 50
S84WeaponStone = 50
RWeaponStone = 50
R95WeaponStone = 50
R99WeaponStone = 50
SArmorStone = 60
S80ArmorStone = 80
S84ArmorStone = 80
RArmorStone = 100
R95ArmorStone = 100
R99ArmorStone = 100
# ---------------------------------------------------------------------------
# Crystal Chance
# ---------------------------------------------------------------------------
SWeaponCrystal = 30
S80WeaponCrystal = 40
S84WeaponCrystal = 50
RWeaponCrystal = 60
R95WeaponCrystal = 60
R99WeaponCrystal = 60
SArmorCrystal = 50
S80ArmorCrystal = 70
S84ArmorCrystal = 80
RArmorCrystal = 80
R95ArmorCrystal = 100
R99ArmorCrystal = 100
# ---------------------------------------------------------------------------
# Stone-Super Chance
# ---------------------------------------------------------------------------
SWeaponStoneSuper = 100
S80WeaponStoneSuper = 100
S84WeaponStoneSuper = 100
RWeaponStoneSuper = 100
R95WeaponStoneSuper = 100
R99WeaponStoneSuper = 100
SArmorStoneSuper = 100
S80ArmorStoneSuper = 100
S84ArmorStoneSuper = 100
RArmorStoneSuper = 100
R95ArmorStoneSuper = 100
R99ArmorStoneSuper = 100
# ---------------------------------------------------------------------------
# Crystal-Super Chance
# ---------------------------------------------------------------------------
SWeaponCrystalSuper = 80
S80WeaponCrystalSuper = 90
S84WeaponCrystalSuper = 100
RWeaponCrystalSuper = 100
R95WeaponCrystalSuper = 100
R99WeaponCrystalSuper = 100
SArmorCrystalSuper = 100
S80ArmorCrystalSuper = 100
S84ArmorCrystalSuper = 100
RArmorCrystalSuper = 100
R95ArmorCrystalSuper = 100
R99ArmorCrystalSuper = 100
# ---------------------------------------------------------------------------
# Jewels Chance
# ---------------------------------------------------------------------------
SWeaponJewel = 100
S80WeaponJewel = 100
S84WeaponJewel = 100
RWeaponJewel = 100
R95WeaponJewel = 100
R99WeaponJewel = 100
SArmorJewel = 100
S80ArmorJewel = 100
S84ArmorJewel = 100
RArmorJewel = 100
R95ArmorJewel = 100
R99ArmorJewel = 100

View File

@@ -428,14 +428,6 @@ MentorPenaltyForMenteeLeave = 2
# ---------------------------------------------------------------------------
# Enchanting
# ---------------------------------------------------------------------------
# This controls the chance an item has to break if it is enchanted.
# This chance is in %, so if you set this to 100%, enchants will always succeed.
# DEFAULT NEEDS TO BE VERIFIED, MUST BE CHANGED HERE AND IN CONFIG.JAVA IF NOT CORRECT
EnchantChanceElementStone = 50
EnchantChanceElementCrystal = 30
EnchantChanceElementJewel = 20
EnchantChanceElementEnergy = 10
# List of non-enchantable items.
# Currently apprentice, travelers weapons and Pailaka items
# Default: 7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,13293,13294,13296

View File

@@ -269,26 +269,6 @@ public class AdminAdmin implements IAdminCommandHandler
Config.RATE_SPOIL_DROP_CHANCE_MULTIPLIER = Float.valueOf(pValue);
break;
}
case "EnchantChanceElementStone":
{
Config.ENCHANT_CHANCE_ELEMENT_STONE = Float.valueOf(pValue);
break;
}
case "EnchantChanceElementCrystal":
{
Config.ENCHANT_CHANCE_ELEMENT_CRYSTAL = Float.valueOf(pValue);
break;
}
case "EnchantChanceElementJewel":
{
Config.ENCHANT_CHANCE_ELEMENT_JEWEL = Float.valueOf(pValue);
break;
}
case "EnchantChanceElementEnergy":
{
Config.ENCHANT_CHANCE_ELEMENT_ENERGY = Float.valueOf(pValue);
break;
}
}
BuilderUtil.sendSysMessage(activeChar, "Config parameter " + pName + " set to " + pValue);
}
@@ -465,11 +445,6 @@ public class AdminAdmin implements IAdminCommandHandler
replyMSG.append("<tr><td><font color=\"LEVEL\">Rate SP</font> = " + Config.RATE_SP + "</td><td><edit var=\"param2\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig RateSp $param2\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("<tr><td><font color=\"LEVEL\">Rate Drop Spoil</font> = " + Config.RATE_SPOIL_DROP_CHANCE_MULTIPLIER + "</td><td><edit var=\"param4\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig RateDropSpoil $param4\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("<tr><td width=140></td><td width=40></td><td width=40></td></tr>");
replyMSG.append("<tr><td><font color=\"00AA00\">Enchant:</font></td><td></td><td></td></tr>");
replyMSG.append("<tr><td><font color=\"LEVEL\">Enchant Element Stone</font> = " + Config.ENCHANT_CHANCE_ELEMENT_STONE + "</td><td><edit var=\"param8\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig EnchantChanceElementStone $param8\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("<tr><td><font color=\"LEVEL\">Enchant Element Crystal</font> = " + Config.ENCHANT_CHANCE_ELEMENT_CRYSTAL + "</td><td><edit var=\"param9\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig EnchantChanceElementCrystal $param9\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("<tr><td><font color=\"LEVEL\">Enchant Element Jewel</font> = " + Config.ENCHANT_CHANCE_ELEMENT_JEWEL + "</td><td><edit var=\"param10\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig EnchantChanceElementJewel $param10\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("<tr><td><font color=\"LEVEL\">Enchant Element Energy</font> = " + Config.ENCHANT_CHANCE_ELEMENT_ENERGY + "</td><td><edit var=\"param11\" width=40 height=15></td><td><button value=\"Set\" action=\"bypass -h admin_setconfig EnchantChanceElementEnergy $param11\" width=40 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");
replyMSG.append("</table></body></html>");
adminReply.setHtml(replyMSG.toString());