Language:
Lua     Change language:
Pastebin: 132542
Author: Anonymous
Subject: Untitled
Created: 2010-02-04 07:16:16
Download and save
Toggle line numbers
1_G.SLASH_MURLOC1 = "/murloc" 
2_G.SlashCmdList["Murloc"] = function() 
3 
4local t = { 
5        "V for Murloc"
6        "Honey I shrunk the Murloc"
7        "No Country for Old Murloc"
8    } 
9 
10local n; 
11    for i, channel in pairs {GetChannelList()} do 
12    if channel == "Trade" then 
13      SendChatMessage(t[math.random(1, #t)], "CHANNEL", nil, n) 
14      return
15    else 
16      n = channel; 
17    end 
18  end 
19 
20 
21 
Thread:
[132542] Untitled by Anonymous at 2010-02-04 07:16:16
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.