I looked at this npc but it wasn't him, I found it very simple. But thank you very much.
It was exactly what I was looking for. Now I replicated and modified it to my liking for testing and it worked 100%. I just have doubts about the spaces before the settings, sometimes it causes an error. Thank you very much.