Facebook
From Abrupt Octupus, 7 Years ago, written in Plain Text.
This paste is a reply to OMG from xN0MANDx - view diff
Embed
Download Paste or View Raw
Hits: 373
  1. command /targ:
  2.     trigger:
  3.         wait a tick
  4.         open chest with 6 rows named "&1&l&oTargi" to player
  5.         set {_targi::*} to {targi2::*} 
  6.         set {_targi} to size of {targi2::*}    
  7.         loop {_targi} times:
  8.             add 1 to {targil}
  9.             set {targio.%{targil}%} to player
  10.             add {targio.%{targil}%} to {targi2::*}
  11.             wait 0.01 second
  12.             format slot {targil} of player with chest named "&d&oTarg %{targio.%{targil}%}" to close then run "sprawdz %player%"
  13.        
  14. on join:
  15.     add player to {targi2::*}
  16.     set {targil} to -1
  17.    
  18. on quit:
  19.     clear {targio.%{targil}%}
  20.     set {targil} to -1
  21.     clear {targi2::*}
  22.     set {_targi::*} to {targi2::*}
  23.     set {_targi} to size of {targi2::*}