Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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: 5,251
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quest- Explore System (Open Source) squiggler Tutorials and Tips 4 07-23-2020 12:07 PM
How to create an image map collierox Tutorials and Tips 3 03-13-2018 04:11 AM
Explore Help? cailynmae Questions and Supports 7 03-29-2017 11:37 PM
Help Create This? Abronsyth Templates and Themes 16 10-24-2011 03:05 PM
How to create a a battle system ,shop and currency?? SieghartZeke Questions and Supports 9 11-02-2009 12:15 AM


All times are GMT -5. The time now is 05:12 PM.

Currently Active Users: 3456 (0 members and 3456 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636