Guest User

Untitled

a guest
Mar 26th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. options:
  2. prefix: &8(&BMystical&fTokens&8)
  3. line: &7&m------------------[&r &b&l&oMystical&f&oTokens &7&m]------------------
  4. startamount: 1
  5. token-balance: &7You have &a&o%{token::balance::%player%}% &7token(s).
  6. permission-admin: token.admin
  7. invalid-command: &7Invalid command, use &a&o/token help &7for more info!
  8.  
  9. on first join:
  10. add 1 to {Mysticaltokens.%player%}
  11.  
  12. on script load:
  13. set {Mysticaltokens} to true
  14.  
  15. on script unload:
  16. set {Mysticaltokens} to false
  17. #---------------------------------------------------------------------------------------------------
  18. #kill event monsters
  19. #---------------------------------------------------------------------------------------------------
  20. on death of a zombie:
  21. if chance of 10%:
  22. drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
  23.  
  24. on death of a skeleton:
  25. if chance of 10%:
  26. drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
  27.  
  28. on death of a creeper:
  29. if chance of 10%:
  30. drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
  31.  
  32. on death of a enderman:
  33. if chance of 10%:
  34. drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
  35.  
  36. on death of a blaze:
  37. if chance of 5%:
  38. drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
  39. #---------------------------------------------------------------------------------------------------
  40. #commands
  41. #---------------------------------------------------------------------------------------------------
  42. command /token [<text>] [<text>] [<text>]:
  43. trigger:
  44. if arg-1 is not "bal" or "pay" or "help" or "?" or "shop":
  45. message "{@prefix} {@invalid-command}"
  46. stop
  47. if arg 1 is "help" or "?":
  48. message "{@line}"
  49. message "&e/token help: Mysticaltokens info"
  50. message "&e/token pay: give tokens to an outher player"
  51. message "&e/token bal: shows how much tokens you got"
  52. message "&e/token shop: comming soon"
  53. if arg 1 is "bal":
  54. send "{@prefix} &7You currently have &e%{mobcoins.%player%}% &7tokens"
  55. if arg 1 is "pay":
  56. set {_player} to arg 2 parsed as offlineplayer
  57. set {_text} to arg 3
  58. set {_mysticaltoken} to {_text} parsed as integer
  59. if arg 2 is not set:
  60. message "&4 can not understand the command use /token pay playername amount"
  61. stop
  62. if arg 3 is not set:
  63. message "&4 can not understand the command use /token pay playername amount"
  64. stop
  65. if {_mysticaltoken} is less than or equal to 0:
  66. message "&4you cant pay negative tokens to someone"
  67. if arg 2 is set:
  68. if arg 3 is set:
  69. if {Mysticaltoken::balance::%player%} is less than {_mysticaltoken}:
  70. message "&4You dont have enough tokens to pay"
  71. stop
  72. else:
  73. remove {_Mysticaltoken} from {Mysticaltoken::balance::%player%}
  74. add {_Mysticaltoken} to {Mysticaltoken::balance::%{_player}%}
  75. message "{@prefix} &eYou have succesfully send {_Mysticaltoken} to {_player}"
  76. message "{@prefix} &eyou have received {_Mysticaltoken} from %player%"
  77. stop
  78.  
  79. #---------------------------------------------------------------------------------------------------
  80.  
  81. #---------------------------------------------------------------------------------------------------
  82. #right click event
  83. #---------------------------------------------------------------------------------------------------
  84. on rightclick:
  85. if player is holding 64 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem":
  86. cancel event
  87.  
  88. #----------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment