Open lib/Flux/Template.php
Search :
/**
*
*/
public function iconImage($itemID)
{
$path = sprintf(FLUX_DATA_DIR."/items/icons/".Flux::config('ItemIconNameFormat'), $itemID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : false;
}
/**
*
*/
public function itemImage($itemID)
{
$path = sprintf(FLUX_DATA_DIR."/items/images/".Flux::config('ItemImageNameFormat'), $itemID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : false;
}
/**
*
*/
public function monsterImage($monsterID)
{
$path = sprintf(FLUX_DATA_DIR."/monsters/".Flux::config('MonsterImageNameFormat'), $monsterID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : false;
}
Change to:
/**
*
*/
public function iconImage($itemID)
{
$path = sprintf(FLUX_DATA_DIR."/items/icons/".Flux::config('ItemIconNameFormat'), $itemID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : sprintf('https://static.divine-pride.net/images/items/item/'.Flux::config('ItemIconNameFormat'), $itemID);
}
/**
*
*/
public function itemImage($itemID)
{
$path = sprintf(FLUX_DATA_DIR."/items/images/".Flux::config('ItemImageNameFormat'), $itemID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : sprintf('https://static.divine-pride.net/images/items/collection/'.Flux::config('ItemImageNameFormat'), $itemID);
}
/**
*
*/
public function monsterImage($monsterID)
{
$path = sprintf(FLUX_DATA_DIR."/monsters/".Flux::config('MonsterImageNameFormat'), $monsterID);
$link = preg_replace('&/{2,}&', '/', "{$this->basePath}/$path");
return file_exists($path) ? $link : sprintf('https://static.divine-pride.net/images/mobs/png/'.Flux::config('MonsterImageNameFormat'), $monsterID);
}
In config/application.php
change "MonsterImageNameFormat" .gif to .png :
'MonsterImageNameFormat' => '%d.png', // The filename format for monster images (defaults to {monsterid}.gif).
This will automatically pull images of divine-pride items and mobs.