So, I got everything to work (thank you Interest, and Swoosh for helping me with the problems I had).
Now I am wondering about some optimization, so I can release a good performance bot some time.
I am currently using a loop to read 0 - 769 for both the resources and mobs, I realize there is a npc/resource count ptr but how exactly does this work?
As far as I am aware (int i = 0; i < npc_count; i++) would not work for not every index is a valid ptr (NULL).
In simple terms, is there a better way to read out the index?






