Skip to content

Instantly share code, notes, and snippets.

@aamiaa
Last active July 5, 2024 06:03
Show Gist options
  • Save aamiaa/204cd9d42013ded9faf646fae7f89fbb to your computer and use it in GitHub Desktop.
Save aamiaa/204cd9d42013ded9faf646fae7f89fbb to your computer and use it in GitHub Desktop.
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

This no longer works if you're alone in vc! Somebody else has to join you!

Warning

There are now two quest types ("stream" and "play")! Pay attention to the instructions!

How to use this script:

  1. Accept a quest under User Settings -> Gift Inventory
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
Click to expand
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].find(x => x.id !== "1245082221874774016" && x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}
  1. Follow the printed instructions depending on what type of quest you have
    • If your quest says to "play" the game, you can just wait and do nothing
    • If your quest says to "stream" the game, join a vc with a friend or alt and stream any window
  2. Wait for 15 minutes
  3. You can now claim the reward in User Settings -> Gift Inventory!

You can track the progress by looking at the Quest progress: prints in the Console tab, or by reopening the Gift Inventory tab in settings.

Completing The Console Quest

While the script doesn't work on it, it is possible to complete the "play any game on your console" quest without owning a console by using Xbox's Cloud Gaming:

  1. Connect your Xbox (aka Microsoft) account to Discord (Settings -> Connections)
  2. Go to https://xbox.com/play and login via the same Xbox account
  3. Launch a free game (such as Fortnite)
  4. Leave it running for 10 minutes

FAQ

Q: Ctrl + Shift + I doesn't work

A: Either download the ptb client, or use this to enable DevTools on stable

Q: I get an error saying "Unauthorized"

A: Discord has patched the script from working in browsers. Use the desktop app, or alternatively find some extension which lets you change your User-Agent and append the string Electron/ anywhere in it.

They have also started checking how many people are in the vc, so make sure you join it on at least 1 other account.

Q: I get a different error

A: Make sure you're copy/pasting the script correctly and that you've have done all the steps.

@sametaor
Copy link

sametaor commented Jun 11, 2024

can anyone send me a code in my discord welopox3

You can have it here itself: CQ4V-2TFZP-7E73
also Aamiaa, I wanted to report that the code does not work on the aur (Arch Linux) version of discord-ptb when I tried to do it there, it was stuck at around 2%,, so please do take a look at it, just in case one wants to use it on a Linux version of the discord client.

@taet-official
Copy link

i mean how to get the quest badge. aamiaa removed the code. do u have it?

Reading comprehension challenge (impossible)

lmao

@barraIhsan
Copy link

CQEK-J4WBX-4G4H
mw3 code, if anyone need

@barraIhsan
Copy link

also Aamiaa, I wanted to report that the code does not work on the aur (Arch Linux) version

@sametaor According to the FAQ, it currently doesn't support linux.
I tried using vesktop, and it seems that it doesn't work for me?

@sametaor
Copy link

also Aamiaa, I wanted to report that the code does not work on the aur (Arch Linux) version

@sametaor According to the FAQ, it currently doesn't support linux. I tried using vesktop, and it seems that it doesn't work for me?

Ah, that explains, so dual boots or vms are the way for now if one mains Linux as a daily driver. Since I just got into Arch Linux, thought I might as well try doing it.

@Elilynz
Copy link

Elilynz commented Jun 11, 2024

MW3 : CQWQ-QRBCT-9CQ9

@RuriYoshinova
Copy link

MW3: CS6L-RJ07F-242Y

@Alcheur
Copy link

Alcheur commented Jun 11, 2024

i mean how to get the quest badge. aamiaa removed the code. do u have it?

Reading comprehension challenge (impossible)

Me: Never laughs
Still me: reads your answer and cries while laughing 💀

@aaa-jad
Copy link

aaa-jad commented Jun 11, 2024

MW3: CT4D-SV31L-JE1D

Game Is Love - MCW 6.8 Marksman Rifle Weapon Blueprint

COD

Thank you and God Bless

@scopy11
Copy link

scopy11 commented Jun 11, 2024

YALL GIVING EACHOTHER COD CODES

@Jetsooonie
Copy link

Here's my COD code: CXCM-RGXDQ-RYP8

Enjoy!

@macosfangamer
Copy link

WHO WANTS THIS BLUEPRINT ( I dont have COD nor I want to) NOTE: This is compatible with Call of Duty: Warzone III
Code: CXVY-1724D-B71E

@chickennuggetman69
Copy link

D2NM-LNNP2-RG7L

@moseybat
Copy link

MW III code: D7E5-X7KFV-DT8Q

@0strike
Copy link

0strike commented Jun 12, 2024

It Actually Work!!! Love You, Aamiaa

@Mayebear
Copy link

I don't need it:

D969-W3FT2-RJY9

and thanks to Aamiaa 🤘

@KIS0RI
Copy link

KIS0RI commented Jun 12, 2024

MW III code: DBM1-JTE8M-QCCD
thanks for free badge Aamiaa

@tyabus
Copy link

tyabus commented Jun 12, 2024

MW 3 Remastered Code: DCZ3-2MS52-GPLR

@MeowSummon
Copy link

MW3 code : DDCY-ESHPL-NVLK

Thank you Aamiaa

@a-turtle9302
Copy link

mw3 DE4L-FE2RW-HP4X

@atouu
Copy link

atouu commented Jun 12, 2024

MW3: DHP7-B4DE0-8XTT

@TrixiePon
Copy link

Your COD code: DKMN-9XDXW-QPYR

@mycoolkim
Copy link

COD Code! DNB4-FKYL3-8R90

@hex2d3
Copy link

hex2d3 commented Jun 13, 2024

hi can someone please lemme know where is the script?

@mycoolkim
Copy link

hi can someone please lemme know where is the script?

Click the little triangle with the words "Click to expand" in the description and it should expand!

@m4yc3x
Copy link

m4yc3x commented Jun 13, 2024

This plugin works exceptionally well. Thank you for sharing!

EDIT: Btw guys, those codes you are submitting are sniped by bots within seconds. Thanks for sharing tho

@hex2d3
Copy link

hex2d3 commented Jun 13, 2024

hi can someone please lemme know where is the script?

Click the little triangle with the words "Click to expand" in the description and it should expand!

oh tysm !

@Gerg0Vagyok
Copy link

If anyone wants my MW3 blueprint code: D T B D - M B S X G - E S G N (without spaces)

@7n9
Copy link

7n9 commented Jun 13, 2024

DTVL-KB4GP-HN8Y

@Trolleye-ux
Copy link

Anyone Mw3 blueprint code please?

@searinminecraft
Copy link

here since i dont need it

E4G0-8MWGJ-FQXQ

@Shroomisle
Copy link

If anybody needs the mw3 code: E4KB-WN276-7DP9

👍

@Leialoha
Copy link

Leialoha commented Jun 14, 2024

This was well made, I decided to create a version that auto redeems the quests.

[redacted] (sorry @aamiaa, didn't mean to cause confusion...)

@searinminecraft
Copy link

This was well made, I decided to create a version that auto redeems the quests.

You should post this as a separate gist for convenience :3

@NoTLcLc23
Copy link

where the script i no find ?

@iamclowdee
Copy link

The OP says it doesn't work on browsers anymore. Can someone confirm? Thanks.

@Alcheur
Copy link

Alcheur commented Jun 14, 2024

The OP says it doesn't work on browsers anymore. Can someone confirm? Thanks.

It does indeed not work on browser, you have to do it on the discord app, however for the alt account HE can be in browser discord

@Lminate
Copy link

Lminate commented Jun 14, 2024 via email

@NoTLcLc23
Copy link

The OP says it doesn't work on browsers anymore. Can someone confirm? Thanks.

i,no find it the link script what can help me find it?

@iamclowdee
Copy link

As of this moment (14 June, 2024), I know how to do it successfully.

You CANNOT do it: in a browser, without a friend on the VC (or more).

What you need to do is download DiscordPTB if you don't have it already (helps you with the whole Console opening thing), join a vc and simply share your screen AFTER you have copy pasted the code to the Console of your DisordPTB.

My MW3 code I received (unused): E7JV-EJ2QK-WXW2

Enjoy!

@iamclowdee
Copy link

I dont give a shit about these replies. Stpo spamming my inbox

On Mon, 10 Jun 2024, 19:10 Alcheur, @.> wrote: @.* commented on this gist. ------------------------------ C6TZ-K8WHZ-QX3W enjoy yall and thanks for this code <3 i mean how to get the quest badge. aamiaa removed the code. do u have it? Hi ! it is here, look around the page for a "click to expand" — Reply to this email directly, view it on GitHub https://gist.github.com/aamiaa/204cd9d42013ded9faf646fae7f89fbb#gistcomment-5084441 or unsubscribe https://github.com/notifications/unsubscribe-auth/BGFEIXIVQ2MFFUUHGY3I3ILZGXMXHBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEOJXGM3DANBVU52HE2LHM5SXFJTDOJSWC5DF . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

Bitch, here's another spam for you

@aamiaa
Copy link
Author

aamiaa commented Jun 14, 2024

This was well made, I decided to create a version that auto redeems the quests.

@Leialoha That's not the best idea. The enroll endpoint may return a captcha. You're constructing the request manually, not handling the potential captcha in any way, not sending all headers, not updating X-Super-Properties, etc. which, aside of breaking the script, might also get people flagged by the anti spam.

For this reason, I've redacted the code from your reply to prevent people from running it, sorry.

@Valera887
Copy link

Unused code E7P1-V302M-SE64

@marky291
Copy link

E9V3-W4DFG-X915

@MetricsLite
Copy link

MetricsLite commented Jun 14, 2024

EB5V-TWPBH-LMFE
EBF9-NPSR1-SZ1Q

@d3v7
Copy link

d3v7 commented Jun 14, 2024

@aamiaa
Quest progress: 0/900 is not updating
this works

let progress = data.userStatus.progress.STREAM_ON_DESKTOP.value
let percent_completed = (progress / secondsNeeded) * 100
console.log(`Quest progress: ${progress}/${secondsNeeded}`)
console.log(`Quest progress: ${percent_completed.toFixed(2)}%`)

My unused code: ECP6-702H2-B157

@dharsoumyadip
Copy link

Much thanks for the badge aamiaa.

EFP8-TJ7G8-KWQX

@hussein33r
Copy link

hi is that work in mw3?

Copy link

ghost commented Jun 15, 2024

Не працює

@brunenberg
Copy link

I don't need this: ERRS-WBC9C-10J5

@Mertyyyyy
Copy link

Uncaught SyntaxError: Unexpected identifier 'olsun'

bu hatayı veriyor nasıl düzelebilirim

@m-faizananwar
Copy link

where is the script?

@d3v7
Copy link

d3v7 commented Jun 15, 2024

where is the script?

here
gist

@m-faizananwar
Copy link

As of this moment (14 June, 2024), I know how to do it successfully.

You CANNOT do it: in a browser, without a friend on the VC (or more).

What you need to do is download DiscordPTB if you don't have it already (helps you with the whole Console opening thing), join a vc and simply share your screen AFTER you have copy pasted the code to the Console of your DisordPTB.

My MW3 code I received (unused): E7JV-EJ2QK-WXW2

Enjoy!

can you tell me your discord username for dm?

@synnno
Copy link

synnno commented Jun 16, 2024

@aamiaa https://cdn.discordapp.com/attachments/1195061611711438848/1251815299658022912/message.txt?ex=666ff359&is=666ea1d9&hm=ef27b020597902e8ffa56c4157c5d8f05c3d78e5633eed0eb9839e966f9b5481&
an easier way to inject code into discord app is trough better discord plugins i made this one and it works perfectly just create quest.plugin.js in plugins folder

@NinjaRito
Copy link

code for MWIII: EYZ0-KLM3B-9FVT

@scopy11
Copy link

scopy11 commented Jun 16, 2024

Here's my COD code: CXCM-RGXDQ-RYP8

Enjoy!

THANK YOU SO MUCH OMG

@lvl-d
Copy link

lvl-d commented Jun 16, 2024

F9WR-3P9FQ-9N6M

@TheAustrianHausi
Copy link

And for what is the COD Code?

@mi0lt
Copy link

mi0lt commented Jun 16, 2024

it's not working 🥹

@miiplaza
Copy link

heres my unused code: FJJG-H5K45-7X1V

@TheAustrianHausi
Copy link

Code?

@luc122c
Copy link

luc122c commented Jun 17, 2024

FJJG-H5K45-7X1V

Redeemed this. Thank you @miiplaza <3

@mayu-z
Copy link

mayu-z commented Jun 17, 2024

i need a code as well

@sneazy-ibo
Copy link

Is there someone else getting this error?

image

@ZFHailey
Copy link

Is there someone else getting this error?

image

I have this issue too.

@BlackCatOnline
Copy link

some cod blueprint: FSPP-17CXG-228J

Script works perfectly, thanks!

@AxosFalox
Copy link

some cod blueprint: FSPP-17CXG-228J

Script works perfectly, thanks!

can you help me set it up?? its not working for me and i really need your help.

@ZFHailey
Copy link

It still gives me the error typeerror as above.. Is it just me?

@mayu-z
Copy link

mayu-z commented Jun 17, 2024

gimme a code

@AxosFalox
Copy link

gimme a code

how to even use a code?

@AxosFalox
Copy link

It still gives me the error typeerror as above.. Is it just me?

its me as well.

@AxosFalox
Copy link

Is there someone else getting this error?

image

can you let me know if you got it working please?? i got the same issue.

@aamiaa
Copy link
Author

aamiaa commented Jun 17, 2024

can you let me know if you got it working please?? i got the same issue.

You're on canary/ptb. Use stable.

@aamiaa
Copy link
Author

aamiaa commented Jun 17, 2024

Okay I just realized how dumb that sounds after I tell people to use ptb in the gist.
If you can't use stable then wait a bit. Discord pushed major code changes today and I don't want to update the gist until they reach stable.

@mayu-z
Copy link

mayu-z commented Jun 17, 2024

gimme a code

how to even use a code?

do you play mw3? if yes then go to callofduty.com/redeem and then paste that code with your uid and that's it you'll get the skin

@AxosFalox
Copy link

can you let me know if you got it working please?? i got the same issue.

You're on canary/ptb. Use stable.

can you let me know if you got it working please?? i got the same issue.

You're on canary/ptb. Use stable.

yea im on ptb, wait whats stable? Sorry im a bit slow but could you explain it to me, please??

@aamiaa
Copy link
Author

aamiaa commented Jun 17, 2024

yea im on ptb, wait whats stable? Sorry im a bit slow but could you explain it to me, please??

The normal version of discord. Not ptb, not canary.

@AxosFalox
Copy link

AxosFalox commented Jun 17, 2024

yea im on ptb, wait whats stable? Sorry im a bit slow but could you explain it to me, please??

The normal version of discord. Not ptb, not canary.

ah i see but the ctrl + shift + I doesnt work for me, so i just have to wait till you update the gist till they reach stable am i correct? Because the COD WIII event will end June 19 2024

@aamiaa
Copy link
Author

aamiaa commented Jun 17, 2024

Use this one for now, I think it should work:

[removed to avoid confusing people]

@AxosFalox
Copy link

AxosFalox commented Jun 17, 2024

Use this one for now, I think it should work:

[removed to avoid confusing people]

on stable or the other ones?

@ZFHailey
Copy link

ZFHailey commented Jun 17, 2024

Use this one for now, I think it should work:

Click to expand

This works on ptb just to confirm it

@AxosFalox
Copy link

Use this one for now, I think it should work:
Click to expand

This works on ptb just to confirm it

huh, it didnt work for me idk why, let me try re installing it

@AxosFalox
Copy link

image
no it still didnt work.

@AxosFalox
Copy link

Use this one for now, I think it should work:
Click to expand

This works on ptb just to confirm it

can you please help me with it?

@aamiaa
Copy link
Author

aamiaa commented Jun 17, 2024

Right i missed a spot
This one should work now:
[removed to avoid confusing people]

@AxosFalox
Copy link

AxosFalox commented Jun 17, 2024

Right i missed a spot This one should work now:

[removed to avoid confusing people]

OH THANK YOU SO MUCH IT WORKED FINALLY

@ZFHailey
Copy link

Heres a code for anyone : FTW1-H0DNF-1YZY

@aamiaa
Copy link
Author

aamiaa commented Jun 18, 2024

I've updated the main gist with a workaround that handles both stable and canary/ptb, so it should be fine to use that one for now
(more clutter in the code yay!)

@AxosFalox
Copy link

gimme a code

how to even use a code?

do you play mw3? if yes then go to callofduty.com/redeem and then paste that code with your uid and that's it you'll get the skin

here is the code if you want FV1W-EP5EM-0MZ3

@sneazy-ibo
Copy link

I've updated the main gist with a workaround that handles both stable and canary/ptb, so it should be fine to use that one for now (more clutter in the code yay!)

Your code works now but the logs are broken, it just returns an undefined error instead of logging the time. Still thx for the update :)

@terrariapro147
Copy link

FW5Z-QZ25L-18CG, cod code

@TomerGamerTV
Copy link

TomerGamerTV commented Jun 18, 2024

Right i missed a spot This one should work now:

[removed to avoid confusing people]

Got this error
image

@aamiaa
Copy link
Author

aamiaa commented Jun 18, 2024

Run the script in the main gist, not random edits I post for specific people...

@aamiaa
Copy link
Author

aamiaa commented Jun 18, 2024

Your code works now but the logs are broken, it just returns an undefined error instead of logging the time. Still thx for the update :)

Should be fixed now

@Phantom-Noir
Copy link

Screenshot 2024-06-17 202550
Still receiving Type error

@GoopGhostt
Copy link

Screenshot 2024-06-17 202550 Still receiving Type error

I'm getting this as well

@ayaojee
Copy link

ayaojee commented Jun 18, 2024

Screenshot 2024-06-18 084639
how can i fix this please

@sirius-sama
Copy link

Thanks, it worked. Guys follow the instructions properly and it'll work fs.
image

@ayaojee
Copy link

ayaojee commented Jun 18, 2024

@sirius-sama
pls dm me in discord and tell me what i do
my name is : ayaojee

@sirius-sama
Copy link

@sirius-sama pls dm me in discord and tell me what i do my name is : ayaojee

check

@txmu1
Copy link

txmu1 commented Jun 18, 2024

Your code works now but the logs are broken, it just returns an undefined error instead of logging the time. Still thx for the update :)

Should be fixed now

image how can i fix this ?

discord ptb

@Jxnasus
Copy link

Jxnasus commented Jun 18, 2024

Another CoD Code: G1S8-J9633-BPBC
for someone to use, I am not playing that game

@MisterGambler
Copy link

Guys it doesnt work can someone send me the full code maybe i copied it wrong

@Trolleye-ux
Copy link

Guys,i didnt wanted to lie,but none of the codes work....But i think its not suprising after all wtf

@devii123i
Copy link

Im putting the script in and it is doing nothing?? someone help please
image

@devii123i
Copy link

nevermind it is working

@Trolleye-ux
Copy link

where did the script go?

@d3v7
Copy link

d3v7 commented Jun 18, 2024

where did the script go?
Click to expand
IMG_2034

@Suspectxyzz
Copy link

G5E1-N2N40-ZVQD

@epiwww
Copy link

epiwww commented Jun 18, 2024

hi ! dont work for me :(
image_2024-06-18_203013642

@Smilqo
Copy link

Smilqo commented Jun 20, 2024

image
how to fix

@aamiaa
Copy link
Author

aamiaa commented Jun 20, 2024

image
how to fix

Use the desktop app

@quincynyan
Copy link

image

@AnonymousUserInthisGithub

call of duty: 10B9-QZ5BG-1XJK

@Radiant-F
Copy link

can you guys shut the fuck up

@GuidingLight20
Copy link

the new code doesnt work :(

@sambecause
Copy link

I've updated the main gist with a workaround that handles both stable and canary/ptb, so it should be fine to use that one for now (more clutter in the code yay!)

I don't see ny quest in my gift inventory

@mi0lt
Copy link

mi0lt commented Jun 21, 2024

can someone send me a code i try this for like 13 times and it didn't work for me 🥲 if anyone have a code can you please give it to me my discord is xi0lt

@Sub-Archeo
Copy link

how about for minecraft?

@Xoncia
Copy link

Xoncia commented Jun 21, 2024

The script works perfectly fine, I'm not sure what everyone here is complaining about.
PS; on a side note @aamiaa (your bio is 120% relatable)

@Trolleye-ux
Copy link

Trolleye-ux commented Jun 21, 2024

or can someone send me a code?

name : wareye_yt

@rorixpatrick
Copy link

Minecraft Trial Mask : 2MY3J-3XHG7-YK4X9-2MKDM-3V3JZ

@Trolleye-ux
Copy link

not vaild xddddddd

@Trolleye-ux
Copy link

Trolleye-ux commented Jun 21, 2024

if anyone has a vaild code,text me on dc

@Konaimav2
Copy link

LETSGOOO MINECRAFT TIME

@truelockmc
Copy link

Screenshot 2024-06-18 084639 how can i fix this please

Use the desktop app, or just watch this tutorial by ntts https://www.youtube.com/watch?v=MV33-XB0gss

@clearnet
Copy link

MINECRAFT CODE: 23Y96-FVFPP-WY76V-PW62R-X7DPZ

@truelockmc
Copy link

Call of Duty Blueprint Code:
ER9R-DSLGC-JREC
I dont play it so you can have it :)

@NakkOfLegend
Copy link

MC:
2YPG6-MQCYQ-39D43-3MM3P-FX7DZ

@NakkOfLegend
Copy link

CALL OF DUTY
FWWV-8M7QN-481E

@bigmac2010
Copy link

bigmac2010 commented Jun 21, 2024

ngl this actually works ! maybe some can't figure it out so i'm here to help u , so the 1st thing is this doesnt work on browser so go through the discord desktop application and install the ptb client version to use the console tab using ctrl+shift+i and make sure someone is with u in vc there is no special thing u need a friend it could be a bot also like i did with lofi-radio and if u cant paste the command by aamia then type allow pasting to enter the command and wait for atleast 15 - 20 mins and u r done. And lastly don't be a badge goblin just to show off ur badges to ur friends cuz u r risking ur whole computer just for a simple reward and a fricking badge.

@InfoBlock
Copy link

if anyone has a vaild code,text me on dc

Bro... just do this trick yourself and you get a code!

@cxb190007
Copy link

cxb190007 commented Jun 22, 2024

Minecraft Bedrock Trial Mask
3FMW7-KDCCT-3C79M-HCVW9-M2DCZ
3FW9K-6DF2Q-3C664-WFKC3-TDT4Z

@bakaxiaofang
Copy link

Minecraft Trial Mask:3MFYF-YCP46-YWCJ4-F3363-6VD4Z

@NIKITA12340-sudo
Copy link

Minecraft Trial Mask:3Q4D6-TQTRX-39H4Y-GWVMC-P9XCZ

@felixcplus
Copy link

If anyone needs it:
Minecraft Trial Mask: 3QXFV-JWRC4-7VDGP-QGRYG-KYMMZ

@MatuTheDragonCat
Copy link

HOW DO I DO THIS ON THE DESKTOP APP

@LuizWT
Copy link

LuizWT commented Jun 23, 2024

HOW DO I DO THIS ON THE DESKTOP APP

U need to Ctrl + Shift + I

@asyncedd
Copy link

im on vesktop. how do i do this?

@mahin12-ngl
Copy link

image
How do i fix this up??

@mahin12-ngl
Copy link

mahin12-ngl commented Jun 23, 2024

ngl this actually works ! maybe some can't figure it out so i'm here to help u , so the 1st thing is this doesnt work on browser so go through the discord desktop application and install the ptb client version to use the console tab using ctrl+shift+i and make sure someone is with u in vc there is no special thing u need a friend it could be a bot also like i did with lofi-radio and if u cant paste the command by aamia then type allow pasting to enter the command and wait for atleast 15 - 20 mins and u r done. And lastly don't be a badge goblin just to show off ur badges to ur friends cuz u r risking ur whole computer just for a simple reward and a fricking badge.

I have Minecraft and i'm streaming it
no risk at all!!

@Dylanvanschouwen
Copy link

Skill issue honestly. just figure it out it aint that hard.

@ZatrexReal
Copy link

ZatrexReal commented Jun 24, 2024

if you have minecraft trial mask code please dm me in discord: zatrex_123

@Trolleye-ux
Copy link

for me too please : wareye_yt

@BarievArtem
Copy link

Minecraft Trial Mask : 4Y22Q-RDYRP-XCRXV-3K76Y-QDQ7Z

@Mohammedsssshgdhfaf
Copy link

no longer works in browser??, then how im gonna do it?

@ZatrexReal
Copy link

no longer works in browser??, then how im gonna do it?

Download the app.for windows

@ZatrexReal
Copy link

Minecraft Trial Mask : 4Y22Q-RDYRP-XCRXV-3K76Y-QDQ7Z

Not working

@An0nX
Copy link

An0nX commented Jun 25, 2024

649FR-97GQG-PKDY4-F32CF-Y7KWZ

@aix05
Copy link

aix05 commented Jun 25, 2024

Minecraft Trial Mask: 67HC3-G4P92-R3MDT-RGJJQ-G9T3Z

@diziu
Copy link

diziu commented Jun 25, 2024

or can someone send me a code?

name : wareye_yt

Minecraft Trial Mask: 69KQR-6TFGG-4C962-T7TFY-KHR6Z

@Jetsooonie
Copy link

Here's a minecraft trial mask code for anyone in need! : 6MY2R-2FQYV-MP4WC-J7HT4-9JK3Z

@Trolleye-ux
Copy link

not vaild xddd

@Dyrr0th12
Copy link

Tenkiu

@BloxxxBlitz
Copy link

Yo, can someone do one for me? msg me it on discord: Blitzbloxxx

@ZappyMonster
Copy link

ZappyMonster commented Jun 27, 2024

Aamiaa does this code work on the newest console quest? Thanks. @aamiaa

@clearnet
Copy link

Aamiaa does this code work on the newest console quest? Thanks. @aamiaa

i have the same question

@Perationale
Copy link

HOW DO I DO THIS ON THE DESKTOP APP
https://www.youtube.com/watch?v=MV33-XB0gss&t

@Perationale
Copy link

Aamiaa does this code work on the newest console quest? Thanks. @aamiaa

i have the same question

same

@StarNumber12046
Copy link

Uncaught TypeError: Cannot read properties of undefined (reading 'target')
at :42:59
(anonymous) @ VM1979:42

@itIsMaku
Copy link

Uncaught TypeError: Cannot read properties of undefined (reading 'target') at :42:59 (anonymous) @ VM1979:42

Same here.

@Kacperdex123
Copy link

Does anyone else have a code for the trial mask for Minecraft Bedrock?

@PankKRB
Copy link

PankKRB commented Jun 27, 2024

Uncaught TypeError: Cannot read properties of undefined (reading 'target') at :42:59 (anonymous) @ VM1979:42

SAME

@happyendermangit
Copy link

if anyone is wondering, The console quest cant be done using this snippet.

@RODIOMG7
Copy link

when will this get updated for this console quest

@RODIOMG7
Copy link

Uncaught TypeError: Cannot read properties of undefined (reading 'target') at :42:59 (anonymous) @ VM1979:42

same

@metloub
Copy link

metloub commented Jun 27, 2024

I don't even have the "Start quest" option in my inventory.. bleh

@robotzone96
Copy link

Update for the new console quest please..

@AndrewEdgers
Copy link

if anyone is wondering, The console quest cant be done using this snippet.

you just guessing or you actually know this?

@Zixxu
Copy link

Zixxu commented Jun 27, 2024

where is the script

@TomerGamerTV
Copy link

Update for the new console quest please..

^

@MahmoudAli96505
Copy link

Does anyone else have a code for the trial mask for Minecraft Bedrock?

3WFMY-GT22V-FJWJ9-MDCRJ-6X3RZ

@aamiaa
Copy link
Author

aamiaa commented Jun 27, 2024

Update for the new console quest please..

I have no clue how does the console integration work, and I don't own a PS5 to check

@ZappyMonster
Copy link

Uncaught TypeError: Cannot read properties of undefined (reading 'target') at :42:59 (anonymous) @ VM1979:42

same

Same here :(

@Rex-XII
Copy link

Rex-XII commented Jun 27, 2024

Does anyone else have a code for the latest discord quest which requires a console and to play any game, i dont have the console so can anyone spare me a code, dm me here or in discord. my id is rex_xii_music

@DarknessSmile
Copy link

image
this error happens

@cursedConLaVocalC
Copy link

so this is broken now?

@Wincohax
Copy link

image this error happens

This is because the Console Quest is not supported.

And to anyone wondering, the play and stream quests still work.

@DarknessSmile
Copy link

DarknessSmile commented Jun 27, 2024

image this error happens

This is because the Console Quest is not supported.

And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

@teekayarezee
Copy link

teekayarezee commented Jun 27, 2024

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from
let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())
to
let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
That's what I did to complete the other quest

@DarknessSmile
Copy link

DarknessSmile commented Jun 27, 2024

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

its working! Bless you <3

@Mihoksama
Copy link

Mihoksama commented Jun 27, 2024

any scripte for the console quest

@MidoriyaRT
Copy link

MidoriyaRT commented Jun 27, 2024

you can use cloud gaming from xbox on your phone to complete console quest
also Play Fortnite with Xbox Cloud Gaming (Beta) no need game pass ultimate just link your discord account with xbox and play fortnite
https://www.xbox.com/en-us/play/games/bt5p2x999vh2
I recommend use phone

@RISHAB-CREATOR
Copy link

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

LOVE U MAN IT WORKED TYSM

@DarknessSmile
Copy link

you can use cloud gaming from xbox on your phone to complete console quest also Play Fortnite with Xbox Cloud Gaming (Beta) no need game pass ultimate just link your discord account with xbox and play fortnite https://www.xbox.com/en-us/play/games/bt5p2x999vh2 I recommend use phone

this also works! bless you<3

@RISHAB-CREATOR
Copy link

you can use cloud gaming from xbox on your phone to complete console quest also Play Fortnite with Xbox Cloud Gaming (Beta) no need game pass ultimate just link your discord account with xbox and play fortnite https://www.xbox.com/en-us/play/games/bt5p2x999vh2 I recommend use phone

DAMN THIS DID WORKED THX MAN !!
YOU ARE GREAT TOO

@burakfeverx
Copy link

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

Can you send me the full code?

@cryptofraud
Copy link

i cant find the code to paste in console

@teekayarezee
Copy link

And to anyone wondering, the play and stream quests still work.

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

Can you send me the full code?

Sure, I mean it's just the script from the OP but with line 21 amended to select the second available quest, but I'll include the full script below for ease of use. For anyone else searching, use the following script if you have also made the 'mistake' of activating both quests at the same time:

Click to expand
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}

@oexlsdojkxcf
Copy link

How does the console quest work? I don't have any consoles, but do I need a console to complete the quest? Or can I just play any kind of game on the Xbox app and just done? I don't get it.

@GitJamieK
Copy link

How does the console quest work? I don't have any consoles, but do I need a console to complete the quest? Or can I just play any kind of game on the Xbox app and just done? I don't get it.

Same here, tried with the xbox app and did not work, guess we can't do that quest or will have to wait for it to be added to the code^^

@HighAxolotol
Copy link

How does the console quest work? I don't have any consoles, but do I need a console to complete the quest? Or can I just play any kind of game on the Xbox app and just done? I don't get it.

It seems you need a console to do the quest I tried to do it with xbox app but it just says the (user) is online but is not playing any game . ig we have to wait and see if they find a way to do it with the script

@RISHAB-CREATOR
Copy link

e here, tried with the xbox app and did not work, guess we can't do that quest or will have to wait for it to be added to the code^^

its ez asf dude, create a microsoft account
link it with xbox , then link it with discord too
after this if not in unitedstates, then use a vpn for it
then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2
its free game,btw login here with the same account
wait for 10mins
NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

@Piggy6942
Copy link

e here, tried with the xbox app and did not work, guess we can't do that quest or will have to wait for it to be added to the code^^

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

Can you do a tutorial

@Mohamedhere2
Copy link

And to anyone wondering, the play and stream quests still work.

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

Can you send me the full code?

Sure, I mean it's just the script from the OP but with line 21 amended to select the second available quest, but I'll include the full script below for ease of use. For anyone else searching, use the following script if you have also made the 'mistake' of activating both quests at the same time:

Click to expand

working thank you <3

@Mohamedhere2
Copy link

let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
console.log("You don't have any uncompleted quests!")
} else {
const pid = Math.floor(Math.random() * 30000) + 1000

let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
if(quest.config.configVersion === 1) {
	applicationId = quest.config.applicationId
	applicationName = quest.config.applicationName
	secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
	secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
	canPlay = quest.config.variants.includes(2)
} else if(quest.config.configVersion === 2) {
	applicationId = quest.config.application.id
	applicationName = quest.config.application.name
	canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
	const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
	secondsNeeded = quest.config.taskConfig.tasks[taskName].target
	secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
}

if(canPlay) {
	api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
		const appData = res.body[0]
		const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
		
		const games = RunningGameStore.getRunningGames()
		const fakeGame = {
			cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
			exeName,
			exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
			hidden: false,
			isLauncher: false,
			id: applicationId,
			name: appData.name,
			pid: pid,
			pidPath: [pid],
			processName: appData.name,
			start: Date.now(),
		}
		games.push(fakeGame)
		FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				const idx = games.indexOf(fakeGame)
				if(idx > -1) {
					games.splice(idx, 1)
					FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
				}
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
	})
} else {
	let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
	ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
		id: applicationId,
		pid,
		sourceName: null
	})
	
	let fn = data => {
		let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
		console.log(`Quest progress: ${progress}/${secondsNeeded}`)
		
		if(progress >= secondsNeeded) {
			console.log("Quest completed!")
			
			ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
			FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		}
	}
	FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
	
	console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
	console.log("Remember that you need at least 1 other person to be in the vc!")
}

}

@Perationale
Copy link

Update for the new console quest please..

I have no clue how does the console integration work, and I don't own a PS5 to check

then ill do with fortnite

@Faf4a
Copy link

Faf4a commented Jun 28, 2024

The avatar decorations are just available in your inventory for 2 months, not worth it in my opinion.

@letmesologod
Copy link

The avatar decorations are just available in your inventory for 2 months, not worth it in my opinion.

True but its free so why not lol

@lebathang
Copy link

Mohamedhere2 Your cript working to me 💯 👍

image

let wpRequire;
window.webpackChunkdiscord_app.push([
   [Math.random()], {}, (req) => {
      wpRequire = req;
   }
]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if (window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
   api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
   api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if (!isApp) {
   console.log("This no longer works in browser. Use the desktop app!")
} else if (!quest) {
   console.log("You don't have any uncompleted quests!")
} else {
   const pid = Math.floor(Math.random() * 30000) + 1000

   let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
   if (quest.config.configVersion === 1) {
      applicationId = quest.config.applicationId
      applicationName = quest.config.applicationName
      secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
      secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
      canPlay = quest.config.variants.includes(2)
   } else if (quest.config.configVersion === 2) {
      applicationId = quest.config.application.id
      applicationName = quest.config.application.name
      canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
      const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
      secondsNeeded = quest.config.taskConfig.tasks[taskName].target
      secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
   }

   if (canPlay) {
      api.get({
         url: `/applications/public?application_ids=${applicationId}`
      }).then(res => {
         const appData = res.body[0]
         const exeName = appData.executables.find(x => x.os === "win32").name.replace(">", "")

         const games = RunningGameStore.getRunningGames()
         const fakeGame = {
            cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
            exeName,
            exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
            hidden: false,
            isLauncher: false,
            id: applicationId,
            name: appData.name,
            pid: pid,
            pidPath: [pid],
            processName: appData.name,
            start: Date.now(),
         }
         games.push(fakeGame)
         FluxDispatcher.dispatch({
            type: "RUNNING_GAMES_CHANGE",
            removed: [],
            added: [fakeGame],
            games: games
         })

         let fn = data => {
            let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
            console.log(`Quest progress: ${progress}/${secondsNeeded}`)

            if (progress >= secondsNeeded) {
               console.log("Quest completed!")

               const idx = games.indexOf(fakeGame)
               if (idx > -1) {
                  games.splice(idx, 1)
                  FluxDispatcher.dispatch({
                     type: "RUNNING_GAMES_CHANGE",
                     removed: [fakeGame],
                     added: [],
                     games: []
                  })
               }
               FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
            }
         }
         FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

         console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      })
   } else {
      let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
      ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
         id: applicationId,
         pid,
         sourceName: null
      })

      let fn = data => {
         let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
         console.log(`Quest progress: ${progress}/${secondsNeeded}`)

         if (progress >= secondsNeeded) {
            console.log("Quest completed!")

            ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
            FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
         }
      }
      FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

      console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      console.log("Remember that you need at least 1 other person to be in the vc!")
   }
}

@GuidingLight20
Copy link

It worked for the Fortnite quest, but it doesnt work on the console quest. Please make a new script update where it supports the console quest.

@Piggy6942
Copy link

Mohamedhere2 Your cript working to me 💯 👍

image

let wpRequire;
window.webpackChunkdiscord_app.push([
   [Math.random()], {}, (req) => {
      wpRequire = req;
   }
]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if (window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
   api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
   api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if (!isApp) {
   console.log("This no longer works in browser. Use the desktop app!")
} else if (!quest) {
   console.log("You don't have any uncompleted quests!")
} else {
   const pid = Math.floor(Math.random() * 30000) + 1000

   let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
   if (quest.config.configVersion === 1) {
      applicationId = quest.config.applicationId
      applicationName = quest.config.applicationName
      secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
      secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
      canPlay = quest.config.variants.includes(2)
   } else if (quest.config.configVersion === 2) {
      applicationId = quest.config.application.id
      applicationName = quest.config.application.name
      canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
      const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
      secondsNeeded = quest.config.taskConfig.tasks[taskName].target
      secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
   }

   if (canPlay) {
      api.get({
         url: `/applications/public?application_ids=${applicationId}`
      }).then(res => {
         const appData = res.body[0]
         const exeName = appData.executables.find(x => x.os === "win32").name.replace(">", "")

         const games = RunningGameStore.getRunningGames()
         const fakeGame = {
            cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
            exeName,
            exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
            hidden: false,
            isLauncher: false,
            id: applicationId,
            name: appData.name,
            pid: pid,
            pidPath: [pid],
            processName: appData.name,
            start: Date.now(),
         }
         games.push(fakeGame)
         FluxDispatcher.dispatch({
            type: "RUNNING_GAMES_CHANGE",
            removed: [],
            added: [fakeGame],
            games: games
         })

         let fn = data => {
            let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
            console.log(`Quest progress: ${progress}/${secondsNeeded}`)

            if (progress >= secondsNeeded) {
               console.log("Quest completed!")

               const idx = games.indexOf(fakeGame)
               if (idx > -1) {
                  games.splice(idx, 1)
                  FluxDispatcher.dispatch({
                     type: "RUNNING_GAMES_CHANGE",
                     removed: [fakeGame],
                     added: [],
                     games: []
                  })
               }
               FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
            }
         }
         FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

         console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      })
   } else {
      let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
      ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
         id: applicationId,
         pid,
         sourceName: null
      })

      let fn = data => {
         let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
         console.log(`Quest progress: ${progress}/${secondsNeeded}`)

         if (progress >= secondsNeeded) {
            console.log("Quest completed!")

            ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
            FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
         }
      }
      FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

      console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      console.log("Remember that you need at least 1 other person to be in the vc!")
   }
}

How do you do it in browser

@Tlicarek
Copy link

It worked for the Fortnite quest, but it doesnt work on the console quest. Please make a new script update where it supports the console quest.

I agree. We need a new script for the console quest.

@Onur-Vatansever
Copy link

it says You don't have any uncompleted quests!but i didnt do these two quests

@PankKRB
Copy link

PankKRB commented Jun 28, 2024

And to anyone wondering, the play and stream quests still work.

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

Can you send me the full code?

Sure, I mean it's just the script from the OP but with line 21 amended to select the second available quest, but I'll include the full script below for ease of use. For anyone else searching, use the following script if you have also made the 'mistake' of activating both quests at the same time:

Click to expand

let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}

image

@Tluxxa
Copy link

Tluxxa commented Jun 28, 2024

i cant find the code to paste in console

let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].find(x => x.id !== "1245082221874774016" && x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}

@Miho1254
Copy link

Miho1254 commented Jun 28, 2024

You don't have any uncompleted quests!
undefined

any solution?

@KatsuMaki1
Copy link

Looking for a solution about the "You don't have any uncompleted quests!" issue.
Thanks in advance

@lebathang
Copy link

lebathang commented Jun 28, 2024

How do you do it in browser

Piggy6942 Please read carefully, guy 😐

Note

This no longer works in browser!.

@W4rping
Copy link

W4rping commented Jun 28, 2024

image this error happens

This is because the Console Quest is not supported.
And to anyone wondering, the play and stream quests still work.

Yeah but I enabled both at the same time, what now? I'm screwed ig

change line 21 from let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now()) to let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1] That's what I did to complete the other quest

hey i cant see thee code anymore. does someone have it?

@ningno
Copy link

ningno commented Jun 28, 2024

when I try the code you guys did, it say You don't have any uncompleted quests! But I have 2 remaining, what am i suppose to do

@ningno
Copy link

ningno commented Jun 28, 2024

Looking for a solution about the "You don't have any uncompleted quests!" issue. Thanks in advance

same im getting same error :(

@aamiaa
Copy link
Author

aamiaa commented Jun 28, 2024

when I try the code you guys did, it say You don't have any uncompleted quests! But I have 2 remaining, what am i suppose to do

Which ones?

@ningno
Copy link

ningno commented Jun 28, 2024

when I try the code you guys did, it say You don't have any uncompleted quests! But I have 2 remaining, what am i suppose to do

Which ones?

consol one and the fortnite one, i just did the minecraft

@ningno
Copy link

ningno commented Jun 28, 2024

oh wait i tried ur code again and now it works, but i dont think consol one works

@ningno
Copy link

ningno commented Jun 28, 2024

any codes for consol quest?

@minhdaolesoez
Copy link

Mohamedhere2 Your cript working to me 💯 👍

image

let wpRequire;
window.webpackChunkdiscord_app.push([
   [Math.random()], {}, (req) => {
      wpRequire = req;
   }
]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if (window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
   api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
   ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
   RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
   QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
   ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
   FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
   api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].filter(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())[1]
let isApp = navigator.userAgent.includes("Electron/")
if (!isApp) {
   console.log("This no longer works in browser. Use the desktop app!")
} else if (!quest) {
   console.log("You don't have any uncompleted quests!")
} else {
   const pid = Math.floor(Math.random() * 30000) + 1000

   let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
   if (quest.config.configVersion === 1) {
      applicationId = quest.config.applicationId
      applicationName = quest.config.applicationName
      secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
      secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
      canPlay = quest.config.variants.includes(2)
   } else if (quest.config.configVersion === 2) {
      applicationId = quest.config.application.id
      applicationName = quest.config.application.name
      canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
      const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
      secondsNeeded = quest.config.taskConfig.tasks[taskName].target
      secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
   }

   if (canPlay) {
      api.get({
         url: `/applications/public?application_ids=${applicationId}`
      }).then(res => {
         const appData = res.body[0]
         const exeName = appData.executables.find(x => x.os === "win32").name.replace(">", "")

         const games = RunningGameStore.getRunningGames()
         const fakeGame = {
            cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
            exeName,
            exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
            hidden: false,
            isLauncher: false,
            id: applicationId,
            name: appData.name,
            pid: pid,
            pidPath: [pid],
            processName: appData.name,
            start: Date.now(),
         }
         games.push(fakeGame)
         FluxDispatcher.dispatch({
            type: "RUNNING_GAMES_CHANGE",
            removed: [],
            added: [fakeGame],
            games: games
         })

         let fn = data => {
            let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
            console.log(`Quest progress: ${progress}/${secondsNeeded}`)

            if (progress >= secondsNeeded) {
               console.log("Quest completed!")

               const idx = games.indexOf(fakeGame)
               if (idx > -1) {
                  games.splice(idx, 1)
                  FluxDispatcher.dispatch({
                     type: "RUNNING_GAMES_CHANGE",
                     removed: [fakeGame],
                     added: [],
                     games: []
                  })
               }
               FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
            }
         }
         FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

         console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      })
   } else {
      let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
      ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
         id: applicationId,
         pid,
         sourceName: null
      })

      let fn = data => {
         let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
         console.log(`Quest progress: ${progress}/${secondsNeeded}`)

         if (progress >= secondsNeeded) {
            console.log("Quest completed!")

            ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
            FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
         }
      }
      FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)

      console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
      console.log("Remember that you need at least 1 other person to be in the vc!")
   }
}

bro hướng dẫn tui đc ko

@manish121597
Copy link

please again explain me what can i do for fortnite crown badge claim

@manish121597
Copy link

wtf
Uploading image.png…

@lebathang
Copy link

bro hướng dẫn tui đc ko

minhdaolesoez có hướng dẫn của tg chủ thớt đó, bật gg dịch lên đọc 😐

@BussyBakks
Copy link

BussyBakks commented Jun 29, 2024

PIN IT:
this works for fortnite:

let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].find(x => x.id !== "1245082221874774016" && x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}

checked:
image

@Korsinemi
Copy link

Gaming console script?

@devmao3
Copy link

devmao3 commented Jun 29, 2024

hmm gaming console script?

@acoolg
Copy link

acoolg commented Jun 29, 2024

let them make it

@MagicAyush
Copy link

ye i need console skript

@searinminecraft
Copy link

this gist is becoming chaos, this really needs to be locked down if possible

@xtyze
Copy link

xtyze commented Jun 29, 2024

how do i do this in desktop app?

@RISHAB-CREATOR
Copy link

Gaming console script?

its ez asf dude, create a microsoft account
link it with xbox , then link it with discord too
after this if not in unitedstates, then use a vpn for it
then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2
its free game,btw login here with the same account
wait for 10mins
NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

@RISHAB-CREATOR
Copy link

how do i do this in desktop app?

download this ptb version
https://discord.com/api/downloads/distributions/app/installers/latest?channel=ptb&platform=win&arch=x64
press ctrl+shift+i
go to console tab, type 'allow pasting'
then paste this script

@InaBuild
Copy link

this gist is becoming chaos, this really needs to be locked down if possible

yeah i kinda agree with you

@manish121597
Copy link

plz anyone explain me in hindi and english how to claim fortnite crown

@Onur-Vatansever
Copy link

i cant find the code to paste in console

let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let ApplicationStreamingStore, RunningGameStore, QuestsStore, ExperimentStore, FluxDispatcher, api
if(window.GLOBAL_ENV.SENTRY_TAGS.buildId === "366c746173a6ca0a801e9f4a4d7b6745e6de45d4") {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getRunningGames).exports.default;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getGuildExperiments).exports.default;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.default?.flushWaitQueue).exports.default;
	api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
} else {
	ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getStreamerActiveStreamMetadata).exports.Z;
	RunningGameStore = Object.values(wpRequire.c).find(x => x?.exports?.ZP?.getRunningGames).exports.ZP;
	QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getQuest).exports.Z;
	ExperimentStore = Object.values(wpRequire.c).find(x => x?.exports?.Z?.getGuildExperiments).exports.Z;
	FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.Z?.flushWaitQueue).exports.Z;
	api = Object.values(wpRequire.c).find(x => x?.exports?.tn?.get).exports.tn;
}

let quest = [...QuestsStore.quests.values()].find(x => x.id !== "1245082221874774016" && x.userStatus?.enrolledAt && !x.userStatus?.completedAt && new Date(x.config.expiresAt).getTime() > Date.now())
let isApp = navigator.userAgent.includes("Electron/")
if(!isApp) {
	console.log("This no longer works in browser. Use the desktop app!")
} else if(!quest) {
	console.log("You don't have any uncompleted quests!")
} else {
	const pid = Math.floor(Math.random() * 30000) + 1000
	
	let applicationId, applicationName, secondsNeeded, secondsDone, canPlay
	if(quest.config.configVersion === 1) {
		applicationId = quest.config.applicationId
		applicationName = quest.config.applicationName
		secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
		secondsDone = quest.userStatus?.streamProgressSeconds ?? 0
		canPlay = quest.config.variants.includes(2)
	} else if(quest.config.configVersion === 2) {
		applicationId = quest.config.application.id
		applicationName = quest.config.application.name
		canPlay = ExperimentStore.getUserExperimentBucket("2024-04_quest_playtime_task") > 0 && quest.config.taskConfig.tasks["PLAY_ON_DESKTOP"]
		const taskName = canPlay ? "PLAY_ON_DESKTOP" : "STREAM_ON_DESKTOP"
		secondsNeeded = quest.config.taskConfig.tasks[taskName].target
		secondsDone = quest.userStatus?.progress?.[taskName]?.value ?? 0
	}

	if(canPlay) {
		api.get({url: `/applications/public?application_ids=${applicationId}`}).then(res => {
			const appData = res.body[0]
			const exeName = appData.executables.find(x => x.os === "win32").name.replace(">","")
			
			const games = RunningGameStore.getRunningGames()
			const fakeGame = {
				cmdLine: `C:\\Program Files\\${appData.name}\\${exeName}`,
				exeName,
				exePath: `c:/program files/${appData.name.toLowerCase()}/${exeName}`,
				hidden: false,
				isLauncher: false,
				id: applicationId,
				name: appData.name,
				pid: pid,
				pidPath: [pid],
				processName: appData.name,
				start: Date.now(),
			}
			games.push(fakeGame)
			FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [], added: [fakeGame], games: games})
			
			let fn = data => {
				let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.PLAY_ON_DESKTOP.value)
				console.log(`Quest progress: ${progress}/${secondsNeeded}`)
				
				if(progress >= secondsNeeded) {
					console.log("Quest completed!")
					
					const idx = games.indexOf(fakeGame)
					if(idx > -1) {
						games.splice(idx, 1)
						FluxDispatcher.dispatch({type: "RUNNING_GAMES_CHANGE", removed: [fakeGame], added: [], games: []})
					}
					FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
				}
			}
			FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			
			console.log(`Spoofed your game to ${applicationName}. Wait for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		})
	} else {
		let realFunc = ApplicationStreamingStore.getStreamerActiveStreamMetadata
		ApplicationStreamingStore.getStreamerActiveStreamMetadata = () => ({
			id: applicationId,
			pid,
			sourceName: null
		})
		
		let fn = data => {
			let progress = quest.config.configVersion === 1 ? data.userStatus.streamProgressSeconds : Math.floor(data.userStatus.progress.STREAM_ON_DESKTOP.value)
			console.log(`Quest progress: ${progress}/${secondsNeeded}`)
			
			if(progress >= secondsNeeded) {
				console.log("Quest completed!")
				
				ApplicationStreamingStore.getStreamerActiveStreamMetadata = realFunc
				FluxDispatcher.unsubscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
			}
		}
		FluxDispatcher.subscribe("QUESTS_SEND_HEARTBEAT_SUCCESS", fn)
		
		console.log(`Spoofed your stream to ${applicationName}. Stream any window in vc for ${Math.ceil((secondsNeeded - secondsDone) / 60)} more minutes.`)
		console.log("Remember that you need at least 1 other person to be in the vc!")
	}
}

THANKS FOR CODE IT WORKS TO ME

@manish121597
Copy link

please explain full process of clainm fortnite crown means make video. you don't make video then explain step by step plz

@Onur-Vatansever
Copy link

please explain full process of clainm fortnite crown means make video. you don't make video then explain step by step plz

firstly accept quest from gift inventory after that ctrl+shift+i then found console write allow pasting and paste this code lastly wait 15 min

@aamiaa
Copy link
Author

aamiaa commented Jun 29, 2024

this gist is becoming chaos, this really needs to be locked down if possible

Sadly you can't lock gists

@MagicAyush
Copy link

this gist is becoming chaos, this really needs to be locked down if possible

no?

@MagicAyush
Copy link

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

OMG THIS WORKS!

@RISHAB-CREATOR
Copy link

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

OMG THIS WORKS!

btw now use this gist script , to claim that fortnite crown quest

@ziad0153
Copy link

صورة

يمكنك ان تكتب

@MeIsGaming
Copy link

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

This should 100% be added to this gist, worked from germany without vpn. Thank you for your help!

@bot910
Copy link

bot910 commented Jun 29, 2024

how do i run it in desktop app?
there is no devtools console there?

@bot910
Copy link

bot910 commented Jun 29, 2024

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

this didnt work for me, the fortnite quest never register i was playing, i connected with same account

@bot910
Copy link

bot910 commented Jun 29, 2024

can anyone help me

@MeIsGaming
Copy link

how do i run it in desktop app? there is no devtools console there?

look in FAQ

FAQ
Q: Ctrl + Shift + I doesn't work

A: Either download the ptb client, or use this to enable DevTools on stable

@Onur-Vatansever
Copy link

how do i run it in desktop app? there is no devtools console there?

use discord ptb.

@RISHAB-CREATOR
Copy link

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

this didnt work for me, the fortnite quest never register i was playing, i connected with same account

DUDE IT IS FOR CONSOLE QUEST NOT FORTNITE ONE

@Skwipo
Copy link

Skwipo commented Jun 29, 2024

anyone got a console script for pc ? i dont have a console

@MeIsGaming
Copy link

anyone got a console script for pc ? i dont have a console

brother by god scroll up a few comments, and look at @RISHAB-CREATOR s response

@Skwipo
Copy link

Skwipo commented Jun 29, 2024

anyone got a console script for pc ? i dont have a console

brother by god scroll up a few comments, and look at @RISHAB-CREATOR s response

instructions unclear im now locked up in prison send lawyer

@Skwipo
Copy link

Skwipo commented Jun 29, 2024

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

works ty

@RISHAB-CREATOR
Copy link

RISHAB-CREATOR commented Jun 29, 2024

anyone got a console script for pc ? i dont have a console

brother by god scroll up a few comments, and look at @RISHAB-CREATOR s response

instructions unclear im now locked up in prison send lawyer

us dude, even i somehow ended up making uranium bomb (little boy)

@fgr178707
Copy link

有人有 PC 的控制台脚本吗?我没有控制台

https://gist.github.com/aamiaa/204cd9d42013ded9faf646fae7f89fbb#faq

@techie-chad
Copy link

This worked Great!
Thank you very much <3

@mahin12-ngl
Copy link

How do i finish the Console Quest???

i already have the Crown...

@RISHAB-CREATOR
Copy link

RISHAB-CREATOR commented Jun 30, 2024

How do i finish the Console Quest???

i already have the Crown...

its ez asf dude, create a microsoft account
link it with xbox , then link it with discord too
after this if not in unitedstates, then use a vpn for it
then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2
its free game,btw login here with the same account
wait for 10mins
NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

@ningno
Copy link

ningno commented Jun 30, 2024

Gaming console script?

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

thx it works

@xunchann
Copy link

xunchann commented Jul 2, 2024

where is the code?

@lomexicano
Copy link

where is the code?

@xunchann right below step 4 there is a "click to expand" button

@lajawi
Copy link

lajawi commented Jul 2, 2024

Does this work with quests that require you to play on a console?

@MeIsGaming
Copy link

Does this work with quests that require you to play on a console?

Why dont you just scroll up 4 comments and use the solution given there, which has been repeated the 100th time now here?

@RuriYoshinova
Copy link

RuriYoshinova commented Jul 3, 2024

can yall shut the fuck up. github should start banning kids in their platform, it's being infested.

@wolfieboy09
Copy link

image
How would this work?

@Tr0llie
Copy link

Tr0llie commented Jul 3, 2024

i was just wondering if the console playing discord thingy works on linux, i know most people use windows but i use linux and idk if i have a spare windows computer

@Tr0llie
Copy link

Tr0llie commented Jul 3, 2024

image How would this work?

If u were to back read, you would know.
anyway heres the link
https://gist.github.com/aamiaa/204cd9d42013ded9faf646fae7f89fbb?permalink_comment_id=5106629#gistcomment-5106629

@MeIsGaming
Copy link

i was just wondering if the console playing discord thingy works on linux, i know most people use windows but i use linux and idk if i have a spare windows computer

It should, if you try it, let me know!

@Twelffth
Copy link

Twelffth commented Jul 3, 2024

Can someone give me a vpn to use?

@baonguyenhaquoc
Copy link

How do i finish the Console Quest???
i already have the Crown...

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

Thanks, it works very well
image

@aamiaa
Copy link
Author

aamiaa commented Jul 3, 2024

I've updated the gist with a tutorial on how to do the console quest. Thanks to everyone who found it in the comments!

@Wasim161298
Copy link

Can someone give me a vpn to use?

yea men plz someone give a vpn this would be very thankfull

@PrototypeGR
Copy link

PrototypeGR commented Jul 3, 2024

How do i finish the Console Quest???
i already have the Crown...

its ez asf dude, create a microsoft account link it with xbox , then link it with discord too after this if not in unitedstates, then use a vpn for it then just play this : https://www.xbox.com/en-us/play/games/bt5p2x999vh2 its free game,btw login here with the same account wait for 10mins NOTE : IF YOU ARE ON PC, ALL STEPS WOULD WORK, BUT IF U ON MOBILE JUST CHANGE THE VIEW TO DESKTOP WHILE VISITING THE XBOX PLAY LINK

Do this^, download Urban VPN proxy addon for Firefox or Chrome, choose United States and it will start working

@lazuee
Copy link

lazuee commented Jul 4, 2024

Console Quest

@2xuhd
Copy link

2xuhd commented Jul 4, 2024

thanks ez complete 2 mission

@itsmechinmoy
Copy link

thanks ez complete 2 mission

it showed cant do it in browser even though i was using the stable desktop app

@SagiriHimoto
Copy link

SagiriHimoto commented Jul 4, 2024

what if I'm using the worst laptop ever and don't have spare 90gb on my drive

image
EDIT:
You don't have to install anything. Use cloud gaming.

@PSYCHO1512
Copy link

The script is working for play Fortnite reload for 15 minutes quest also

@VortexCombat
Copy link

Can someone give me a vpn to use?

Bright VPN

@Tr0llie
Copy link

Tr0llie commented Jul 4, 2024

i was just wondering if the console playing discord thingy works on linux, i know most people use windows but i use linux and idk if i have a spare windows computer

It should, if you try it, let me know!

idk if u noticed but xbox is not supported on linux

@covyu
Copy link

covyu commented Jul 4, 2024

How to complete a quest on Discord without an Xbox. I made a video about it, you can watch it.
https://youtu.be/u89Bx_fobuI

@TechySkills
Copy link

Console Quest

Can I play minecraft bedrock instead of fortnite?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment