maple-v206/scripts/item/consume_2436884.py

9 lines
282 B
Python

from net.swordie.ms.client.character.union import Union
union = chr.getUnion()
if union.getPresets() < Union.MAX_PRESETS:
# TODO: set proper quest value
sm.consumeItem(parentID)
union.addPreset()
else:
sm.sendNext("You're already on the maximum amount of presets!")