Jump to content
  • 0

Question

Posted

guys i have problem with Noblesse at "Possessor of a Precious Soul 4"

 

when i press the final button to get noblesse i get this error at gameserver..

 

Traceback (innermost last):

  File "C:\Server\gameserver\data\jscript\quests\247_PossessorOfPreciousSoul4\__

init__.py", line 61, in onTalk

NameError: true

 

        at org.python.core.Py.NameError(Py.java:148)

        at org.python.core.PyFrame.getglobal(PyFrame.java:202)

        at data.jscript.quests.247_PossessorOfPreciousSoul4$py.onTalk$4(C:\Serve

r\gameserver\data\jscript\quests\247_PossessorOfPreciousSoul4\__init__.py:61)

        at data.jscript.quests.247_PossessorOfPreciousSoul4$py.call_function(C:\

Server\gameserver\data\jscript\quests\247_PossessorOfPreciousSoul4\__init__.py)

        at org.python.core.PyTableCode.call(PyTableCode.java:213)

        at org.python.core.PyTableCode.call(PyTableCode.java:426)

        at org.python.core.PyTableCode.call(PyTableCode.java:322)

        at org.python.core.PyFunction.__call__(PyFunction.java:193)

        at org.python.core.PyMethod.__call__(PyMethod.java:93)

        at org.python.core.PyObject.__call__(PyObject.java:570)

        at org.python.core.PyObject._jcallexc(PyObject.java:2573)

        at org.python.core.PyObject._jcall(PyObject.java:2605)

        at org.python.proxies.data.jscript.quests.247_PossessorOfPreciousSoul4$Q

uest$83.onTalk(Unknown Source)

        at net.sf.l2j.gameserver.model.quest.Quest.notifyTalk(Quest.java:185)

        at net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.showQuestWin

dow(L2NpcInstance.java:1520)

        at net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.showQuestWin

dow(L2NpcInstance.java:1626)

        at net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.onBypassFeed

back(L2NpcInstance.java:988)

        at net.sf.l2j.gameserver.clientpackets.RequestBypassToServer.runImpl(Req

uestBypassToServer.java:109)

        at net.sf.l2j.gameserver.clientpackets.ClientBasePacket.run(ClientBasePa

cket.java:59)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

 

can you someone help me to fix it?

 

==== This is the file.. if someone can fix the error.. thanks..===

 

print "importing quests: 247: Possessor of a Precious Soul 4"

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

 

CARADINE_LETTER2_ID = 7679

NOBLESSE_ID = 7694

 

class Quest (JQuest) :

 

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 

def onEvent (self,event,st) :

    htmltext = event

    if event=="1" :

        htmltext = "start.htm"

        st.set("cond","1")

        st.setState(STARTED)

        st.playSound("ItemSound.quest_accept")

    if event=="2" :

        htmltext = "start.htm"

        st.player.teleToLocation(143283,44055,-3049)

        st.set("cond","2")

    return htmltext

 

 

def onTalk (Self,npc,st):

 

  npcId = npc.getNpcId()

  htmltext = "<html><head><body>I have nothing to say you</body></html>"

  id = st.getState()

  if id == CREATED :

    st.setState(STARTING)

    st.set("cond","0")

    st.set("onlyone","0")

    st.set("id","0")

  if npcId==8740 and int(st.get("cond"))==0 and int(st.get("onlyone"))==0 :

    if st.getQuestItemsCount(NOBLESSE_ID)==1 :

      htmltext = "<html><head><body>CHEATER!!!!!!!!!!!!!!!</body></html>"

    elif st.getQuestItemsCount(CARADINE_LETTER2_ID)==1 :

      if st.getPlayer().getSubLevel() >= 75 :

        htmltext = "8740-1.htm"

        st.takeItems(CARADINE_LETTER2_ID,1)

      else:

        htmltext = "8740-10.htm"

        st.exitQuest(1)

    else:

        htmltext = "8740-10.htm"

        st.exitQuest(1)

  elif npcId == 8740 and int(st.get("cond"))==0 and int(st.get("onlyone"))==1 :

      htmltext = "<html><head><body>This quest have already been completed.</body></html>"

  elif npcId==8740 and int(st.get("cond"))==1 and st.player.isSubClassActive() :

        htmltext = "8740-2.htm"

  elif npcId==8745 and int(st.get("cond"))==2 and st.player.isSubClassActive() :

        htmltext = "8745-1.htm"

        st.set("cond","0")

        st.player.setNoble(true)

        st.giveItems(NOBLESSE_ID,1)

        st.set("onlyone","1")

        st.setState(COMPLETED)

        st.playSound("ItemSound.quest_finish")

  return htmltext

 

QUEST      = Quest(247,"247_PossessorOfPreciousSoul4","Possessor Of Precious Soul 4")

CREATED    = State('Start', QUEST)

STARTING    = State('Starting', QUEST)

STARTED    = State('Started', QUEST)

COMPLETED  = State('Completed', QUEST)

 

 

QUEST.setInitialState(CREATED)

QUEST.addStartNpc(8740)

 

STARTING.addTalkId(8740)

 

STARTED.addTalkId(8740)

STARTED.addTalkId(8745)

 

STARTED.addQuestDrop(8745,NOBLESSE_ID,1)

 

i am Using L2j C4.

 

download the file from here: http://gsp-l2.do.am/247_PossessorOfPreciousSoul4.rar

4 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..