MOST **not all** NPC's have a "X!" at 0xA8 which makes for easy identification of the location, some do not though, but the Clan number is still at 0xAC.
to set the clan:
Create the clan for the NPC's.
(Just push it into the database with a false Clan leader and userid so it's not tied to an account)
get the clan number. In this case I'm using 1000000001.
Convert it to hex:
Code:
1000000001 -> 3B 9A CA 01
Convert to Little Endian (Reverse the byte order):
Code:
3B 9A CA 01 -> 01 CA 9A 3B
Save the file and restart the server.
If the clan system is not working, the NPC will have empty square brackets over their head and you will be able to see the clan number through the GM client.
If the clan system works it should display the clan name and logo.
Enjoy.
At some point i'll create a small tool to be able to do them en masse. but cbf for now.