View Single Post
  #13  
Old 04-02-2016, 01:58 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 65,547
tahbikat is on a distinguished road
Default

PHP Code:
 if($random && $random 20){
                
$item "Bass";
                
$qty 1;
                
$newitem = new StockItem($item);
                
$newitem->append($qty$mysidia->user->username);  
                
$document->add(new Comment("Oh look! You caught a <img src='http://atrocity.mysidiahost.com/picuploads/png/2879896ec53a9ca6f0fe008ed741fcf9.png' /><b>$item</b>!<a href='http://atrocity.mysidiahost.com/exploreforestlake'><b>Continue Fishing?</a></b>"FALSE));
                
            }
            
                
$item "Catfish";
                
$qty 1;
                
$newitem = new StockItem($item);
                
$newitem->append($qty$mysidia->user->username);  
                
$document->add(new Comment("Oh look! You caught a <img src='http://atrocity.mysidiahost.com/picuploads/png/c7c6b8aecbedb50364a4a1f337465205.png' /><b>$item</b>!<a href='http://atrocity.mysidiahost.com/exploreforestlake'><b>Continue Fishing?</a></b>"FALSE));
                
            }
            
                
$item "Minnow";
                
$qty 1;
                
$newitem = new StockItem($item);
                
$newitem->append($qty$mysidia->user->username);  
                
$document->add(new Comment("Oh look! You caught a <img src='http://atrocity.mysidiahost.com/picuploads/png/97c91ea1a9b860bd200ed64613075c28.png'/> <b>$item</b>!<a href='http://atrocity.mysidiahost.com/exploreforestlake'><b>Continue Fishing?</a></b>"FALSE));
                
            } 
Is this supposed to reward three different catches at once? (Bass, Catfish, Minnow) If so, you need to remove the extra brackets at the end of the Bass and Catfish item codes. If not, then you need to fix those up and add if statements with the random number lines like the others have.
Reply With Quote