Advertisement
totodeux

Penta eluna

Jul 12th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.79 KB | None | 0 0
  1. local UNIT_FIELD_FLAGS = 0x0006 + 0x0035 -- Size: 1, Type: INT, Flags: PUBLIC
  2. local UNIT_FLAG_NOT_SELECTABLE = 0x02000000 -- 26    33554432  cannot select the unit
  3. local INVISIBLE_DUMMY = 24417 --invisible man + cannot select the unit
  4.  
  5. local function test5(event, player, msg, lang, typ)
  6.     if(msg == "test5") then
  7.     local p1,p2,p3,p4,p5,p6,p7,p8,p9,p10
  8.     p1 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX(), player:GetY()+6, player:GetZ()-1.5,player:GetO(), 60000);
  9.     p2 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
  10.     p3 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
  11.     p5 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.95), player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
  12.     p4 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.59), player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
  13.     p6 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
  14.     p7 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
  15.     p8 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
  16.     p9 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
  17.     p10 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.59), player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
  18.     p1:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  19.     p2:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  20.     p3:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  21.     p4:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  22.     p5:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  23.     p6:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  24.     p7:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  25.     p8:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  26.     p9:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  27.     p10:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
  28.    
  29.    
  30.    
  31.     p1:SetRooted(true);
  32.     p2:SetRooted(true);
  33.     p3:SetRooted(true);
  34.     p4:SetRooted(true);
  35.     p5:SetRooted(true);
  36.     p6:SetRooted(true);
  37.     p7:SetRooted(true);
  38.     p8:SetRooted(true);
  39.     p9:SetRooted(true);
  40.     p10:SetRooted(true);
  41.     p1:CastSpell(p2,33535);
  42.     p2:CastSpell(p3,33535);
  43.     p3:CastSpell(p4,33535);
  44.     p4:CastSpell(p5,33535);
  45.     p5:CastSpell(p1,33535);
  46.    
  47.     p6:CastSpell(p5,33535);
  48.     p7:CastSpell(p4,33535);
  49.     p8:CastSpell(p1,33535);
  50.     p9:CastSpell(p5,33535);
  51.     p10:CastSpell(p1,33535);
  52.     return false
  53.     end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement