Example #1
0
        public bool QuestV2RunEvent(QUEST_HELPER pQuestHelper, int nEventID)
        {
            // Lookup the corresponding NPC.
            if (pQuestHelper.strLuaFilename == "01_main.lua" ||
                pQuestHelper.strLuaFilename == "1_main.lua")
            {
                m_sEventNid = 10000;
            }

            Npc  pNpc   = g_pMain.GetNpcPtr(m_sEventNid);
            bool result = false;

            if (pNpc == null || pNpc.isDead())
            {
                return(false);
            }

            m_nQuestHelperID = pQuestHelper.nIndex;
            using (Engine luaEngine = new Engine())
            {
                luaEngine.ExecuteScript(this, pNpc, nEventID, bSelectedReward, pQuestHelper.strLuaFilename);
            }

            return(true);
        }
Example #2
0
 public bool QuestV2RunEvent(QUEST_HELPER pQuestHelper, int nEventID, sbyte bSelectedReward = 0)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public void QuestV2ExecuteHelper(QUEST_HELPER pQuestHelper)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public void QuestV2CheckFulfill(QUEST_HELPER pQuestHelper)
 {
     throw new NotImplementedException();
 }