Показать сообщение отдельно
Непрочитано 06.07.2010, 10:50   #3
Аватар для PROGRAMMATOR
Администратор

По умолчанию Re: Изменение!

Функция getHtmlPath():

[SOURCE="java"]public String getHtmlPath(int npcId, int val)
{
String pom = "";

if (val == 0)
pom = "" + npcId;
else
pom = npcId + "-" + val;

String temp = "data/html/default/" + pom + ".htm";

if (!Config.LAZY_CACHE)
{
// If not running lazy cache the file must be in the cache or it doesnt exist
if (HtmCache.getInstance().contains(temp))
return temp;
}
else
{
if (HtmCache.getInstance().isLoadable(temp))
return temp;
}

// If the file is not found, the standard message "I have nothing to say to you" is returned
return "data/html/npcdefault.htm";
}[/SOURCE]
__________________
composer require laravel/framework
yarn add vue
PROGRAMMATOR вне форума Отправить сообщение для PROGRAMMATOR с помощью ICQ Отправить сообщение для PROGRAMMATOR с помощью Skype™ Ответить с цитированием