ArtzifyHD

World Inventory

Aug 24th, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2.  
  3. # Every World With Every Inventory!
  4.  
  5.  
  6. # Implements In Your Skript!
  7.  
  8. function saveinv(w: text , p: player):
  9. set {_count} to 0
  10. loop 36 times:
  11. set {inv.%{_p}%.%{_count}%.main.%{_w}%} to slot {_count} of {_p}'s inventory
  12. add 1 to {_count}
  13. set {inv.%{_p}%.helmet.main.%{_w}%} to {_p}'s helmet
  14. set {inv.%{_p}%.chest.main.%{_w}%} to {_p}'s chestplate
  15. set {inv.%{_p}%.legs.main.%{_w}%} to {_p}'s leggings
  16. set {inv.%{_p}%.feet.main.%{_w}%} to {_p}'s boots
  17.  
  18.  
  19.  
  20.  
  21. function giveinv(w: text , p: player , a: text):
  22. execute console command "/clear %{_p}%"
  23. wait 1 tick
  24. set {_count} to 0
  25. loop 36 times:
  26. set slot {_count} of {_p}'s inventory to {inv.%{_p}%.%{_count}%.main.%{_w}%}
  27. add 1 to {_count}
  28. set the helmet of {_p} to {inv.%{_p}%.helmet.main.%{_w}%}
  29. set the chestplate of {_p} to {inv.%{_p}%.chest.main.%{_w}%}
  30. set the leggings of {_p} to {inv.%{_p}%.legs.main.%{_w}%}
  31. set the boots of {_p} to {inv.%{_p}%.feet.main.%{_w}%}
  32.  
  33.  
  34. on teleport:
  35. saveinv("%event-world%" , player)
  36. giveinv("%future world%" , player , "%event-world%")
Advertisement
Add Comment
Please, Sign In to add comment