Guest User

KALKULATOR BY SHEEZU

a guest
Apr 29th, 2015
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # KALKULATOR STWORZONY PRZEZ SHEEZU
  2. # ZEZWALAM NA DOWOLNA EDYCJE KODU
  3.  
  4. # OPCJE
  5.  
  6. options:
  7. tag: &b&lKalkulator &f» &a
  8. line: &f» &a
  9.  
  10. # KOMENDA
  11.  
  12. command /kalkulator [<number>] [<text>] [<number>]:
  13. trigger:
  14. if argument 1 is not set:
  15. send "{@tag}Komendy kalkulatora:"
  16. send "{@line}Dodawanie &f» &b/kalku <liczba> + <liczba>"
  17. send "{@line}Odejmowanie &f» &b/kalku <liczba> - <liczba>"
  18. send "{@line}Mnozenie &f» &b/kalku <liczba> * <liczba>"
  19. send "{@line}Dzielenie &f» &b/kalku <liczba> / <liczba>"
  20. if argument 1 is set:
  21. if argument 2 is "+":
  22. if argument 3 is set:
  23. set {_wynik} to argument 1+argument 3
  24. send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
  25. else:
  26. send "{@tag}Podaj druga liczbe!"
  27. if argument 2 is "-":
  28. if argument 3 is set:
  29. set {_wynik} to argument 1-argument 3
  30. send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
  31. else:
  32. send "{@tag}Podaj druga liczbe!"
  33. if argument 2 is "*":
  34. if argument 3 is set:
  35. set {_wynik} to argument 1*argument 3
  36. send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
  37. else:
  38. send "{@tag}Podaj druga liczbe!"
  39. if argument 2 is "/":
  40. if argument 3 is set:
  41. set {_wynik} to argument 1/argument 3
  42. send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
  43. else:
  44. send "{@tag}Podaj druga liczbe!"
  45.  
  46. # KONIEC :)
Advertisement
Add Comment
Please, Sign In to add comment