View Single Post
  #1  
Old 01-15-2007, 02:26 AM
ArChron
Fire Beetle
 
Join Date: Dec 2006
Location: Vienna
Posts: 28
Default tutorialb scripts

The tutorial scripts are a tad... overgenerous I think.
Since perl doesn't have a case/switch construct I can use to rewrite the code, it's an elsif rewrite...

The simple if ($itemcount{}) in the EVENT_ITEM sub allows major player shortcuts if you attempt the turn in for the biggest item first... With the series of independent

if this
if that
if otherthing

you also get any of the other items that require some sub-combination of components.

This is probably old news to anyone who has run their server for more than a week, but I'm just working mine up from the beginning...
Reply With Quote