System message adjustments.

Thanks to Enryu.
This commit is contained in:
MobiusDevelopment
2022-01-15 04:33:13 +00:00
parent 2f3ce4199a
commit 169584c991
4 changed files with 10 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
The Platinum Tribe has taken over the 4th-6th floors of the Tower Of Insolence. They are hostile towards outsiders, so be careful.<br> The Platinum Tribe has taken over the 4th-6th floors of the Tower Of Insolence. They are hostile towards outsiders, so be careful.<br>
If you leave the peace zones we have set, you will enter the battlefield.<br> If you leave the peace zones we have set, you will enter the battlefield.<br>
In a battlefield, members of the same clan may be affected by AoE attacks.<br> In a battlefield, members of the same clan may be affected by AoE attacks.<br>
But if you are in the <font color="LEVEL">same party or alliance</font>, you won't be affected by AoE attacks of party members/alliance members. Keep this in mind.<br> But if you are in the <font color="LEVEL">same party or alliance</font>, you won't be affected by AoE attacks of party members/alliance members. Keep this in mind.<br>
Which floor would you like to go to?<br> Which floor would you like to go to?<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_teleport OTHER 0">Tower of Insolence (4th Floor)</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_teleport OTHER 0">Tower of Insolence (4th Floor)</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_teleport OTHER 1">Tower of Insolence (5th Floor)</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_teleport OTHER 1">Tower of Insolence (5th Floor)</Button>

View File

@@ -489,7 +489,9 @@ public class Raina extends AbstractNpcAI
player.setActiveClass(player.getTotalSubClasses()); player.setActiveClass(player.getTotalSubClasses());
player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.NEW_SLOT_USED)); player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.NEW_SLOT_USED));
player.sendPacket(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS); final SystemMessage sm = new SystemMessage(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS);
sm.addItemName(player.getActiveClass());
player.sendPacket(sm);
player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html")); player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html"));
break; break;
} }
@@ -553,7 +555,9 @@ public class Raina extends AbstractNpcAI
player.setActiveClass(classIndex); player.setActiveClass(classIndex);
player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.CLASS_CHANGED)); player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.CLASS_CHANGED));
player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html")); player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html"));
player.sendPacket(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS); final SystemMessage sm = new SystemMessage(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS);
sm.addItemName(player.getActiveClass());
player.sendPacket(sm);
} }
break; break;
} }
@@ -631,7 +635,9 @@ public class Raina extends AbstractNpcAI
{ {
player.setActiveClass(player.getTotalSubClasses()); player.setActiveClass(player.getTotalSubClasses());
player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.NEW_SLOT_USED)); player.sendPacket(new ExSubjobInfo(player, SubclassInfoType.NEW_SLOT_USED));
player.sendPacket(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS); final SystemMessage sm = new SystemMessage(SystemMessageId.THE_NEW_DUAL_CLASS_S1_HAS_BEEN_ADDED_CONGRATS);
sm.addItemName(player.getActiveClass());
player.sendPacket(sm);
player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html")); player.sendPacket(getNpcHtmlMessage(player, npc, "addSuccess.html"));
SkillTreeData.getInstance().cleanSkillUponChangeClass(player); SkillTreeData.getInstance().cleanSkillUponChangeClass(player);
player.restoreDualSkills(); player.restoreDualSkills();

View File

@@ -94,7 +94,6 @@ public class RequestExRemoveItemAttribute implements IClientIncomingPacket
if (targetItem.isArmor()) if (targetItem.isArmor())
{ {
sm.addAttribute(realElement.getClientId()); sm.addAttribute(realElement.getClientId());
sm.addAttribute(realElement.getOpposite().getClientId());
} }
} }
else else

View File

@@ -94,7 +94,6 @@ public class RequestExRemoveItemAttribute implements IClientIncomingPacket
if (targetItem.isArmor()) if (targetItem.isArmor())
{ {
sm.addAttribute(realElement.getClientId()); sm.addAttribute(realElement.getClientId());
sm.addAttribute(realElement.getOpposite().getClientId());
} }
} }
else else