Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
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: 4,697
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
Reply


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


All times are GMT -5. The time now is 07:36 AM.

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