scn IMCNVendorChestQuestScriptref rTargetbegin gamemode set rTarget to VendorContainerOldLadyGibsonREF IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to MickMerchantBoxREF IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to VendorContainerJohnsonNashREF IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to VendorContainerCliffBriscoeREF IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to D6F5F ; Carter IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to FD56D ; Blake IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to F1B0D ; Angelo IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to E5F33 ; Michelle IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDif set rTarget to "104C7A" ; Chet IF rTarget.getitemcount IMCNVendorToken ELSE rTarget.additem IMCNMiscStuff 1 rTarget.additem IMCNVendorToken 1 ENDifend
wrDENVVendorContGRVendortronRef.RemoveAllItems 000ED4CF
Begin OnLoad If (wrDENVVendorContGRVendortronRef.GetItemCount Caps001 > 0) wrDENVVendorContGRVendortronRef.RemoveAllItems 000ED4CF ; Display a debug message alert EndIfEnd
scn MyItemDistributionQuestScriptshort doonce ;;this thing makes sure the script only runs once and doesnt clog the container with your stuff aswell as not lagging the gamebegin gamemodeif doonce == 0addleveleditem GunRunnerHQStoreGuns yourLeveledListfullofstuffyouwannasell 3 2 1 ;; adds 2 leveled lists to the gunrunner HQ aka a list inside vendertron's chest at level 3 with a condition of 100%set doonce to 1stopquest MyItemDistributionQuest ;;stops the quest and script from running and frees up performanceendifend
VendorContainerGunRunnerHQ.additem Mylevellistfullofstuff 1
if player.getitemcount myItem >= 1GunRunnerHQStoreGuns.removeitem myItem 1 endif
begin onAdd playerGunRunnerHQStoreGuns.removeitem myItem 1 end
vendertronico.addtofaction mynewweirdoronicfaction 1) you create to which you can set ownership of the chest, not that you would need that anyway as there are enough other possibilities of which i listed some above
scn wrDENVStartupScriptshort DoOnceAddVendortronToFactionBegin GameMode If (DoOnceAddVendortronToFaction == 0) VendortronRef.AddToFaction wrDENVGunRunnerVendortron 1 Set DoOnceAddVendortronToFaction To 1 ;ShowMessage somemessageID EndIf StopQuest wrDENVStartupEnd
scn DAVendortronFactionQuestScriptBegin GameMode VendortronRef.AddToFaction DAVendortronFaction 1 StopQuest DAVendortronFactionQuest End