View Single Post
09-02-20, 10:22 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Why not replace:
Code:
else
	print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
	return
with:

Code:
else
	-- if required check if input is a player in your group/raid
		TableOfPlayers[input] = true
	-- else
	--	print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
	-- end
	return
Otherwise:
Code:
else
	local command, param1 = string.split(" ", input)
	if command = "hm" then -- hm for hasmount 
		TableOfPlayers[param1] = true
	else
		print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
	end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 09-02-20 at 10:41 AM.
  Reply With Quote