Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Tutorials and Tips (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=27)
-   -   How To Create an Explore System in Mys. 1.3.4 (http://www.mysidiaadoptables.com/forum/showthread.php?t=4827)

LUC1G07CH1 04-03-2016 08:53 AM

That's exact the mod i has looking! Thank you!

LUC1G07CH1 04-03-2016 10:17 AM

The explore homepage is all blank,what i need to do?

tahbikat 04-03-2016 10:53 AM

Does the "Choose where you want to explore?" text come up?

LUC1G07CH1 04-03-2016 06:19 PM

Checked and yes.

Ruri Lesavka 06-06-2016 02:04 AM

Do you think there can be a away to use stats with the explore system? Instead of having a certain item in the inventory, it will look for a certain stat on your fav pet.

I have stats like str, int, agi, def. To explore a area that fav pet str should be over a certain number for the user to continue.

Abronsyth 06-08-2016 07:50 AM

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

RestlessThoughts 06-08-2016 05:00 PM

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. 


Ruri Lesavka 06-14-2016 01:26 AM

Quote:

Originally Posted by Abronsyth (Post 34615)
x

Thanks for trying to help. I'll probably use it to check for particular pet~

Quote:

Originally Posted by RestlessThoughts (Post 34616)
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

Storyteller 08-09-2016 09:00 PM

I tried this and got:

Fatal error: Class 'AppController' not found in [...]/wubbiepets/explorearea1.php on line 6

What am I doing wrong?

NobodysHero 10-01-2016 04:29 PM

What's on line 6?


All times are GMT -5. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.