First I'll update UMM_SendByStatNumber to use the new item.Stats value.
Next, when I used the mail functions recently, I wanted to send all clean dura armor and all dura weapons. I don't have any functions for that so I thought I'd add it to the UMM_SendAdvanced. Or maybe create a specific funcion. Dura is easy to check but stat number has to be done differently.
So these are the options;
Add to UMM_SendAdvanced
- UMM_SendAdvanced(_recipient, _nameorid, _quality, _reqlevel, _worth, _objtype, _dura, _clean)
Code: Select all
UMM_SendAdvanced("toonname", nil, nil, nil, nil, "Weapons", 104)
UMM_SendAdvanced("toonname", nil, nil, nil, nil, "Armor", 104, true)
- UMM_SendByDura(_recipient, _dura, _clean, _objtype)
Code: Select all
UMM_SendByDura("toonname", 104, nil, "Weapons")
UMM_SendByDura("toonname", 104, true, "Armor")
I had an idea. If all options are added to the advanced function, I could just call that in the "specific need" functions.
Eg.
Code: Select all
function UMM_SendByDura(_recipient, _dura, _clean, _objtype)
UMM_SendAdvanced(_recipient, nil, nil, nil, nil, _objtype, _dura, _clean)
end
This will need a major rewrite. I'll add an interim fix for the bug above and start working on it.