Advertisement
Zeldaboy111

Skript #152

Apr 24th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. on enable:
  2. set {_mb::prefix} to "&3[&dMobile&3] &f>> &8"
  3.  
  4.  
  5.  
  6. command /mobile [<text>] [<text>] [<text>] [<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. if arg 1 is "whatsapp" OR "app":
  14. if arg 2 is "read":
  15. whatsapp(player, "Main")
  16.  
  17. if arg 2 is "send":
  18.  
  19.  
  20.  
  21.  
  22. on rightclick:
  23. player is holding a book named "&8Mobile" with lore "&7Mobieltje":
  24. open chest with 1 rows named "&8Mobile" to player
  25. make gui slot 0 of player with a green dye named "&2Whatsapp" to run function whatsapp(player, "Main")
  26. make gui slot 1 of player with a gold block named "&6Bank" to run function bank(player, "menu")
  27.  
  28.  
  29. #function sendWA(p: Player, s: String):
  30.  
  31. function whatsapp(p: Player, s: String):
  32. #Jezelf in contacten
  33. if {_s} is "Main":
  34. open chest with 1 rows named "&2Contacten - Whatsapp" to {_p}
  35. make gui slot 0 of {_p} with a book named "&6%{_p}%" to close then run function whatsapp({_p}, "Read.%{_p}%")
  36. stop
  37.  
  38. if {_s} contains "Read.":
  39.  
  40. replace all "Read." in {_s} with ""
  41. set {_sendTo} to {_s}
  42.  
  43. open chest with 6 rows named "&2%{_sendTo}% - Whatsapp" to {_p}
  44.  
  45.  
  46. #function bank(p: Player, s: String):
  47. #Accounts (persoonlijk - gold block)
  48.  
  49. #Geld (waardes; iron = 10, gold = 50 & diamond = 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement