Likes: 0
Results 1 to 1 of 1
Thread: [TFC-Core] Simple Boss Script
-
09-04-19, 08:02 AM #1
[TFC-Core] Simple Boss Script
Register to remove this ad
Code:--[[ The Forgotten Crusade - Funserver ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Type - Boss Script _________________________________ - Developer(s): Nerc, Psykko - Status: 100% - ScriptName: 'boss_aquarius' - Comment: needs testing ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ]]-- -- -- -- Tables -- NPC EntryIDs local entryIds = { ["boss"] = 205010, } -- SpellIDs local spellsIds = { -- -- Fight -- Boss ["wind"] = 6982, } -- Texts local msgIds = { -- On Fight Start [1] = "Sample text to be changed!", } -- -- Spell Loops -- Wind function aquariusWind(eventId, delay, repeats, worldobject) worldobject:CastSpell(worldobject:GetVictim(), spellsIds["wind"], true) end -- -- Hook Functions -- CREATURE_EVENT_ON_ENTER_COMBAT local function AquariusOnEnterCombat(event, creature, target) -- Misc creature:SendUnitSay(msgIds[1], 0) -- Spells creature:RegisterEvent(aquariusWind, 9523, 0) end -- CREATURE_EVENT_ON_DIED local function AquariusOnDied(event, creature, killer) -- Misc creature:RemoveEvents() end -- Hook Register RegisterCreatureEvent(entryIds["boss"], 1, AquariusOnEnterCombat) RegisterCreatureEvent(entryIds["boss"], 4, AquariusOnDied)
Enjoy free The Forgotten Crusade scripts. Hope this brings some joy or use to whoever comes across it!
Credits to Psykko for helping with boss scripts and many developmental obstacles we have faced on our TFC journey.
› See More: [TFC-Core] Simple Boss ScriptLast edited by Wise; 09-04-19 at 08:04 AM.




Wise





Reply With Quote





