Esempio n. 1
0
    public static int CL_SetCompleteQuestOption(ILuaState lua)
    {
        uint questid = lua.L_CheckUnsigned(1);

        CNPCTalkFrame pFrame = (CNPCTalkFrame)GameUIManager.Instance().GetFrame(GUIDefine.UIF_NPCTALKFRAME);

        if (pFrame != null)
        {
            pFrame.SetCompleteTalkOption(questid);
        }
        return(0);
    }
Esempio n. 2
0
    public static int CL_SetNPCTalkOption(ILuaState lua)
    {
        uint   questid    = lua.L_CheckUnsigned(1);
        int    step       = lua.L_CheckInteger(2);
        bool   bNpcSay    = lua.L_CheckInteger(3) == 1 ? true : false;
        string strCaption = ToolLib.EncUTF8(lua.ToString(4));


        CNPCTalkFrame pFrame = (CNPCTalkFrame)GameUIManager.Instance().GetFrame(GUIDefine.UIF_NPCTALKFRAME);

        if (pFrame != null)
        {
            pFrame.SetQuestTalkOption(questid, step, bNpcSay, strCaption);
        }
        return(0);
    }