Advertisement
asdasrastrusuisa

check.sk (fixed)

Sep 22nd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. variables:
  2. {coins.player} = 0
  3.  
  4. command /storebottle <integer>:
  5. permission: coins.store
  6. usage: &d/storebottle <amount> &f(You can only store coins up to 50 per book in integers of 5!)
  7. trigger:
  8. if arg-1 is greater than 50:
  9. send "&cMust be less than 50"
  10. if {coins.%player%} is greater than or equal to arg-1:
  11. if arg-1 is equal to 5:
  12. remove arg-1 from {coins.player}
  13. give player book named "&dCheque" with lore "%arg-1%"
  14. send "&fYou made a cheque with &d%arg-1% coins on it"
  15. else:
  16. if arg-1 is greater than or equal to 10:
  17. remove arg-1 from {coins.player}
  18. give player book named "&dCheque" with lore "%arg-1%"
  19. send "&fYou made a cheque with &d%arg-1% coins on it"
  20. else:
  21. if arg-1 is greater than or equal to 15:
  22. remove arg-1 from {coins.player}
  23. give player book named "&dCheque" with lore "%arg-1%"
  24. send "&fYou made a cheque with &d%arg-1% coins on it"
  25. else:
  26. if arg-1 is greater than or equal to 20:
  27. remove arg-1 from {coins.player}
  28. give player book named "&dCheque" with lore "%arg-1%"
  29. send "&fYou made a cheque with &d%arg-1% coins on it"
  30. else:
  31. if arg-1 is greater than or equal to 25:
  32. remove arg-1 from {coins.player}
  33. give player book named "&dCheque" with lore "%arg-1%"
  34. send "&fYou made a cheque with &d%arg-1% coins on it"
  35. else:
  36. if arg-1 is greater than or equal to 30:
  37. remove arg-1 from {coins.player}
  38. give player book named "&dCheque" with lore "%arg-1%"
  39. send "&fYou made a cheque with &d%arg-1% coins on it"
  40. else:
  41. if arg-1 is greater than or equal to 35:
  42. remove arg-1 from {coins.player}
  43. give player book named "&dCheque" with lore "%arg-1%"
  44. send "&fYou made a cheque with &d%arg-1% coins on it"
  45. else:
  46. if arg-1 is greater than or equal to 40:
  47. remove arg-1 from {coins.player}
  48. give player book named "&dCheque" with lore "%arg-1%"
  49. send "&fYou made a cheque with &d%arg-1% coins on it"
  50. else:
  51. if arg-1 is greater than or equal to 45:
  52. remove arg-1 from {coins.player}
  53. give player book named "&dCheque" with lore "%arg-1%"
  54. send "&fYou made a cheque with &d%arg-1% coins on it"
  55. else:
  56. if arg-1 is greater than or equal to 50:
  57. remove arg-1 from {coins.player}
  58. give player book named "&dCheque" with lore "%arg-1%"
  59. send "&fYou made a cheque with &d%arg-1% coins on it"
  60. else:
  61. send "&cYou do not have enough coins to do that, or amount you want to withdraw is not a multiple of 5!"
  62.  
  63. on right click with book:
  64. if name of player's held item contains "Check":
  65. if lore of player's held item is "5":
  66. add 5 to {coins.player}
  67. send "&dYou have deposited a check"
  68.  
  69. on right click with book:
  70. if name of player's held item contains "Check":
  71. if lore of player's held item is "10":
  72. add 10 to {coins.player}
  73. send "&dYou have deposited a check"
  74.  
  75. on right click with book:
  76. if name of player's held item contains "Check":
  77. if lore of player's held item is "15":
  78. add 15 to {coins.player}
  79. send "&dYou have deposited a check"
  80.  
  81. on right click with book:
  82. if name of player's held item contains "Check":
  83. if lore of player's held item is "20":
  84. add 20 to {coins.player}
  85. send "&dYou have deposited a check"
  86.  
  87. on right click with book:
  88. if name of player's held item contains "Check":
  89. if lore of player's held item is "25":
  90. add 25 to {coins.player}
  91. send "&dYou have deposited a check"
  92.  
  93. on right click with book:
  94. if name of player's held item contains "Check":
  95. if lore of player's held item is "30":
  96. add 30 to {coins.player}
  97. send "&dYou have deposited a check"
  98.  
  99. on right click with book:
  100. if name of player's held item contains "Check":
  101. if lore of player's held item is "35":
  102. add 35 to {coins.player}
  103. send "&dYou have deposited a check"
  104.  
  105. on right click with book:
  106. if name of player's held item contains "Check":
  107. if lore of player's held item is "40":
  108. add 40 to {coins.player}
  109. send "&dYou have deposited a check"
  110.  
  111. on right click with book:
  112. if name of player's held item contains "Check":
  113. if lore of player's held item is "45":
  114. add 45 to {coins.player}
  115. send "&dYou have deposited a check"
  116.  
  117. on right click with book:
  118. if name of player's held item contains "Check":
  119. if lore of player's held item is "50":
  120. add 50 to {coins.player}
  121. send "&dYou have deposited a check"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement