Inventory Item transfer

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

bobby

Active Member
Jan 28, 2017
61
0
6
26
Skript version: 2.2
Mc Version: 1.10.2


Hello so is there any way on the command /post <player> it will give the <player> the person who ran the command's book that has the name "Tester". So the book was in the inverntory of the person to ran the command at first but after the command the book is now in the <player> inventory. Sorry for the bad english! Any help will be apprecitated.
 
So, you want transfer the book named "Tester" to the player-argument's inventory? Just loop through the items in the player's inventory, check if the looped item is a book named "Tester", give the looped item to the player-argument and remove it from the event-player's inventory.
 
  • Like
Reactions: bobby
So, you want transfer the book named "Tester" to the player-argument's inventory? Just loop through the items in the player's inventory, check if the looped item is a book named "Tester", give the looped item to the player-argument and remove it from the event-player's inventory.
How would I move it item to the other player that's why I made this thread in the first place for the code.
 
How would I move it item to the other player that's why I made this thread in the first place for the code.
I'm not going to spoon feed you, and I hope others will not also. Go read the docs and try it yourself, it's not as hard as it seems and I've clearly explained how do it.