Jump to content
  • Bug Problem to read steps caches:


    Sye24
    • Product: Quester Type: Bug Status: Unconfirmed
     Share

    Hello, i believe i found a bug, i keep getting this error on quests not complete, even tho quests completed work completely fine.

    [E] 23:25:42 - Problem to read steps caches: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at StepsCache._762ebe1c3180e9d746f4cd82b3eb9806()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at  .(CodeType , String , Boolean )
    [E] 23:25:43 - QuesterState > TestCondition(string csharpCode): System.NullReferenceException: Object reference not set to an instance of an object.
       at Main.Pulse2()
       at  .(CodeType , String , Boolean )

    my code

     

     public static string IsQuestCompleted(string QuestName)
        {
            string QuestMode = null;
            try
            {
                for (int l = 1; l <= GetNumQuestLogEntries(); l++)
                {
                    if (GetQuestLogTitle(l)[0].ToLower() == QuestName.ToLower())
                    {
                        if (GetQuestLogTitle(l)[4] == "1")
                        {
                            QuestMode = "Completed";
                        }
                        else if (GetQuestLogTitle(l)[4] == "-1")
                        {
                            QuestMode = "Failed";
                        }
                        else
                        {
                            return null;
                        }
                    }
                }
            }
            catch { }
            return QuestMode;
        }
                                                            
                                                            
     private static int GetNumQuestLogEntries()
        {
            return int.Parse(Lua.Wow.GetNumQuestLogEntries<String[]>()[0]);
        }
    
        private static String[] GetQuestLogTitle(int Y)
        {
            return Lua.Wow.GetQuestLogTitle<String[]>(Y);
        }

     


     Share


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...