Example #1
0
        public int Say(string sText, bool bPrev = false, bool bNext = true)
        {
            var pMsg = new NpcSayMessage()
            {
                sText = sText,
                bPrev = bPrev,
                bNext = bNext
            };

            Script.PrevMsgs.Add(pMsg);

            return(Script.SendMessage <byte>(ScriptMsgType.Say, p =>
            {
                p.EncodeString(sText);
                p.Encode1(bPrev);
                p.Encode1(bNext);
            }));
        }
Example #2
0
 private void SendDialogSay(NpcSayMessage pState)
 {
     SendDialog(ScriptMsgType.Say, pState.Encode, ScriptFlagType.NPCReplacedByNPC, 0, SpeakerTemplateID);
 }