Бесплатный бафер для преиум аккаунта

MrMos

Knight
Customer
Подскажите не смог найти есть ли в конфиге дать Бесплатный баф для преиум аккаунта
 
Подскажите не смог найти есть ли в конфиге дать Бесплатный баф для преиум аккаунта
Как вариант
XML:
<template menuId="103" target="BUFF_PLAYER">
        <consume>
            <item id="57" amount="0" is_premium_required="true"/>
        </consume>
        <produce>
            <skill id="4702" level="13" /><!-- 4702 Blessing of Seraphim (+) Регенерацию НР -->
        </produce>
</template>
 
Как вариант
XML:
<template menuId="103" target="BUFF_PLAYER">
        <consume>
            <item id="57" amount="0" is_premium_required="true"/>
        </consume>
        <produce>
            <skill id="4702" level="13" /><!-- 4702 Blessing of Seraphim (+) Регенерацию НР -->
        </produce>
</template>
к примеру мой бафер
Code:
<template menuId="124" target="BUFF_PLAYER">
        <consume>
            <item id="6673" amount="105"/>
        </consume>
        <produce>
            <skill id="1068" level="3" />
            <skill id="1040" level="3" />
            <skill id="1086" level="2" />
            <skill id="1204" level="2" />
            <skill id="1077" level="3" />
            <skill id="1242" level="3" />
            <skill id="1268" level="4" />
            <skill id="1035" level="4" />
            <skill id="1036" level="2" />
            <skill id="1045" level="6" />
            <skill id="1388" level="3" />
            <skill id="1363" level="1" />
            <skill id="271" level="1" />
            <skill id="275" level="1" />
            <skill id="274" level="1" />
            <skill id="269" level="1" />
            <skill id="264" level="1" />
            <skill id="304" level="1" />
            <skill id="364" level="1" />
            <skill id="4699" level="13" />
            <skill id="305" level="1" />
        </produce>
    </template>
что нужно дописать чтобы без премиума снимало фестивалки а с премиумом на шарика. спасибо
 
прописал
<consume>
<item id="57" amount="0" is_premium_required="true"/>
<item id="6673" amount="105"/>
</consume>
<produce>
<skill id="1068" level="3" />
<skill id="1040" level="3" />
<skill id="1086" level="2" />


и пишет у вас нету необходимого итема хотя фа есть.
 
< is_premium_required="true" item id="57" amount="0"/>
Так будет проверять сначала наличие премиума, потом наличие итема
 
< is_premium_required="true" item id="57" amount="0"/>
Так будет проверять сначала наличие премиума, потом наличие итема
Прописал но дает ерор а в самой игре [08:25:50] WARN Buffer: Unknown menuId "2" used.
<template menuId="2" target="BUFF_PLAYER">
<consume>
< is_premium_required="true" item id="6673" amount="5"/>
</consume>
<produce>
<skill id="1068" level="3" />
</produce>
</template>

Code:
[08:20:11]  INFO ACPService: Loaded
[08:20:11] ERROR Error on line 171 of document file:///C:/serv/15.07.2023(2684)/
gameserver/data/buff_templates.xml : The content of elements must consist of wel
l-formed character data or markup.
org.dom4j.DocumentException: Error on line 171 of document file:///C:/serv/15.07
.2023(2684)/gameserver/data/buff_templates.xml : The content of elements must co
nsist of well-formed character data or markup.
        at org.dom4j.io.SAXReader.read(SAXReader.java:462)
        at org.dom4j.io.SAXReader.read(SAXReader.java:246)
        at services.Buffer.bW(Unknown Source)
        at services.Buffer.onLoad(Unknown Source)
        at l2.gameserver.scripts.Scripts.init(Unknown Source)
        at l2.gameserver.GameServer.<init>(Unknown Source)
        at l2.gameserver.GameServer.main(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The content of elements must consist o
f well-formed character data or markup.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.startOfMarkup(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.dom4j.io.SAXReader.read(SAXReader.java:445)
        ... 6 common frames omitted
[08:20:11]  INFO Buffer: Loaded 1 buff item(s).
 
Вот ответ. Неправильное форматирование

Пробел после <
исравил
<template menuId="2" target="BUFF_PLAYER">
<consume>
<is_premium_required="true" item id="6673" amount="5"/>
</consume>
<produce>
<skill id="1068" level="3" />
</produce>
</template>
и дает

Code:
[09:14:46]  INFO ACPService: Loaded
[09:14:46] ERROR Error on line 171 of document file:///C:/serv/15.07.2023(2684)/
gameserver/data/buff_templates.xml : Element type "is_premium_required" must be
followed by either attribute specifications, ">" or "/>".
org.dom4j.DocumentException: Error on line 171 of document file:///C:/serv/15.07
.2023(2684)/gameserver/data/buff_templates.xml : Element type "is_premium_requir
ed" must be followed by either attribute specifications, ">" or "/>".
        at org.dom4j.io.SAXReader.read(SAXReader.java:462)
        at org.dom4j.io.SAXReader.read(SAXReader.java:246)
        at services.Buffer.bW(Unknown Source)
        at services.Buffer.onLoad(Unknown Source)
        at l2.gameserver.scripts.Scripts.init(Unknown Source)
        at l2.gameserver.GameServer.<init>(Unknown Source)
        at l2.gameserver.GameServer.main(Unknown Source)
Caused by: org.xml.sax.SAXParseException: Element type "is_premium_required" mus
t be followed by either attribute specifications, ">" or "/>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.seekCloseOfStartTag(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.dom4j.io.SAXReader.read(SAXReader.java:445)
        ... 6 common frames omitted
[09:14:46]  INFO Buffer: Loaded 1 buff item(s).
 
<template menuId="72" target="BUFF_PLAYER">
<consume>
<item id="9966" amount="0"[пробел]/>
</consume>
<produce>
<skill id="270" level="1"[пробел]/>
</produce>
</template>

Будьте внимательны.
 
Есть же специальная настройка которая показывает отдельно страницу с префиксом _pa только для премиум, и там делай бафы как хочешь фор фри для премиумов
 
<template menuId="72" target="BUFF_PLAYER">
<consume>
<item id="9966" amount="0"[пробел]/>
</consume>
<produce>
<skill id="270" level="1"[пробел]/>
</produce>
</template>

Будьте внимательны.
Ок через 2 часа проверю. Внимательность это капец какая заноза в моей попе. Вернее ее отсутствие
 
<template menuId="72" target="BUFF_PLAYER">
<consume>
<item id="9966" amount="0"[пробел]/>
</consume>
<produce>
<skill id="270" level="1"[пробел]/>
</produce>
</template>

Будьте внимательны.
исравил
<template menuId="2" target="BUFF_PLAYER">
<consume>
<is_premium_required="true" item id="6673" amount="5" />
</consume>
<produce>
<skill id="1068" level="3" />
</produce>
</template>

но все равно ошибка
Code:
[12:37:31] ERROR Error on line 171 of document file:///C:/serv/15.07.2023(2684)/
gameserver/data/buff_templates.xml : Element type "is_premium_required" must be
followed by either attribute specifications, ">" or "/>".
org.dom4j.DocumentException: Error on line 171 of document file:///C:/serv/15.07
.2023(2684)/gameserver/data/buff_templates.xml : Element type "is_premium_requir
ed" must be followed by either attribute specifications, ">" or "/>".
        at org.dom4j.io.SAXReader.read(SAXReader.java:462)
        at org.dom4j.io.SAXReader.read(SAXReader.java:246)
        at services.Buffer.bW(Unknown Source)
        at services.Buffer.onLoad(Unknown Source)
        at l2.gameserver.scripts.Scripts.init(Unknown Source)
        at l2.gameserver.GameServer.<init>(Unknown Source)
        at l2.gameserver.GameServer.main(Unknown Source)
Caused by: org.xml.sax.SAXParseException: Element type "is_premium_required" mus
t be followed by either attribute specifications, ">" or "/>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.seekCloseOfStartTag(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.dom4j.io.SAXReader.read(SAXReader.java:445)
        ... 6 common frames omitted
[12:37:31]  INFO Buffer: Loaded 1 buff item(s).
 
Подскажите не смог найти есть ли в конфиге дать Бесплатный баф для преиум аккаунта
Только отдельной страницей. Через XML в данный момент никак не реализовать.
исравил
<template menuId="2" target="BUFF_PLAYER">
<consume>
<is_premium_required="true" item id="6673" amount="5" />
</consume>
<produce>
<skill id="1068" level="3" />
</produce>
</template>

но все равно ошибка
Code:
[12:37:31] ERROR Error on line 171 of document file:///C:/serv/15.07.2023(2684)/
gameserver/data/buff_templates.xml : Element type "is_premium_required" must be
followed by either attribute specifications, ">" or "/>".
org.dom4j.DocumentException: Error on line 171 of document file:///C:/serv/15.07
.2023(2684)/gameserver/data/buff_templates.xml : Element type "is_premium_requir
ed" must be followed by either attribute specifications, ">" or "/>".
        at org.dom4j.io.SAXReader.read(SAXReader.java:462)
        at org.dom4j.io.SAXReader.read(SAXReader.java:246)
        at services.Buffer.bW(Unknown Source)
        at services.Buffer.onLoad(Unknown Source)
        at l2.gameserver.scripts.Scripts.init(Unknown Source)
        at l2.gameserver.GameServer.<init>(Unknown Source)
        at l2.gameserver.GameServer.main(Unknown Source)
Caused by: org.xml.sax.SAXParseException: Element type "is_premium_required" mus
t be followed by either attribute specifications, ">" or "/>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.seekCloseOfStartTag(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.dom4j.io.SAXReader.read(SAXReader.java:445)
        ... 6 common frames omitted
[12:37:31]  INFO Buffer: Loaded 1 buff item(s).
Та закинь ты этот XML файл в хром и он покажет где ты провтыкал.
Или сюда прикрепи его.
 
Только отдельной страницей. Через XML в данный момент никак не реализовать.

Та закинь ты этот XML файл в хром и он покажет где ты провтыкал.
Или сюда прикрепи его.
 

Attachments

Короче я так понимаю выход только один делать дополнительную кнопку в бафере с названием премиум баф и туда все переписать в хтмл чтобы бафало только тех кто спремиум
 
Code:
# При включении для владельцев премиум аккаунта будет отображается ХТМЛ с префиксом -pa.htm
# Example: for normal player npc-40010.htm, for premium npc-40010-pa.htm
AltNpcBufferPremiumHtmlPrefix = true
 
Back
Top