I need little help with lua, how can I make NPC invulnerable to player's attacks? someting like is Illidan before you speak with Akama...
thx :P
I need little help with lua, how can I make NPC invulnerable to player's attacks? someting like is Illidan before you speak with Akama...
thx :P
In SQL .mod flags 2. Not sure how to do it via script.
uuhm, in lua it is pUnit:SetNPCFlags(2) but I think that only sets NPC to QuestGiver, I need something that makes him invulnerable to player's attacks (players can't attack him), go to Black Temple and look at Illidan, he is unfriendly but noone can attack him, sorry my english![]()
SQL flags are spawn flags. .mod flags 2 stops you from being able to attack him even though he appears hostile, he will not fight you either. .mod flags 10 will change it so that the npc looks like a player, and so on. I don't know how to do it via a script, so you need to look at how they change the spawn flags (not proto flags) on the illidan script.