Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign change:
- if line 1 is "[Sklep]":
- if player is not an op:
- send "&4Nie masz uprawnien!"
- cancel event
- stop
- set {_b} to line 3
- set line 3 to "&4Kupno: %{_b}%"
- set {_s} to line 4
- set line 4 to "&eSprzedaz: %{_s}%"
- set {tabliczki::%location of event-block%::b} to {_b}
- set {tabliczki::%location of event-block%::s} to {_s}
- send "&2Pomyslnie zmieniono!"
- on rightclick on sign:
- if line 1 is "[Sklep]":
- cancel event
- if line 2 is set:
- if line 3 is set:
- set {_} to line 2
- set {_b} to {tabliczki::%location of event-block%::b}
- if player's balance is greater or equal to {_b}:
- remove {_b} from player's balance
- give {_} to player
- send "&2Zakonczono tranzakcje!"
- stop
- else:
- send "&4Masz za malo pieniedzy!"
- stop
- on leftclick on sign:
- if line 1 is "[Sklep]":
- if player is an op:
- if player is holding diamond pickaxe:
- stop
- cancel event
- if line 2 is set:
- if line 4 is set:
- set {_} to line 2
- set {_s} to {tabliczki::%location of event-block%::s}
- if player has {_}:
- remove {_} from player
- add {_s} to player's balance
- send "&2Zakonczono tranzakcje!"
- stop
- else:
- send "&4Nie masz tego przedmiotu!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment