View Single Post
  #6  
Old 11-17-2012, 12:22 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

elsif is better to use so that once one condition is met the rest of the elsif blocks are skipped. otherwise every single check is made for every single hand in.

This is not breaking your script, but you are using the return items incorrectly. You need to call it at the end of the EVENT_ITEM sub outside of any if/else block. That is a common misunderstanding and a lot of quests are wrote incorrectly even in the PEQ SVN.

Code:
}
  else {
    quest::say("This does not interest me, $name.");
  }
  plugin::return_items(\%itemcount);
}
Reply With Quote