stealthing npcs menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Jackhamme's Avatar Sergeant
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    stealthing npcs

    hey guys, I have been wounding how do you make a custom npc to stay in a stealth state and only leave it once the npc attacks the player. I have been into the AI agent secontion on my heidiSQL and gave that npc stealth, but he doesn't use it untill his next melee swing, its useless if he is in combat.

    Any help?

    stealthing npcs
  2. #2
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey! It toke me some time to figure it out, but I made it :P. I wrote a little lua script for you (as I see you are using ArcEmu).
    I tryed to use many spells that SHOULD make the npc go stealth but they didn't. So I solved the problem by morphing the npc into an invisible guy


    Code:
    local stealthguy =  npcId
    
    function ourguy_OnSpawn(pUnit, event)
    pUnit:SetModel(15435) -- Invisible guy DisplayId
    end
    function ourguy_OnCombat(pUnit, event)
    pUnit:DeMorph() -- When someone comes throught combat range it'll morph back to the real DisplayId and attack.
    end
    function ourguy_OnLeaveCombat(pUnit, event)
    if pUnit:IsAlive() == true then -- just to make sure it won't disappear after dying...
    pUnit:SetModel(15435)
    end
    end
    RegisterUnitEvent(stealthguy, 18, "ourguy_OnSpawn")
    RegisterUnitEvent(stealthguy, 1, "ourguy_OnCombat")
    RegisterUnitEvent(stealthguy, 2, "ourguy_OnLeaveCombat")
    All you need to do is:

    - Save this text into a .lua file (just name it to whatever you want)
    - Place the .lua file into your scripts folder
    - Change the RED part to the ID of your npc


    If you've already given weapons for your NPC then tell me and I'll add a bonus line into the script (that's important because the NPC will be invisible but if it has weapon equipped that will be visible.

Similar Threads

  1. Kill your own factions NPC's
    By Matt in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 08-18-2006, 04:05 PM
  2. Expose Stealthed Rogues
    By Matt in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 07-17-2006, 11:00 PM
  3. Make NPC Guards Mad!
    By Tbone in forum World of Warcraft Exploits
    Replies: 19
    Last Post: 07-14-2006, 10:34 PM
  4. Bug the AD NPC's in IF
    By KuRIoS in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 06-30-2006, 07:57 PM
  5. Attack your own NPC's
    By oninuva in forum World of Warcraft Guides
    Replies: 0
    Last Post: 04-23-2006, 02:24 PM
All times are GMT -5. The time now is 03:29 AM. 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