Lua help menu

User Tag List

Thread: Lua help

Results 1 to 4 of 4
  1. #1
    kajdzas's Avatar Corporal
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua help

    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

    Lua help
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    In SQL .mod flags 2. Not sure how to do it via script.

  3. #3
    kajdzas's Avatar Corporal
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kajdzas View Post
    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.

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 03:58 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