Zeldaboy111

Skript #149

Apr 18th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. on enable:
  2. set {_mb::prefix} to "&3[&dMobile&3] &f>> &8"
  3.  
  4.  
  5.  
  6. command /mobile [<text>]:
  7. aliases: /mb
  8. trigger:
  9. if arg 1 is "get":
  10. give player a book named "&8Mobile" with lore "&7Mobieltje"
  11. stop
  12.  
  13. on rightclick:
  14. player is holding a book named "&8Mobile" with lore "&7Mobieltje":
  15. open chest with 1 rows named "&8Mobile" to player
  16. make gui slot 0 of player with a paper named "&fWord" to run function word(player, "menu")
  17. make gui slot 1 of player with a green dye named "&2Whatsappp" to run function whatsapp(player, "menu")
  18. make gui slot 2 of player with a gold block named "&6Bank" to run function bank(player, "menu")
  19.  
  20.  
  21.  
  22. function word(p: Player, page: String):
  23. #Kies GUI met 3 bestanden
  24.  
  25. set {_book} to a new book
  26.  
  27. if {_page} is "menu":
  28. if {_mobile::word::page1} is not set:
  29. set {_mobile::word::page1} to "&7Naamloos"
  30.  
  31. if {_mobile::word::page2} is not set:
  32. set {_mobile::word::page2} to "&7Naamloos"
  33.  
  34. if {_mobile::word::page3} is not set:
  35. set {_mobile::word::page3} to "&7Naamloos"
  36.  
  37. open chest with 1 rows named "&fWord" to {_p}
  38.  
  39. make gui slot 0 of {_p} with a paper named "%{_mobile::word::page1}%" to run function word({_p}, "1")
  40. make gui slot 1 of {_p} with a paper named "%{_mobile::word::page2}%" to run function word({_p}, "2")
  41. make gui slot 2 of {_p} with a paper named "%{_mobile::word::page3}%" to run function word({_p}, "3")
  42.  
  43. if {_page} is "1":
  44.  
  45.  
  46.  
  47. open book {_book} to {_p}
  48.  
  49. if {_page} is "2":
  50.  
  51.  
  52. open book {_book} to {_p}
  53.  
  54. if {_page} is "3":
  55.  
  56. open book {_book} to {_p}
  57.  
  58.  
  59. #Open boek
  60.  
  61.  
  62. function whatsapp(p: Player, s: String):
  63. #Jezelf in contacten
  64.  
  65. #Anvil om bericht te sturen
  66.  
  67.  
  68. function bank(p: Player, s: String):
  69. #Accounts (persoonlijk - gold block)
  70.  
  71. #Geld (waardes; iron = 10, gold = 50 & diamond = 100)
Advertisement
Add Comment
Please, Sign In to add comment