Guest User

Untitled

a guest
Jun 20th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. on join:
  2. if {credit::%player%} is not set:
  3. set {credit::%player%} to 0
  4. if {loan::%player%} is not set:
  5. set {loan::%player%} to 10000
  6.  
  7. command /loan:
  8. trigger:
  9. open virtual chest inventory with size 1 named "&e&lLoan" to player
  10. create a gui slot 0 of player with gray glass named "" to do nothing
  11. create a gui slot 1 of player with gray glass named "" to do nothing
  12. create a gui slot 2 of player with gray glass named "" to do nothing
  13. create a gui slot 4 of player with book named "&eLoan Money" with lore "&7Your credit: &a%{credit::%player%}%" to run function loans(player)
  14. create a gui slot 3 of player with paper named "&eInfo" with lore "&7How you can get your credit up||&7loan money and pay it back and your||&7credit will be better and you can loan more||&7Your credit can get better when you have||&7more money in your balance" to do nothing
  15. create a gui slot 6 of player with gray glass named "" to do nothing
  16. create a gui slot 7 of player with gray glass named "" to do nothing
  17. create a gui slot 8 of player with gray glass named "" to do nothing
  18. if {loan::%player%} is 10000:
  19. create a gui slot 5 of player with paper named "&eInfo" with lore "&7You can loan &a0-%{loan::%player%}%$" to do nothing
  20.  
  21. function loans(p: player):
  22. open virtual chest inventory with size 3 named "&e&lLoan Amount" to {_p}
  23. set {loanamount::%{_p}%} to 0
  24. create a gui slot 9 of {_p} with green glass named "&e+&a100$" to run function teen(player, 100)
  25. create a gui slot 10 of {_p} with green glass named "&e+&a1000$" to run function teen(player, 1000)
  26. create a gui slot 11 of {_p} with green glass named "&e+&a10000$" to run function teen(player, 10000)
  27. create a gui slot 12 of {_p} with green glass named "&e+&a100000$" to run function teen(player, 100000)
  28. create a gui slot 13 of {_p} with book named "&e&lAmount" with lore "&7Loan Amount: &a%{loanamount::%{_p}%}%" to run function amountloan(player)
  29.  
  30. function teen(p: player, n: number):
  31. add {_n} to {loanamount::%{_p}%}
  32. create a gui slot 13 of {_p} with book named "&e&lAmount" with lore "&7Loan Amount: &a%{loanamount::%{_p}%}%"
Advertisement
Add Comment
Please, Sign In to add comment