Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {gold.} = 0
- options:
- cena_kaptura_nowicjusza: 20
- cena_szaty_nowicjusza: 20
- cena_spodni_nowicjusza: 20
- cena_butow_nowicjusza: 20
- command /gold [<text>] [<player>]:
- trigger:
- if arg 2 is not set:
- if arg 1 is not set:
- send "Twoja ilosc zlota wynosi %{gold.%player%}%"
- else:
- add arg-1 to {gold.%player%}
- else:
- add arg-1 to {gold.%arg-2%}
- command /kupkapno [<player>]:
- trigger:
- if arg is not set:
- if {gold.%player%} is greater than {@cena_kaptura_nowicjusza}:
- give 1 leather helmet named "&5&lKaptur Nowicjusza" to the player
- stop
- else:
- send "nie masz tyle złota"
- else:
- if {gold.%player%} is greater than {@cena_kaptura_nowicjusza}:
- give 1 leather helmet named "&5&lKaptur Nowicjusza" to player-arg
- stop
- else:
- send "nie masz tyle złota"
- command /kupszano [<player>]:
- trigger:
- if arg is not set:
- if {gold.%player%} is greater than {@cena_szaty_nowicjusza}:
- give 1 leather tunic named "&5&lSzata Nowicjusza" to the player
- stop
- else:
- send "nie masz tyle złota"
- else:
- if {gold.%player%} is greater than {@cena_szaty_nowicjusza}:
- give 1 leather tunic named "&5&lSzata Nowicjusza" to player-arg
- stop
- else:
- send "nie masz tyle złota"
- command /kupspno [<player>]:
- trigger:
- if arg is not set:
- if {gold.%player%} is greater than {@cena_spodni_nowicjusza}:
- give 1 leather pants named "&5&lSpodnie Nowicjusza" to the player
- stop
- else:
- send "nie masz tyle złota"
- else:
- if {gold.%player%} is greater than {@cena_spodni_nowicjusza}:
- give 1 leather pants named "&5&lSpodnie Nowicjusza" to player-arg
- stop
- else:
- send "nie masz tyle złota"
- command /kupbuno [<player>]:
- trigger:
- if arg is not set:
- if {gold.%player%} is greater than {@cena_butow_nowicjusza}:
- give 1 leather boots named "&5&lButy Nowicjusza" to the player
- stop
- else:
- send "nie masz tyle złota"
- else:
- if {gold.%player-arg%} is greater than {@cena_butow_nowicjusza}:
- give 1 leather boots named "&5&lButy Nowicjusza" to player-arg
- stop
- else:
- send "nie masz tyle złota"
- command /sklep [<text>] [<player>]:
- trigger:
- if arg 2 is not set:
- if arg 1 is "maga":
- open chest with 4 rows named "&6&lSklep Maga" to the player
- wait 2 tick
- format slot 2 of player with 1 diamond to be unstealable
- format slot 3 of player with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno"
- format slot 6 of player with 1 diamond to be unstealable
- format slot 11 of player with 1 diamond to be unstealable
- format slot 12 of player with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano"
- format slot 15 of player with 1 diamond to be unstealable
- format slot 20 of player with 1 diamond to be unstealable
- format slot 21 of player with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno"
- format slot 24 of player with 1 diamond to be unstealable
- format slot 29 of player with 1 diamond to be unstealable
- format slot 30 of player with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno"
- format slot 33 of player with 1 diamond to be unstealable
- else:
- if arg 1 is "maga":
- open chest with 4 rows named "&6&lSklep Maga" to player-arg
- wait 2 tick
- format slot 2 of player-arg with 1 diamond to be unstealable
- format slot 3 of player-arg with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno %player%"
- format slot 6 of player-arg with 1 diamond to be unstealable
- format slot 11 of player-arg with 1 diamond to be unstealable
- format slot 12 of player-arg with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano %player%"
- format slot 15 of player with 1 diamond to be unstealable
- format slot 20 of player-arg with 1 diamond to be unstealable
- format slot 21 of player-arg with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno %player%"
- format slot 24 of player-arg with 1 diamond to be unstealable
- format slot 29 of player-arg with 1 diamond to be unstealable
- format slot 30 of player-arg with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno %player%"
- format slot 33 of player-arg with 1 diamond to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment