EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Conversation (https://www.eqemulator.org/forums/showthread.php?t=29972)

Akkadius 11-12-2009 02:43 AM

Conversation
 
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?

KLS 11-12-2009 03:59 AM

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.
Code:

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...

KLS 11-12-2009 11:32 AM

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 =)


All times are GMT -4. The time now is 08:43 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.