The "if getPlayerPromotionLevel(cid) < 2 then doPlayerSetPromotionLevel(cid, 2)" In plain english means, If the players promotion level is less than 2, then give the player the 2nd promotion.
And the 85987 is just a storage number thats not currently being used, by any other scripts.