Add explore page text
place the code below before
PHP Code:
if ($mysidia->user->exploretimes <= 100) {
:
PHP Code:
$document->add(new Comment("Page Text<br>"));
Adding Adopt Images
PHP Code:
if($random >= 41 && $random <= 60){
$species = "AdoptName";
$newadopt = new StockAdopt($species);
$newadopt->append($mysidia->user->username);
$adoptIMG = $mysidia->db->select("adoptables", array("eggimage"), "id = 'PlaceAdoptIDHere'")->fetchColumn();
$document->add(new Comment("<center><img src='$adoptIMG' alt='$species IMG' /><center><br> Oh look! You found a $species! It's pretty common.", FALSE));
}
Adding item images
PHP Code:
if($random >= 81 && $random <= 90){
$item = "ItemName";
$qty = 1;
$newitem = new StockItem($item);
$newitem->append($qty, $mysidia->user->username);
$itemIMG = $mysidia->db->select("items", array("imageurl"), "id = 'PlaceItemIDHere'")->fetchColumn();
$document->add(new Comment("<center><img src='$itemIMG' alt='$item IMG' /></center><br>Oh look! You found a <b>$item</b>!", FALSE));
}
Explore Again Link
Find this line
PHP Code:
else{
$document->add(new Comment(" Oops! Something went wrong.", FALSE));
}
replace with:
PHP Code:
else{
$document->add(new Comment(" <a href='/explorearea1'>Explore?</a>", FALSE));
}
find:
PHP Code:
if($random >= 91 && $random <= 99){
$document->add(new Comment("You didn't find anything. Better luck next time.", FALSE));
}
replace with:
PHP Code:
if($random >= 91 && $random <= 99){
$document->add(new Comment("You didn't find anything. Better luck next time. <a href='/explorearea1'>Explore?</a>", FALSE));
}
Random Item Quantity
Find this:
Replace:
PHP Code:
$qty = rand(1,5);