Custom AllowedPlayerRaces configuration for Sylph.
Contributed by darkillust.
This commit is contained in:
@@ -216,8 +216,8 @@ BlessingChance = 15.0
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
# LCoin drops from mobs.
|
# LCoin drops from mobs.
|
||||||
# Default: false
|
# Default: False
|
||||||
LCoinDropEnable = false
|
LCoinDropEnable = False
|
||||||
|
|
||||||
# LCoin drop chance from normal mobs.
|
# LCoin drop chance from normal mobs.
|
||||||
# Default: 15.0
|
# Default: 15.0
|
||||||
|
@@ -11,3 +11,4 @@ AllowOrc = True
|
|||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
AllowKamael = True
|
||||||
AllowErtheia = True
|
AllowErtheia = True
|
||||||
|
AllowSylph = True
|
||||||
|
@@ -216,8 +216,8 @@ BlessingChance = 15.0
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
# LCoin drops from mobs.
|
# LCoin drops from mobs.
|
||||||
# Default: false
|
# Default: False
|
||||||
LCoinDropEnable = false
|
LCoinDropEnable = False
|
||||||
|
|
||||||
# LCoin drop chance from normal mobs.
|
# LCoin drop chance from normal mobs.
|
||||||
# Default: 15.0
|
# Default: 15.0
|
||||||
|
@@ -1178,6 +1178,7 @@ public class Config
|
|||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
public static boolean ALLOW_KAMAEL;
|
||||||
public static boolean ALLOW_ERTHEIA;
|
public static boolean ALLOW_ERTHEIA;
|
||||||
|
public static boolean ALLOW_SYLPH;
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2500,6 +2501,7 @@ public class Config
|
|||||||
ALLOW_DWARF = AllowedPlayerRaces.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = AllowedPlayerRaces.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = AllowedPlayerRaces.getBoolean("AllowKamael", true);
|
ALLOW_KAMAEL = AllowedPlayerRaces.getBoolean("AllowKamael", true);
|
||||||
ALLOW_ERTHEIA = AllowedPlayerRaces.getBoolean("AllowErtheia", true);
|
ALLOW_ERTHEIA = AllowedPlayerRaces.getBoolean("AllowErtheia", true);
|
||||||
|
ALLOW_SYLPH = AllowedPlayerRaces.getBoolean("AllowSylph", true);
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser AutoPotions = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser AutoPotions = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -236,6 +236,15 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SYLPH:
|
||||||
|
{
|
||||||
|
if (!Config.ALLOW_SYLPH)
|
||||||
|
{
|
||||||
|
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
newChar = PlayerInstance.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = PlayerInstance.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user