import sys
import net.sf.l2j.gameserver.datatables.DoorTable;
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 = "698_door"
NPC_ID = 50020
else if (npcId == 50020)
{
DoorTable.getInstance().getDoor(23150003).openMe() ;
DoorTable.getInstance().getDoor(23150004).openMe() ;
}
DoorTable.getInstance().getDoor(23150003).closeMe( ) ;
DoorTable.getInstance().getDoor(23150004).closeMe( ) ;
}
lass Quest (JQuest):
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st):
id = st.getState()
if id == CREATED : st.setState(STARTED)
elif id == COMPLETED: pass
elif id == STARTED : check(st)
return
QUEST = Quest(698,"door", "door quest")
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(50020)
STARTED.addQuestDrop(NPC_ID)
Добавлено через 56 секунд
все ровно не пашет