SHARE
TWEET

check.sk (fixed x3)

asdasrastrusuisa Sep 22nd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 "&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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 ""&dCheck" with lore "&fRedeem &d%arg-1%&f coins"
  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.             remove 1 book from player's inventory
  69.            
  70. on right click with book:
  71.     if name of player's held item contains "Check":
  72.         if lore of player's held item is "10":
  73.             add 10 to {coins.player}
  74.             send "&dYou have deposited a check"
  75.             remove 1 book from player's inventory
  76.            
  77. on right click with book:
  78.     if name of player's held item contains "Check":
  79.         if lore of player's held item is "15":
  80.             add 15 to {coins.player}
  81.             send "&dYou have deposited a check"
  82.             remove 1 book from player's inventory
  83.            
  84. on right click with book:
  85.     if name of player's held item contains "Check":
  86.         if lore of player's held item is "20":
  87.             add 20 to {coins.player}
  88.             send "&dYou have deposited a check"
  89.             remove 1 book from player's inventory
  90.  
  91. on right click with book:
  92.     if name of player's held item contains "Check":
  93.         if lore of player's held item is "25":
  94.             add 25 to {coins.player}
  95.             send "&dYou have deposited a check"
  96.             remove 1 book from player's inventory
  97.            
  98. on right click with book:
  99.     if name of player's held item contains "Check":
  100.         if lore of player's held item is "30":
  101.             add 30 to {coins.player}
  102.             send "&dYou have deposited a check"
  103.             remove 1 book from player's inventory
  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 "35":
  108.             add 35 to {coins.player}
  109.             send "&dYou have deposited a check"
  110.             remove 1 book from player's inventory
  111.            
  112. on right click with book:
  113.     if name of player's held item contains "Check":
  114.         if lore of player's held item is "40":
  115.             add 40 to {coins.player}
  116.             send "&dYou have deposited a check"
  117.             remove 1 book from player's inventory
  118.            
  119. on right click with book:
  120.     if name of player's held item contains "Check":
  121.         if lore of player's held item is "45":
  122.             add 45 to {coins.player}
  123.             send "&dYou have deposited a check"
  124.             remove 1 book from player's inventory
  125.            
  126. on right click with book:
  127.     if name of player's held item contains "Check":
  128.         if lore of player's held item is "50":
  129.             add 50 to {coins.player}
  130.             send "&dYou have deposited a check"
  131.             remove 1 book from player's inventory
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top