View Full Version : Automatic Pet Outcomes Chart?
NobodysHero
05-21-2016, 12:44 PM
Is there a way (I'm sure there is, but an easy way. Heh.) to make an autopopulated pet outcomes chart? And if so, is there a way to make it show in alphabetical order(easily)?
Example:
http://i.imgur.com/3FhzSjw.png
Here is what we currently use (http://outcomes.pcriot.com/). I have two players willing to keep it updated for now. ^.^
Abronsyth
05-23-2016, 10:15 AM
It is definitely doable since the image information for every pet (and it's outcomes) is stored, therefore it is retrievable.
It's retrieved from adopts_levels, which thankfully stores the egg image, as well.You're going to want to know which level to display ("thisislevel") and the adoptable type ("adoptiename") as stored in the database. You'll also need "primaryimage" and "alternateimage". So, then you'd want to take a look at how adoptables are displayed. You'll need to tell the database to add a new set in info for each new "type" and then define "adoptiename" as the "type," and do something with all of that... I'm too tired to find this exactly right now, but eventually I'll be able to present an actual code to you, unless you figure it out before then!
NobodysHero
05-23-2016, 05:28 PM
Thanks so much, Abronsyth! That would be amazing!
Abronsyth
12-05-2016, 10:06 AM
So far I've just been able to display the names of all present pets on the site, but I am having issues getting all level images to display, never mind getting them to display in a certain format.
NobodysHero
12-05-2016, 01:14 PM
T_T Hmm... Maybe HoF could weigh in? There's bound to be a way to make it show up, though I wouldn't know it. XD
Really appreciate you trying, Abronsyth! You guys are great!
parayna
12-06-2016, 11:19 PM
Have to admit that this would be a good idea XD Especially so you don't need to worry about updating everything manually! XD
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.