Fixed castle functions.
This commit is contained in:
@@ -160,7 +160,7 @@ public final class CastleChamberlain extends AbstractNpcAI
|
||||
html = getHtmlPacket(player, npc, "castleresetdeco.html");
|
||||
html.replace("%AgitDecoSubmit%", Integer.toString(func));
|
||||
}
|
||||
else if ((castle.getFunction(func) != null) && (castle.getCastleFunction(func).getLvl() == level))
|
||||
else if ((castle.getCastleFunction(func) != null) && (castle.getCastleFunction(func).getLvl() == level))
|
||||
{
|
||||
html = getHtmlPacket(player, npc, "castledecoalreadyset.html");
|
||||
html.replace("%AgitDecoEffect%", "<fstring p1=\"" + level + "\">" + fstring + "</fstring>");
|
||||
@@ -940,7 +940,7 @@ public final class CastleChamberlain extends AbstractNpcAI
|
||||
{
|
||||
castle.updateFunctions(player, func, level, 0, 0, false);
|
||||
}
|
||||
else if (!castle.updateFunctions(player, func, level, getFunctionFee(func, level), getFunctionRatio(func), castle.getFunction(func) == null))
|
||||
else if (!castle.updateFunctions(player, func, level, getFunctionFee(func, level), getFunctionRatio(func), castle.getCastleFunction(func) == null))
|
||||
{
|
||||
htmltext = "chamberlain-09.html";
|
||||
}
|
||||
@@ -976,7 +976,7 @@ public final class CastleChamberlain extends AbstractNpcAI
|
||||
{
|
||||
htmltext = "chamberlain-21.html";
|
||||
}
|
||||
else if (castle.getFunction(Castle.FUNC_TELEPORT) == null)
|
||||
else if (castle.getCastleFunction(Castle.FUNC_TELEPORT) == null)
|
||||
{
|
||||
htmltext = "castlefuncdisabled.html";
|
||||
}
|
||||
@@ -1022,7 +1022,7 @@ public final class CastleChamberlain extends AbstractNpcAI
|
||||
{
|
||||
if (isOwner(player, npc) && player.hasClanPrivilege(ClanPrivilege.CS_USE_FUNCTIONS))
|
||||
{
|
||||
if (castle.getFunction(Castle.FUNC_SUPPORT) == null)
|
||||
if (castle.getCastleFunction(Castle.FUNC_SUPPORT) == null)
|
||||
{
|
||||
htmltext = "castlefuncdisabled.html";
|
||||
}
|
||||
@@ -1043,7 +1043,7 @@ public final class CastleChamberlain extends AbstractNpcAI
|
||||
{
|
||||
if (isOwner(player, npc) && player.hasClanPrivilege(ClanPrivilege.CS_USE_FUNCTIONS))
|
||||
{
|
||||
if (castle.getFunction(Castle.FUNC_SUPPORT) == null)
|
||||
if (castle.getCastleFunction(Castle.FUNC_SUPPORT) == null)
|
||||
{
|
||||
htmltext = "castlefuncdisabled.html";
|
||||
}
|
||||
|
Reference in New Issue
Block a user