ok I kinda got it to work, I messed around and got it to recognize multiple lines but the word title shows up in front of my custom title, it looks somthing like this(title MyCustomTitle) this only shows up on line one.
this is what i did.
listen(integer chan, string name, key id, string msg)
{
string mesg;
mesg = llToLower(msg);
if(chan == 1)
{
if(llGetOwnerKey(id) == llGetOwner())
{ if(llGetSubString(mesg, 0, 5) == "title ")
{
title = llGetSubString(msg, 6, -1);
title = llDumpList2String( llParseStringKeepNulls( msg, ["|"], [] ), "\n" );
if(llToLower(title) == "titleoff")
{
title = "";
}
I know I did something right but I also messed up something because title is showing up, however I am getting more than one line now, so my question is what did i do wrong?