PDA

View Full Version : Altering NPC body type?


ChaosSlayerZ
06-05-2009, 11:58 PM
I know you can alter NPC race or stats with quest.
But I need to alter body type.

I have an npc which starts out as body type 11 (untargetable) and I need to switch it to 1 (normal) once npc recives a quest signal.

any idea how to alter the body type?

I belive this was used in MANY LIVE raid scripts I just can't seem to find any exmaples

alternativly - ability to set/unset NPC special ability flag with quest? So i can make him Immune to Melee/Spells to begin with, but then remove it when signal is recieved.

Congdar
06-06-2009, 12:10 AM
The emperor in ssra starts out as untargetable then becomes targetable. it is done by having two entries in the db... one of each type. The untargetable one despawns right after spawning the targetable one in the perl. Not sure if it's possible to change those values on the same npc on the fly and have it work.

ChaosSlayerZ
06-06-2009, 12:42 AM
The emperor in ssra starts out as untargetable then becomes targetable. it is done by having two entries in the db... one of each type. The untargetable one despawns right after spawning the targetable one in the perl. Not sure if it's possible to change those values on the same npc on the fly and have it work.

yeah I know of that method - but spawning a copy feel kind of cheap =)

It just we recently had a new quest comand added which allows to alter NPC stats on the fly- so why not body type and ability flags?