Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # KALKULATOR STWORZONY PRZEZ SHEEZU
- # ZEZWALAM NA DOWOLNA EDYCJE KODU
- # OPCJE
- options:
- tag: &b&lKalkulator &f» &a
- line: &f» &a
- # KOMENDA
- command /kalkulator [<number>] [<text>] [<number>]:
- trigger:
- if argument 1 is not set:
- send "{@tag}Komendy kalkulatora:"
- send "{@line}Dodawanie &f» &b/kalku <liczba> + <liczba>"
- send "{@line}Odejmowanie &f» &b/kalku <liczba> - <liczba>"
- send "{@line}Mnozenie &f» &b/kalku <liczba> * <liczba>"
- send "{@line}Dzielenie &f» &b/kalku <liczba> / <liczba>"
- if argument 1 is set:
- if argument 2 is "+":
- if argument 3 is set:
- set {_wynik} to argument 1+argument 3
- send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
- else:
- send "{@tag}Podaj druga liczbe!"
- if argument 2 is "-":
- if argument 3 is set:
- set {_wynik} to argument 1-argument 3
- send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
- else:
- send "{@tag}Podaj druga liczbe!"
- if argument 2 is "*":
- if argument 3 is set:
- set {_wynik} to argument 1*argument 3
- send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
- else:
- send "{@tag}Podaj druga liczbe!"
- if argument 2 is "/":
- if argument 3 is set:
- set {_wynik} to argument 1/argument 3
- send "{@tag}Twoj wynik to: &b%{_wynik}%&a."
- else:
- send "{@tag}Podaj druga liczbe!"
- # KONIEC :)
Advertisement
Add Comment
Please, Sign In to add comment