Welcome to PenUltima Online. Click to login or register.

Functions:

ConsumeReagents( caster, spellid )
Parameters:
Name Type
caster Character Reference
spellid An integer
Explanation
Removes reagent items from caster's pack according to spellid's definition in spells.cfg. Spells.cfg files define spells & spell ids.
Return values
1 on successful consume, 0 if not enough of defined reagents
Errors
"Spell ID out of range" if !(spellid >= 1 && spellid <= last spellid)
"No such spell" if spellid not found
"Invalid parameter"
Related
Character
Related Configs
spells.cfg