Custom bosses leaving combat? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom bosses leaving combat?

    Hi i made a lua scripted boss but even after my char die or after i .npc return him ,hes still considered in combat and is not regenering hp and is still casting spells every certain amount of seconds like specified in the script.How do i make him go out of combat when he has nothing to kill in his combat range?


    function Onyxia_Firenova(Unit)
    Unit:CastSpell(37371)
    end
    function Onyxia_Coneoffire(Unit)
    Unit:CastSpell(36876)
    end
    function Onyxia_Fieryblast(Unit)
    Unit:CastSpell(38382)
    end
    function Onyxia_Thickskin(Unit)
    Unit:CastSpell(43823)
    end
    function Onyxia_Burningwish(Unit)
    Unit:CastSpell(18789)
    end
    function Onyxia_Burningrage(Unit)
    Unit:CastSpell(38771)
    end
    function Onyxia_OnCombat(Unit, Event)
    Unit:SendChatMessage (11, 0, "You killed me once,now i am back and i wont let it happen again!")
    Unit:RegisterEvent("Onyxia_Firenova",50000, 0)
    Unit:RegisterEvent("Onyxia_Coneoffire",30000, 0)
    Unit:RegisterEvent("Onyxia_Fieryblast",25000, 0)
    Unit:RegisterEvent("Onyxia_Thickskin",500, 0)
    Unit:RegisterEvent("Onyxia_Burningwish",40000, 0)
    Unit:RegisterEvent("Onyxia_Burningrage",25000, 0)
    end
    function Onyxia_OnKill(Unit, event)
    Unit:SendChatMessage(12,0,"You gonna fail!")
    end
    function Onyxia_OnDied(Unit)
    Unit:SendChatMessage(12,0,"No....not again!!!")
    Unit:RemoveEvents()
    end
    function Onyxia_OnLeaveCombat(Unit)
    Unit:SendChatMessage(12,0,"I will be waiting...!")
    Unit:RemoveEvents()
    end
    RegisterUnitEvent(111112, 1,"Onyxia_OnCombat")
    RegisterUnitEvent(111112, 3,"Onyxia_OnKill")
    RegisterUnitEvent(111112, 4,"Onyxia_OnDied")
    RegisterUnitEvent(111112, 2,"Onyxia_OnLeaveCombat")

    Custom bosses leaving combat?
  2. #2
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any idea ???

Similar Threads

  1. [Lua Script] Custom boss - randomly leaves combat
    By singoe in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-01-2010, 02:21 AM
  2. [Guide]Make Customized Boss Includeing the Loot
    By luddo9 in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 05-12-2008, 09:08 AM
  3. [Release] Many Custom Bosses LUAs ***EPIC***
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-22-2008, 02:35 PM
  4. Leave Combat Faster
    By The Maffyx in forum World of Warcraft Guides
    Replies: 15
    Last Post: 04-13-2008, 02:05 AM
  5. [Release] Holiday Releases # 1.5 - Custom Boss Template For Lua
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-14-2008, 07:14 AM
All times are GMT -5. The time now is 10:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search