Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if UnitAffectingCombat("player") then
- local pHP = (100 * UnitHealth("target")) / UnitHealthMax("target")
- local msg = UnitName("player") .. " is busy fighting against " .. UnitName("target") .. " (".. pHP .."%"
- local npm = GetNumPartyMembers()
- local nrm = GetNumRaidMembers()
- if npm > 0 or nrm ~= 0 then
- local pma = 0
- for i=1,GetNumPartyMembers() do
- if UnitIsDeadOrGhost("party"..GetPartyMember(i)) ~= 1 then
- pma = pma + 1
- end
- end
- msg = msg .. ", " .. pma .. "/" .. npm .. " people alive)."
- else
- msg = msg .. ")"
- end
- SendChatMessage(msg, "WHISPER", nil, sender)
- end
Advertisement
Add Comment
Please, Sign In to add comment