>>1843306
Also, if you want to min-max the optimization you should make the NPCS appearance and animation client sided and avoid sending thousands of packets to the server, use a packet compressor if you really have to, you can also learn OOP to reuse code better but thats a bit more advanced