PDA

View Full Version : How to change an NPC name


kameko
04-21-2010, 09:39 PM
Hey,

I'm working on a quest now and would like to change an Npc's first name for a short time. I will use a timer and then change his name back to normal afterwards. I just do not know how to change a mobs name in perl or even using the objects available to me.

Can anyone shed some light on this for me please,

Thank you

pfyon
04-21-2010, 09:52 PM
I think you'll need to spawn an NPC with a different name, then despawn it and spawn one with the original name when the timer triggers.

kameko
04-21-2010, 10:13 PM
Hmmm... I was hoping that would be required. The player will be in the middle of talking to him at the time..... well, I think I can work with that....

Any other ideas out there ?

trevius
04-21-2010, 11:03 PM
Unfortunately, as far as I know, it is not possible. I actually tried testing to see if it could be done using illusions, since illusion packets include a name field, but I couldn't get it to make any changes so I guess it is just ignored :(