QuestCheck(var/mob/U)
if(U.QP >= U.QPN)
U << "[U.name] you gain a quest level!"
U.rating += 1
U.QP = 0
U.QPN += rand(10,15)
return 0
Problem description:
Debug says if(U.QP >= U.QPN) is a problem, QP is total quest points and QPN is quest points to next level and rating is just the integer of the level.