spawn NPC lying down menu

User Tag List

Results 1 to 10 of 10
  1. #1
    Elidan0's Avatar Master Sergeant
    Reputation
    11
    Join Date
    May 2010
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    spawn NPC lying down

    what flag or something do i edit to make an npc spawn lying on the ground as if he were dead? thnx.

    spawn NPC lying down
  2. #2
    lol97899's Avatar Contributor
    Reputation
    104
    Join Date
    Nov 2008
    Posts
    262
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cahnge the death_state or something


  3. #3
    Kirsebaer's Avatar Banned
    Reputation
    6
    Join Date
    Nov 2008
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a question.
    What flag do I use to make the NPC not attackable at all?

  4. #4
    lol97899's Avatar Contributor
    Reputation
    104
    Join Date
    Nov 2008
    Posts
    262
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not use flag use faction


  5. #5
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Faction 35 is completely neutral if i remember correctly.

    To make the npc lay down, use the death state_state in your database.

  6. #6
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use a creatureOnSpawn server hook to disable combat

    Code:
    class ExampleAI : public CreatureAIScript
    {
    public:
        ADD_CREATURE_FACTORY_FUNCTION(ExampleAI);
        SP_AI_Spell spells[4];
        bool m_spellcheck[4];
    
        ExampleAI(Creature* pCreature) : CreatureAIScript(pCreature)
        {
            pCreature->GetAIInterface()->disable_combat = true;
            pCreature->SetUInt32Value(UNIT_FIELD_BYTES_1,7);
        }
        
    
        void Destroy()
        {
            delete this;
        };
    
    protected:
    
    };
    
    void SetupBlackrockSpire(ScriptMgr * mgr)
    {
        mgr->register_creature_script(ID, &ExampleAI::Create);
    }
    the bytes being set to 7 will make him look dead
    and being inable to enter combat means you can click on him but you can't fight him

    Mmkay this should work based on stoneharrys statement

    the
    Last edited by mager1794; 06-18-2010 at 07:58 AM.
    Lunar Gaming - Reaching For The Stars

  7. #7
    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)
    See section 6 of this blog: http://www.mmowned.com/forums/blogs/...o-reality.html

    If your too lazy to read:

    .mod bytes1 7
    .mod faction 35
    .mod flags -10

    bytes1 to 7 = makes the npc look dead
    flags -10 = makes npc untargetable
    faction 35 = makes friendly

  8. #8
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are all wrong. In the Creature_spawns table find your npc, there is a column called "Standstate". It's standard set to 0, here are some values:
    0= standing up
    1= sitting on the floor
    3= lying on the floor (face up)
    4= sitting on low chair
    5= sitting on mid chair
    6= sitting on high chair
    7= dead on the floor (face down)
    8= kneel

    That means if you want it to look dead you set it to 7. (Requires a restart to take effect.)

  9. #9
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    were not wrong, just becasue what we say doesn't match with yours doesn't make it incorrect. There are many ways to do things in Emulation, so there may not always be just 1 solution.
    Lunar Gaming - Reaching For The Stars

  10. #10
    diviee3's Avatar Sergeant Major
    Reputation
    16
    Join Date
    Jan 2010
    Posts
    176
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    true you got a point

Similar Threads

  1. Script for spawning npc? +rep for who helps
    By lethalllama in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 08-23-2008, 02:35 AM
  2. Help needed - I cannot talk to spawned NPCs
    By ADAMZY in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-23-2007, 08:02 AM
  3. custom/spawned npc wont save when i spawned them
    By bjorn11 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 11-19-2007, 10:04 AM
  4. Spawn NPC not working..
    By Volcomchamp in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-01-2007, 04:27 AM
  5. Removing spawned NPC's for good?
    By lazboy in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 08-31-2007, 09:14 AM
All times are GMT -5. The time now is 11:31 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