Вход для пользователей

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
[RELEASE]Sindragosa
Дата: Четверг, 29.04.2010, 17:25 | Сообщение # 1
Аватар

VIP Статус:
Группа: Администратор
Сообщений: 3088
Награды: 48
Репутация: 215  
 
This is one of my first scripts, so please correct me if I have any syntax errors. Also, as I have knowledge of retail, the boss is 50% Retail, and 50% Custom.

function phase_1(pUnit, Event)
if pUnit:GetHealthPct() < 70 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(36853)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(36853)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(69649)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(71077)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(69649)
pUnit:RegisterEvent("phase_2",1000, 0)
end

function phase_2(pUnit, event)
if pUnit:GetHealthPct() <50 then
pUnit:FullCastSpell(70126)
pUnit:FullCastSpell(70157)
pUnit:FullCastSpell(71053)
pUnit:RegisterEvent("phase_1",1000, 0)
end

function phase_1(pUnit, event)
if pUnit:GetHealthPct() < 70 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(36853)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(19983)
pUnit:FullCastSpell(36853)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(69649)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(71077)
pUnit:FullCastSpell(16033)
pUnit:FullCastSpell(69649)
pUnit:RegisterEvent("phase_3",1000, 0)
end

function phase_3(pUnit, event)
if pUnit:GetHealthPct() <50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(70107)
pUnit:SendChatMessage(12, 0 , "Obey my orders, mortals!")
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(70107)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(70126)
pUnit:SendChatMe ssage(12, 0 , "Glory to the Lich King")
pUnit:FullCastSpell(70157)
pUnit:FullCastSpell(71053)
pUnit:FullCastSpell(70107)
pUnit:FullCastSpell(70123)
pUnit:SendChatMessag e(12, 0 , "You face Sindragosa fools!")
pUnit:FullCastSpell(70107)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(70126)
pUnit:FullCastSpell(70157)
pUnit:FullCastSpel l(71053)
pUnit:FullCastSpell(70107)
pUnit:SendChatMessage(12, 0 , "Obey my orders, mortals!")
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(70107)
pUnit:FullCastSpell(70123)
pUnit:FullCastSpell(70126)
pUnit:FullCastSp ell(70157)
pUnit:FullCastSpell(71053)
pUnit:SendChatMessage(12, 0 , "Beat them my Minions!")
pUnit:RegisterEvent("phase_4",1000, 0)
end

function phase_4(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(70107)
pUnit:FullCastSpell(70107)

x = pUnit:GetX()
y = pUnit:GetY()
z = pUnit:GetZ()
o = pUnit:GetO()
pUnit:SpawnGameObject(177241, x, y, z, o, 600000)
end
x = pUnit:GetX()
y = pUnit:GetY()
z = pUnit:GetZ()
o = pUnit:GetO()
pUnit:SpawnGameObject(177241, x, y, z, o, 600000)
pUnit:SpawnCreature(500838, x, y, z, o, 360000);
pUnit:SpawnCreature(500838, x, y, z, o, 360000);
pUnit:SpawnCreature(500838, x, y, z, o, 360000);
pUnit:SpawnCreature(500838, x, y, z, o, 360000);
pUnit:SpawnCreature(500838, x, y, z, o, 360000);

RegisterUnitEvent (500838, 6, "BlackfreezeVoid_OnSpawn")
pUnit:SendChatMessage(12, 0 , "My master's will.")
pUnit:CastSpell(3130)
pUnit:CastSpell(3130)
pUnit:CastSpell(3130)
pUnit:CastSpell(3130)
pUnit:SendChatMessage(12, 0 , "Prepare for Freezing Experience.")
pUnit:RemoveEvents(phase_2)
pUnit:RegisterEvent("phase_3",1000, 0)
pUnit:RegisterUnitEvent (500838, 6, "FrezingOnSpawn")
end

function FrezingOnSpawn (Unit, Event)
Unitespawn (60000, 0)
RegisterUnitEvent(213378, 1, "boss_start")
end

function Boss_OnDied(pUnit)
pUnit:SendChatMessage("Master! Stop them!")
pUnit:RemoveEvents()
g = pUnit:GetTarget()
g:AddItem(50360, 1)
g:AddItem(50421, 1)
g:AddItem(50423, 1)
g:AddItem(50424, 1)
g:AddItem(50361, 1)
g:AddItem(51815, 1)
g:AddItem(51819, 1)
g:AddItem(51818, 1)

if pUnit:GetHealthPct() < 0 then
pUnit:SendChatMessage("Master! Stop them!")
pUnit:RemoveEvents()
end
end
end

There you go.

 
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума

  • [05:43 Готовый сервер 4.0.6 ... 11.12.2023]

  • [23:30 Arcanum Core (3.3.5а)... 16.11.2023]

  • [12:37 delete 02.03.2020]

  • [12:37 Ищу пост ГМ-а 02.03.2020]

  • [12:37 RastaWoW 3.3.5a (Набо... 02.03.2020]

  • [12:37 Набор команды 02.03.2020]

  • [00:34 AMD FUN SERVER - Worl... 03.07.2019]

  • [00:34 Продам private сборку... 03.07.2019]

  • [00:34 НПС для покупки опыта... 03.07.2019]

  • [00:34 WoW-TRONE 03.07.2019]

  • [12:21 Набор спидхаков (spee... 12.10.2018]

  • [21:00 [Продам] Фуловые чары... 13.03.2015]

  • [18:47 Продам приват сборку ... 04.03.2015]

  • [20:54 ВСЕ приват сборки от ... 01.03.2015]

  • [20:52 QuantumCore Server 3.... 04.02.2015]

  • [21:07 GAMESV STUDIO | ... 02.01.2015]

  • [16:36 Готовый сервер wow 4.... 04.10.2014]

  • [16:51 Скупаю чаров! 30.08.2014]

  • [19:18 Готовый сервер 4.0.6 17.08.2013]

  • [18:47 [HELP]Квесты 16.08.2013]


  • Карта Сайта ||||| Карта Форума|||