SHOW:
|
|
- or go back to the newest paste.
| 1 | function IncDuration(self, elapsed) | |
| 2 | dur = dur + elapsed; | |
| 3 | - | if dur > 0.05 then |
| 3 | + | if dur > 0.01 then |
| 4 | local me = UnitName("player")
| |
| 5 | ||
| 6 | if curWho < maxWho then | |
| 7 | ||
| 8 | TargetUnit(who[curWho]) | |
| 9 | if UnitName("target") then
| |
| 10 | if UnitName("target") ~= me then
| |
| 11 | CastSpellByName("Crown Parcel Service Uniform")
| |
| 12 | end | |
| 13 | end | |
| 14 | curWho = curWho + 1 | |
| 15 | ||
| 16 | else | |
| 17 | - | curWho = 1 |
| 17 | + | |
| 18 | who_target = who_target + 1 | |
| 19 | if who_target > #classes_who then | |
| 20 | who_target = 1 | |
| 21 | end | |
| 22 | - | end |
| 22 | + | who_target_two = who_target + 1 |
| 23 | if who_target_two > #classes_who then | |
| 24 | who_target_two = 1 | |
| 25 | end | |
| 26 | who={}
| |
| 27 | SendWho("z-Tanaris "..classes_who[who_target].." "..classes_who[who_target_two])
| |
| 28 | for i=1,GetNumWhoResults() do | |
| 29 | n=GetWhoInfo(i) | |
| 30 | who[i]=n | |
| 31 | end | |
| 32 | curWho=1 | |
| 33 | maxWho=#who | |
| 34 | ||
| 35 | end | |
| 36 | ||
| 37 | dur = 0 | |
| 38 | end | |
| 39 | end | |
| 40 | ||
| 41 | who_target = 0 | |
| 42 | classes_who = {"c-Mage", "c-Warrior", "c-Druid", "c-Warlock", "c-Priest", "c-Paladin", "c-Hunter", "c-Death Knight", "c-Shaman", "c-Rogue"} |