Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UNIT_FIELD_FLAGS = 0x0006 + 0x0035 -- Size: 1, Type: INT, Flags: PUBLIC
- local UNIT_FLAG_NOT_SELECTABLE = 0x02000000 -- 26 33554432 cannot select the unit
- local INVISIBLE_DUMMY = 24417 --invisible man + cannot select the unit
- local function test5(event, player, msg, lang, typ)
- if(msg == "test5") then
- local p1,p2,p3,p4,p5,p6,p7,p8,p9,p10
- p1 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX(), player:GetY()+6, player:GetZ()-1.5,player:GetO(), 60000);
- p2 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
- p3 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
- p5 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.95), player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
- p4 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.59), player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
- p6 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
- p7 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.95, player:GetY()+6*0.31, player:GetZ()-1.5,player:GetO(), 60000);
- p8 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
- p9 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*0.59, player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
- p10 = player:SummonGuardian( INVISIBLE_DUMMY, player:GetX()+6*(-0.59), player:GetY()+6*(-0.81), player:GetZ()-1.5,player:GetO(), 60000);
- p1:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p2:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p3:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p4:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p5:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p6:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p7:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p8:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p9:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p10:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p1:SetRooted(true);
- p2:SetRooted(true);
- p3:SetRooted(true);
- p4:SetRooted(true);
- p5:SetRooted(true);
- p6:SetRooted(true);
- p7:SetRooted(true);
- p8:SetRooted(true);
- p9:SetRooted(true);
- p10:SetRooted(true);
- p1:CastSpell(p2,33535);
- p2:CastSpell(p3,33535);
- p3:CastSpell(p4,33535);
- p4:CastSpell(p5,33535);
- p5:CastSpell(p1,33535);
- p6:CastSpell(p5,33535);
- p7:CastSpell(p4,33535);
- p8:CastSpell(p1,33535);
- p9:CastSpell(p5,33535);
- p10:CastSpell(p1,33535);
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement