Facebook
From bdsddsdsd, 8 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 160
  1. options:
  2.         linijki: 3
  3.         nazwaPlecakaWGui: &fPlecak
  4.         #slot 1 | slot 2 | slot 3
  5.         #slot 4 | slot 5 | slot 6
  6.         #slot 7 | slot 8 | slot 9
  7.         slot1: leather
  8.         slot2: leather
  9.         slot3: leather
  10.         slot4: leather
  11.         slot5: chest
  12.         slot6: leather
  13.         slot7: leather
  14.         slot8: leather
  15.         slot9: leather
  16.         plecak: chest named "&aPlecak podroznika" with lore "&7Kliknij PPM aby otworzyc."
  17. on script load:
  18.         wait 1 tick
  19.         register new shaped recipe for {@plecak} using {@slot1}, {@slot2}, {@slot3}, {@slot4}, {@slot5}, {@slot6}, {@slot7}, {@slot8}, {@slot9}
  20. on rightclick:
  21.         if player's tool is {@plecak}:
  22.                 cancel event
  23.                 open chest with {@linijki} rows named "{@nazwaPlecakaWGui}" to player
  24.                 wait 1 tick
  25.                 loop {@linijki}*9 times:
  26.                         set slot loop-number - 1 of current inventory of player to {nBackpack::%player%::%loop-number%}
  27. on inventory close:
  28.         if inventory name of current inventory of player is "{@nazwaPlecakaWGui}":
  29.                 clear {nBackpack::%player%::*}
  30.                 loop {@linijki}*9 times:
  31.                         set {nBackpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player