Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Mozesz na spokojnie dodac do lore funkcje na spacje, zadziala.
- # Bledy? Pisz, naprawie jak najszybciej!
- 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 "&cNie mozesz tyle wyplacic, poniewaz tyle nie masz na koncie!" to {_p}
- function shadowMessage(p: player):
- send "&2Twoj stan konta: &a%{money::%{_p}%}%$" 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 "&2Pomyslnie dodano karte do twojego konta, aktualnie posiadasz: &a%{money::%{_p}%}%$" to {_p}
- remove {_p}'s tool from {_p}'s inventory
- stop
- send "&cMozesz jedynie trzymac x1!" 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 "&cTa kwota jest zbyt niska!"
- 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 "&cPodaj kwote, musi byc ona wieksza od 0!"
- send "&7&oPamietaj... Mozna odzielac spacjami, ulatwia to strasznie!"
- send "&7&oPlanowane dodanie: Mozliwosc wpisywania k, kk, kkk!"
- on join:
- add 1000000 to {money::%player%}
- send "&4&oUsun ta linijke, dodaje to 1kk do stanu konta!"
- send "&4&oTa linijka byla dla testow, nie ma za co :D!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement