#31
|
||||
|
||||
So the end result everyone is wanting is:
normal && female && design A = use image A alt && female && design A = use image B normal && male && design A = use image C alt && male && design A = use image D But I'm guessing you don't just want one design, but, potentially, many designs? In the case above, if "design A" were "midnight sparkles" then you'd be able to have a pet with this design on both male and female pets, alternate or not. It's like paintbrushes back on Neopets, only, you also have to take rarer alternate versions of a pet species into consideration, too. If a user is blessed with a rare alternate, they want it to still look just as special when it has its design applied! I think what's going to need to be done is an entirely new approach. You'll want a new column in the database to hold the design names. I'll see if I can look into this soon, but it may take a while. ^^ I was actually kind of wanting something similar.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#32
|
||||
|
||||
Oh, OK. XD Yeah, I think that is kind of what people are wanting. So basically I think there would be 4 different images taken for one item... a male and female normal image, and an alt male and female image.. I think that's what it would be..
|
#33
|
||||
|
||||
Because I've got the alternate gender mod working on my site, I don't have two types of females and two types of males, (alts that is), I just have females and males, and those are the alts.
female && design A = use image A male && design A = use image B Without the alt gender mod it would be possible, but you'd have to make each gender it's own species again. The alt gender mod just replaces the alt system... So I'd rather focus on this? So I guess my first post there was misleading. What it will actually be is just this: normal && design A = use image A alt && design A = use image B In any case, it will work for people using the gender mod and not. But it won't magically make the gender mod have alts again. It'll just make sure the appropriate gender gets the appropriate image, just like it would make alt or not get the appropriate image.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#34
|
||||
|
||||
Oh, alright. Now I understand C: Sounds good! ^_^
|
#35
|
||||
|
||||
Sorry to revive an older thread but I'm still interested in this.
I now use the alt gender mod so my alt images are only for males while females use the normal one. I want to keep that obviously but it should be a single potion/brush paints the species a different one of two images according to alt/gender status. With multiple items created this way, one could effectively have a lot of new designs/colours for that single species without needing to actually have a "many alt images" kind of mod.
__________________
Failing at being normal since 1990. |
#36
|
||||
|
||||
I know this is an old thread but wanted to update the code for a change of skin ^^
Probably not the best way of doing it but it works: PHP Code:
PHP Code:
the second else if($type == "Fairy Pony"){ <-- makes unable that specific type of pony unable to use the potion The type of my adopts always have "Pony" Or "Dragon" : if(stripos($type, "Dragon") !== FALSE){ <-- stripos is used for searching in type for the word "dragon" and makes those adopts unable to use the potion. switch($type){ case "Red Fairy Dragon": <-- you can change this part for the full type of your creature if you want to give them a specific message. default: <--- this is used for the rest of the adopts. PHP Code:
same as the first stripos this: if(stripos($type, "Pony") !== FALSE){ allows only the adopts that have pony in their type to use the potion The switch($gender){ case "f": <-- this is used for checking if the adopt is female and give it the selected image, the default one is used for the male. I combined parts of the codes that kyttias shared with us (gender change potion and shops items) This part: $num = rand(1,2); switch ($num) { is for randomly chose the image the adopt will be using and lastly: case 1: $imageurl = "http://yoursitegoeshere.com/picuploads/png/cc956394e43c60dc8df3be2e5557fe40.png"; break; case 2: $imageurl = "http://yoursitegoeshere.com/picuploads/png/65a41dd82fbcb9a7e269dcbdef7249ec.png"; break; is where you add the image used for the adopt ^^ It dont matter if you are using the alternate image for the female. once the NULL is replaced with an url image, the adopt will stop using the alternate image and start using the new one. For this code to fully work you need to edit the class_privateitem and add PHP Code:
in this post is the code for reversing the effect of the skin: http://mysidiaadoptables.com/forum/s...3&postcount=19 i know the names i use for the items are lame, so change it to one that fit with your tastes ^^ Feel Free to change/edit the code so it can fit with your site, you can add more images by adding more case: and changing the rand. Hope this can be useful for someone ^^ Last edited by kristhasirah; 04-03-2017 at 10:20 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.4 Item Function: Gender Change Potion | Kyttias | Mys v1.3.x Mods | 21 | 10-12-2016 07:52 PM |
Calling a function in a function from the same class page | Hwona | Questions and Supports | 2 | 04-25-2015 08:41 AM |
Item Function Is Invalid | Hwona | Questions and Supports | 31 | 09-27-2014 09:27 PM |
Item Function Suggestions | NobodysHero | Suggestions and Feature Requests | 5 | 06-23-2014 03:45 AM |
What's New? |
What's Hot? |
What's Popular? |