print "importing quest: custom 50: myquest quest"
import sys
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
TEN_TEN = 8206
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
onTalk (Self,npc,st):
npcId = npc.getNpcId()
htmltext = "<html><head><body>I have nothing to say to you.</body></html>"
if npcId = TEN_TEN :
if st.setState(CREATED) :
return "<html><body>Hello i am ten ten!</body><html>"
QUEST = Quest(50,"50_myquest","custom")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(TEN_TEN)
CREATED.addTalkId(TEN_TEN)