lets try to analyse it one by one, first part seems ok. now consider the sentence,

"the mean ones will bite whether or not provoked" is equivalent to

"so whenever we have an elf which is mean it will bite"..... which means

"if the x is an elf and x is mean then x will bite"........

you will have to apply universal quantifier to above statement.....now the word "but" tells us that we have a conjunction with the above statement. also notice the phrase "only if" in the last part of the sentence. so we can convert that sentence as

"if the x is an elf and x is friendly and x bites then x is provoked"

you will have to apply universal quantifier here as well.........

so in the second part you have a conjunction and both the conjuncts have universal quantifier to it. since universal quantifier distributes over conjunction , you can use the universal quantifier at the beginning of the second part.

so can you convert the second part into the symbols ?