View Full Version : Conversation
Akkadius
11-12-2009, 02:43 AM
Is there a way, im sure there is, just if anyone can answer if I can have two or more NPC's synched in conversation?
Signals can be used, or you can have an invisible trigger npc that controls them. I'd definitely start with looking into signals though as they're probably a bit easier to grasp.
Shin Noir
11-12-2009, 04:16 AM
KLS is there an issue with e.g. if (defined($entity_list->GetMobByNpcTypeID(115132))) {
$entity_list->GetMobByNpcTypeID(115132)->Say("Aye, we wouldn't want ye fallin into the pit now would we.");
}
If the NPC Type ID is unique for the second one?
This also lets you know if the other npC is dead or not if it doesn't return defined...
Well you can get a perl array of every npc with $entity_list->GetNPCList() and iterate through and simply match it to spawn2 point or whatever so it doesn't really matter if your npc is unique or not =)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.