Language:
Lua     Change language:
Pastebin: 131872
Author: Ossarbones
Subject: Re: Untitled
Created: 2010-01-24 22:32:07
Download and save
Toggle line numbers
1function JerkList_Warn(event, ...) 
2        --if the target is found to be on the list the player is warned not to group with said person 
3             isJerk = false
4             local message, sender, language,  channelString, 
5             target, flags,  unknown, channelNumber, channelName,  unknown, counter, guid = ...; --not sure if these are needed anymore 
6             for i = 0, #JLIgnoreList do 
7                if( UnitName("target") == JLIgnoreList[i] or JLIgnoreList[i] == sender) then 
8                        isJerk = true
9                end 
10             end 
11             if(event == "CHAT_MSG_CHANNEL" or event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_YELL" and isJerk ) then 
12                            SendChatMessage("YOUR CURRENT TARGET IS ON THE JERKLIST",  (nil)   , "WHISPER", UnitName("player")) 
13                            MessageFrame:AddMessage("YOUR CURRENT TARGET IS ON THE JERKLIST", 1, 0, 0, messageGroup, 5
14             end 
15end 
Thread:
[131871] Untitled by Ossarbones at 2010-01-24 22:26:29 (diff)
  [131872] Re: Untitled by Ossarbones at 2010-01-24 22:32:07
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.