daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.     set "targi.options.ulepszenie" to "1" in yaml file "plugins/Skript/Profile/%{nick::%player%}%.yml"
  3.     loop 27 times:
  4.         set "targi.slot.%loop-number%" to "false" in yaml file "plugins/Skript/Profile/%{nick::%player%}%.yml"
  5. command /plecak [<text>]:
  6.     trigger:
  7.         if player has permission "VIP.DODATKI":
  8.             set {_rows} to 6
  9.         else:
  10.             set {_u} to single value "targi.options.ulepszenie" get of "plugins/Skript/Profile/%{nick::%player%}%.yml"
  11.             set {_rows} to {_u}
  12.         open chest with {_rows} rows named "Plecak" to player
  13.         wait 2 ticks
  14.         set {_l::*} to configuration section "targi.slot" get of "plugins/Skript/Profile/%{nick::%player%}%.yml"
  15.         loop {_l::*}:
  16.             set {_c} to loop-value
  17.             set {_c} to "%{_c}%" parsed as item
  18.             set player's current inventory slot loop-index to {_c}
  19.         send "&9Otworzono Plecak."
  20. on inventory close:
  21.     if inventory name of player's current inventory is "Plecak":
  22.         if player has permission "VIP.DODATKI":
  23.             set {_rows} to 6
  24.         else:
  25.             set {_u} to single value "targi.options.ulepszenie" get of "plugins/Skript/Profile/%{nick::%player%}%.yml"
  26.             set {_rows} to {_u}
  27.         set {_x} to {_rows}*9
  28.         loop {_x} times:
  29.             set "targi.slot.%loop-number%" to "%player's current inventory slot {_x}%" in yaml file "plugins/Skript/Profile/%{nick::%player%}%.yml"
  30.         send "&9Zamknieto plecak"
  31. on rightclick with flint:
  32.     if player has permission "VIP.DODATKI":
  33.         send "&7Masz &6VIP&7, twoj plecak jest juz ulepszony na maksymalny poziom!"
  34.         stop
  35.     if lore of event-item is "&dUlepsza twoj plecak do 2 paskow.":
  36.         set {_u} to single value "targi.options.ulepszenie" get of "plugins/Skript/Profile/%{nick::%player%}%.yml"
  37.         set {_rows} to {_u}
  38.         if {_u} is 2:
  39.             send "&7Twoj plecak juz jest ulepszony na 2 poziom!"
  40.         else:
  41.             remove 1 of event-item from player
  42.             send "&7Ulepszyles swoj plecak!"
  43.             set "targi.options.ulepszenie" to "2" in yaml file "plugins/Skript/Profile/%{nick::%player%}%.yml"
  44.             stop
  45.     if lore of event-item is "&dUlepsza twoj plecak do 3 paskow.":
  46.         if {_u} is 3:
  47.             send "&7Twoj plecak juz jest ulepszony na maksymalny poziom!"
  48.         else:
  49.             remove 1 of event-item from player
  50.             send "&7Ulepszyles swoj plecak!"
  51.             set "targi.options.ulepszenie" to "3" in yaml file "plugins/Skript/Profile/%{nick::%player%}%.yml"
  52.             stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top