Как вариантПодскажите не смог найти есть ли в конфиге дать Бесплатный баф для преиум аккаунта
<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>
<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>
Прописал но дает ерор а в самой игре [08:25:50] WARN Buffer: Unknown menuId "2" used.< is_premium_required="true" item id="57" amount="0"/>
Так будет проверять сначала наличие премиума, потом наличие итема
[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).
Вот ответ. Неправильное форматированиеThe content of elements must co nsist of well-formed character data or markup
Пробел после << is_premium_required="true" item id="6673" amount="5"/>
исравилВот ответ. Неправильное форматирование
Пробел после <
[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).
Ок через 2 часа проверю. Внимательность это капец какая заноза в моей попе. Вернее ее отсутствие<template menuId="72" target="BUFF_PLAYER">
<consume>
<item id="9966" amount="0"[пробел]/>
</consume>
<produce>
<skill id="270" level="1"[пробел]/>
</produce>
</template>
Будьте внимательны.
исравил<template menuId="72" target="BUFF_PLAYER">
<consume>
<item id="9966" amount="0"[пробел]/>
</consume>
<produce>
<skill id="270" level="1"[пробел]/>
</produce>
</template>
Будьте внимательны.
[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 файл в хром и он покажет где ты провтыкал.исравил
<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 файл в хром и он покажет где ты провтыкал.
Или сюда прикрепи его.
такая схеа не работает если нету премиуа. пишет нету необходимого итема. а нужно чтобы брало фа без преа и не брало фа с премом...