> OK, Maybe I'm just missing something here , but I cannot figure
> out where to
> define what items qualify as a "Special Item".  I have looked through the
> code that calls the "Special Item" and have looked through the
> "item_functions" without luck.  Is it possible to specify which
> items can be
> a special item or is this random?

        function SpecialItem()
        {
                global $DatabaseLink;

                //how often to change item
                $ChangeDays =7;

                //create array of item IDs
                $Item_ID = array(1,2,3);

                //get day of the year (1-365)
                $DayOfYear = date("z");

                //return item ID
                return($Item_ID[(floor($DayOfYear/$ChangeDays)%(count($Item_ID)))]);
        }

See the line that's commented "create array of item IDs"?  Put the IDs of
your
special items in there instead of just 1,2,3.

Chuck's right that a more elegant way is to use variations.

Leon



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to