Open main menu

UESPWiki β

Morrowind Mod:XSetService

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

ref->xSetService service_mask (long)

ExampleEdit

long npcRef

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

See AlsoEdit