OnConvStart = function(pNpcBase, pPlayer)
local strParam = "";
strParam = "58106";
pNpcBase:SendNpcConvFunctionalNtf(pPlayer, 107, "", strParam);
--
-- 角色.Npc转换上下文 : 设置字符绑定点 ()
pPlayer.m_NpcConvConext:SetCharBindingPoint(504,3);
end,
OnConvProceedDialog = function(pNpcBase, pPlayer, iDialogId)
local strParam = "";
pNpcBase:SendNpcConvDialogNtf(pPlayer, iDialogId, strParam);
pPlayer.m_NpcConvConext:SetDialogCtx(iDialogId);
pPlayer:OnLogicEventNpcConvOkInternal(pNpcBase.m_iNpcId ,iDialogId);
end,
OnConvDialogChoose = function(pNpcBase, pPlayer, iChoice)
local iCurrentDialog = pPlayer.m_NpcConvConext:GetDialogId();
--------------------------------------------------
if iCurrentDialog == 58129 then
if iChoice == 0 then
local strParam = "";
strParam = "58106";
pNpcBase:SendNpcConvFunctionalNtf(pPlayer, 107, "", strParam);
pPlayer.m_NpcConvConext:SetDialogCtx(107);
pPlayer.m_NpcConvConext:SetCharBindingPoint(504,3);
else
--
pPlayer:OnNpcConvTerminateByServerInternal();
end
end
end |