Morrowind Mod:XSetService

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

xSetService uses the value parameter to change the NPC to offer the set of services represented by the number. The service number values are used and any old services are ignored, so using a value of 8 will make the NPC a bookseller and a value of 131587 (1+2+512+131072) is typical for smiths. The values changed by this function are not permanent and may be reset after 72-hours or a game reload.

Syntax[edit]

ref->xSetService service_mask (long)

Example[edit]

long npcRef

Setx npcRef to xGetRef "npc"
npcRef->xSetService 65536

See Also[edit]

xIsFemale
xIsTrader
xIsTrainer
xIsProvider
xGetService
xModService
xGetBaseGold
xGetGold
xSetBaseGold
xSetGold