aonniemnoi Posted September 25, 2021 Posted September 25, 2021 btw i want to change this msg announce for all player to color msg. something like RED color like type a SHOUT... Thank you for some 1 can help me // announce pvp/pk if (Config.ANNOUNCE_PK_PVP && !pk.isGM()) { String msg = ""; if (getPvpFlag() == 0) { msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); sm.addString(msg); Announcements.getInstance().announceToAll(sm); } else { Announcements.getInstance().announceToAll(msg); } } else if (getPvpFlag() != 0) { msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); sm.addString(msg); Announcements.getInstance().announceToAll(sm); } else { Announcements.getInstance().announceToAll(msg); } } } }
0 zemaitis Posted September 25, 2021 Posted September 25, 2021 You need to change color code on clientside in systemmsg-e.dat
0 aonniemnoi Posted September 25, 2021 Author Posted September 25, 2021 55 minutes ago, zemaitis said: You need to change color code on clientside in systemmsg-e.dat now i open it on systemmsg-e.dat in system. now where to change pls?
0 zemaitis Posted September 25, 2021 Posted September 25, 2021 11 minutes ago, aonniemnoi said: now i open it on systemmsg-e.dat in system. now where to change pls? https://www.google.com/search?q=systemmsg+change+text+color+lineage2
0 KejbL Posted September 25, 2021 Posted September 25, 2021 id msg ? or send me u systemmsg-e.dat and tell me what color need
0 zemaitis Posted September 25, 2021 Posted September 25, 2021 1 hour ago, KejbL said: id msg ? or send me u systemmsg-e.dat and tell me what color need Dont give a man fish, better teach him how to catch it.
0 KejbL Posted September 25, 2021 Posted September 25, 2021 17 minutes ago, zemaitis said: Dont give a man fish, better teach him how to catch it. when have time no problem make it
0 Celestine Posted September 25, 2021 Posted September 25, 2021 Interlude or H5? it depends if it's h5 i can change it.
0 aonniemnoi Posted September 26, 2021 Author Posted September 26, 2021 5 hours ago, Celestine said: Interlude or H5? it depends if it's h5 i can change it. yes H5 6 hours ago, splicho said: As this is custom message hardcoded in Java I dont think its existing in systemmessage or im trippin can change in this ? SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1 because color is nomal msg. i want to change to red color how to do please?
0 aLzhite Posted September 26, 2021 Posted September 26, 2021 (edited) if (Config.ANNOUNCE_PK_PVP && !pk.isGM()) { String msg = ""; if (getPvpFlag() == 0) { msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); change this to; SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.anything); insert the id that u put into SystemMessageId, open systemmsg-e, add the id, name it $s1 $s2, put the color u want to that system message Edited September 26, 2021 by aLzhite
0 aonniemnoi Posted September 27, 2021 Author Posted September 27, 2021 17 hours ago, aLzhite said: if (Config.ANNOUNCE_PK_PVP && !pk.isGM()) { String msg = ""; if (getPvpFlag() == 0) { msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); change this to; SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.anything); insert the id that u put into SystemMessageId, open systemmsg-e, add the id, name it $s1 $s2, put the color u want to that system message oh thank you i solve
0 Celestine Posted September 27, 2021 Posted September 27, 2021 h5 Supports colors from packet also @aonniemnoi thanks aswell @Brado writeEx(0x39); writeD(_type); // 0 - system messages, 1 - your defined text writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect) writeD(_text_align.ordinal() + 1 ); writeD(0x00); // ? writeD(_big_font ? 0 : 1); writeD(_color); // HEX COLOR writeD(0x00); // ? writeD(_effect ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect writeD(_time); writeD(_event ? 0x00 : 0x01); // ? writeElements();
Question
aonniemnoi
btw i want to change this msg announce for all player to color msg. something like RED color
like type a SHOUT...
Thank you for some 1 can help me
// announce pvp/pk
if (Config.ANNOUNCE_PK_PVP && !pk.isGM())
{
String msg = "";
if (getPvpFlag() == 0)
{
msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName());
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1);
sm.addString(msg);
Announcements.getInstance().announceToAll(sm);
}
else
{
Announcements.getInstance().announceToAll(msg);
}
}
else if (getPvpFlag() != 0)
{
msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", pk.getName()).replace("$target", getName());
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1);
sm.addString(msg);
Announcements.getInstance().announceToAll(sm);
}
else
{
Announcements.getInstance().announceToAll(msg);
}
}
}
}
12 answers to this question
Recommended Posts