Thread: Turn-in trouble
View Single Post
  #5  
Old 08-09-2007, 12:02 PM
Darkonig
Hill Giant
 
Join Date: Dec 2006
Posts: 102
Default

This example has an extra } for each if statement which ultimately results in the subroutine not compiling. The result of this is that the npc will quietly eat the items. You may find it easier to follow and maintain if you don't try to do everything on one line.

Code:
You have:
  if ($item1==1359){quest::say("Hmm, so you are the one who is moving through our ranks so quickly. Well, now you're an Agent, you also have more [assignments]!");quest::summonitem(1359);}
}

Easier to read (and without the extra } )
  if ($item1==1359) {
     quest::say("Hmm, so you are the one who is moving through our ranks so quickly. Well, now you're an Agent, you also have more [assignments]!");
     quest::summonitem(1359);
  }
Reply With Quote