• 0

    posted a message on Some pointers for my first mod
    I like writing in notepad++, colors a number of different files syntactically.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Counter-Strike Style Kills
    Ok what I've done is used the event hooks initialized by SCT (Scrolling Combat Text) to try and implement this. SCT Hooks into ParserLib 1.1 for the CHAT_MSG_COMBAT_HOSTILE_DEATH event. However, I can only get this to properly "fire" a small fraction of the time that deaths actually occur.

    This is the change to SCT I made:

    function SCT:ParseCombat(info)
    	--self doesn't work here because of the call from ParserLib
    	local self = SCT;
    	local healtot,healamt, parent;
    		
    	--custom search first
    	if (self:CustomEventSearch(arg1) == true) then
    		return;
    	end
    
    	--MY CODE
    	if info.type == "death" then
    		ChatFrame1:AddMessage( info.source .. " kills " .. info.victim)
    	end
    	--MY CODE


    After this it is the same. Very very few times does this actually report the kill.
    Posted in: Addon Ideas
  • 0

    posted a message on Counter-Strike Style Kills
    I want to see:

    <Killer> [weapon icon] <Victim>

    where [weapon icon] is the icon of the ability used to kill the victim. I'm not sure how feasible this is
    Posted in: Addon Ideas
  • To post a comment, please or register a new account.