familychicken

Untitled

Jan 8th, 2022 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. variables:
  2. {%player%.pps} = 1
  3. {%player%.effect} = 1
  4.  
  5. every 2 tick:
  6. loop all players:
  7. add (0.1*{%loop-player%.pps}) to {%loop-player%.p}
  8. send action bar with text "&fポイント &a%{%loop-player%.nna::1}% &f秒速ポイント%{%loop-player%.pps}%" to loop-player
  9. command "/scoreboard players set %loop-player% pointa %floor(log({%loop-player%.p})*100)%"
  10. command "/expoa %{%loop-player%.p}% 1 %loop-player%"
  11. if {%loop-player%.pps} >= 1*10^10:
  12. set {%loop-player%.effect} to 0.5
  13.  
  14.  
  15. command /add <player> <number>:
  16. permission: skript.admin
  17. trigger:
  18. add {%arg-1%.pps}*arg-2 to {%arg-1%.p}
  19.  
  20.  
  21. command /buy:
  22. trigger:
  23. add (0.001*{%player%.p})^{%player%.effect} to {%player%.pps}
  24. message "ポイント収集機械を &a%0.001*{%player%.p}% &f個作りました。"
  25. set {%player%.p} to 0
  26.  
  27.  
  28. command /playerpoint <player>:
  29. trigger:
  30. message "ポイント : %{%arg%.p}% 秒速 : %{%arg%.pps}%" to player
  31.  
  32. command /res <number> <integer>:
  33. trigger:
  34. if arg-2 <= 1:
  35. stop trigger
  36. set {_a} to arg-2
  37. if arg-1 is 1:
  38. if {%player%.p} >= 1000*arg-2:
  39. command "/give %player% log %{_a}%"
  40. remove 1000*arg-2 from {%player%.p}
  41. else:
  42. message "%1000*arg-2%必要"
  43. if arg-1 is 2:
  44. if {%player%.p} >= 10000*arg-2:
  45. command "/give %player% ingot_ingot %{_a}%"
  46. remove 10000*arg-2 from {%player%.p}
  47. else:
  48. message "%10000*arg-2%必要"
  49. if arg-1 is 3:
  50. if {%player%.p} >= 100000*arg-2:
  51. command "/give %player% gold_ingot %{_a}%"
  52. remove 100000*arg-2 from {%player%.p}
  53. else:
  54. message "%100000*arg-2%必要"
  55. if arg-1 is 4:
  56. if {%player%.p} >= 10000000*arg-2:
  57. command "/give %player% diamond %{_a}%"
  58. remove 10000000*arg-2 from {%player%.p}
  59. else:
  60. message "%10000000*arg-2%必要"
  61. if arg-1 is 5:
  62. if {%player%.p} >= 10^10*arg-2:
  63. command "/give %player% hay_block %{_a}%"
  64. remove 10^10*arg-2 from {%player%.p}
  65. else:
  66. message "%arg-2%e10必要"
  67. if arg-1 is 6:
  68. if {%player%.p} >= 10^19*arg-2:
  69. command "/give %player% ender_pearl %{_a}%"
  70. remove 10^19*arg-2 from {%player%.p}
  71. else:
  72. message "%arg-2%e19必要"
  73.  
  74.  
  75. command /expoa <number> <integer> <player>:
  76. permission: skript.admin
  77. trigger:
  78. set {_hid} to arg-2
  79. if arg-1 is not 0:
  80. set {_exp1} to floor(log(arg-1))
  81. set {%arg-3%.nna::%{_hid}%} to "%arg-1/(10^{_exp1})%e%{_exp1}%"
  82. else:
  83. set {%arg-3%.nna::%{_hid}%} to 0
  84.  
  85. command /setnumber <player> <number> <number>:
  86. permission: skript.admin
  87. trigger:
  88. if arg-3 is 1:
  89. set {%arg-1%.p} to arg-2
  90. else:
  91. set {%arg-1%.pps} to arg-2
Advertisement
Add Comment
Please, Sign In to add comment