[manual]l2dot
Думаю тема актуальна поскольку в Дотах проблеммы с баферами.. Поясню как поправить эту проблемму..
Берем обычного бафера ставим как обычно..Заходи в gameserver\data\jscript\custom\912_NPCBuffer и открываем файл __init__.PY видим такое
import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
qn = "912_buffer"
#Включение\выключение разделов. Для выключения замените ON на OFF
attack = "ON"
defence = "ON"
resist = "ON"
support = "ON"
warcryer = "ON"
overlord = "ON"
song = "ON"
dance = "ON"
noble = "ON"
summon = "ON"
cubic = "ON"
NPC = [40001]
prise_ID = 57
#Выставление цен на бафы
min_level = 1
max_level = 90
min_prise = 25000
buff_prise = 25000
Chant_prise = 25000
song_prise = 25000
Dance_prise = 25000
Hero_prise = 25000
Noble_prise = 25000
Summon_prise = 25000
Prophecy_prise = 25000
cubic_prise = 50000
Full_buff_f1_prise = 200000
Full_buff_f2_prise = 400000
Full_buff_f3_prise = 600000
Full_buff_m1_prise = 200000
Full_buff_m2_prise = 400000
Full_buff_m3_prise = 600000
all_song_prise = 100000
all_dance_prise = 100000
print "importing custom: 912_buffer OK"
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent(self,event,st):
htmltext = event
count=st.getQuestItemsCount(prise_ID)
if count < min_prise :
htmltext = "<html><body>You have not enought adena.</body></html>"
if st.getPlayer().getLevel() < min_level :
htmltext = "<html><body>Your level is too low. Min level is "+str(min_level)+"</body></html>"
if st.getPlayer().getLevel() < max_level :
htmltext = "<html><body>Your level is too hight. Max level is "+str(max_level)+"</body></html>"
----------------------------------------------------------------------------------------------------------------------------------------
Меня ем такие строки в самом начале
import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
на
import sys
from com.l2dot.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2dot.gameserver.datatables import SkillTable
from com.l2dot import L2DatabaseFactory
from com.l2dot.gameserver.model.quest import State
from com.l2dot.gameserver.model.quest import QuestState
from com.l2dot.gameserver.model.quest.jython import QuestJython as JQuest
-----------------------------------------------------------------------------------------------------------------------
и все ваш бафер не будет больше просиль квест
пс. я привел пример на своем бафере он у меня 912_912_NPCBuffer , у вас может быть другой но суть одна.

