Internal sub-template. Determines the item ID of the 旗幟 associated with the respective NPC, based on the 電腦版 1.3.5.3 source code.