Originally Posted by Fizzlemizz
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
|
So I adapted to what you said:
Code:
elseif input == "print" then
for i,v in ipairs(mountList) do print(i,v) end
return
elseif input == "" then
else
local command, param1 = string.split(" ", input)
if command == "hm" then -- hm for hasmount
mountList[param1] = time()
else
print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
end
also added a print to try if the table was correct but when i do the print command nothing happens.