Doing bai-bai with cigarettes instead of incense

Why is this done? Is it only for the eighteen Royal Lords (Wangye), or is it more general? I thought it was only gangsters who did this, but someone told me that’s not true.

not only at this temple, but particularly at this temple :

when you make offerings to gods or to your dead relatives, you try to chose what they used to like. As for the 18 kings, they were sailors, and sailors are known to love smoking. so the cigarettes.