function GenerateFactionBattlecry(ransom_msg,channel) |
local pc_faction = UnitFactionGroup("player"); |
if (pc_faction == "Alliance") then |
DEFAULT_CHAT_FRAME:AddMessage("UWBCG Test: I am Alliance."); |
|
--DEFAULT_CHAT_FRAME:AddMessage("UWBCG Test: I am Alliance.");--Test message |
if UnitName("target") == nil then --Do we have no target? |
SendChatMessage(GetRandomArgument("DIE! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you!", "For the " .. ransom_msg .. "!","All who betray the " .. ransom_msg .. " shall be punished!","I smite thee, In the name of the " .. ransom_msg .. "!","DIE! Your evil shall never triumph!","Your evil ends here!", "We Fight!", "DIE! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will face justice!","There can only be 1000!","There can only be over 9000!","For Cenarius!","For Stormwind!","For Ironforge!","For Darnassus!","For Gnomeregan!"), channel); |
else |
SendChatMessage(GetRandomArgument("DIE, %t! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you, %t!", "For the " .. ransom_msg .. "!","All who betray the light shall be punished!","I smite thee, %t, In the name of the " .. ransom_msg .. "!","DIE, %t! Your evil shall never triumph!","Your evil ends here, %t!", "DIE! %t! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will face justice!","There can only be 1000!","There can only be over 9000!","For Cenarius!","For the Warchief!","For Stormwind!","For Ironforge!","For Darnassus!","For Gnomeregan!"), channel); |
end; |
elseif (pc_faction == "Horde") then |
DEFAULT_CHAT_FRAME:AddMessage("UWBCG Test: I am Horde."); |
|
--DEFAULT_CHAT_FRAME:AddMessage("UWBCG Test: I am Horde.");--Test message |
if UnitName("target") == nil then --Do we have no target? |
SendChatMessage(GetRandomArgument("DIE! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you!", "For the " .. ransom_msg .. "!","All who betray the light shall be punished!","Your blood shall be mine!","DIE! Your evil shall never triumph!","Your evil ends here!", "DIE! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will bring me great honor!","There can only be 1000!","There can only be over 9000!","For the Warchief!","For Ogrimmar!","For Undercity!","For Silvermoon City!","For Quel'Thalas!"), channel); |
else |