Changeset 12 for trunk/src/bindings
- Timestamp:
- 11/19/08 13:22:59 (17 years ago)
- Location:
- trunk/src/bindings/scripts
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/ScriptMgr.cpp
r6 r12 1854 1854 if(GetSoundEntriesStore()->LookupEntry((*i).second.SoundId)) 1855 1855 { 1856 WorldPacket data(4); 1857 data.SetOpcode(SMSG_PLAY_SOUND); 1858 data << uint32((*i).second.SoundId); 1859 pSource->SendMessageToSet(&data,false); 1856 pSource->SendPlaySound((*i).second.SoundId, false); 1860 1857 } 1861 1858 else -
trunk/src/bindings/scripts/include/sc_creature.cpp
r6 r12 6 6 #include "Item.h" 7 7 #include "Spell.h" 8 #include "WorldPacket.h"9 8 10 9 // Spell summary for ScriptedAI::SelectSpell … … 203 202 } 204 203 205 WorldPacket data(4); 206 data.SetOpcode(SMSG_PLAY_SOUND); 207 data << uint32(sound); 208 unit->SendMessageToSet(&data,false); 204 unit->SendPlaySound(sound, false); 209 205 } 210 206 -
trunk/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp
r6 r12 584 584 switch (rand()%8) 585 585 { 586 case 0: (*i)-> PlaySound(RND_WISPER_1, true); break;587 case 1: (*i)-> PlaySound(RND_WISPER_2, true); break;588 case 2: (*i)-> PlaySound(RND_WISPER_3, true); break;589 case 3: (*i)-> PlaySound(RND_WISPER_4, true); break;590 case 4: (*i)-> PlaySound(RND_WISPER_5, true); break;591 case 5: (*i)-> PlaySound(RND_WISPER_6, true); break;592 case 6: (*i)-> PlaySound(RND_WISPER_7, true); break;593 case 7: (*i)-> PlaySound(RND_WISPER_8, true); break;586 case 0: (*i)->SendPlaySound(RND_WISPER_1, true); break; 587 case 1: (*i)->SendPlaySound(RND_WISPER_2, true); break; 588 case 2: (*i)->SendPlaySound(RND_WISPER_3, true); break; 589 case 3: (*i)->SendPlaySound(RND_WISPER_4, true); break; 590 case 4: (*i)->SendPlaySound(RND_WISPER_5, true); break; 591 case 5: (*i)->SendPlaySound(RND_WISPER_6, true); break; 592 case 6: (*i)->SendPlaySound(RND_WISPER_7, true); break; 593 case 7: (*i)->SendPlaySound(RND_WISPER_8, true); break; 594 594 } 595 595 }