Mkombat Addon Unrealt pack

Info on other Mods that I have written/created/updated
Locked
Aulox
Posts: 1
Joined: Sun Dec 24, 2006 5:15 pm

Mkombat Addon Unrealt pack

Post by Aulox »

unrealt tornement have a problem with the kiling counts sound.
isnt working

suposse to play a multi kill sound after 4 kills but dosent play the sound

here is the word pad with the kiling count part

another thing after kiling 1 person can play the fisrt blood sound???


sorry for my english
thanks
You should define this function if you have any overrides or additions made in the added sound pack
function UT_MKombat_OnEvent()
if( event == "CHAT_MSG_COMBAT_HOSTILE_DEATH") then
local index = string.find( arg1, " dies." );
if( not index ) then
return;
end
local value = string.sub( arg1, 0, index-1 );
-- if we have a name
if( value and value==lastTarget) then
UT_KillCount = UT_KillCount + 1;
MKombat_Msg("|cffff3333 KILLS IN A ROW : " .. UT_KillCount .. "\n");
--now check our kill count
if( UT_KillCount > 1 ) then
if( UT_KilLCount > 2 ) then
if( UT_KillCount > 3 ) then
if( UT_KilLCount > 4 ) then
if( UT_KilLCount > 5 ) then
if( UT_KilLCount > 6 ) then --we killed 7 or more
MKombat_PlayFile( soundPath .. "ludicrouskill.wav" );
else --we killed 6
MKombat_PlayFile( soundPath .. "ultrakill.wav" );
end
else --we killed 5
MKombat_PlayFile( soundPath .. "monsterkill.wav" );
end
else --we killed 4
MKombat_PlayFile( soundPath .. "multikill.wav" );
end
else --we killed 3
MKombat_PlayFile( soundPath .. "rampage.wav" );
end
else --we killed 2
MKombat_PlayFile( soundPath .. "killingspree.wav" );
end
end
end

Locked