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

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
[Lua Script] Illidan Boss Battle by Nadskap2
Дата: Четверг, 29.04.2010, 17:26 | Сообщение # 1
Аватар

VIP Статус:
Группа: Администратор
Сообщений: 3088
Награды: 48
Репутация: 215  
 
No pictures. But some info:

Name: Illidan Stormrage

Level: ?? (Boss)
Race: Demon
Display id: 21135
Scale: 1
HP: 4,249,280
Mana: 6,774

If u dont wanna download then copy this:

LUA Script:

Code
-- Start function --

function Illidan Stormrage
_OnEnterCombat(pUnit,Event)
   pUnit:SetModel(22917)
   pUnit:PlaySoundToSet(22917)
   pUnit:SetScale(2)
   pUnit:SetCombatCapabl e(1)   
   pUnit:SetFaction(35)
   pUnit:SendChatMessage(0, 0, "")
   pUnit:RegisterEvent("NPCNAME_TalkStart1", 5000, 0)
end

     -- Phase one --
       
     function Illidan Stormrage
_SpellpUnitShear,Event)
   pUnit:CastSpellOnTarget(41032,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(41032,pUnit:GetRand om Player(0))

end

function Illidan Stormrage
_SpellFlameCrash(pUnit,Event)
   pUnit:CastSpellOnTarget(40832,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(40832,pUnit:G et RandomPlayer(0))

end

function Illidan Stormrage
_Phaseone(pUnit,Event)
   Choice=math.random(1, 2, 3, 4)
   if Choice==1 then
           pUnit:CastSpellOnTarget(41117,pUnit:GetRandomPlayer(0))
   end
   if Choice==2 then
    pUnit:CastSpellOnTarget(40904,pUnit:GetRandomPlayer(0))
   end
   if Choice==3 then
          pUnit:CastSpellOnTarget(41032,pUnit:GetRandomPlayer(0))
      end
      if Choice==4 then
          pUnit:CastSpellOnTarget(40832,pUnit:GetRandomPlayer(0))

end
end
      if nit:GetHealthPct() <= 80 then
         Unit:RegisterEvent("Illidan Stormrage
_Phasetwo", 1000, 0)
      not Unit:RegisterEvent("Illidan Stormrage
_Phaseone", 1000, 0)

   end

    --Phase two--

function Illidan Stormrage
_Phasetwo(pUnit,Event)
   Choice=math.random(1, 2, 3)
   if Choice==1 then
           pUnit:CastSpellOnTarget(40018,pUnit:GetRandomPlayer(0))
   end
   if Choice==2 then
    pUnit:CastSpellOnTarget(40598,pUnit:GetRandomPlayer(0))
   end
   if Choice==3 then
          pUnit:CastSpellOnTarget(40585,pUnit:GetRandomPlayer(0))
      end

end
if nit:GetHealthPct() <= 70 then
         Unit:RegisterEvent("Illidan Stormrage
_Phasethree", 1000, 0)
      not Unit:RegisterEvent("Illidan Stormrage
_Phasetwo", 1000, 0
      end
      --Phase 3--
         function Illidan Stormrage
_SpellpUnitShear,Event)
   pUnit:CastSpellOnTarget(41032,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(41032,pUnit:GetRand om Player(0))

end

function Illidan Stormrage
_SpellFlameCrash(pUnit,Event)
   pUnit:CastSpellOnTarget(40832,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(40832,pUnit:G et RandomPlayer(0))

end

function Illidan Stormrage
_Phasethree(pUnit,Event)
   Choice=math.random(1, 2, 3, 4, 5)
   if Choice==1 then
           pUnit:CastSpellOnTarget(41117,pUnit:GetRandomPlayer(0))
   end
   if Choice==2 then
    pUnit:CastSpellOnTarget(40904,pUnit:GetRandomPlayer(0))
   end
   if Choice==3 then
          pUnit:CastSpellOnTarget(41032,pUnit:GetRandomPlayer(0))
      end
      if Choice==4 then
          pUnit:CastSpellOnTarget(40832,pUnit:GetRandomPlayer(0))
   end
   if Choice==5 then
       pUnit:CastSpellOnTarget(40932,pUnit:GetRandomPlayer(0))
end
      if nit:GetHealthPct() <= 50 then
         Unit:RegisterEvent("Illidan Stormrage
_Phasefour", 1000, 0)
      not Unit:RegisterEvent("Illidan Stormrage
_Phasethree", 1000, 0)
      end
   --Phase 4--

function Illidan Stormrage
_SpellR(pUnit,Event)
   Choice=math.random(1, 2, 3, 4)
   if Choice==1 then
           pUnit:CastSpellOnTarget(41078,pUnit:GetRandomPlayer(0))
   end
   if Choice==2 then
    pUnit:CastSpellOnTarget(41126,pUnit:GetRandomPlayer(0))
   end
   if Choice==3 then
          pUnit:CastSpellOnTarget(41117,pUnit:GetRandomPlayer(0))
      end
      if Choice==4 then
          pUnit:CastSpellOnTarget(41142,pUnit:GetRandomPlayer(0))

end
if nit:GetHealthPct() <= 25 then
         Unit:RegisterEvent("NPCNAME_Phasefive", 1000, 0)
      not Unit:RegisterEvent("NPCNAME_Phasefour", 1000, 0)
      end
   --Phase 5--
   function Illidan Stormrage
_SpellpUnitShear,Event)
   pUnit:CastSpellOnTarget(41032,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(41032,pUnit:GetRand om Player(0))

end

function Illidan Stormrage
_SpellFlameCrash(pUnit,Event)
   pUnit:CastSpellOnTarget(40832,pUnit:GetRandomPlayer(0))
   pUnit:CastSpellOnTarget(40832,pUnit:G et RandomPlayer(0))

end

function Illidan Stormrage
_SpellR(pUnit,Event)
   Choice=math.random(1, 2, 3, 4, 5, 6, 7)
   if Choice==1 then
          pUnit:CastSpellOnTarget(41117,pUnit:GetMainTank(0))
   end
   if Choice==2 then
    pUnit:CastSpellOnTarget(40904,pUnit:GetMainTank(0))
   end
   if Choice==3 then
          pUnit:CastSpellOnTarget(41032,pUnit:GetMainTank(0))
      end
      if Choice==4 then
          pUnit:CastSpellOnTarget(40832,pUnit:GetMainTank(0))
   end
   if Choice==5 then
       pUnit:CastSpellOnTarget(40932,pUnit:GetRandomPlayer(0))
   end
   if Choice==6 then
       pUnit:CastSpellOnTarget(40647,pUnit:GetRandomPlayer(0))
   end
   if Choice==7 then
       pUnit:CastSpellOnTarget(40683,pUnit:GetRandomPlayer(0))
       if nit:GetHealthPct() <= o then
         Unit:RegisterEvent("Illidan Stormrage
_death", 1000, 0)
      not Unit:RegisterEvent("Illidan Stormrage
_Phasefive", 1000, 0
     
end
   -- Extra --

function Illidan Stormrage
_Death(pUnit)
   pUnit:SetScale(2)
   pUnit:PlaySoundToSet(22917)
   pUnit:RemoveEvents()

function Illidan Stormrage
_OnLeaveCombat(pUnit, event)
   pUnit:RemoveEvents()
   pUnit:SetModel(22917)
   pUnit:SetScale(2)
end

function Illidan Stormrage
_OnKilledTarget(pUnit)
   pUnit:PlaySoundToSet(22917)
end

   -- Start functions --

   RegisterUnitEvent(22917, 1, "Illidan Stormrage_OnEnterCombat")
   RegisterUnitEvent(22917, 2, "Illidan Stormrage_OnLeaveCombat")
   RegisterUnitEvent(22917, 3, "Illidan Stormrage_OnKilledTarget")
   RegisterUnitEvent(22917, 4, "Illidan Stormrage_Death")

Save as Illidan Stormrage.lua in your scripts folder

SQL:

Code
replace into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)   
values ('22917', "Illidan Stormrage", "The Betrayer", '', '0', '3', '0', '3', '0', '0', '21135', '21135', '21135', '21135', '1', '1', '0', '0');

replace into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)   
values ('22917', '72', '72', '14', '4249280', '4249280', '6774', '1', '0', '1500', '0', '13000', '16000', '0', '0', '0', '0', '600', '56000', '56', '56', '56', '56', '56', '56', '0', '0', "0", '1', '450000', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
 
  • Страница 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]


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