Musicbox

// JUKEBOX else if (sTag == "lordo_jukebox") {           if (GetGold(GetLastUsedBy) <1) {               AssignCommand(GetLastUsedBy,ActionSpeakString("Hmm, it says 'insert 10 gold coins'. Too bad I'm blank")); return; }           TakeGoldFromCreature(10,GetLastUsedBy); AssignCommand(GetLastUsedBy, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID,1.0f,3.0f)); effect eMusic = EffectVisualEffect(VFX_DUR_BARD_SONG); DelayCommand(3.0f,ApplyEffectToObject(DURATION_TYPE_PERMANENT, eMusic, OBJECT_SELF)); DelayCommand(5.0f,AssignCommand(OBJECT_SELF,PlaySound("as_cv_lute1"))); DelayCommand(9.0f,AssignCommand(OBJECT_SELF,PlaySound("as_cv_lute1b"))); DelayCommand(12.5f,AssignCommand(OBJECT_SELF,PlaySound("as_cv_lute1b"))); DelayCommand(15.0f,AssignCommand(OBJECT_SELF,PlaySound("as_cv_lute1"))); DelayCommand(2.0f, FloatingTextStringOnCreature("*10 gold inserted *", GetLastUsedBy)); DelayCommand(18.0f,RemoveEffect(OBJECT_SELF, eMusic)); return; } }