Advertisement
Guest User

Frame.Lua (Incoming WoW Addon)

a guest
Jun 15th, 2010
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. -- Author      : Scott
  2. -- Create Date : 6/15/2010 1:25:25 PM
  3.  
  4. SLASH_INCSHOW1 = '/inc';
  5. local function handler(msg)
  6. if msg == 'show' then
  7.     IncomingMainFrame:Show();
  8. elseif msg == 'hide' then
  9.     IncomingMainFrame:Hide();
  10. else
  11.     print("Allowed Variables: show, hide");
  12. end
  13. end
  14. SlashCmdList["INCSHOW"] = handler;
  15.  
  16. function Inc1_OnClick()
  17.     SendChatMessage("1 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  18. end
  19.  
  20. function Inc2_OnClick()
  21.     SendChatMessage("2 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  22. end
  23.  
  24.  
  25. function Inc3_OnClick()
  26.     SendChatMessage("3 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  27. end
  28.  
  29.  
  30. function Inc4_OnClick()
  31.     SendChatMessage("4 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  32. end
  33.  
  34.  
  35.  
  36. function Inc5_OnClick()
  37.     SendChatMessage("5 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  38. end
  39.  
  40.  
  41. function Inc6_OnClick()
  42.     SendChatMessage("6 Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  43. end
  44.  
  45. function IncBig_OnClick()
  46.     SendChatMessage("BIG Inc " .. GetMinimapZoneText(), "BATTLEGROUND", "Common", "");
  47. end
  48.  
  49. function IncSafe_OnClick()
  50.     SendChatMessage(GetMinimapZoneText() .. " safe! :)", "BATTLEGROUND", "Common", "");
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement