Page 1 of 1

[CYBERPUNK 2077] Delete a quest item

Posted: Tue Dec 15, 2020 2:29 pm
by Ultor
Hi, I'm trying to delete a weapon added using the console, out of ignorance I used a quest weapon preset, so it's impossible to destroy it, throw it away or sell it
I used this command to add the weapon:

Code: Select all

player.inventory.addItem(Items.Preset_Q001_Lexington,1)
Of course, I tried with command line:

Code: Select all

player.inventory.removeItem(Items.Preset_Q001_Lexington,1) 
I thought of using the inventory editor in some cheat tables, but the weapon is not referenced, I think it needs the hash, I'm talkink about something like

Code: Select all

dq 000000000181345A // Items.RareMaterial1
But for the "Items.Preset_Q001_Lexington" => Dying Night.

or maybe a way to "restart" the quest to "validate" the item and remove the "quest flag", I dont know...


If someone have an idea :)


Sincerely,
Ultor

Re: [CYBERPUNK 2077] Delete a quest item

Posted: Thu Dec 17, 2020 12:14 am
by The Mogician
1. Are you sure you put it in correctly? Because if you did input it in correctly, it wouldn't make sense to not be available for the removal command.

2. Have you tried adding in -1 amount of that item?

3. Alternatively you can just load a save before you executed that command.

Re: [CYBERPUNK 2077] Delete a quest item

Posted: Thu Dec 17, 2020 1:41 pm
by stabber
I'm in the same situation and actually I didn't even mod yet.
Just happened to get two of Johnny's Shoes somehow and I'm stuck with both since a long time ago so going to a previous save is not possible.

Tried the player.inventory.removeItem with -1 but no luck.

Seems silly they don't even let you drop these iconic/quest items.

Re: [CYBERPUNK 2077] Delete a quest item

Posted: Thu Dec 17, 2020 10:04 pm
by HellaLegitFoo
stabber wrote:
Thu Dec 17, 2020 1:41 pm
I'm in the same situation and actually I didn't even mod yet.
Just happened to get two of Johnny's Shoes somehow and I'm stuck with both since a long time ago so going to a previous save is not possible.

Tried the player.inventory.removeItem with -1 but no luck.

Seems silly they don't even let you drop these iconic/quest items.
I'm in the same boat except I crafted the higher tier versions of Johnny's clothes so now I'm stuck with the rare versions even though I can craft the epic versions... I loaded up a previous save because it'll drive me crazy having those items sit in my inventory (-_-;)

Re: [CYBERPUNK 2077] Delete a quest item

Posted: Fri Dec 18, 2020 12:32 am
by Master_Builder
removeItem works perfectly file with money or something static like that.
Weapons can level and don't stack, they're more instanced. I don't think the command can remove items like that at all.

And even if you add the item then immediately try and remove it, removal fails.

It's a pain too since all those 'duplicate' items come from upgrading quest items. This doesn't remove the lower level quest item and so you get both. Like with Johnny's shoes.

If you need a list of quest related items to test with, here you go:

Code: Select all

player.inventory.addItem(Items.Preset_Yukimura_Skippy,1) // Skippy (No legendary upgrade?)
player.inventory.addItem(Items.Preset_Silverhand_3516,1) // Johnny's Gun (Malorian Arms 3516)
player.inventory.addItem(Items.Preset_Overture_River,1) // Crash
player.inventory.addItem(Items.Preset_Overture_Cassidy,1) // Amnesty
player.inventory.addItem(Items.Preset_Q001_Lexington,1) // Dying Night (Use Preset_Lexington_Wilson instead.)

player.inventory.addItem(Items.Q005_Johnny_Glasses,1)
player.inventory.addItem(Items.Q005_Johnny_Shoes,1)
player.inventory.addItem(Items.Q005_Johnny_Shoes,1)
player.inventory.addItem(Items.Q005_Johnny_Shirt,1)