Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Abandon quest tbc

Featured Replies

how to abandon a quest?

i have tryed but is not working

local questId = 786;
for i=1,GetNumQuestLogEntries() do
 local _, _, _, _, _, _, _, id = GetQuestLogTitle(i);
 if id == questId then
  SelectQuestLogEntry(i);
  SetAbandonQuest();
  AbandonQuest();
 end
end

i also try this that i use in vanilla but im getting an error

var logId = Quest.GetLogIdByQuestId(409);
        if (logId > 0)
        {
            Lua.LuaDoString("SelectQuestLogEntry(" + logId + "); SetAbandonQuest(); AbandonQuest(); ");
        }

[E] 09:36:04.090 - Compilator Error :
c:\Users\wow1\AppData\Local\Temp\upb0zp3d\upb0zp3d.0.cs(26,27) : error CS0117: Το 'wManager.Wow.Helpers.Quest' δεν περιέχει ορισμό για το 'GetLogIdByQuestId'

Hello,

Use this code:

local questId = 786;

local i = 1
while GetQuestLogTitle(i) do
  local questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(i);
  if ( not isHeader and GetQuestLink(i))  then
      if questId == tonumber(string.match(GetQuestLink(i), 'Hquest:(%d+)')) then
        SelectQuestLogEntry(i);
        SetAbandonQuest();
        AbandonQuest();
        break;
      end
  end
  i = i + 1
end

 

  • Author
3 hours ago, Droidz said:

Hello,

Use this code:


local questId = 786;

local i = 1
while GetQuestLogTitle(i) do
  local questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(i);
  if ( not isHeader and GetQuestLink(i))  then
      if questId == tonumber(string.match(GetQuestLink(i), 'Hquest:(%d+)')) then
        SelectQuestLogEntry(i);
        SetAbandonQuest();
        AbandonQuest();
        break;
      end
  end
  i = i + 1
end

 

i have test it there is no errors but the quest ist delete

  • Author
2 hours ago, Matenia said:

Check here:



In Customscript, I put a class called QuesterHelper.
WIth it, you can then call C# code: QuestHelper.AbandonQuester("questName") in any Quester step.

thnx m8 that work..and is C# code: QuestHelper.AbandonQuest("questName") . fast question how i can put 2 costum script ? in 2 profiles im using for key looting

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using wManager.Events;
using wManager.Wow.Bot.Tasks;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using System.ComponentModel;
using Microsoft.VisualBasic;
using robotManager.Helpful;

public class Key
{
    public static bool haveKey(int keyId)
    {
        bool haveKey = Lua.LuaDoString<bool>("local itemIdSearch = " + keyId + "; local bag = KEYRING_CONTAINER; for slot = 1,MAX_CONTAINER_ITEMS do local itemLink = GetContainerItemLink(bag,slot); local _, itemCount = GetContainerItemInfo(bag,slot); if itemLink and itemCount then local _,_,itemId = string.find(itemLink, '.*|Hitem:(%d+):.*'); if itemId and tonumber(itemId) == itemIdSearch then return true end end end return false");
        return haveKey;
    }
}

Copy this underneath the other class:

 

public class Key
{
    public static bool haveKey(int keyId)
    {
        bool haveKey = Lua.LuaDoString<bool>("local itemIdSearch = " + keyId + "; local bag = KEYRING_CONTAINER; for slot = 1,MAX_CONTAINER_ITEMS do local itemLink = GetContainerItemLink(bag,slot); local _, itemCount = GetContainerItemInfo(bag,slot); if itemLink and itemCount then local _,_,itemId = string.find(itemLink, '.*|Hitem:(%d+):.*'); if itemId and tonumber(itemId) == itemIdSearch then return true end end end return false");
        return haveKey;
    }
}

If the compiler says any imports ("using" declarations) are missing, copy them to where the ones in my quester already are.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.