Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {credit::%player%} is not set:
- set {credit::%player%} to 0
- if {loan::%player%} is not set:
- set {loan::%player%} to 10000
- command /loan:
- trigger:
- open virtual chest inventory with size 1 named "&e&lLoan" to player
- create a gui slot 0 of player with gray glass named "" to do nothing
- create a gui slot 1 of player with gray glass named "" to do nothing
- create a gui slot 2 of player with gray glass named "" to do nothing
- create a gui slot 4 of player with book named "&eLoan Money" with lore "&7Your credit: &a%{credit::%player%}%" to run function loans(player)
- 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
- create a gui slot 6 of player with gray glass named "" to do nothing
- create a gui slot 7 of player with gray glass named "" to do nothing
- create a gui slot 8 of player with gray glass named "" to do nothing
- if {loan::%player%} is 10000:
- create a gui slot 5 of player with paper named "&eInfo" with lore "&7You can loan &a0-%{loan::%player%}%$" to do nothing
- function loans(p: player):
- open virtual chest inventory with size 3 named "&e&lLoan Amount" to {_p}
- set {loanamount::%{_p}%} to 0
- create a gui slot 9 of {_p} with green glass named "&e+&a100$" to run function teen(player, 100)
- create a gui slot 10 of {_p} with green glass named "&e+&a1000$" to run function teen(player, 1000)
- create a gui slot 11 of {_p} with green glass named "&e+&a10000$" to run function teen(player, 10000)
- create a gui slot 12 of {_p} with green glass named "&e+&a100000$" to run function teen(player, 100000)
- create a gui slot 13 of {_p} with book named "&e&lAmount" with lore "&7Loan Amount: &a%{loanamount::%{_p}%}%" to run function amountloan(player)
- function teen(p: player, n: number):
- add {_n} to {loanamount::%{_p}%}
- 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