Advertisement
Xzempt

Untitled

Jul 9th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. local function OnClick(self)
  2. local target = UnitName("target")
  3. local location = self:GetText()
  4. --UIDropDownMenu_SetSelectedID(DropDownMenuTest, self:GetID())
  5. if (target ~= nil) then
  6. if (location == "Alterac Mountains") then
  7. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  8. end
  9. if (location == "Arathi Highlands") then
  10. local location = "ArathiHighlands"
  11. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  12. end
  13. if (location == "Badlands") then
  14. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  15. end
  16. if (location == "Blasted Lands") then
  17. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  18. end
  19. if (location == "Burning Steppes") then
  20. local location = "BurningSteppes"
  21. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  22. end
  23. if (location == "Deadwind Pass") then
  24. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  25. end
  26. if (location == "Dun Morogh") then
  27. local location = "DunMorogh"
  28. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  29. end
  30. if (location == "Duskwood") then
  31. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  32. end
  33. if (location == "Eastern Plaguelands") then
  34. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  35. end
  36. if (location == "Elwynn Forest") then
  37. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  38. end
  39. if (location == "Eversong Woods") then
  40. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  41. end
  42. if (location == "Ghostlands") then
  43. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  44. end
  45. if (location == "Hillsbrad Foothills") then
  46. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  47. end
  48. if (location == "Isle of Quel'Danas") then
  49. local location = "Queldanas"
  50. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  51. end
  52. if (location == "Loch Modan") then
  53. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  54. end
  55. if (location == "Redridge Mountains") then
  56. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  57. end
  58. if (location == "Silverpine Forest") then
  59. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  60. end
  61. if (location == "Swamp of Sorrows") then
  62. local location = "swampofsorrows"
  63. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  64. end
  65. if (location == "Stranglethorn Vale") then
  66. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  67. end
  68. if (location == "Tirisfal Glades") then
  69. local location = "Brill"
  70. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  71. end
  72. if (location == "The Hinterlands") then
  73. local location = "TheHinterlands"
  74. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  75. end
  76. if (location == "Western Plaguelands") then
  77. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  78. end
  79. if (location == "Westfall") then
  80. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  81. end
  82. if (location == "Wetlands") then
  83. SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
  84. end
  85. end
  86. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement