Custom boss - randomly leaves combat menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    singoe's Avatar Active Member
    Reputation
    23
    Join Date
    May 2008
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom boss - randomly leaves combat

    I made this script for a boss on my server, but after 6-7 secconds he leaves combat for no reason. I took away the script and he works fine. Does anyone see the problem with the script?

    Code:
    function Archedonus_OnCombat(Unit, Event)
    	Unit:SendChatMessage(14, 0, "You dare challenge me?! Ha! I am the creator! I will make all of you my puppets!")
    		Unit:RegisterEvent("HeroicStrike", 8000, 0)
    		Unit:RegisterEvent("DetonateMana", 10000, 0)
    		Unit:RegisterEvent("Polymorph", 8000, 0)
    		Unit:RegisterEvent("Meteor", 16000, 0)	
    end
    
    function HeroicStrike(Unit, Event)
    	Unit:FullCastSpellOnTarget(41975, Unit:GetMainTank(1))
    end
    
    function DetonateMana(Unit, Event)
    	Unit:FullCastSpellOnTarget(27819, Unit:GetRandomPlayer(4))
    end
    
    function Polymorph(Unit, Event)
    	Unit:FullCastSpellOnTarget(27819, Unit:GetRandomPlayer(7))
    end
    
    function Meteor(Unit, Event)
    	Unit:FullCastSpellOnTarget(45150, Unit:GetRandomPlayer(0))
    end
    
    function Archedonus_OnLeaveCombat(Unit, Event)
    	Unit:SendChatMessage(14, 0, "Ill go back to my teamaking.?!")
    		Unit:RemoveEvents()
    end
    
    function Archedonus_OnKilledTarget(Unit, Event)
    	Unit:SendChatMessage(14, 0, "Ha! Pitiful soul, you only add to my power!")
    		Unit:CastSpell(40318)
    end
    
    function Archedonus_OnDied(Unit, Event)
    	Unit:SendChatMessage(14, 0, "How?! How could this have happened?!")
    		Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(700001,1,"Archedonus_OnCombat")
    RegisterUnitEvent(700001,2,"Archedonus_OnLeaveCombat")
    RegisterUnitEvent(700001,3,"Archedonus_OnKilledTarget")
    RegisterUnitEvent(700001,4,"Archedonus_OnDied")

    Custom boss - randomly leaves combat
  2. #2
    Pedregon's Avatar Contributor
    Reputation
    221
    Join Date
    Aug 2007
    Posts
    705
    Thanks G/R
    0/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I't could be a spell that's causing this, where it's trying to cast a spell that doesn't work so it resets itselfs, try checking which spell it's using before it leaves combat, remove it and try it again.
    Last edited by Pedregon; 06-01-2010 at 02:36 AM.
    Leecher - 08-30-2007 - Contributor - 07-23-2008
    Donator - 06-19-2009
    My website



Similar Threads

  1. [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
  2. [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
  3. Leave Combat Faster
    By The Maffyx in forum World of Warcraft Guides
    Replies: 15
    Last Post: 04-13-2008, 02:05 AM
  4. Custom bosses leaving combat?
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-01-2008, 08:42 PM
  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 06:06 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search