Jump to content

bildukas86

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

About bildukas86

Profile Information

  • Gender
    Not Telling

bildukas86's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. Hi, can any body help me? server Interlude .when i trying to load sata claus script i getting error: Traceback (innermost last): File "__init__.py", line 3, in ? ImportError: no module named net script: import sys from com.l2scoria.gameserver.model.quest import State from net.l2scoria.gameserver.model.quest import QuestState from net.l2scoria.gameserver.model.quest.jython import QuestJython as JQuest class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) : htmltext = event # Christmas if event == "1": if st.getQuestItemsCount(5556) >= 1 and st.getQuestItemsCount(5557) >= 1 and st.getQuestItemsCount(5558) >= 1 and st.getQuestItemsCount(5559) >= 1: st.takeItems(5556,1) st.takeItems(5557,1) st.takeItems(5558,1) st.takeItems(5559,1) st.giveItems(5283,3) htmltext = "Merry Christmas." else: htmltext = "You do not have all four ornaments." if event == "0": htmltext = "Trade has been canceled." if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (Self,npc,st): npcId = npc.getNpcId() htmltext = "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html>" st.setState(STARTED) return "1.htm" QUEST = Quest(5007,"5007_santa","custom") CREATED = State('Start', QUEST) STARTED = State('Started', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(31863) QUEST.addStartNpc(31864) STARTED.addTalkId(31863) STARTED.addTalkId(31864)
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock