Jump to content

Ladrek69

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Ladrek69

  1. getting this error message when trying to use it, its in the plugin folder.

    [E] 13:04:39.465 -  dfsg gfds gfds#2: The operation has timed out
    [E] 13:04:39.465 - fzegfzefezsfdsfsdfsdfdsfsdBytes
    [E] 13:04:39.496 - Quester.Bot > Pulse(): System.NullReferenceException: Object reference not set to an instance of an object.
       at Quester.Bot.Bot.Pulse(Boolean loadSettingsProfile, String profile)

  2. whered

    On 10/7/2021 at 10:56 PM, Sye24 said:

    try something like this 

    using robotManager.Helpful;
    using System;
    using System.ComponentModel;
    using wManager.Events;
    using wManager.Wow.Helpers;
    
    public static class QuestCompleteHelper
    {
        public static void Start()
        {
            OthersEvents.OnSelectQuestRewardItem += _QuestCompleteHandler;
        }
    
        public static void Stop()
        {
            OthersEvents.OnSelectQuestRewardItem -= _QuestCompleteHandler;
        }
    
        private static void _QuestCompleteHandler(CancelEventArgs cancelable)
        {
            try
            {
                cancelable.Cancel = true;
                Lua.LuaDoString(@"
                  if ( not QuestFrameRewardPanel:IsVisible() or QuestFrameRewardPanel:IsVisible() == nil ) then
                local gossipTable = {GetGossipActiveQuests()}
                local numOptions = table.getn(gossipTable)/4
                local nameIndex, completeIndex = 1, 4
                for i=1,numOptions do
                  if gossipTable[completeIndex] == 1 then
                    SelectGossipActiveQuest(i);
                    CompleteQuest();
                    GetQuestReward(1);
                  end
                nameIndex, completeIndex = nameIndex + 4, completeIndex + 4
                end 
                return");
            }
            catch (Exception ex)
            {
                Logging.Write("QuestCompleteHelper > bug " + ex);
            }
        }
    }

     

    where'd i put this?

×
×
  • Create New...