Alt Outcome Help

Forum
Last Post
Threads / Messages

Lu Bu

Member
Member
Joined
Dec 30, 2011
Messages
5
Points
1
Mysidian Dollar
34
Having some trouble with the alt images.

If for example I have 100 different levels do I have to manually add an alternate image for each any every level?
Or is there a way to set it up so the alt image carries over for multiple levels?
 
Change the starting level for the alt forms. The starting level is the level they start to get that form at. So if you have an alt form at level 1, and want them to keep it until level 4 before changing image, then your next alt form should have a starting level of 4. However this does mean that when the adopt levels up they won't change images at all and usually levelling an adopt means them evolving in some way. You need to manually add levels to adopts anyway and specify a default image for that level, alt forms are like setting up separate levels they could evolve into if they meet the correct requirements.
 
Okay, I did notice that alt form vanished upon level up, so what would be best is to manually add alt for each level? :)
 
Okay, I did notice that alt form vanished upon level up, so what would be best is to manually add alt for each level? :)
In model->domainmodel->ownedadoptable.php

look for:

public function updateAlternate($assignmode = ""){

and replace that function with this:

Code:
public function updateAlternate($assignMode = "")
{
    $alternate = $this->generateAlternate();
    if ($alternate) {
        $this->imageurl = $alternate->getImage();
        $this->alternate = $alternate->getALID();
    } else if(!$this->alternate) {
        $this->imageurl = NULL;
        $this->alternate = 0;
    }

    if ($assignMode == Model::UPDATE) {
        $this->save("imageurl", $this->imageurl);
        $this->save("alternate", $this->alternate);
    }
}
 

Similar threads

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,313
Messages
33,327
Members
1,612
Latest member
MustafaJewelleryMY
BETA
Top