stoneharry

Untitled

Sep 23rd, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1.             --Macro 1: (fill up who list)
  2.             who={}
  3.             SendWho('z-"Tanaris"')
  4.             for i=1,GetNumWhoResults() do
  5.                 n=GetWhoInfo(i)
  6.                 who[i]=n
  7.             end
  8.             curWho=1
  9.             maxWho=#who
  10.            
  11.             local me = UnitName("player")
  12.            
  13.             for i=1,maxWho do
  14.                 --TargetUnit("none")
  15.                 print("Targeting: "..who[i])
  16.                 TargetUnit(who[i])
  17.                 if UnitName("target") then
  18.                     if UnitName("target") ~=  me then
  19.                         CastSpellByName("Crown Parcel Service Uniform")
  20.                     end
  21.                 end
  22.             end
  23.             curWho=1
Advertisement
Add Comment
Please, Sign In to add comment