maple-v206/scripts/item/consume_2430768.py

11 lines
455 B
Python

from net.swordie.ms.enums import InvType
sm.setSpeakerID(9062004)
if sm.getSlotsLeftToAddByInvType(1) <= 0:
sm.sendSayOkay("You have already maxed your slots.")
sm.dispose()
if (sm.sendAskYesNo("#rYou may add up to " + str(sm.getSlotsLeftToAddByInvType(1)) +
" slots to your inventory, would you like to continue?")):
sm.addInventorySlotsByInvType(sm.getSlotsLeftToAddByInvType(1), 1)
sm.consumeItem()
sm.dispose()