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 BEAM_SPELL = 33535
- local k = 6; -- Scale
- local t = 10000 -- Time in ms
- local p = {};
- local pPlayer = {};
- pPlayer["X"] = player:GetX();
- pPlayer["Y"] = player:GetY();
- pPlayer["Z"] = player:GetZ();
- p[1] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"], pPlayer["Y"]+k, pPlayer["Z"]-1.5,0, t);
- p[2] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.95, pPlayer["Y"]+k*0.31, pPlayer["Z"]-1.5,0, t);
- p[3] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.59, pPlayer["Y"]+k*(-0.81), pPlayer["Z"]-1.5,0, t);
- p[5] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*(-0.95), pPlayer["Y"]+k*0.31, pPlayer["Z"]-1.5,0, t);
- p[4] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*(-0.59), pPlayer["Y"]+k*(-0.81), pPlayer["Z"]-1.5,0, t);
- p[6] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.95, pPlayer["Y"]+k*0.31, pPlayer["Z"]-1.5,0, t);
- p[7] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.95, pPlayer["Y"]+k*0.31, pPlayer["Z"]-1.5,0, t);
- p[8] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.59, pPlayer["Y"]+k*(-0.81), pPlayer["Z"]-1.5,0, t);
- p[9] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*0.59, pPlayer["Y"]+k*(-0.81), pPlayer["Z"]-1.5,0, t);
- p[10] = player:SummonGuardian( INVISIBLE_DUMMY, pPlayer["X"]+k*(-0.59), pPlayer["Y"]+k*(-0.81), pPlayer["Z"]-1.5,0, t);
- for i = 1,10 do
- p[i]:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
- p[i]:SetRooted(true);
- if(i <= 5) then
- if(i == 5) then
- p[i]:CastSpell(p[1],BEAM_SPELL)
- else
- p[i]:CastSpell(p[i+1],BEAM_SPELL)
- end
- end
- end
- p[6]:CastSpell(p[5],BEAM_SPELL);
- p[7]:CastSpell(p[4],BEAM_SPELL);
- p[8]:CastSpell(p[1],BEAM_SPELL);
- p[9]:CastSpell(p[5],BEAM_SPELL);
- p[10]:CastSpell(p[1],BEAM_SPELL);
- return false
- end
- end
- RegisterServerHook(18, test5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement