Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created November 15, 2009 07:06
Show Gist options
  • Select an option

  • Save tekkub/235069 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/235069 to your computer and use it in GitHub Desktop.
local sounds = {"lvlup.wav", "voice2.wav"}
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LEVEL_UP")
f:SetScript("OnEvent", function() PlaySoundFile("Interface\\Addons\\Servant\\Sounds"..sounds[math.random(#sounds)]) end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment