Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OnClick(self)
- local target = UnitName("target")
- local location = self:GetText()
- --UIDropDownMenu_SetSelectedID(DropDownMenuTest, self:GetID())
- if (target ~= nil) then
- if (location == "Alterac Mountains") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Arathi Highlands") then
- local location = "ArathiHighlands"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Badlands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Blasted Lands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Burning Steppes") then
- local location = "BurningSteppes"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Deadwind Pass") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Dun Morogh") then
- local location = "DunMorogh"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Duskwood") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Eastern Plaguelands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Elwynn Forest") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Eversong Woods") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Ghostlands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Hillsbrad Foothills") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Isle of Quel'Danas") then
- local location = "Queldanas"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Loch Modan") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Redridge Mountains") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Silverpine Forest") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Swamp of Sorrows") then
- local location = "swampofsorrows"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Stranglethorn Vale") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Tirisfal Glades") then
- local location = "Brill"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "The Hinterlands") then
- local location = "TheHinterlands"
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Western Plaguelands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Westfall") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- if (location == "Wetlands") then
- SendChatMessage(".tele name " ..target.. " " ..location, "GUILD", nil, nil)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement