Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /purchase [<text>]:
- trigger:
- if arg 1 is "woodpick":
- if player's balance >= 5:
- give wood pick to player
- message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
- remove 5 from player's balance
- if arg 1 is "stonepick":
- if {level.%uuid of player%} >= 5:
- if player's balance >= 15:
- give stone pick to player
- message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
- remove 15 from player's balance
- else:
- message "&c&lHey! &7You don't have enough cash to purchase this item."
- else:
- message "&c&lHey! &7You are not allowed to purchase this at your current level."
- if arg 1 is "ironpick":
- if {level.%uuid of player%} >= 10:
- if player's balance >= 30:
- give iron pick to player
- message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
- remove 30 from player's balance
- else:
- message "&c&lHey! &7You don't have enough cash to purchase this item."
- else:
- message "&c&lHey! &7You are not allowed to purchase this at your current level."
- if arg 1 is "goldpick":
- if {level.%uuid of player%} >= 20:
- if player's balance >= 50:
- give gold pick to player
- message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
- remove 50 from player's balance
- else:
- message "&c&lHey! &7You don't have enough cash to purchase this item."
- else:
- message "&c&lHey! &7You are not allowed to purchase this at your current level."
- if arg 1 is "diamondpick":
- if {level.%uuid of player%} >= 50:
- if player's balance >= 90:
- give diamond pick to player
- message "&a[NPC] Miner: &fThanks for buying that, &e%player%&f!"
- remove 90 from player's balance
- else:
- message "&c&lHey! &7You don't have enough cash to purchase this item."
- else:
- message "&c&lHey! &7You are not allowed to purchase this at your current level."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement