Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Nazwa: MiniChat and MyPhone
- # Autor: Zaaxel
- # Wersja: 1.0
- variables:
- {minichat.sms} = false
- {mcmoney.%player%} = 100
- {mymoney.%player%} = 0
- every 1 minutes:
- loop all players:
- add 1 to {mcmoney.%loop-player%}
- send "&eCo minute otrzymujesz &a1€" to loop-player
- on first join:
- set {minichat.sms} to false
- send "&2Witaj! Na serwerze uzywamy &6Telefonow. &2Wiecej pod /myinfo"
- on join:
- set {minichat.sms} to false
- on chat:
- cancel event
- loop players in radius 25 around player:
- send "%coloured player's displayname%&7: %message%" to loop-player
- send "%coloured player's displayname%&7: %message%" to all ops
- command /buy:
- trigger:
- wait 2 tick
- open chest with 1 rows named "&6MobileShop" to player
- wait 2 tick
- format slot 0 of player with 1 of brick named "&bNOKIA" with lore "&a250€" to run "buyphone %player% nokia"
- format slot 1 of player with 1 of iron ingot named "&bSAMSUNG" with lore "&a350€" to run "buyphone %player% samsung"
- format slot 2 of player with 1 of gold ingot named "&bLG" with lore "&a400€" to run "buyphone %player% lg"
- command /buyphone [<player>] [<text>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is "nokia":
- if {mcmoney.%player-arg%} is more than 250:
- remove 250 from {mcmoney.%player-arg%}
- give 1 brick named "&bNOKIA" to the player-arg
- send "&6Zakupiles/las telefon NOKIA za &a250€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- if arg 2 is "samsung":
- if {mcmoney.%player-arg%} is more than 350:
- remove 350 from {mcmoney.%player-arg%}
- give 1 iron ingot named "&bSAMSUNG" to the player-arg
- send "&6Zakupiles/las telefon SAMSUNG za &a350€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- if arg 2 is "lg":
- if {mcmoney.%player-arg%} is more than 400:
- remove 400 from {mcmoney.%player-arg%}
- give 1 gold ingot named "&bLG" to the player-arg
- send "&6Zakupiles/las telefon LG za &a400€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- on rightclick:
- if player's tool is brick named "&bNOKIA":
- wait 2 tick
- open chest with 1 rows named "&6MyNOKIA" to player
- wait 2 tick
- format slot 0 of player with 1 of sunflower named "&aStan Konta" to run "myphone %player% stan"
- format slot 1 of player with 1 of clay named "&aDoladuj" to run "myphone %player% doladuj"
- format slot 8 of player with 1 of redstone dust named "&cInformacje" to run "myphone %player% info"
- on rightclick:
- if player's tool is iron ingot named "&bSAMSUNG":
- wait 2 tick
- open chest with 1 rows named "&6MySAMSUNG" to player
- wait 2 tick
- format slot 0 of player with 1 of sunflower named "&aStan Konta" to run "myphone %player% stan"
- format slot 1 of player with 1 of clay named "&aDoladuj" to run "myphone %player% doladuj"
- format slot 8 of player with 1 of redstone dust named "&cInformacje" to run "myphone %player% info"
- on rightclick:
- if player's tool is gold ingot named "&bLG":
- wait 2 tick
- open chest with 1 rows named "&6MyLG" to player
- wait 2 tick
- format slot 0 of player with 1 of sunflower named "&aStan Konta" to run "myphone %player% stan"
- format slot 1 of player with 1 of clay named "&aDoladuj" to run "myphone %player% doladuj"
- format slot 8 of player with 1 of redstone dust named "&cInformacje" to run "myphone %player% info"
- command /myphone [<player>] [<text>] [<text>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is "stan":
- send "&cStan konta wynosi: &a%{mymoney.%player-arg%}%€" to player-arg
- if arg 2 is "doladuj":
- wait 2 tick
- open chest with 1 rows named "&6Doladowania" to player-arg
- wait 2 tick
- format slot 0 of player-arg with 1 paper named "&a5€" to run "myphone %player-arg% doladuj 5"
- format slot 1 of player-arg with 1 paper named "&a10€" to run "myphone %player% doladuj 10"
- format slot 2 of player-arg with 1 paper named "&a25€" to run "myphone %player% doladuj 25"
- if arg 3 is "5":
- if {mcmoney.%player-arg%} is more than 5:
- remove 5 from {mcmoney.%player-arg%}
- add 5 to {mymoney.%player-arg%}
- send "&cDoladowales telefon kwota &a5€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- if arg 3 is "10":
- if {mcmoney.%player-arg%} is more than 10:
- remove 10 from {mcmoney.%player-arg%}
- add 10 to {mymoney.%player-arg%}
- send "&cDoladowales telefon kwota &a10€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- if arg 3 is "25":
- if {mcmoney.%player-arg%} is more than 25:
- remove 25 from {mcmoney.%player-arg%}
- add 25 to {mymoney.%player-arg%}
- send "&cDoladowales telefon kwota &a25€"
- else:
- send "&cNie masz tyle pieniedzy!"
- send "&cPosiadasz: &a%{mcmoney.%player-arg%}%€"
- if arg 2 is "info":
- send "&c>>> &6MyPhone and MiniChat &c<<<"
- send "&bAuthor: Zaaxel"
- send "&bVersion: 1.0"
- send "&c>>> &6MyPhone and MiniChat &c<<<"
- send "&aNa serwerze gracze widza co napisales jezeli sa w promieniu 25 kratek od ciebie"
- send "&bAby kupic telefon wpisz &6--> /buy"
- send "&bAby zobaczyc ile posiadasz przy sobie pieniedzy wpisz &6--> /kasa"
- send "&bAby wyslac sms musisz miec doladowany telefo i wpisac &6--> /sms <gracz> <tresc> &cKOSZT 1€"
- send "&bAby wyslac ogloszenie musisz posiadac telefon LG i wpisac &6--> /toall <tresc> &cKOSZT 5€"
- command /sms [<player>] [<text>]:
- trigger:
- if arg 1 is set:
- if {mymoney.%player%} is more than 2:
- remove 2 from {mymoney.%player%}
- set {minichat.sms} to true
- execute player command "msg %player-arg% %arg 2%"
- wait 2 tick
- set {minichat.sms} to false
- else:
- send "&cBrak srodkow na koncie"
- else:
- send "&cWprowadz odbiorce i tresc wiadomosci"
- command /toall [<text>]:
- trigger:
- if {mymoney.%player%} is more than 5:
- remove 5 from {mymoney.%player%}
- send "&e%arg%" to all players
- else:
- send "&cZbyt mala ilosc srodkow na koncie: &a%{mymoney.%player%}%€"
- command /kasa:
- trigger:
- send "&cPosiadasz &a%{mcmoney.%player%}%€"
- command /msg [<player>] [<text>]:
- trigger:
- if {minichat.sms} is false:
- cancel event
- send "&cJezeli masz telefon to uzyj komendy /sms"
- command /myinfo:
- trigger:
- send "&c>>> &6MyPhone and MiniChat &c<<<"
- send "&bAuthor: Zaaxeel"
- send "&bVersion: 1.0"
- send "&c>>> &6MyPhone and MiniChat &c<<<"
- send "&aNa serwerze gracze widza co napisales jezeli sa w promieniu 25 kratek od ciebie"
- send "&bAby kupic telefon wpisz &6--> /buy"
- send "&bAby zobaczyc ile posiadasz przy sobie pieniedzy wpisz &6--> /kasa"
- send "&bAby wyslac sms musisz miec doladowany telefo i wpisac &6--> /sms <gracz> <tresc> &cKOSZT 1€"
- send "&bAby wyslac ogloszenie musisz posiadac telefon LG i wpisac &6--> /toall <tresc> &cKOSZT 5€"
Advertisement
Add Comment
Please, Sign In to add comment