maple-v206/scripts/item/consume_2435114.py

11 lines
439 B
Python

# Camel Wagon Mount (Permanent) Coupon | (2435114)
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 'Camel Wagon' mount.")
else:
sm.consumeItem()
sm.giveSkill(sm.getSkillByItem())
sm.chat("Successfully added the 'Camel Wagon' mount.")
sm.dispose()