16 lines
442 B
Python
16 lines
442 B
Python
# Bonus Potential Cube Fragment
|
|
|
|
FRAGMENT = 2430915
|
|
QUANTITY = 10
|
|
REWARD = 2048310 # 60% bonus potential scroll
|
|
|
|
q = sm.getQuantityOfItem(FRAGMENT)
|
|
|
|
if q >= QUANTITY:
|
|
if sm.canHold(REWARD):
|
|
sm.giveItem(REWARD)
|
|
sm.consumeItem(FRAGMENT, QUANTITY)
|
|
else:
|
|
sm.systemMessage("Make sure you have enough space in your inventory..")
|
|
else:
|
|
sm.systemMessage("One must have at least " + str(QUANTITY) + " fragments to unleash the magic powers..") |