Page 1 of 1

L2J Chronicle 4

Posted: Thu Sep 09, 2010 2:32 am
by Sikken
Looking for a complete list of quests for c4, if someone has come across one, please link, or upload.

thank you ;)

Re: L2J Chronicle 4

Posted: Thu Sep 09, 2010 6:41 am
by Aikimaniac
on retail or on L2J in time when C4 was actual ? If the 2nd option, check this rar http://trac.l2jdp.com/browser/branches/C4_Datapack

Re: L2J Chronicle 4

Posted: Thu Sep 09, 2010 7:20 am
by JIV
get it from client..

Re: L2J Chronicle 4

Posted: Thu Sep 09, 2010 10:34 am
by jurchiks
there's a txt file in attachment with all missing c4 quests listed in numerical order.
it's compared to latest c4 datapack and latest c4 client.
Quite honestly i was surprised when i made this because it seems that there are more quests missing than done.

Re: L2J Chronicle 4

Posted: Tue Feb 28, 2012 7:18 pm
by Pandragon
I Tried to add some quests from the C5 branch but they do not seem to load.

Added 11_SecretMeetingWithKetraOrcs quest folder.
Added '11_SecretMeetingwithKetraOrcs', line in __init__.py of quests folder.

When C4 branch server is loading quests...
console doesn't show any message for quest #11
importing quests: 10: Into The World
importing quests: 19: Go To The Pastureland

Tried lots of C5 branch quests with no result,
is there another file that I must register the quest?

Re: L2J Chronicle 4

Posted: Tue Feb 28, 2012 9:19 pm
by jurchiks
maybe the c5 scripts don't log the "importing" text?

Re: L2J Chronicle 4

Posted: Wed Feb 29, 2012 7:59 am
by Pandragon
jurchiks wrote:maybe the c5 scripts don't log the "importing" text?
No, __init__.py has the text at the last line, same as C4 quests.
http://svn.l2jdp.com/branches/C5_Datapa ... _init__.py
print "importing quests: 11: Secret Meeting With Ketra Orcs"
also when I go to get the quest, the NPC doesn't show it.

Also tried to build from C4 branch SVN and precompiled server from nightlies folder, same thing...
What I use:
C4 Server: http://www.l2jserver.com/nightly/index. ... server.zip
C4 datapack: http://www.l2jserver.com/nightly/index. ... tapack.zip
Quest #11 from C5 datapack: http://www.l2jserver.com/nightly/index. ... tapack.zip

Re: L2J Chronicle 4

Posted: Wed Feb 29, 2012 1:32 pm
by jurchiks
I noticed only this:
in C4 (http://svn.l2jdp.com/branches/C4_Datapa ... _init__.py)
at the bottom you have this:

Code: Select all

QUEST.addStartNpc(7008)CREATED.addTalkId(7008)STARTED.addTalkId(7008)
In C5 (http://svn.l2jdp.com/branches/C5_Datapa ... _init__.py), however, you have this:

Code: Select all

QUEST.addStartNpc(Cadmon)QUEST.addTalkId(Cadmon)QUEST.addTalkId(Leon)
See the difference?
Not sure if that's all there is to it, but it might just be it.

Re: L2J Chronicle 4

Posted: Wed Feb 29, 2012 1:46 pm
by tukune
C4 -- def onTalk (Self,npc,st):
C5 -- def onTalk (Self,npc,player):

command prompt:

Code: Select all

svn diff^ http://svn.l2jdp.com/branches/C4_Datapack/datapack_development/data/jscript/quests/101_SwordOfSolidarityQuest/__init__.py^ http://svn.l2jdp.com/branches/C5_Datapack/data/jscript/quests/101_SwordOfSolidarityQuest/__init__.py

Re: L2J Chronicle 4

Posted: Thu Mar 01, 2012 10:15 am
by Pandragon
Did both the above and also changed correct NPC ids (script and htm files).
Still doesn't seem to load quest, not even give an error for it.

C5->C4 script

Code: Select all

#made by Emperorcimport sysfrom net.sf.l2j.gameserver.model.quest import Statefrom net.sf.l2j.gameserver.model.quest import QuestStatefrom net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest qn = "11_SecretMeetingWithKetraOrcs" #NPCsCadmon = 8296Leon = 7040Wahkan = 8371 #ItemBox = 7231 class Quest (JQuest) :  def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)  def onEvent (self,event,st) :     htmltext = event     if event == "8296-03.htm" :       if st.getPlayer().getLevel() >= 74 :            st.set("cond","1")            htmltext = "8296-03.htm"            st.setState(STARTED)            st.playSound("ItemSound.quest_accept")       else :            htmltext = "8296-02.htm"            st.exitQuest(1)     elif event == "7040-02.htm" :         st.set("cond","2")         htmltext = "7040-02.htm"         st.giveItems(Box,1)     elif event == "8371-02.htm" :         htmltext = "8371-02.htm"         st.takeItems(Box,-1)         st.addExpAndSp(22787,0) #Despite what stratics may say, this is the correct reward for this quest.         st.set("cond","0")         st.set("onlyone","1")         st.setState(COMPLETED)         st.playSound("ItemSound.quest_finish")     return htmltext  def onTalk (Self,npc,st):     npcId = npc.getNpcId()     htmltext = "<html><head><body>I have nothing to say to you.</body></html>"      cond = st.getInt("cond")     onlyone = st.getInt("onlyone")     if st.getState() == CREATED :        st.set("cond","0")        st.set("onlyone","0")     if onlyone == 0 :         if npcId == Cadmon :             if cond == 0 :                 htmltext = "8296-01.htm"             elif cond == 1 :                 htmltext = "8296-04.htm"             if npcId == Leon :                 if cond == 1 :                     htmltext = "7040-01.htm"                 elif cond == 2 :                     htmltext = "7040-03.htm"             elif npcId == Wahkan and cond == 2 :                 htmltext = "8371-01.htm"     return htmltext     QUEST       = Quest(11, qn, "Secret Meeting With Ketra Orcs")CREATED     = State('Start',    QUEST)STARTED     = State('Started',  QUEST)COMPLETED   = State('Completed',QUEST) QUEST.setInitialState(CREATED)QUEST.addStartNpc(Cadmon) CREATED.addTalkId(Cadmon) STARTED.addTalkId(Cadmon)STARTED.addTalkId(Leon)STARTED.addTalkId(Wahkan) print "importing quests: 11: Secret Meeting With Ketra Orcs" 
Include full script and htmls in attachment.

Re: L2J Chronicle 4

Posted: Thu Mar 01, 2012 10:29 am
by Pandragon
Just tested another thing.

-Took C4 quest #10.
-Renamed it as quest #11 (in script and folder name).

Should load it at server startup because it is surelly a C4 quest.
-doesn't load quest -