GKnzXp3e
Język: Skript
|
Autor: Anonimowy
variables: {duel::zaproszenie::%player%::%arg 1%} = false {walka::duel::%player%::%arg 1%} = false command /duelustawarena1 [<text>]: permission: duel.sk trigger: set {arenaduel::jeden} to player's location send "&7>> &aPoprawnie ustawiles teleport do areny dla jedengo gracza" to player stop command /duelustawarena2 [<text>]: permission: duel.sk trigger: set {arenaduel::dwa} to player's location send "&7>> &aPoprawnie ustawiles teleport do areny dla drugiego gracza" to player stop command /duelustawspawn [<text>]: permission: duel.sk trigger: set {arenaspawn} to player's location send "&7>> &aPoprawnie ustawiles spawn po zakonczeniu duelu" to player stop command /duel [<player>]: trigger: if arg 1 isn't set: send "&7>> &cPoprawne uzycie: /duel &7<&cgracz&7>" stop if arg 1 is set: if {duel::zaproszenie::%arg 1%::%player%} is true: send "&7>> &cJuz wyslales prosbe o pojedynek do tego gracza!" stop else: set {duel::zaproszenie::%arg 1%::%player%} to true send "&7>> &aWyslales prosbe o duel do gracza: &7%arg 1%" send "&7>> &aOtrzymales prosbe o pojedynek" to arg 1 send "&7>> &aProsbe wyslal: &7%player%" to arg 1 send "&7>> &aAby zaakceptowac wpisz: /duelaccept &7<&agracz&7>" to arg 1 send "&7>> &aAby odrzucil wpisz: /duelodrzuc &7<&agracz&7>" to arg 1 stop command /duelaccpet [<player>]: trigger: if arg 1 isn't set: send "&7>> &cPoprawne uzycie: /duelaccept &7<&cgracz&7>" stop if arg 1 is set: if {duel::zaproszenie::%player%::%arg 1%} isn't set: send "&7>> &cTen gracz nie wyslal Ci prosby o duel!" stop else: send "&7>> &aZaakceptowales duel gracza: &7%arg 1%" send "&7>> &aGracz &7%player% &azaakcpetowal Twoja prosbe o duel!" to arg 1 set {duel::zaproszenie::%player%::%arg 1%} to false teleport player to {arenaduel::jeden} teleport arg 1 to {arenaduel::dwa} clear player's inventory clear arg 1's inventory give 1 310 of protection 4 and unbreaking 3 to player give 1 310 of protection 4 and unbreaking 3 to arg 1 give 1 311 of protection 4 and unbreaking 3 to player give 1 311 of protection 4 and unbreaking 3 to arg 1 give 1 312 of protection 4 and unbreaking 3 to player give 1 312 of protection 4 and unbreaking 3 to arg 1 give 1 313 of protection 4 and unbreaking 3 to player give 1 313 of protection 4 and unbreaking 3 to arg 1 give 1 276 of sharpness 5 and unbreaking 3 to player give 1 276 of sharpness 5 and unbreaking 3 to arg 1 set {walka::duel::%player%::%arg 1%} to true stop command /duelodrzuc [<player>]: trigger: if arg 1 isn't set: send "&7>> &cPoprawne uzycie: /duelodrzuc &7<&cgracz&7>" stop if arg 1 is set: if {duel::zaproszenie::%player%::%arg 1%} isn't set: send "&7>> &cTen gracz nie wyslal Ci prosby o duel!" stop else: send "&7>> &aOdrzuciles duel gracza: &7%arg 1%" send "&7>> &aGracz &7%player% &aodrzucil Twoja prosbe o duel!" to arg 1 set {duel::zaproszenie::%player%::%arg 1%} to false stop on death: if victim is a player: if attacker is a player: if {walka::duel::%attacker%::%victim%} is true: teleport victim to {arenaspawn} teleport attacker to {arenaduel} clear victim's inventory clear attacker's inventory send "&7>> &cPrzegrales duel z: &7%attacker%" to victim send "&7>> &aWygrales duel z: %victim%" to attacker set {walka::duel::%attacker%::%victim%} to false