mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Rename OP_BuffFadeMsg to OP_ColoredText since it is a generic opcode
This commit is contained in:
+1
-1
@@ -446,7 +446,7 @@ luabind::scope lua_register_packet_opcodes() {
|
||||
luabind::value("YellForHelp", static_cast<int>(OP_YellForHelp)),
|
||||
luabind::value("SafePoint", static_cast<int>(OP_SafePoint)),
|
||||
luabind::value("Buff", static_cast<int>(OP_Buff)),
|
||||
luabind::value("BuffFadeMsg", static_cast<int>(OP_BuffFadeMsg)),
|
||||
luabind::value("ColoredText", static_cast<int>(OP_ColoredText)),
|
||||
luabind::value("SpecialMesg", static_cast<int>(OP_SpecialMesg)),
|
||||
luabind::value("Consent", static_cast<int>(OP_Consent)),
|
||||
luabind::value("ConsentResponse", static_cast<int>(OP_ConsentResponse)),
|
||||
|
||||
+2
-2
@@ -4817,8 +4817,8 @@ void Client::MakeBuffFadePacket(uint16 spell_id, int slot_id, bool send_message)
|
||||
if(send_message)
|
||||
{
|
||||
const char *fadetext = spells[spell_id].spell_fades;
|
||||
outapp = new EQApplicationPacket(OP_BuffFadeMsg, sizeof(BuffFadeMsg_Struct) + strlen(fadetext));
|
||||
BuffFadeMsg_Struct *bfm = (BuffFadeMsg_Struct *) outapp->pBuffer;
|
||||
outapp = new EQApplicationPacket(OP_ColoredText, sizeof(ColoredText_Struct) + strlen(fadetext));
|
||||
ColoredText_Struct *bfm = (ColoredText_Struct *) outapp->pBuffer;
|
||||
bfm->color = MT_Spells;
|
||||
memcpy(bfm->msg, fadetext, strlen(fadetext));
|
||||
QueuePacket(outapp);
|
||||
|
||||
Reference in New Issue
Block a user