Advertisement
IchinoseYuki

IY-Dice.sk v1.0

Feb 2nd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. #Written by IchinoseYuki Discord:一ノ瀬雪#1027
  2. #Request: IY-Core Ver:1.0 or later
  3.  
  4. on script load:
  5. broadcast "&e&l&k|||&9&l[&b&lIchinoseYuki Skript - Dice&9&l]&e&l&k|||&r &7Ver.1.0"
  6.  
  7. command /dice [<string>] [<string>]:
  8. trigger:
  9. if arg-1 is not set:
  10. send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is "en"
  11. send "&4失敗: &rコマンドの引数を指定してください。" if {IY::config::%uuid of player%::language} is "ja"
  12. send "&4Error: &rSpecify argument for command." if {IY::config::%uuid of player%::language} is not set
  13. stop
  14. if arg-1 parsed as number is not more than 0:
  15. if arg-2 is not set:
  16. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "en"
  17. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "ja"
  18. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%" if {IY::config::%uuid of player%::language} is not set
  19. else:
  20. if arg-2 parsed as number is not more than 0:
  21. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is "en"
  22. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is "ja"
  23. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1% %arg-2%" if {IY::config::%uuid of player%::language} is not set
  24. else:
  25. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is "en"
  26. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is "ja"
  27. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice &c&n%arg-1%&7 %arg-2%" if {IY::config::%uuid of player%::language} is not set
  28. stop
  29. if arg-2 is not set:
  30. send "&aSuccess: &rThe dice roll is %random integer between 1 and arg-1 parsed as number%." if {IY::config::%uuid of player%::language} is "en"
  31. send "&aSuccess: &rサイコロの目は%random integer between 1 and arg-1 parsed as number%です。" if {IY::config::%uuid of player%::language} is "ja"
  32. send "&aSuccess: &rThe dice roll is %random integer between 1 and arg-1 parsed as number%." if {IY::config::%uuid of player%::language} is not set
  33. stop
  34. if arg-2 is set:
  35. if arg-2 parsed as number is not more than 0:
  36. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is "en"
  37. send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is "ja"
  38. send "&4Error: &rIncorrect argument for command.%nl%&0: &7/dice %arg-1% &c&n%arg-2%" if {IY::config::%uuid of player%::language} is not set
  39. stop
  40. loop arg-2 parsed as number time:
  41. add random integer between 1 and arg-1 parsed as number to {_d::*}
  42. send "&aSuccess: &rThe dice rolls are %{_d::*}%." if {IY::config::%uuid of player%::language} is "en"
  43. send "&aSuccess: &rサイコロの目は%{_d::*}%です。" if {IY::config::%uuid of player%::language} is "ja"
  44. send "&aSuccess: &rThe dice rolls are %{_d::*}%." if {IY::config::%uuid of player%::language} is not set
  45. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement