what flag or something do i edit to make an npc spawn lying on the ground as if he were dead? thnx.
what flag or something do i edit to make an npc spawn lying on the ground as if he were dead? thnx.
cahnge the death_state or something
I have a question.
What flag do I use to make the NPC not attackable at all?
not use flag use faction
Faction 35 is completely neutral if i remember correctly.
To make the npc lay down, use the death state_state in your database.
use a creatureOnSpawn server hook to disable combat
the bytes being set to 7 will make him look deadCode: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); }
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
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
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.)
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
true you got a point