Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {strzelec.kasa} = true
- options:
- # Ogolne
- tag: &4[ &6Strzelec&4 ]
- msg.noperm: &cBrak Uprawnien
- # Nazwy strzal
- podpalajaca: &6Podpalajaca
- wybuchajaca: &fWybuchajaca
- normalna: &9Normalna
- trujaca: &5Trujaca
- piorun: &1Piorun
- spowalniajaca: &7Spowalniajaca
- oszalamiajaca: &aOszalamiajaca
- # Czas efektow
- czas.trutki: 10
- czas.oszolomienia: 10
- czas.spowlonienia: 10
- czas.podpalania: 10
- # Kasa za uzycie
- koszt.podpalajaca: 10
- koszt.oszalamiajaca: 10
- koszt.trujaca: 10
- koszt.wybuchajaca: 10
- koszt.spowalniajaca: 10
- # Czas po urzuciu strzaly
- czas: 2
- command /strzelec [<text>] [<text>]:
- trigger:
- if arg 1 isn't set:
- if player doesn't have permission "strzelec.lista":
- stop
- send "&4--------------------------------------------"
- send " &2&LLista strzal:"
- send " ---------------"
- send "&6Podpalajaca&f, &fWybuchajaca&f, &9Normalna&f, &5Trujaca&f,"
- send "&7Spowalniajaca&f, &aOszalamiajaca"
- send "&4--------------------------------------------"
- if arg 1 is "reload":
- if player doesn't have permission "strzelec.reload":
- send "{@msg.noperm}"
- stop
- execute player command "sk reload %script%"
- send "{@tag} &cPrzeladowano"
- if arg 1 is "kasa":
- if arg 2 is "on":
- if player has permission "strzelec.kasa":
- set {strzelec.kasa} to true
- send "{@tag} &7Kasa za strzaly &awlaczona"
- stop
- if arg 2 is "off":
- if player has permission "checkblock":
- set {strzelec.kasa} to false
- send "{@tag} &7Kasa za strzaly &cwylaczony"
- stop
- else:
- send "{@msg.noperm}"
- stop
- else:
- send "{@tag} &c/strzelec <&fon/off&c>"
- stop
- on leftclick with bow:
- {podpalajaca.%player%} is not set:
- set {podpalajaca.%player%} to 1
- {wybuchajaca.%player%} is not set:
- set {wybuchajaca.%player%} to 1
- {teleportujaca.%player%} is not set:
- set {trujaca.%player%} to 1
- {spowalniajaca.%player%} is not set:
- set {spowalniajaca.%player%} to 1
- {oszalamiajaca.%player%} is not set:
- set {oszalamiajaca.%player%} to 1
- {piorun.%player%} is not set:
- set {piorun.%player%} to 1
- {thearcher.%player%.strzala::typ} is not set:
- set {thearcher.%player%.strzala::typ} to 0
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 0:
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 1:
- if player doesn't have permission "strzelec.podpalajaca":
- stop
- set {thearcher.%player%.strzala::typ} to 6
- if {podpalajaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@podpalajaca} &1>"
- enchant the player's tool with flame
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 2:
- if player doesn't have permission "strzelec.wybuchajaca":
- set {thearcher.%player%.strzala::typ} to 6
- stop
- if {wybuchajaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@wybuchajaca} &1>"
- disenchant the player's tool
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 3:
- if player doesn't have permission "strzelec.trujaca":
- set {thearcher.%player%.strzala::typ} to 6
- stop
- if {trujaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@trujaca} &1>"
- disenchant the player's tool
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 4:
- if player doesn't have permission "thearcher.piorun":
- set {thearcher.%player%.strzala::typ} to 6
- stop
- if {piorun.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@piorun} &1>"
- disenchant the player's tool
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 5:
- if player doesn't have permission "strzelec.spowalniajaca":
- set {thearcher.%player%.strzala::typ} to 6
- stop
- if {spowalniajaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@spowalniajaca} &1>"
- disenchant the player's tool
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- {thearcher.%player%.strzala::typ} is 6:
- if player doesn't have permission "strzelec.oszalamiajaca":
- set {thearcher.%player%.strzala::typ} to 6
- stop
- if {oszalamiajaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@oszalamiajaca} &1>"
- disenchant the player's tool
- stop
- add 1 to {thearcher.%player%.strzala::typ}
- else:
- send "{@tag} &f- &aWybrales strzale: &1< {@normalna} &1>"
- set {thearcher.%player%.strzala::typ} to 0
- on damage:
- projectile is arrow
- {thearcher.%victim%.strzala::typ} is 5:
- if {spowalniajaca.%victim%} is 1:
- ignite the victim for {@czas.podpalania} seconds
- stop
- {thearcher.%victim%.strzala::typ} is 1:
- if {spowalniajaca.%victim%} is 1:
- apply slowness 3 to the victim for {@czas.spowlonienia} seconds
- stop
- {thearcher.%victim%.strzala::typ} is 6:
- if {oszalamiajaca.%victim%} is 1:
- apply Nausea of tier 10 to the victim for {@czas.oszolomienia} seconds
- apply Blindness 1 to the victim for {@czas.oszolomienia} seconds
- stop
- {thearcher.%victim%.strzala::typ} is 3:
- if {trujaca.%victim%} is 1:
- poison the victim for {@czas.trutki} seconds
- stop
- {thearcher.%victim%.strzala::typ} is 2:
- if {wybuchajaca.%victim%} is 1:
- create an explosion of force 1 at victim
- stop
- on projectile hit:
- projectile is arrow
- {thearcher.%shooter%.strzala::typ} is 4:
- if {piorun.%shooter%} is 1:
- strike lightning at projectile
- stop
- on rightclick with bow:
- if {strzelec.kasa} is true:
- if {podpalajaca.%player%} is 1:
- if player's balance is smaller than {@koszt.podpalajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.podpalajaca} $"
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- if {trujaca.%player%} is 1:
- if player's balance is smaller than {@koszt.trujaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.trujaca} $"
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- if {wybuchajaca.%player%} is 1:
- if player's balance is smaller than {@koszt.wybuchajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wybuchajaca} $"
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- if {spowalniajaca.%player%} is 1:
- if player's balance is smaller than {@koszt.spowalniajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.spowalniajaca} $"
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- if {oszalamiajaca.%player%} is 1:
- if player's balance is smaller than {@koszt.oszalamiajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.oszalamiajaca} $"
- cancel event
- stop
- remove {@koszt.oszalamiajaca} from the player's balance
Advertisement
Add Comment
Please, Sign In to add comment