Unless someone can fix the item sort bug don't get this mod. That just kills it. Is there a way to just remove the clothing sorting? Seems like the easiest solution but I know nothing about modding.
I'm not sure when you will see this, but if you scroll down through the posts, you will see what, I think, @thelordelric is referring to. I've played with this mod many times, and I don't always encounter this, but I also sometimes just use an older version. Some people experience a constant spamming of the sound and message pop-up of items sorted whenever they enter the broom closet. It is like the script is either constantly being re-activated, or the activator is stuck. Several posts mention it, and a few give fix suggestions to those that are annoyed by it.
As a side note, thank you for all of your years of wonderful mods. I use at least one of you mods in every playthrough of any Elder Scrolls or Fallout game.
I don't even have Morrowind installed anymore, I would have to go find the disc's. Same for the construction set I guess.
Also, I assume Morrowind is available on Steam, so that version may be different than the version this mod was created for. Dunno.
But I can look over the posts below and install the CS this weekend to check on the issue. I suspect the sort is being activated and before it finishes the player is leaving the cell which may mess up the scripts. I certainly never had any issue with it.
I reinstalled the game. I am guessing the script for Expensive was too long, and not having the script extender the game did not know what to do with the script so it spammed it. I split the expensive script in two and now have two buttons for sorting expensive clothing. I did not get the clothing spammed anymore, can somebody else please try it and report back here? Thanks, updated to version 2.1
I loaded up Version 2.1 and started a new game. The problem has been fixed. Then, I went ahead and tried it with my current save, where I had already visited and stored things in chests. I still had all of my Leveler's items, and when I teleported back to the broom closet, everything was still in my storage chests. So, it should be alright to just update with a current save. Or, it was for me anyway. Thanks for the fix, hopefully more people will benefit from this great mod now. As a side note...I always just turned my headphones volume down when I was in the closet. If it had bothered me enough, I would have opened the CS and fixed it, but I know, not everyone is able to do that. I'm glad you decided to check the post. I'm sure the issue was "bugging" you once you knew it existed.
So, I am trying to use this with TES3MP as a moderator/admin support center for when in game, but due to the latest update of TES3MP, multiplayer games block off the Census Office to prevent some errors.
Does anyone happen to have the item code for the teleport item to return to the Broom Closet handy? Or know the cell ID for direct teleport using console? Trying to find these with the construction set, but not yet having much luck.
Make sure to activate the file among the other game plugins, if you have not. Also keep in mind, the door to this place is behind a fake wall in the cellar of the starting building in game. So, go into the cellar where the two barrels are, look right (as you enter the door) and the wall should be activatable.
The problem here for us is with sounds and messages: So I just deleted lines which run these effects from scripts that AYLeiDRuiN has mentioned. Here are they:
Hi fellow Mod Lovers I have the same problem with the clothing scripts. found maybe a workaround?... but not really :/
Open up LevelersBroomCloset.esp in Construction kit. Select "Edit Scripts" under 'Gameplay'. Delete 'LEV_Sort_ClothingC_scpt', 'LEV_Sort_ClothingE_scpt' and 'LEV_Sort_ClothingO_scpt'. You WILL get errors saying: that they are missing. Did that and went to the broom closet from balmora via Silt Strider. No 10x a second messages while there. Should be good? I don't know :/
I think I'm going to revert back to v2. I may try v1 also. I have a lvl36 char. and I don't want to mess with it. Today was my first visit to the Levelers Broom Closet and reminds me that when I add mods I should Test Them 1st xD
Thank You WilliamSea!
PS: If anyone is fluent in scripts here is the shortest of the 3 scripts in Question:
'LEV_Sort_Clothing0_scpt'
Spoiler:
Show
Begin LEV_Sort_ClothingO_scpt
if ( menumode == 1 ) return endif
if ( OnActivate == 1 ) short myCnt
set myCnt to ( Player->GetItemCount, "imperial belt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "imperial belt", 1 Player->RemoveItem, "imperial belt", 1 set myCnt to ( Player->GetItemCount, "imperial belt" ) endwhile
set myCnt to ( Player->GetItemCount, "imperial skirt_clothing" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "imperial skirt_clothing", 1 Player->RemoveItem, "imperial skirt_clothing", 1 set myCnt to ( Player->GetItemCount, "imperial skirt_clothing" ) endwhile
set myCnt to ( Player->GetItemCount, "indoril_belt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "indoril_belt", 1 Player->RemoveItem, "indoril_belt", 1 set myCnt to ( Player->GetItemCount, "indoril_belt" ) endwhile
set myCnt to ( Player->GetItemCount, "templar belt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "templar belt", 1 Player->RemoveItem, "templar belt", 1 set myCnt to ( Player->GetItemCount, "templar belt" ) endwhile
set myCnt to ( Player->GetItemCount, "templar skirt obj" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "templar skirt obj", 1 Player->RemoveItem, "templar skirt obj", 1 set myCnt to ( Player->GetItemCount, "templar skirt obj" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveL" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_gloveL", 1 Player->RemoveItem, "BM_Nordic01_gloveL", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveL" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveR" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_gloveR", 1 Player->RemoveItem, "BM_Nordic01_gloveR", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveR" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_pants" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_pants", 1 Player->RemoveItem, "BM_Nordic01_pants", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_pants" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_Robe" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_Robe", 1 Player->RemoveItem, "BM_Nordic01_Robe", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_Robe" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shirt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_shirt", 1 Player->RemoveItem, "BM_Nordic01_shirt", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_shirt" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shoes" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_shoes", 1 Player->RemoveItem, "BM_Nordic01_shoes", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic01_shoes" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveL" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_gloveL", 1 Player->RemoveItem, "BM_Nordic02_gloveL", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveL" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveR" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_gloveR", 1 Player->RemoveItem, "BM_Nordic02_gloveR", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveR" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_pants" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_pants", 1 Player->RemoveItem, "BM_Nordic02_pants", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic02_pants" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shirt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_shirt", 1 Player->RemoveItem, "BM_Nordic02_shirt", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic02_shirt" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shoes" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_shoes", 1 Player->RemoveItem, "BM_Nordic02_shoes", 1 set myCnt to ( Player->GetItemCount, "BM_Nordic02_shoes" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveL" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_gloveL", 1 Player->RemoveItem, "BM_Wool01_gloveL", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveL" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveR" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_gloveR", 1 Player->RemoveItem, "BM_Wool01_gloveR", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveR" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_pants" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_pants", 1 Player->RemoveItem, "BM_Wool01_pants", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_pants" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_Robe" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_Robe", 1 Player->RemoveItem, "BM_Wool01_Robe", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_Robe" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_shirt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_shirt", 1 Player->RemoveItem, "BM_Wool01_shirt", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_shirt" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_shoes" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_shoes", 1 Player->RemoveItem, "BM_Wool01_shoes", 1 set myCnt to ( Player->GetItemCount, "BM_Wool01_shoes" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveL" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_gloveL", 1 Player->RemoveItem, "BM_Wool02_gloveL", 1 set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveL" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveR" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_gloveR", 1 Player->RemoveItem, "BM_Wool02_gloveR", 1 set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveR" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_pants" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_pants", 1 Player->RemoveItem, "BM_Wool02_pants", 1 set myCnt to ( Player->GetItemCount, "BM_Wool02_pants" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_shirt" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_shirt", 1 Player->RemoveItem, "BM_Wool02_shirt", 1 set myCnt to ( Player->GetItemCount, "BM_Wool02_shirt" ) endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_shoes" ) while ( myCnt > 0 ) "LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_shoes", 1 Player->RemoveItem, "BM_Wool02_shoes", 1 set myCnt to ( Player->GetItemCount, "BM_Wool02_shoes" ) endwhile
53 comments
Version 2.1 has been uploaded.
Hint: There is a golden coin behind the thieves guild tapestry.
Sounds like you have a conflict with another mod.
So before you 'warn off' others, more explanation is required on your part.
As a side note, thank you for all of your years of wonderful mods. I use at least one of you mods in every playthrough of any Elder Scrolls or Fallout game.
Also, I assume Morrowind is available on Steam, so that version may be different than the version this mod was created for. Dunno.
But I can look over the posts below and install the CS this weekend to check on the issue. I suspect the sort is being activated and before it finishes the player is leaving the cell which may mess up the scripts. I certainly never had any issue with it.
Thanks, updated to version 2.1
Then, I went ahead and tried it with my current save, where I had already visited and stored things in chests. I still had all of my Leveler's items, and when I teleported back to the broom closet, everything was still in my storage chests. So, it should be alright to just update with a current save. Or, it was for me anyway.
Thanks for the fix, hopefully more people will benefit from this great mod now.
As a side note...I always just turned my headphones volume down when I was in the closet. If it had bothered me enough, I would have opened the CS and fixed it, but I know, not everyone is able to do that. I'm glad you decided to check the post. I'm sure the issue was "bugging" you once you knew it existed.
Does anyone happen to have the item code for the teleport item to return to the Broom Closet handy? Or know the cell ID for direct teleport using console?
Trying to find these with the construction set, but not yet having much luck.
Thanks for an awesome mod, WilliamSea!
Also keep in mind, the door to this place is behind a fake wall in the cellar of the starting building in game. So, go into the cellar where the two barrels are, look right (as you enter the door) and the wall should be activatable.
https://staticdelivery.nexusmods.com/mods/100/images/30600-2-1269201065.jpg
The problem here for us is with sounds and messages: So I just deleted lines which run these effects from scripts that AYLeiDRuiN has mentioned. Here are they:
PlaySound "Item Misc Down"
MessageBox "Clothing Sorted"
Delete them from the code in all three scripts. Problem solved.
Open up LevelersBroomCloset.esp in Construction kit. Select "Edit Scripts" under 'Gameplay'. Delete 'LEV_Sort_ClothingC_scpt', 'LEV_Sort_ClothingE_scpt' and 'LEV_Sort_ClothingO_scpt'. You WILL get errors saying: that they are missing. Did that and went to the broom closet from balmora via Silt Strider. No 10x a second messages while there. Should be good? I don't know :/
I think I'm going to revert back to v2. I may try v1 also. I have a lvl36 char. and I don't want to mess with it. Today was my first visit to the Levelers Broom Closet and reminds me that when I add mods I should Test Them 1st xD
Thank You WilliamSea!
PS: If anyone is fluent in scripts here is the shortest of the 3 scripts in Question:
'LEV_Sort_Clothing0_scpt'
Begin LEV_Sort_ClothingO_scpt
if ( menumode == 1 )
return
endif
if ( OnActivate == 1 )
short myCnt
set myCnt to ( Player->GetItemCount, "imperial belt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "imperial belt", 1
Player->RemoveItem, "imperial belt", 1
set myCnt to ( Player->GetItemCount, "imperial belt" )
endwhile
set myCnt to ( Player->GetItemCount, "imperial skirt_clothing" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "imperial skirt_clothing", 1
Player->RemoveItem, "imperial skirt_clothing", 1
set myCnt to ( Player->GetItemCount, "imperial skirt_clothing" )
endwhile
set myCnt to ( Player->GetItemCount, "indoril_belt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "indoril_belt", 1
Player->RemoveItem, "indoril_belt", 1
set myCnt to ( Player->GetItemCount, "indoril_belt" )
endwhile
set myCnt to ( Player->GetItemCount, "templar belt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "templar belt", 1
Player->RemoveItem, "templar belt", 1
set myCnt to ( Player->GetItemCount, "templar belt" )
endwhile
set myCnt to ( Player->GetItemCount, "templar skirt obj" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "templar skirt obj", 1
Player->RemoveItem, "templar skirt obj", 1
set myCnt to ( Player->GetItemCount, "templar skirt obj" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveL" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_gloveL", 1
Player->RemoveItem, "BM_Nordic01_gloveL", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveL" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveR" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_gloveR", 1
Player->RemoveItem, "BM_Nordic01_gloveR", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_gloveR" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_pants" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_pants", 1
Player->RemoveItem, "BM_Nordic01_pants", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_pants" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_Robe" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_Robe", 1
Player->RemoveItem, "BM_Nordic01_Robe", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_Robe" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shirt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_shirt", 1
Player->RemoveItem, "BM_Nordic01_shirt", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shirt" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shoes" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic01_shoes", 1
Player->RemoveItem, "BM_Nordic01_shoes", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic01_shoes" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveL" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_gloveL", 1
Player->RemoveItem, "BM_Nordic02_gloveL", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveL" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveR" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_gloveR", 1
Player->RemoveItem, "BM_Nordic02_gloveR", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic02_gloveR" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_pants" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_pants", 1
Player->RemoveItem, "BM_Nordic02_pants", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic02_pants" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shirt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_shirt", 1
Player->RemoveItem, "BM_Nordic02_shirt", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shirt" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shoes" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Nordic02_shoes", 1
Player->RemoveItem, "BM_Nordic02_shoes", 1
set myCnt to ( Player->GetItemCount, "BM_Nordic02_shoes" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveL" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_gloveL", 1
Player->RemoveItem, "BM_Wool01_gloveL", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveL" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveR" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_gloveR", 1
Player->RemoveItem, "BM_Wool01_gloveR", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_gloveR" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_pants" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_pants", 1
Player->RemoveItem, "BM_Wool01_pants", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_pants" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_Robe" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_Robe", 1
Player->RemoveItem, "BM_Wool01_Robe", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_Robe" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_shirt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_shirt", 1
Player->RemoveItem, "BM_Wool01_shirt", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_shirt" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool01_shoes" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool01_shoes", 1
Player->RemoveItem, "BM_Wool01_shoes", 1
set myCnt to ( Player->GetItemCount, "BM_Wool01_shoes" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveL" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_gloveL", 1
Player->RemoveItem, "BM_Wool02_gloveL", 1
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveL" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveR" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_gloveR", 1
Player->RemoveItem, "BM_Wool02_gloveR", 1
set myCnt to ( Player->GetItemCount, "BM_Wool02_gloveR" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_pants" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_pants", 1
Player->RemoveItem, "BM_Wool02_pants", 1
set myCnt to ( Player->GetItemCount, "BM_Wool02_pants" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_shirt" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_shirt", 1
Player->RemoveItem, "BM_Wool02_shirt", 1
set myCnt to ( Player->GetItemCount, "BM_Wool02_shirt" )
endwhile
set myCnt to ( Player->GetItemCount, "BM_Wool02_shoes" )
while ( myCnt > 0 )
"LEV_Ccupboard_Clothing"->AddItem, "BM_Wool02_shoes", 1
Player->RemoveItem, "BM_Wool02_shoes", 1
set myCnt to ( Player->GetItemCount, "BM_Wool02_shoes" )
endwhile
PlaySound "Item Misc Down"
MessageBox "Clothing Sorted"
Activate
endif
End LEV_Sort_ClothingO_scpt