Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shadowMessage(p: player):
- send "&2Hajs &3» &fTwoj stan konta: &e%{money::%{_p}%}%&l$" to {_p}
- function shadowCommand(t: text, p: player):
- replace all " " with "" in {_t}
- set {_t} to ("%{_t}%" parsed as number)
- if {_t} is number:
- if {money::%{_p}%} >= {_t}:
- remove {_t} from {money::%{_p}%}
- give {_p} 1 brick named "&f&lKarta Kredytowa" with lore "&0||&eWartosc: &b%{_t}%$"
- stop
- send "&cBlad &3» &fNie masz tyle kasy, zmniejsz cene!" to {_p}
- function shadowDzialanie(p: player):
- {_p}'s tool is brick:
- amount of item {_p}'s tool = 1:
- set {_lore} to "%uncoloured lore of {_p}'s tool%"
- replace all " " and "$" and "Wartosc" and ":" and "||" with "" in {_lore}
- set {_lore} to ("%{_lore}%" parsed as number)
- add {_lore} to {money::%{_p}%}
- send "&6Karta &3» &2(&a+%{_lore}%&e&l$&2) &fDodano do twojego konta!" to {_p}
- remove {_p}'s tool from {_p}'s inventory
- stop
- send "&cBlad &3» &fNie mozesz trzymac wiecej niz jedna karte!" to {_p}
- on rightclick with brick:
- set {_p} to player
- shadowDzialanie({_p})
- command /kasa [<text>]:
- aliases: money, monety, hajs
- trigger:
- set {_p} to player
- shadowMessage({_p})
- command /karta [<text>]:
- trigger:
- arg 1 is set:
- set {_number} to ("%arg 1%" parsed as number)
- {_number} > 0:
- set {_p} to player
- set {_t} to arg 1
- shadowCommand({_t}, {_p})
- stop
- {_number} doesn't contain " ":
- send "&cBlad &3» &fZa malo posiadasz pieniedzy!"
- stop
- replace all " " with "" in {_number}
- set {_number} to ("%arg 1%" parsed as number)
- set {_p} to player
- set {_t} to arg 1
- shadowCommand({_t}, {_p})
- stop
- send "&cBlad &3» &7Poprawne uzycie: &f(/karta <liczba, mozna odzielac spacjami, wkrotce bedzie mozliwosc wpisywania: &bk, kk, kkk&f)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement