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, 07:50 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 157,488
Abronsyth is on a distinguished road
Default

That is very possible! I don't have the files I need with me on this computer, but once I get on my laptop I'll be able to work on this. I do need to check out how to select a user's fave pet, specifically, so it might take some time. In the mean time, you should have a look at this thread :)
http://mysidiaadoptables.com/forum/s...ead.php?t=5116
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 06-08-2016, 05: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
  #3  
Old 06-14-2016, 01:26 AM
Ruri Lesavka's Avatar
Ruri Lesavka Ruri Lesavka is offline
Member
 
Join Date: Aug 2010
Posts: 15
Credits: 5,504
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 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 09:09 AM.

Currently Active Users: 3712 (0 members and 3712 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