stonefisher Posted June 10, 2017 Author Share Posted June 10, 2017 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 Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 10, 2017 Share Posted June 10, 2017 Never tried that event, I always use OnInit but that should work as well Link to comment Share on other sites More sharing options...
stonefisher Posted June 10, 2017 Author Share Posted June 10, 2017 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. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 11, 2017 Share Posted June 11, 2017 (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 June 11, 2017 by shavkacagarikia Link to comment Share on other sites More sharing options...
stonefisher Posted June 11, 2017 Author Share Posted June 11, 2017 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. Link to comment Share on other sites More sharing options...
stonefisher Posted June 11, 2017 Author Share Posted June 11, 2017 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. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 11, 2017 Share Posted June 11, 2017 Btw make sure respawn flag isn't checked for your container. Link to comment Share on other sites More sharing options...
stonefisher Posted June 11, 2017 Author Share Posted June 11, 2017 Thx, it wasnt/isnt flagged respawn. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted June 11, 2017 Share Posted June 11, 2017 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. Link to comment Share on other sites More sharing options...
stonefisher Posted June 11, 2017 Author Share Posted June 11, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts