Jump to content

elpeke

Members
  • Posts

    2
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by elpeke

  1. 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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use