You will need to supply much more information to get a decent answer.

Here's a short list of things you should start with:
  • Version of KiXtart
  • Operating systems of servers and clients
  • Number of sites
  • Computer and printer names
  • IP address schema


There are quite a few scripts already on the board for assigning printers by location. Use the search facility to search the "starters" and "script" forums - this may turn up something which already matches your requirements.