Advertisement
Guest User

a

a guest
Oct 14th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. variables:
  2. {bounty::%player%} = 0
  3.  
  4. options:
  5. version: v1.4
  6.  
  7. every 1 second:
  8. loop all players:
  9. if {bounty::%loop-player%} isn't set:
  10. set {bounty::%loop-player%} to 0
  11.  
  12. command /bounty [<text>] [<player>] [<integer>]:
  13. trigger:
  14. if arg-1 is set:
  15. if arg-1 is "add":
  16. if arg-2 is set:
  17. if arg-3 is a integer:
  18. if arg-2 isn't the player:
  19. if player's balance >= arg-3:
  20. if arg-3 is bigger than 0:
  21. add arg-3 to {bounty::%arg-2%}
  22. remove arg-3 from player's balance
  23. broadcast "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  24. broadcast "&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &6%player% &7Bountied &6%arg-2%%nl%&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7For &6$%arg-3%&7."
  25. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  26. else:
  27. send "&8➡ &cERROR &7You cannot bounty players with 0 or below."
  28. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  29. else:
  30. send "&8➡ &cERROR &7You do not have enough money."
  31. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  32. else:
  33. send "&8➡ &cERROR &7You cannot bounty yourself."
  34. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  35. if arg-1 is set:
  36. if arg-1 is "check":
  37. if arg-2 is set:
  38. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  39. send "&8➡ &7Username: &e%arg-2%"
  40. send "&8➡ &7Bounty: &e$%{bounty::%arg-2%}%"
  41. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  42. else:
  43. if player doesn't have the permission "bounty.admin":
  44. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  45. send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
  46. send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
  47. send "&8 &8➡ &e/bounty info &7The skript info." else:
  48. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  49. send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
  50. send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
  51. send "&8 &8➡ &e/bounty info &7The skript info."
  52. send "&8 &8➡ &e/bounty addbounty (player) (amount) &7This is a admin command it adds a player's bounty."
  53. send "&8 &8➡ &e/bounty setbounty (player) (amount) &7This is a admin command it sets a player's bounty."
  54. send "&8 &8➡ &e/bounty resetbounty (player) &7This is a admin command it resets a player's bounty"
  55. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  56. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  57. else:
  58. if player doesn't have the permission "bounty.admin":
  59. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  60. send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
  61. send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
  62. send "&8 &8➡ &e/bounty info &7The skript info."
  63. else:
  64. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  65. send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
  66. send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
  67. send "&8 &8➡ &e/bounty info &7The skript info."
  68. send "&8 &8➡ &e/bounty addbounty (player) (amount) &7This is a admin command it adds a player's bounty."
  69. send "&8 &8➡ &e/bounty setbounty (player) (amount) &7This is a admin command it sets a player's bounty."
  70. send "&8 &8➡ &e/bounty resetbounty (player) &7This is a admin command it resets a player's bounty"
  71. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  72. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  73. if arg-1 is set:
  74. if arg-1 is "addbounty":
  75. if arg-2 is set:
  76. if arg-3 is a integer:
  77. if player has the permission "bounty.admin":
  78. add arg-3 to {bounty::%arg-2%}
  79. loop all players:
  80. if loop-player has the permission "bounty.admin":
  81. send "&8 &8➡ &7%player% Has added $%arg-3% to %arg-2%'s bounty."
  82. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  83. else:
  84. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  85. if arg-1 is set:
  86. if arg-1 is "setbounty":
  87. if arg-2 is set:
  88. if arg-3 is a integer:
  89. if player has the permission "bounty.admin":
  90. set {bounty::%arg-2%} to arg-3
  91. loop all players:
  92. if loop-player has the permission "bounty.admin":
  93. send "&8 &8➡ &7%player% Has set $%arg-3% to %arg-2%'s bounty."
  94. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  95. else:
  96. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  97. if arg-1 is set:
  98. if arg-1 is "resetbounty":
  99. if arg-2 is set:
  100. if player has the permission "bounty.admin":
  101. set {bounty::%arg-2%} to 0
  102. loop all players:
  103. if loop-player has the permission "bounty.admin":
  104. send "&8 &8➡ &7%player% Has reset %arg-2%'s bounty."
  105. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  106. else:
  107. play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
  108. if arg-1 is set:
  109. if arg-1 is "info":
  110. send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  111. send "&8 &8➡ &fMade by Botable"
  112. send "&8 &8➡ &fVersion: &7{@version}"
  113. send "&7(Thanks to Viagrin and Ezzenix for allowing me to make this skript.)"
  114. play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
  115.  
  116. on death:
  117. if attacker isn't victim:
  118. if {bounty::%victim%} is bigger than 0:
  119. add {bounty::%victim%} to attacker's balance
  120. set {bounty::%victim%} to 0
  121. broadcast "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
  122. broadcast "&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &6%attacker% &7Has claimed &6%victim%'s%nl%&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7Bounty&7."
  123. loop all players:
  124. play sound "random.orb" with volume 3 and pitch 1 at loop-player's location for loop-player
  125.  
  126. every 1 second:
  127. loop all players:
  128. if {bounty::%loop-player%} is bigger than 0:
  129. set loop-player's tablist name to "%loop-player's prefix%%loop-player% &6(%{bounty::%loop-player%}%)"
  130. else:
  131. set loop-player's tablist name to "%loop-player's prefix%%loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement