You could have went with Quest Journal - Local and Client quest data addon
My addon is a bit more general than this since it will also integrate exceptions for other added "BASIC_DATA_TYPES", also by local I meant locally tied to a quest, not location. But I digress.
BTW, I did answer and said I solved the location issue. But people kept posting and I had nothing more to add.
I don't know if you read the other people answers: but basically you asked a question,
@kyonides took time to look into the code and state where to probably change things and you just said "Actually I asked an ai and I did not even acknowledge what you said" (you did not say that but it feels like it). In the same post you then state that you have another problem, giving the impression that you expect us to help you solve it.
That feels ungrateful to the time other people took to help you. After you suggest you have another problem,
@Roninator2 arrives and asks out of curiosity for the code to maybe solve your next problem but you were probably more focused on your ai issue.
Lastly, you also did not acknowledge my last contribution in any way, like "oh, this solves this" or "thanks, I will look into it", or "actually I don't know how to make it work" except for telling me what I did wrong to get your attention. Like, at least take some time to thank the people for trying to help you?
I think that I can be annoying and I get annoyed quickly, but I try to show a minimum of recognition to other people input. (Though sometime in the moment I really don't know what to say x) ).
At the very least right now I don't feel like wanting to help you any further for your future problems.