Show
Ignore:
Timestamp:
11/19/08 13:22:59 (17 years ago)
Author:
yumileroy
Message:

[svn] * PlaySound? changed to SendPlaySound?, moved to WorldObject? and used everywhere instead of hard-coding packet

Original author: Neo2003
Date: 2008-10-05 11:38:24-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/include/sc_creature.cpp

    r6 r12  
    66#include "Item.h" 
    77#include "Spell.h" 
    8 #include "WorldPacket.h" 
    98 
    109// Spell summary for ScriptedAI::SelectSpell 
     
    203202    } 
    204203 
    205     WorldPacket data(4); 
    206     data.SetOpcode(SMSG_PLAY_SOUND); 
    207     data << uint32(sound); 
    208     unit->SendMessageToSet(&data,false); 
     204    unit->SendPlaySound(sound, false); 
    209205} 
    210206