I haven't even looked at an RSPS since about 2013, but I see things have really moved on
Unlike most of you I am still going to be using the original PI. After starting up a server again one of the things that always frustrated me was NPC clipping.
Now I am not a great or experienced programmer, so I'm going to be producing tutorials that are simple and solve the problem for newbies NPC clipping will always be better client sided as there is no strain on the server. But it's too advanced for me to make from scratch at the moment so I've made a bit of code that fixes the problem temporarily.
Any suggestions for improvements would be appreciated - I will be updating this thread as I develop the system.
Open up your NPCHandler.java
Search for "if (npcs[i].walkingType == 1) {"
Replace the whole section with the following:
Now in-game you need to be holding item 292 and have Owner status. If you click on the book it will let you jump on top of objects and print code to your Data/cfg/tile_block_list.txt - Then all you have to do is copy and paste those codes into your NPChandler.java
No Clipping is always server sided. Normaly you use the map files from the cache to make clipping work. Also your code would get reaaaaaaaally slow when you implement whole map chunks, just from the mass of tiles that you need to check for.
No Clipping is always server sided. Normaly you use the map files from the cache to make clipping work. Also your code would get reaaaaaaaally slow when you implement whole map chunks, just from the mass of tiles that you need to check for.
Ah. Now I think about it, it makes sense as people can always edit the client.
And yeah I didn't really design it for the use of mass tiles, it's more for NPCs based in houses to avoid having to remove objects.
But thanks again for the feedback - I'll have a look at messing with the map files