#21
|
||||
|
||||
Is it possible to add a check if the pet is using its alt image and if it IS then make it use an alternative of the skin to match?
If it ISN'T then it alters it to the first defined image. Same for the reverter. It would need to know if its an alt image so it could revert it back to it. This is just in case people still want alts as well as skins.
__________________
Failing at being normal since 1990. |
#22
|
||||
|
||||
If you want an item to change the adopt to his/her alt version and return back to the normal one, the script already have one function that does that.
But i think is possible to code that opcion... saddly i dont know how code that, the changes i did where based on pure luck and because they where kind of small. |
#23
|
||||
|
||||
I'll see if I can get the basic image alter and the reverter installed and do a bit of fiddling and see if I can get my idea added. If I can, I'll post the revision. ^_^
__________________
Failing at being normal since 1990. |
#24
|
||||
|
||||
[strike]I have an error with the item. I installed the skin version as directed but when I try and access my items page to use it on my pet, the page appears blank.
I have to manually remove the item using the ACP to be able to get to the inventory page again.[/strike] *Edit* Ok, I fixed that issue. New problem is when I try to use the reverter or the changer on the pet, it now returns this: The item function is invalid Happens for both items.
__________________
Failing at being normal since 1990. Last edited by AndromedaKerova; 11-10-2014 at 07:21 PM. |
#25
|
||||
|
||||
I've had a go at making an alternate check + alternate setter from the skin changer but it refuses to work.
Not sure what I did wrong. Still learning this stuff. PHP Code:
That means it's just the actual skin changer that needs fiddling with to make work. \0/
__________________
Failing at being normal since 1990. Last edited by AndromedaKerova; 11-10-2014 at 08:39 PM. |
#26
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
Sorry, I'm not sure what you want to do yet, so I can't help more than this :/
__________________
asp.net stole my soul. |
#27
|
||||
|
||||
I'm only a beginner with coding. My aim is to expand on the skin changer. To make it ask if the pet is using an alt image and if it is, instead of painting the regular, it would paint an alternative of the custom skin to match better with the original.
Without that, it makes the alt pet just look like every other pet that has this item used on it. Seems to lose its altness while the database keeps the value. Examples: BEFORE AFTER Rhiadra is the one using the alt image but after painting it appears not to be. Next thing I want to attempt is making it check if the pet is male or male/alt then make it set respective images for them too.
__________________
Failing at being normal since 1990. Last edited by AndromedaKerova; 11-10-2014 at 09:37 PM. |
#28
|
||||
|
||||
So if it's using an alt image, it uses another alt image? And if it's using the common image, use the alt image?
__________________
asp.net stole my soul. |
#29
|
||||
|
||||
The way it works currently is it paints a certain species the new image. It overrides the alt image though the data is still in the DB for the alt pet. I want the image to set a second if the pet is an alt so it "looks" like its still an alt.
Obviously regular users would no longer know if the pet is alt or not in the current way.
__________________
Failing at being normal since 1990. |
#30
|
||||
|
||||
Hmm, that's true ... would be cool if that was somehow included ^_^
|
|
|
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? |