Jump to content

random item give


RetYT

Recommended Posts

On 6/2/2020 at 7:41 AM, jeelzzz said:

This should work... You can either use '/rgive (player)' to give it to a specific player or just '/rgive' to give it to yourself.


command /rgive [<player>]:
	trigger:
		if arg-1 is not set:
			give player a random item out of all items
		else:
			give arg-1 a random item out of all items

Hope this helped!

You can also further simplify the command
 

command rgive <player=player>:
	trigger:
		give arg-1 a random item out of all items

 

  • Like 1

First Joined: July 2015
VIP: January 2020
Jr.Mod: 1st April 2020
Mod: 16th July 2020

Info:

~ Skript Developer
~ Discord: @nicholxs#0001
~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...