I didnt see a thread like this so I figured id create 1 for posting functions and events and what not that you guys know when using LUA scripting bosses. I only know a few and would to know if anyone knew how to make an NPC spawn my adds and what not...but anyway here are what I know.
PHP Code:
function Boss_EnterCombat (pUnit, event)
Im pretty sure that this is a must have when creating a script, its telling your mob to enter combat. How you can tell is like this, When you see "(pUnit, event) that means that "Boss_EnterCombat" is in that formant, so your pUnit would be "Boss" and the event is your telling it to enter combat and begin fighting.
PHP Code:
pUnit:SendChatMessage(14, 0, "What YOUR Mob Will Say")
This lets your monster yell stuff, pUnit again is "Boss" (your mob) so thats telling your mob to Send a chat message of what you want it to say
(Sorry im still new to this I forget what the numbers were I got them all listed on my home PC)
PHP Code:
if pUnit:GetHealthPct() < 90 then
This is what you will do if you want a mob do something at a certain percentage of health. This is saying that IF pUnit (Boss) gets down to 90% hp or lower it will start doing whatever function you registered it to do.
Thats really all ive figured out so far, still learning so hopefully someone will get use out of this..Also if anyone knows the command to make a mob SPAWN ADDS thatd be so great for you to post haha...Any questions ill try to help with just make a post or message me on aim at xXxSteveo89xXx Enjoy.