Ok guys I was really embarassed that I made such a poor job not testing the mouse movement with multiple maps. I made an effort and came up with a new version, now tested and I hope it works for everybody. The big problem was the map changes, becausa by what I could understand, every map has its own tile collection and the mouse functions get the value from that tile (example: map1 goes from tile (0,0) to (24,24) and so does map2. So, when we pressed the mouse on another map, we got coodinates belonging to that other map but treated as the current map.
I couldnt find a function to detect if the mouse was pressed over another map (altough I saw a similar function for entities). But the engine is great and I bet took a huge work from the developers.
As I was already messing with it, I managed to make 2 new features: 1) the player follow the mouse cursos while standing (it's not perfect tough, I dont know why) and 2) select the spell from the hotbar, and use the mouse right button to launch it (select pressing the numbers 1 to 9 will not launch the spell).
I also added a
I hope you all enjoy. I will post the edited files attached here. https://www.ascensiongamedev.com/resources/filehost/080c9da3a04360845f6f49a1857dcd10.cs (Intersect-Engine\Intersect.Client\Entities\Player.cs)
https://www.ascensiongamedev.com/resources/filehost/d2c13825973d55b5da9ab8985e22b343.cs (intersect-engine\Intersect.Client\Core\Input.cs)