MMOCoin

Likes Likes:  0
Results 1 to 1 of 1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,377
    Post Thanks / Like
    Rep Power
    24
    Reputation
    382

    [TFC-Core] Simple Boss Script

    Quote Originally Posted by Nerc View Post
    Im releasing some of my server's scripts because it is paused atm due to a very low number of testers & developer non-consistency in terms of workflow, and I've worked for 1 year+ on this project, paid money to finance the server alone, without getting anything in return, so in the end I realized it wasn't really worth it. Anyway back to topic guys!


    PS: I am the owner. I am intentionally sharing these scripts to the public for obvious reasons I suppose.





    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.
    Last edited by Wise; 09-04-19 at 08:04 AM.



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •