Advertisement
Zeldaboy111

Skript #153

Apr 28th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. options:
  2. {mb::messages::%{_p}%::%{_c}%::1} = {mb::messages::%{_p}%::%{_sendTo}%::1}
  3. {mb::messages::%{_c}%::%{_p}%::1} = {mb::messages::%{_p}%::%{_sendTo}%::1}
  4.  
  5. on enable:
  6. set {mb::prefix} to "&3[&dMobile&3] &f>> &8"
  7.  
  8. on join:
  9. if {mb::whatsapp::%player%::contacten::*} is not set:
  10. add player to {mb::whatsapp::%player%::contacten::*}
  11.  
  12.  
  13. command /mobile [<text>] [<text>] [<text>] [<text>]:
  14. aliases: /mb
  15. trigger:
  16. if arg 1 is "get":
  17. give player a book named "&8Mobile" with lore "&7Mobieltje"
  18. stop
  19.  
  20. if arg 1 is "whatsapp" OR "app":
  21. if arg 2 is "read":
  22. whatsapp(player, "Main")
  23. stop
  24. if arg 2 is "send":
  25. if arg 3 is set:
  26. if {mb::whatsapp::%player%::contacten::*} contains "%arg 3%":
  27. if arg 4 is set:
  28. sendWA(player, "%arg 3%", "%arg 4%")
  29. stop
  30.  
  31. else:
  32. send "%{mb::prefix}% &4Je moet nog een &cbericht &4opgeven."
  33. stop
  34.  
  35. else:
  36. send "%{mb::prefix}% &4De persoon &c%arg 3% &4staat niet tussen je contacten."
  37. stop
  38. else:
  39. send "%{mb::prefix}% &4Je moet nog een &ccontact &4en &cbericht &4opgeven."
  40. stop
  41.  
  42.  
  43. on rightclick:
  44. player is holding a book named "&8Mobile" with lore "&7Mobieltje":
  45. open chest with 1 rows named "&8Mobile" to player
  46. make gui slot 0 of player with a green dye named "&2Whatsapp" to run function whatsapp(player, "Main")
  47. make gui slot 1 of player with a gold block named "&6Bank" to run function bank(player, "menu")
  48.  
  49.  
  50. function sendWA(p: Player, c: String, s: String):
  51. set {mb::messages::%{_p}%::%{_c}%::1} to {_s}
  52. set {mb::messages::%{_c}%::%{_s}%::1} to {_s}
  53.  
  54. function whatsapp(p: Player, s: String):
  55. #Jezelf in contacten
  56. if {_s} is "Main":
  57. open chest with 1 rows named "&2Contacten - Whatsapp" to {_p}
  58. make gui slot 0 of {_p} with a book named "&6%{_p}%" to close then run function whatsapp({_p}, "Read.%{_p}%")
  59. stop
  60.  
  61. if {_s} contains "Read.":
  62.  
  63. replace all "Read." in {_s} with ""
  64. set {_sendTo} to {_s}
  65.  
  66. open chest with 6 rows named "&2%{_sendTo}% - Whatsapp" to {_p}
  67. if {mb::messages::%{_p}%::%{_sendTo}%::1} is set:
  68. make gui slot {_slot} of {_p} with a paper named "&f%{mb::messages::%{_p}%::%{_sendTo}%::1}%" with lore "&7Sender: %{_p}%" to close
  69. add 1 to {_slot}
  70.  
  71. if {mb::messages::%{_sendTo}%::%{_p}%::1} is set:
  72. make gui slot {_slot} of {_p} with a paper named "%{mb::messages::%{_sendTo}%::%{_p}%::1}%" with lore "&7Sender: %{_sendTo}%" to close
  73. add 1 to {_slot}
  74.  
  75. #function bank(p: Player, s: String):
  76. #Accounts (persoonlijk - gold block)
  77.  
  78. #Geld (waardes; iron = 10, gold = 50 & diamond = 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement