Set quest rewards according to "num_npcs"

Modified "init_quest" to set rewards purely according to "num_npcs" and
moved the int16_t variable "i" from "init_quest" to "deinit_quest" where
it now belongs.