Advertisement
Tarna256

profile skript

Jul 8th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. on join:
  2. if {players::*} does not contain player:
  3. add player to {players::*}
  4. set {firstjoin::%player's uuid%} to now
  5. remove 4 hours from {firstjoin::%player's uuid%}
  6.  
  7. command /profile <offline player>:
  8. trigger:
  9. profile(arg-1)
  10.  
  11. function profile(p: player):
  12. open virtual chest with 3 rows named "&4%{_p}% Stats" to {_p}
  13. set {_u} to {_p}'s uuid
  14. set {_s} to 0
  15. loop 27 times:
  16. format gui slot {_s} of {_p} with gray stained glass pane named " "
  17. add 1 to {_s}
  18. format gui slot 11 of {_p} with command block named "&e%{_p}% Idle Stats" with lore "&7Credits: &e%{credits::%{_u}%}%" and "&7CPS: &e%{cps::%{_u}%}%" and " " and "&5Click for More" to run:
  19. idleStats({_p})
  20. format gui slot 13 of {_p} with skull of {_p} named "&e%{_p}%'s Profile" with lore "&7Rank: &r%colored {_p}'s prefix%" and "&7First Join: &e%{firstjoin::%{_u}%}% EST" and "&7Level: &e%{level::%{_u}%}%" and "&7Achievment Points: &e%{achpoints::%{_u}%}%"
  21. format gui slot 15 of {_p} with diamond sword named "&e%{_p}% Pit Stats" with lore "&7Kills: &e%{kills::%{_u}%}%" and "&7Deaths: &e%{deaths::%{_u}%}%" and " " and "&5Click for More" to run:
  22. pitStats({_p})
  23.  
  24. function idleStats(p: player):
  25. open virtual chest with 3 rows named "&4%{_p}% Idle Stats" to {_p}
  26. set {_u} to {_p}'s uuid
  27. set {_s} to 0
  28. loop 27 times:
  29. format gui slot {_s} of {_p} with gray stained glass pane named " "
  30. add 1 to {_s}
  31. format gui slot 11 of {_p} with command block named "&eCredit Stats" with lore "&7Credits: &e%{credits::%{_u}%}%" and "&7CPS: &e%{cps::%{_u}%}%" and "&7Advertise Gain: &e%{click::%{_u}%}%" and "&7Advertise Multi: &e%{multi::click::%{_u}%}%" and "&7CPS Multi: &e%{multi::cps::%{_u}%}%"
  32. format gui slot 13 of {_p} with skull of {_p} named "&e%{_p}% Idle Stats"
  33. format gui slot 15 of {_p} with paper named "&eUpgrade Amounts" with lore "&7Daily: &e%{upgrades::cps::Daily::%{_u}%}%" and "&7Weekly: &e%{upgrades::cps::Weekly::%{_u}%}%" and "&7Biweekly: &e%{upgrades::cps::Biweekly::%{_u}%}%" and "&7Monthly: &e%{upgrades::cps::Monthly::%{_u}%}%" and "&7Quarterly: &e%{upgrades::cps::Quarterly::%{_u}%}%" and "&7Yearly: &e%{upgrades::cps::Yearly::%{_u}%}%" and "&7Unlimited: &e%{upgrades::cps::Unlimited::%{_u}%}%" and "&7Ultimate: &e%{upgrades::cps::Ultimate::%{_u}%}%" and "&7GOD: &e%{upgrades::cps::GOD::%{_u}%}%"
  34.  
  35. function pitStats(p: player):
  36. open virtual chest with 3 rows named "&4%{_p}% Put Stats" to {_p}
  37.  
  38. command /reset <text> [<player>]:
  39. permission: reset
  40. trigger:
  41. if arg-1 is "amt":
  42. if arg-1 is set:
  43. resetUpgradeAmt(arg-2)
  44. else:
  45. send "&cSpecify a Player"
  46. if arg-1 is "var":
  47. resetJoin()
  48.  
  49. function resetUpgradeAmt(p: player):
  50. set {_u} to {_p}'s uuid
  51. clear {upgrades::cps::Daily::%{_u}%}
  52. clear {upgrades::cps::Weekly::%{_u}%}
  53. clear {upgrades::cps::Biweekly::%{_u}%}
  54. clear {upgrades::cps::Monthly::%{_u}%}
  55. clear {upgrades::cps::Quarterly::%{_u}%}
  56. clear {upgrades::cps::Yearly::%{_u}%}
  57. clear {upgrades::cps::Unlimited::%{_u}%}
  58. clear {upgrades::cps::Ultimate::%{_u}%}
  59. clear {upgrades::cps::GOD::%{_u}%}
  60.  
  61. function resetJoin():
  62. clear {players::*}
  63. clear {var::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement