maple-v206/scripts/item/consume_2430135.py

11 lines
430 B
Python

# OS4 Shuttle Driving License | (2430135)
if sm.getSkillByItem() == 0:# Check whether item has an vehicleID stored, 0 if false.
sm.chat("An Error occurred whilst trying to find the mount.")
elif sm.hasSkill(sm.getSkillByItem()):
sm.chat("You already have the 'OS4 Shuttle' mount.")
else:
sm.consumeItem()
sm.giveSkill(sm.getSkillByItem())
sm.chat("Successfully added the 'OS4 Shuttle' mount.")
sm.dispose()