Jump to content

Recommended Posts

Posted

So would this work?

Scriptname CaDW_Block_Null_Item extends Quest

Keyword property CaDW_WeaponModMissing auto
ObjectReference property CaDW_RPWW_Container auto

Event OnQuestInit()
  RegisterForMenuOpenCloseEvent("BarterMenu")
endEvent

Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening)
	if (asMenuName== "BarterMenu")
		if (abOpening)
			Game.GetPlayer().RemoveItem(CaDW_WeaponModMissing, -1, true, CaDW_RPWW_Container)
		else
			CaDW_RPWW_Container.RemoveItem(CaDW_WeaponModMissing, -1, true, game.getplayer())
		endif
	endif
endEvent
Posted

Well it runs,

 

But now things vanish from my inv and dont return.

 

I teleported to the container and it says its empty when i hover my curser over it but i cant tell as it is locked and cant be picked.

Posted (edited)
I have read somewhere that you cannot move items to container if it isn't loaded. I don't remmember what was the solution, but making alias of your container reference will probably force it to be loaded when quest is loaded. Edited by shavkacagarikia
Posted

Hmm, i think i will go to container and spawn a merchant first and see what happens.

 

I am not sure how you would make an alias of a container so I will look that up too.

Posted

Well I teleported to the container and used my portable workbench which used the container just fine and then spawned a trader and traded and the weapons went but didnt return. some reason I dont think its going into the container.

Posted
Weird. Have you tried making alias of your container reference? It's easy, go to quest alias tab, then make new reference alias. Inside for fill ttpe choose specific reference and point to your container. Click okeys and that should be all.
Posted

Hi, just got back home.

 

Made it an alias and still no luck. Did the trading standing on the container. I used console to unlock the unlockable container and you can definitely tell if it is empty or not when locked.

 

It definitely getting to that line of the script as it removes items from inv but dousnt arrive at the container.

 

Odd it works fine with a formlist for the workbench but I switch it to a keyword for trading and the line dousnt work anymore.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...