okkunsyouta

Untitled

Jan 26th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 KB | None | 0 0
  1. options:
  2. bit: &7[&b&lBit&a&lCoin&r&7]&r
  3.  
  4. variables:
  5. {acoin.money} = 10000
  6. {acoin.buy} = 1000
  7. {acoin.sell} = 1000
  8. {acoin.random} = 123
  9. {acoin.randomremove} = 123
  10. {acoin.have} = 0
  11.  
  12. command /buy [<text>] [<number>]:
  13. description: BitCoin購入
  14. trigger:
  15. if arg 1 is not set:
  16. send "{@bit}"
  17. else if arg 1 is "bitcoin":
  18. if arg 2 is not set:
  19. send "{@bit} 買うコインの量を設定してください。"
  20. else if arg 2 is set:
  21. send "{@bit} あなたは &b&lBit&aCoin &rを &d&l%arg 2% &r枚購入しました。"
  22. add arg 2 to {acoin.have.%player%}
  23. loop arg-2 times:
  24. execute console command "eco take %player% %{acoin.money}%"
  25. add 900 to {acoin.money}
  26.  
  27. command /sell [<text>] [<number>]:
  28. description: BitCoin売却
  29. trigger:
  30. if arg 1 is not set:
  31. send "{@bit}"
  32. else if arg 1 is "acoin":
  33. if arg 2 is not set:
  34. send "{@bit} 売るコインの量を設定してください。"
  35. else if arg 2 is set:
  36. if {acoin.have.%player%} is greater than or equal to arg-2:
  37. send "{@bit} %arg 2% 枚の BitCoinを、売却しました。"
  38. remove arg 2 from {acoin.have.%player%}
  39. loop arg-2 times:
  40. execute console command "eco give %player% %{acoin.money}%"
  41. remove 850 from {acoin.money}
  42.  
  43. command /check [<text>] [<player>]:
  44. trigger:
  45. if arg 1 is not set:
  46. send "{@bit}"
  47. else if arg 1 is "bitcoin":
  48. if arg 2 is not set:
  49. send "{@bit} あなたのBitCoin: &d&l%{acoin.have.%player%}% 枚"
  50. else if arg 2 is set:
  51. player has permission "skript.checkother"
  52. send "{@bit} %arg 2%のBitCoin: &d&l%{acoin.have.%player%}% 枚"
  53. else if arg 1 is "balance":
  54. send "{@bit} 今のBitCoin 1枚の相場: %{acoin.money}%"
  55.  
  56. command /setbal [<text>] [<number>]:
  57. permission: skript.setbal
  58. trigger:
  59. if arg 1 is not set:
  60. send "{@bit}"
  61. else if arg 1 is "bitcoin":
  62. if arg 2 is not set:
  63. send "{@bit} セットしたい相場額を入力してください。"
  64. else if arg 2 is set:
  65. set {acoin.money} to arg 2
  66. send "{@bit} 正常にセットされました。 今の相場は &d&l%{acoin.money}% &rです。"
  67.  
  68. command /addbal [<text>] [<number>]:
  69. permission: skript.addbal
  70. trigger:
  71. if arg 1 is not set:
  72. send "{@bit} 今の仮想通貨: bitcoin"
  73. else if arg 1 is "bitcoin":
  74. if arg 2 is not set:
  75. send "{@bit} 追加したい相場額を入力してください。"
  76. else if arg 2 is set:
  77. add arg 2 to {acoin.money}
  78. send "{@bit} 正常に追加されました。今の相場は &d&l%{acoin.money}% &rです。"
  79.  
  80. command /removebal [<text>] [<number>]:
  81. permission: skript.removebal
  82. trigger:
  83. if arg 1 is not set:
  84. send "{@bit} 今の仮想通貨: bitcoin"
  85. else if arg 1 is "bitcoin":
  86. if arg 2 is not set:
  87. send "{@bit} 減少させたい相場額を入力してください。"
  88. else if arg 2 is set:
  89. remove arg 2 from {acoin.money}
  90. send "{@bit} 正常に減少されました。今の相場は &d&l%{acoin.money}% &rです。"
Add Comment
Please, Sign In to add comment