Filters the trainer service listing by service status
See also Trainer functions.
Signature:
SetTrainerServiceTypeFilter("type"
[,
enable
[,
exclusive]])
Arguments:
type
- A service status (string
)available
- Services the player can useunavailable
- Services the player cannot currently useused
- Services the player has already used
enable
- 1 to show services matchingtype
in the filtered list; 0 to hide them (number
)exclusive
- 1 to disable other type filters when enabling this one; otherwise nil (1nil
)
Examples:
-- Turn on the "available" filter SetTrainerServiceTypeFilter("available", 1) -- Turn on the "used" filter, and turn off all others SetTrainerServiceTypeFilter("used", 1, 1)