Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- C: &8(*) &7
- p: &8(*) &7
- S: &r
- S1: &r
- C1: chemist
- PM: Unknown command. Type "/help" for help.
- variables:
- {joustarena} = false
- {joust1} = false
- on load:
- broadcast "{@C}{@S}Duels.sk&7 by Dittoo was loaded!"
- command /dtoggle:
- permission: {@C1}.dtoggle
- permission message: {@PM}
- trigger:
- if {joustarena} is false:
- set {joustarena} to true
- message "{@C}&7Duels are now enabled!"
- stop
- if {joustarena} is true:
- set {joustarena} to false
- message "{@C}&7Duels are now disabled!"
- stop
- command /duel <player>:
- usage: /duel <player>
- aliases: /1v1, /challenge, /d
- trigger:
- if argument 1 is equal to command sender:
- message "{@C}&7You cannot duel yourself!" to player
- stop
- if {joust1} is true:
- message "{@C}&7All arenas are in use, please try again later." to command sender
- stop
- if {joustarena} is true:
- if {joustinvite:%arg 1%:%command sender%} is set:
- send "{@C}You already have an active request!"
- stop
- else:
- message "{@C}You sent a duel request to {@S}%arg-1%&7!" to command sender
- set {joustinvite:%arg 1%:%command sender%} to true
- message "{@C}You were sent a duel invite from {@S}%command sender%&7, {@S}/accept {@S}%command sender%&7 to accept it!" to arg-1
- wait 30 seconds
- if {joustinvite:%arg-1%:%command sender%} is set:
- send "&7Your invitation from %command sender% has expired!" to arg-1
- send "&7Your invitation to %arg-1% has expired!" to command sender
- delete {joustinvite:%arg-1%:%command sender%}
- stop
- else:
- message "{@C}&7Duels are currently {@S}disabled&7! Try again later!"
- stop
- command /accept <player>:
- aliases: a, acc
- trigger:
- if arg-1 is equal to command sender:
- message "{@C}&7You cannot joust yourself!" to player
- stop
- if {joustarena} is true:
- if {joustinvite:%command sender%:%arg 1%} is true:
- if {joust1} is false:
- message "{@C}&7You accepted a duel request from %arg 1%" to command sender
- message "{@C}&7Your request from %command sender% was accepted" to arg-1
- set {jouster1} to player
- set {jouster2} to argument 1
- broadcast "{@C}{@S}%arg 1% &7has challenged {@S}%command sender%&7!"
- heal arg-1 by 10.0 hearts
- heal command sender by 10.0 hearts
- execute console command "/gamemode adventure %command sender%"
- execute console command "/gamemode adventure %arg-1%"
- execute console command "/scoreboard teams join *GT %command sender%"
- execute console command "/scoreboard teams join *GT %arg-1%"
- delete {joustinvite:%command sender%:%arg 1%}
- delete {joustinvite:%arg-1%:%command sender%}
- make command sender execute command "/dwarp 1"
- make arg-1 execute command "/dwarp 2"
- set {joust1} to true
- stop
- else:
- send "{@C}All arenas are in use, please try again later."
- stop
- else:
- send "{@C}%arg-1% has not requested to duel you!"
- stop
- else:
- send "{@C}Duels are currently {@S}disabled&7."
- stop
- on death of player:
- if {joustarena} is true:
- if {jouster1} is equal to victim:
- if {jouster2} is equal to attacker:
- broadcast "{@C}&7%{jouster2}% &7has defeated&7 %{jouster1}%!"
- execute console command "/spawn %{jouster2}%"
- heal {jouster2} by 10.0 hearts
- clear the inventory of {jouster2}
- clear the inventory of {jouster1}
- delete {jouster2}
- delete {jouster1}
- set {joust1} to false
- if {jouster2} is equal to victim:
- if {jouster1} is equal to attacker:
- broadcast "{@C}&7%{jouster1}% &7has defeated&7 %{jouster2}%!"
- execute console command "/spawn %{jouster1}%"
- heal {jouster1} by 10.0 hearts
- clear the inventory of {jouster1}
- clear the inventory of {jouster2}
- delete {jouster1}
- delete {jouster2}
- set {joust1} to false
- on quit:
- if {joustarena} is true:
- if {jouster1} is equal to player:
- broadcast "{@C}&7%{jouster2}% &7has defeated&7 %{jouster1}%!"
- execute console command "/win %{jouster2}%"
- heal {jouster2} by 10.0 hearts
- clear the inventory of {jouster2}
- clear the inventory of {jouster1}
- delete {jouster2}
- delete {jouster1}
- set {joust1} to false
- if {jouster2} is equal to player:
- broadcast "{@C}&7%{jouster1}% &7has defeated &7%{jouster2}%&7!"
- execute console command "/win %{jouster1}%"
- heal {jouster1} by 10.0 hearts
- clear the inventory of {jouster1}
- clear the inventory of {jouster2}
- delete {jouster1}
- delete {jouster2}
- set {joust1} to false
- on skript stop:
- delete {jouster1}
- delete {jouster2}
- set {joust1} to false
- on skript start:
- delete {jouster1}
- delete {jouster2}
- set {joust1} to false
- command /dwarpset <integer>:
- permission: chemist.warpset
- permission message: {@PM}
- trigger:
- set {warp.%arg-1%} to location of player
- message "&7Duel spawn {@S}%arg-1%&7 is now at {@S}%location of player%&7!"
- command /dwarp <integer>:
- trigger:
- if {jouster1} is equal to player:
- teleport player to {warp.%arg-1%}
- message "&7Teleporting to duel spawn..."
- stop
- if {jouster2} is equal to player:
- teleport player to {warp.%arg-1%}
- message "&7Teleporting to duel spawn..."
- stop
- if {jouster1} is equal to player:
- stop
- if {jouster2} is equal to player:
- stop
- send "{@C}An error occurred, please try again."
- command /win <player>:
- executable by: players and console
- permission: tiger.core.op
- trigger:
- if argument 1 is equal to {jouster1}:
- broadcast "{@C}&7%{jouster1}% &7has defeated&7 %{jouster2}%!"
- if argument 1 is equal to {jouster2}:
- broadcast "{@C}&7%{jouster2}% &7has defeated&7 %{jouster1}%!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement