"wannounce", "<wannounce string>",
"Shows the message in all client title areas."
},
+ {
+ &HandleFakew,
+ "fakew", "<source> <player> <message>",
+ "Whispers a message to someone from the fake source."
+ },
{
&HandleWhisperCommand,
"whisper","<player> <message>",
Index: src/arcemu-world/MiscHandler.cpp
- WoWGuid pguid((uint64)pn->guid); //VLack: The usual new style guid handling on 3.1.2
- WorldPacket data(SMSG_NAME_QUERY_RESPONSE, strlen(pn->name) + 35);
-// data << pn->guid << uint32(0); //highguid
- data << pguid << uint8(0); //VLack: usual, new-style guid with an uint8
- data << pn->name;
- data << uint8(0); // this is a string showed besides players name (eg. in combat log), a custom title ?
- data << uint8(pn->race) << uint8(pn->gender) << uint8(pn->cl);
-// data << uint8(0); // 2.4.0, why do i get the feeling blizz is adding custom classes or custom titles? (same thing in who list)
- data << uint8(0); //VLack: tell the server this name is not declined... (3.1 fix?)
- SendPacket( &data );
+ if(!pn)
+ return;
+
+ sLog.outDebug( "Received CMSG_NAME_QUERY for: %s", pn->name );
+ WoWGuid pguid((uint64)pn->guid);
+ WorldPacket data(SMSG_NAME_QUERY_RESPONSE, strlen(pn->name) + 35);
+ data << pguid << uint8(0); //VLack: usual, new-style guid with an uint8
+ data << pn->name;
+ data << uint8(0); // this is a string showed besides players name (eg. in combat log), a custom title ?
+ data << uint8(pn->race) << uint8(pn->gender) << uint8(pn->cl);
+ // data << uint8(0); // 2.4.0, why do i get the feeling blizz is adding custom classes or custom titles? (same thing in who list)
+ data << uint8(0); //VLack: tell the server this name is not declined... (3.1 fix?)
+ SendPacket( &data );
+ }
+
}
+
//////////////////////////////////////////////////////////////
/// This function handles CMSG_QUERY_TIME:
//////////////////////////////////////////////////////////////