elpeke
-
Posts
2 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by elpeke
-
-
Help me! I need play music in a mangos server for everybody with the command .debug play sound ID. Can I modify it in *.cpp?
Object.cpp
void WorldObject::PlayDistanceSound( uint32 sound_id, Player* target /*= NULL*/ )
{
WorldPacket data(SMSG_PLAY_OBJECT_SOUND,4+8);
data << uint32(sound_id);
data << uint64(GetGUID());
if (target)
target->SendDirectMessage( &data );
else
SendMessageToSet( &data, true );
}
void WorldObject::PlayDirectSound( uint32 sound_id, Player* target /*= NULL*/ )
{
WorldPacket data(SMSG_PLAY_SOUND, 4);
data << uint32(sound_id);
if (target)
target->SendDirectMessage( &data );
else
SendMessageToSet( &data, true );
}
Thanks for all.
.Debug play sound ID
in OldCore modifications
Posted
Hello
Well, I'm trying to change the command. Debug.play sound ID to work for all players.
Does anyone know anything about it please?
I think that is modified object.cpp
Thanks in advance
Sorry for my English:)