Nice and easy to read +Rep
Nice and easy to read +Rep
Appeciated.
How can do mob doing something if he got ex. 75% hp left :O with lua ofc![]()
Will be adding more content later this week after I finish up my Mulgore scripts
great guide !
thx! i finly understand a bit of lua:bowdown: :yourock2:
Best guide ever =0
I learned this in about 5 hours. =/
I need help with that thing to save the document plz
Do File>Save As
Myscriptname.lua
Save as type: All files (you will select from drop down menu
Is it possible to make it if you get in range of the NPC, it will say something and cast a spell on you?
Nom Nom Nom :P
Nm, found out my problem, forgot to add in a couple words. Thanks for making this awesome guide man.
Last edited by anima7223; 04-10-2008 at 01:20 AM.
No problem thanks for the comment
@herleybob - Yes. Use the 10 = Player Enters Range one....
So you could do it like this:
function NPCname_Phaseorfunction (pUnit, Event)
pUnit:SendChatMessage(Type, Language, "Message")
pUnit:CastSpell(SPELLID, pTarget())
end
RegisterUnitEvent (10000, 10, "NPCname_Phaseorfunction")
enjoy!
Bump of doom
And how would you go about making it so teh boss casts a spell every few min, like lets say I have a mage boss and want it to continually cast firebolts ever min/30 sec at players instead of had health%
I think that you want to put
PLEASE NOTECode:function NPCname_Phaseorfunction (pUnit, Event) if pUnit:GetHealthPct() < {persent} then {any thing you want goes here} end end RegisterUnitEvent (10000, 1, "NPCname_Phaseorfunction")
at the end you have to have two ends and then
Last edited by Falor; 04-14-2008 at 06:13 PM.