A function added by MWSE.
xGetGold returns the current amount of barter gold possessed by the NPC (or creature). The base gold amount is used if you haven't bartered with the NPC/creature recently.
SyntaxEdit
gold (long): ref->xGetGold
ExampleEdit
long npcRef long result Setx npcRef to xGetRef "npc" Setx result to npcRef->xGetGold