View Single Post
  #10  
Old 12-19-2015, 01:02 PM
Distortion's Avatar
Distortion Distortion is offline
Member
 
Join Date: Dec 2015
Location: Somewhere beyond the sea
Posts: 31
Gender: Female
Credits: 3,806
Distortion is on a distinguished road
Default Explore System Modifications

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:
PHP Code:
$qty 4
Replace:
PHP Code:
$qty rand(1,5); 

Last edited by Distortion; 12-19-2015 at 01:04 PM.
Reply With Quote