It appears that DialogGetInvolvedPlayer() and DialogGetInvolvedNPC() are no-longer working in DialogEnded() Event.


PHP Code
IF   DialogEnded("UnderSiege_Henchman", _ID)
AND  DialogGetLocalEvent(_ID, "ACTION_HireHenchman", 1) 
AND  DialogGetInvolvedNPC(_ID, 1, _Char)
THEN HUS_AddCompanionToParty(_Char);

// ---------------------------------------------------------------------------------
IF   DialogEnded("UnderSiege_Henchman", _ID)
AND  DialogGetLocalEvent(_ID, "ACTION_DismissHenchman", 1) 
AND  DialogGetInvolvedPlayer(_ID, 1, _Char)
THEN HUS_DismissCompanion(_Char); 



However this seems to be working.

PHP Code
IF   DialogEnded("UnderSiege_Henchman", _ID)
AND  DialogGetLocalEvent(_ID, "ACTION_HireHenchman", 1) 
AND  DB_DialogNPCs(_ID, _Char, 1)
THEN HUS_AddCompanionToParty(_Char);

// ---------------------------------------------------------------------------------
IF   DialogEnded("UnderSiege_Henchman", _ID)
AND  DialogGetLocalEvent(_ID, "ACTION_DismissHenchman", 1) 
AND  DB_DialogPlayers(_ID, _Char, 1)
THEN HUS_DismissCompanion(_Char);