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

исравил
<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).
Вот же пишет твою ошибку:
Element type "is_premium_required" must be
followed by either attribute specifications, ">" or "/>".
Что в переводе:
Тип элемента "is_premium_required" должен быть
за которыми следует спецификация атрибута, ">" или "/>".
просто перенести в конец
<item id="6673" amount="5" is_premium_required="true"/>
 
Вот же пишет твою ошибку:
Element type "is_premium_required" must be
followed by either attribute specifications, ">" or "/>".
Что в переводе:
Тип элемента "is_premium_required" должен быть
за которыми следует спецификация атрибута, ">" или "/>".
просто перенести в конец
<item id="6673" amount="5" is_premium_required="true"/>
Та я ему скинул фикс уже. Он там как будто с молотком по этому файлу бегал.
 
Back
Top