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 by id

Featured Replies

hello there, can you help me pls with abandon quest? for Vanilla wow, This code dont work

local questId = 12345;
for i=1,GetNumQuestLogEntries() do
	local _, _, _, _, _, _, _, id = GetQuestLogTitle(i);
	if id == questId then
		SelectQuestLogEntry(i);
		SetAbandonQuest();
		AbandonQuest();
	end
end
  • Author
19 minutes ago, FNV316 said:

dont work:
local questId = The Absent Minded Prospector;
for i=1,GetNumQuestLogEntries() do
    local _, _, _, _, _, _, _, id = GetQuestLogTitle(i);
    if id == questId then
        SelectQuestLogEntry(i);
        SetAbandonQuest();
        AbandonQuest();
    end
end

  • Author
2 hours ago, Mike Mail said:

local questId = 12345; <- "12345" Change to your quest id, if you havent already.
for i=1,GetNumQuestLogEntries() do
	local _, _, _, _, _, _, _, id = GetQuestLogTitle(i);
	if id == questId then
		SelectQuestLogEntry(i);
		SetAbandonQuest();
		AbandonQuest();
	end
end

This code dont work at vanilla

  • Author
1 hour ago, Zan said:

"The Absent Minded Prospector"

and change all questid to questname to avoid confusion.

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

this?

13 minutes ago, Nosferatuepic said:

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

this?

The Absent Minded Prospector needs to be a string.

7 hours ago, Nosferatuepic said:

dont work

That's why I said, use quest name (-> quest title) instead of id. Calling that Lua function returns (in Vanilla) 7 different values, so you need a variable for the very first value. You then check, if the value (string) of the quest title variable is the same (string.match / string.find) as your quest name string.

Please read the documentation. There is an example of how to use these variables right at the bottom. http://classic-wow.wikia.com/wiki/API_GetQuestLogTitle#questTag

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

This should work flawlessly.. just enter your ID.

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.