View Single Post
  #4  
Old 05-23-2009, 03:08 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

I may be misunderstanding your comment, but quest::istaskcompleted() returns 0 for false and 1 for true, so:
Code:
if(quest::istaskcompleted(20)) {
    // do something
}
is the same as:
Code:
if(quest::istaskcompleted(20) != 0) {
    // do something
}
The first form is just shorthand.
Reply With Quote