Zeldaboy111

Skript #134

Mar 27th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. on enable:
  2. set {cw::title} to "&8[&eCraftWars&8]&7" #Default: "&8[&eCraftWars&8]&7"
  3.  
  4.  
  5. function openShop(p: player, type: string, page: string):
  6. if {_type} is "engineer":
  7. if {_page} is "main":
  8. open chest with 1 rows named "&eMachines Shop" to {_p}
  9.  
  10. make gui slot 0 of {_p} with a book named "&3Dirt Machine" to close then run function confirmBuy({_p}, "dirt_machine")
  11.  
  12. function confirmBuy(p: player, item: string):
  13. open chest with 3 rows named "&eWeet je het zeker?" to {_p}
  14.  
  15. make gui slot 11 of {_p} with a green stained clay named "&2Ja" to close then run function buyItem({_p}, {_item})
  16. make gui slot 15 of {_p} with a red stained clay named "&4Nee" to close then run function openShop({_p}, "engineer", "main")
  17.  
  18. function buyItem(p: player, item: string):
  19. if {_item} is "dirt_machine":
  20. give {_p} a book named "&3Dirt Machine" with lore "&8Plaats deze om een dirt machine te maken."
  21. send "%{cw::title}% Veel plezier met je &8Dirt Machine&7!" to {_p}
Advertisement
Add Comment
Please, Sign In to add comment