Kusa_Haenai_wWW

Untitled

Apr 25th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. command /keisan [<number>] [<text>] [<number>]:
  2. trigger:
  3. if arg-1 is not set:
  4. message "&e&l/keisan <数字> <記号> <数字>"
  5. if arg-1 = {suuji1}:
  6.  
  7. if arg-3 = {suuji2}:
  8.  
  9. if arg-2 is "+":
  10. set {kotae} to floor({suuji1}+{suuji2})
  11. if arg-2 is "-":
  12. set {kotae} to floor({suuji1}-{suuji2})
  13. if arg-2 is "*":
  14. set {kotae} to floor({suuji1}*{suuji2})
  15. if arg-2 is "/":
  16. set {kotae} to floor({suuji1}/{suuji2})
Add Comment
Please, Sign In to add comment