A function from MWSE update by Merzasphor.
Returns info about the given enchantId, 0 if enchantId is invalid.
SyntaxEdit
type (short) cost (short) maxCharge (long) numEffects (short) autocalc (long): xGetEnchantInfo enchantId (string | string ref)
type: 0 = Cast Once, 1 = Cast When Strikes, 2 = Cast When Used, 3 = Constant
autocalc: 0 = off, 1 = on
ExampleEdit
short type short cost long maxCharge short numEffects long autocalc setx type cost charge maxCharge numEffects autocalc to xGetEnchantInfo "admonition_en"