Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {strzelec.kasa} = true
- {strzelec.item} = true
- {mob::1} = zombie
- {mob::2} = creeper
- 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
- teleportujaca: &eTeleportujaca
- mob: &2Mob
- wyrzucajaca: &cWyrzucajaca
- # 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
- koszt.teleportujaca: 10
- koszt.mob: 10
- koszt.wzryucajaca: 10
- 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&f, &eTeleportujaca"
- send "&2Mob&f, &eWyrzucajaca"
- 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.%name of player%} is not set:
- set {podpalajaca.%name of player%} to 1
- {mob.%name of player%} is not set:
- set {mob.%name of player%} to 1
- {wybuchajaca.%name of player%} is not set:
- set {wybuchajaca.%player%} to 1
- {teleportujaca.%name of player%} is not set:
- set {trujaca.%name of player%} to 1
- {spowalniajaca.%name of player%} is not set:
- set {spowalniajaca.%name of player%} to 1
- {oszalamiajaca.%name of player%} is not set:
- set {oszalamiajaca.%name of player%} to 1
- {piorun.%name of player%} is not set:
- set {piorun.%name of player%} to 1
- {teleportujaca.%name of player%} is not set:
- set {teleportujaca.%name of player%} to 1
- {wyrzucajaca.%name of player%} is not set:
- set {wyrzucajaca.%name of player%} to 1
- {thearcher.%name of player%.strzala::typ} is not set:
- set {thearcher.%name of player%.strzala::typ} to 0
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 0:
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 1:
- if player doesn't have permission "strzelec.podpalajaca":
- stop
- set {thearcher.%name of player%.strzala::typ} to 6
- if {podpalajaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@podpalajaca} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 2:
- if player doesn't have permission "strzelec.wybuchajaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {wybuchajaca.%player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@wybuchajaca} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 3:
- if player doesn't have permission "strzelec.trujaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {trujaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@trujaca} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 4:
- if player doesn't have permission "thearcher.piorun":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {piorun.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@piorun} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 5:
- if player doesn't have permission "strzelec.spowalniajaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {spowalniajaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@spowalniajaca} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 6:
- if player doesn't have permission "strzelec.oszalamiajaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {oszalamiajaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@oszalamiajaca} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 7:
- if player doesn't have permission "strzelec.teleportujaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {teleportujaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@teleportujaca} &1>"
- stop
- {thearcher.%name of player%.strzala::typ} is 8:
- if player doesn't have permission "strzelec.mob":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {mob.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@mob} &1>"
- stop
- add 1 to {thearcher.%name of player%.strzala::typ}
- {thearcher.%name of player%.strzala::typ} is 9:
- if player doesn't have permission "strzelec.wyrzucajaca":
- set {thearcher.%name of player%.strzala::typ} to 6
- stop
- if {wyrzucajaca.%name of player%} is 1:
- send "{@tag} &f- &aWybrales strzale: &1< {@wyrzucajaca} &1>"
- stop
- add 1 to {thearcher.%name of 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 1:
- if {podpalajaca.%victim%} is 1:
- ignite the victim for {@czas.podpalania} seconds
- stop
- {thearcher.%victim%.strzala::typ} is 5:
- 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 9:
- if {wyrzucajaca.%victim%} is 1:
- push the victim upwards at speed 0.9
- stop
- on projectile hit:
- projectile is arrow
- {thearcher.%shooter%.strzala::typ} is 4:
- if {piorun.%shooter%} is 1:
- strike lightning at projectile
- stop
- {thearcher.%shooter%.strzala::typ} is 2:
- if {wybuchajaca.%shooter%} is 1:
- create an explosion of force 2 at projectile
- stop
- {thearcher.%shooter%.strzala::typ} is 7:
- if {teleportujaca.%shooter%} is 1:
- teleport shooter to projectile
- stop
- {thearcher.%shooter%.strzala::typ} is 8:
- if {mob.%shooter%} is 1:
- spawn a zombie or creeper or skeleton or spider or silverfish or slime or ghast at projectile
- stop
- on rightclick with bow:
- if {strzelec.kasa} is true:
- if {podpalajaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.podpalajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.podpalajaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- stop
- if {trujaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.trujaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.trujaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- stop
- if {wybuchajaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.wybuchajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wybuchajaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- stop
- if {spowalniajaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.spowalniajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.spowalniajaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.podpalajaca} from the player's balance
- stop
- if {oszalamiajaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.oszalamiajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.oszalamiajaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.oszalamiajaca} from the player's balance
- stop
- if {teleportujaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.teleportujaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.teleportujaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.teleportujaca} from the player's balance
- stop
- if {wzryucajaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.mob}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.mob} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.wzryucajaca} from the player's balance
- stop
- if {teleportujaca.%name of player%} is 1:
- if player's balance is smaller than {@koszt.wzryucajaca}:
- send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wzryucajaca} $"
- toggle the block at the arrow
- cancel event
- stop
- remove {@koszt.wzryucajaca} from the player's balance
- stop
Add Comment
Please, Sign In to add comment