Check quest status/state for player

Example:

if ch:qstatus(300) == 1 then
 
    say("qset 300 has a value of 1")
 
end