Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2016, 06:00 PM
RestlessThoughts's Avatar
RestlessThoughts RestlessThoughts is offline
Member
 
Join Date: Mar 2016
Posts: 10
Gender: Female
Credits: 1,333
RestlessThoughts is on a distinguished road
Default

I have the files on hand :)
Here's the code you need to select the fav pet:
PHP Code:
$mysidia->user->getprofile();
if ((int)
$profile->getFavpetID() == 0) {
      
$document->addLangVar('No fav pet set.');
      return;
}
$favpet = new OwnedAdoptable($profile->getFavpetID());

// Now you can select the stats of the pet.

if ($favpet->str 10){
      
$document->addLangVar('Your pet isn\'t strong enough to travel here.');
      return;
}

// Explore code here. 
__________________
Reply With Quote
  #2  
Old 06-14-2016, 02:26 AM
Ruri Lesavka's Avatar
Ruri Lesavka Ruri Lesavka is offline
Member
 
Join Date: Aug 2010
Posts: 15
Credits: 5,740
Ruri Lesavka
Default

Quote:
Originally Posted by Abronsyth View Post
x
Thanks for trying to help. I'll probably use it to check for particular pet~

Quote:
Originally Posted by RestlessThoughts View Post
x
Thank you :D
When I first just put it in it gave a "Fatal error: Call to a member function getFavpetID() on null" error. I figured out that I needed "$profile = $mysidia->user->getprofile();" in there too. Now it works <3
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:07 PM
How to create an image map collierox Tutorials and Tips 3 03-13-2018 05:11 AM
Explore Help? cailynmae Questions and Supports 7 03-30-2017 12:37 AM
Help Create This? Abronsyth Templates and Themes 16 10-24-2011 04:05 PM
How to create a a battle system ,shop and currency?? SieghartZeke Questions and Supports 9 11-02-2009 01:15 AM


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

Currently Active Users: 2384 (0 members and 2384 guests)
Threads: 4,082, Posts: 32,047, 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