View Single Post
  #20  
Old 12-02-2017, 04:57 PM
gwynmil's Avatar
gwynmil gwynmil is offline
Member
 
Join Date: Sep 2017
Location: UK
Posts: 25
Gender: Female
Credits: 3,551
gwynmil is on a distinguished road
Default

This mod works perfectly, thank you! :D

I have a question though. Is it possible for one breed (adopt type) to be available from multiple shops?

Most of my griffins have randomly generated hex colours and, well, you can imagine how hideous it gets haha. So I'd like to have shops selling preset white/black/brown versions of most breeds, to help players get started in their selective breeding goals. Setting up each shop to generate its own colour scheme is no problem, but I'm stuck on how to actually make the breeds available... ^^' Any ideas?

edit: oh, noticed these lines, 54-57

PHP Code:
        $mysidia->session->assign("adopt"1TRUE);
        
$ids $mysidia->db->select("adoptables", array("id"), "shop='pale'")->fetchAll(PDO::FETCH_COLUMN);
        
$total = ($ids)?count($ids):0
If I'm reading it correctly, it scans the table to pick up breeds with that shop assigned. Would it be a wise idea to manually write an array of desired breed IDs here, instead? Or would it mess something up?

Last edited by gwynmil; 12-02-2017 at 05:38 PM.
Reply With Quote