Добрый день, помогите исправить скрипт продажи, необходимо чтобы при нажатии кнопки открывалось окно продажи
import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jfrozen.gameserver.network.serverpackets import SellList
qn = "914_sell"
NPC = 40001
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
if st.player.setTarget(npc)
st.player.sendPacket(SellList(player))
st.player.sendPacket(ActionFailed.STATIC_PACKET)
return
QUEST = Quest(914,qn,"Custom")
CREATED = State('Start',QUEST)
for i in DATA.keys() :
QUEST.addStartNpc(i)
QUEST.addTalkId(i)