Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Set Names for Adopts with Promos?
I was hoping someone might know how to make it where you can set a name to an adopt, that way when it gets adopted through a promo code it would be a named adopt verses the name being as 'type' etc.
I know there is a mod that lets you name an adopt you get from the adopt shop, but I'm needing a way to set the name for promo codes.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
#2
|
||||
|
||||
Way back in 2014 I also asked that question and it seemed to be that you'd need to edit how promos work to be able to do things like have custom names, seeing as promos are handled by making the code in the promocode part of the admincp as well as designating what adopts belong to that code.
So IntoRain helped me with how to add a custom adopt from an image instead. That way you can control what species, the image used, the name, all the DB data. I remember it working pretty well back then so it should work now Here you go: http://www.mysidiaadoptables.com/for...m+adopt&page=2 It's a little more involved in the sense you make custom pages for the adopts, but it's definitely the most customisable option
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#3
|
||||
|
||||
Quote:
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion Last edited by Micolai; 06-01-2021 at 11:15 PM. |
#4
|
||||
|
||||
It doesn't work exactly like a promo code, in the sense there is no one-time use code. But if you have a restriction on the adopt itself then a user couldn't adopt more than the allowed amount.
Say you make a new adopt and you set a restriction that they can only own 1 of that adopt. This method will let them adopt that 1 and then won't let them get another. If you wanted the page itself to not be able to be accessed after using the code. You could set up the code you want in the promocode admincp, then create a custom page that can't be accessed without a code, and on this page is the image. However, promo codes are a bit limited. In the sense that there is no way for them to only be used once by users. You can only specify how much it can be used in total, or whether a certain user can use it. So if you set the code to only be used 1 time, then the first user to use it will be the only one who can. So the best way to do it would be to just use an adopt condition that says only a certain amount of that adopt can be owned by people. You could also use this mod: http://www.mysidiaadoptables.com/for...ead.php?t=5023 It allows you to create a custom adopt page with conditions that hide adopts that shouldn't be able to be accessed. (Like adopts people already own 1 of) If you want multiple pages like it, you'd need to just copy what you did and rename the files + any references to the renamed page/files. If you have a normal adopt you want to give a modified version of (say a white horse that anyone can adopt, but you want to give out a limited edition version with a pre-set name and stats) then you might struggle to only let people have 1 of them. The easiest plan would probably to be to create a new adopt in the database that has an adopt condition. Even if it's a duplicate of an already existing adopt, except some of the information, I'd say this is the best plan for what you want to do
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#5
|
||||
|
||||
Hmm. I'm thinking if I create an item that you have to have to get to the page that has the adopt that would work, because you have to have the item to get to the page, so people wouldn't be able to trade this item either. Then when they adopt the adopt they would only be able to get one of it. This will keep other members from being able to get it at all unless they have the item. So would I need to install the mod you had made and the one Abron did? Or just either or to get this type of system that I'm wanting? I just need to be sure conditions work and all the database info for the adopt is going to be there for the adopt instead of being random gender no name stuff lol.
Sorry for all the questions
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
#6
|
||||
|
||||
You can install both if you want, though the one that gives pets through an image is the one you probably need for what you want to do.
Then you'd edit the 'get' page so that a user needs an item to access it. And upon either clicking the pet or visiting the page the item would be consumed. If you want lots of adopts and they all have a different item, or you don't want to have multiple adopts on the same page, you can rename the 'get' page to the adopt name and have multiple, each for whatever adopts you want. Though make sure to follow all the steps once first so you can bug fix if needed. I recommend reading through the post just to see how it all fits together as I can't explain that well
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#7
|
||||
|
||||
Thank you for your help! :) I'll take a look :D
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |