Jump to content

pajington

Members
  • Posts

    28
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About pajington

Profile Information

  • Gender
    Not Telling

pajington's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. L2 System folder, which is available to download on very first topic is clean or modified against GG errors...?
  2. tried it; now html for Gerald appears but when i press "Quest" then the screen with "You are either not on a quest ....." appears again :/
  3. i know that he is....i am already in part of quest where is needed to give Very Expensive Necklace to Gerald...
  4. thanks for reply but it still doesn't work :/ problem is that if i try to talk to Gerald system says that .... "You are either not on a quest ....." i will post here whole code: jython: # Created by CubicVirtuoso # Any problems feel free to drop by #l2j-datapack on irc.freenode.net import sys from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest qn = "10_IntoTheWorld" VERY_EXPENSIVE_NECKLACE = 7574 SCROLL_OF_ESCAPE_GIRAN = 7559 MARK_OF_TRAVELER = 7570 class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = [VERY_EXPENSIVE_NECKLACE] def onAdvEvent (self,event,npc, player) : htmltext = event st = player.getQuestState(qn) if not st : return if event == "30533-03.htm" : st.set("cond","1") st.setState(State.STARTED) st.playSound("ItemSound.quest_accept") elif event == "30520-02.htm" : st.set("cond","2") st.giveItems(VERY_EXPENSIVE_NECKLACE,1) elif event == "30650-02.htm" : st.set("cond","3") st.takeItems(VERY_EXPENSIVE_NECKLACE,1) elif event == "30533-06.htm" : st.rewardItems(SCROLL_OF_ESCAPE_GIRAN,1) st.giveItems(MARK_OF_TRAVELER, 1) st.unset("cond") st.exitQuest(False) st.playSound("ItemSound.quest_finish") return htmltext def onTalk (self,npc,player): npcId = npc.getNpcId() htmltext = Quest.getNoQuestMsg(player) st = player.getQuestState(qn) if not st: return htmltext id = st.getState() if npcId == 30533 and id == State.COMPLETED : htmltext = "<html><body>I can't supply you with another Giran Scroll of Escape. Sorry traveller.</body></html>" elif id == State.CREATED : if player.getRace().ordinal() == 4 : htmltext = "30533-02.htm" else : htmltext = "30533-01.htm" st.exitQuest(1) elif id == State.STARTED: if npcId == 30533 and st.getInt("cond")==1 : htmltext = "30533-04.htm" elif npcId == 30520 and st.getInt("cond") == 3 : htmltext = "30520-04.htm" st.set("cond","4") elif npcId == 30520 and st.getInt("cond") : if st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) == 0 : htmltext = "30520-01.htm" else : htmltext = "30520-03.htm" elif npcId == 30650 and st.getInt("cond")==2 : if st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) : htmltext = "30650-01.htm" elif npcId == 30533 and st.getInt("cond")==4 : htmltext = "30533-05.htm" return htmltext QUEST = Quest(10,qn,"Into The World") QUEST.addStartNpc(30533) QUEST.addTalkId(30533) QUEST.addTalkId(30520) QUEST.addTalkId(30650) java /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package quests.Q10_IntoTheWorld; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.gameserver.model.quest.State; /** * Into The World (10). Original jython script by CubicVirtuoso * @author pajington */ public class Q10_IntoTheWorld extends Quest { private static final String qn = "10_IntoTheWorld"; //NPCs private static final int BALANKI = 30533; private static final int REED = 30520; private static final int GERALD = 30650; //Items private static final int VERY_EXPENSIVE_NECKLACE = 7574; private static final int SCROLL_OF_ESCAPE_GIRAN = 7559; private static final int MARK_OF_TRAVELER = 7570; @Override public String onTalk(L2Npc npc, L2PcInstance player) { String htmltext = getNoQuestMsg(player); QuestState st = player.getQuestState(qn); int npcId = npc.getNpcId(); if (st == null) { return htmltext; } switch (st.getState()) { case State.COMPLETED: if (npcId == BALANKI) { htmltext = "I can't supply you with another Giran Scroll of Escape. Sorry traveller."; } break; case State.CREATED: if (player.getRace().ordinal() == 4) { htmltext = "30533-02.htm"; } else { htmltext = "30533-01.htm"; st.exitQuest(true); } break; case State.STARTED: if (npcId == BALANKI) { if (Integer.valueOf(st.get("cond")) == 1) { htmltext = "30533-04.htm"; } } else if (npcId == REED) { if (Integer.valueOf(st.get("cond")) == 3) { htmltext = "30520-04.htm"; st.set("cond", "4"); } else if (npcId == REED) { if (String.valueOf(st.get("cond")) != null) { if (st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) == 0) { htmltext = "30520-01.htm"; } else { htmltext = "30520-03.htm"; } } } else if (npcId == GERALD) { if (Integer.valueOf(st.get("cond")) == 2) { if (st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) > 0 ) { htmltext = "30650-01.htm"; } } } else if (npcId == BALANKI) { if (Integer.valueOf(st.get("cond")) == 4) { htmltext = "30533-05.htm"; } } break; } } return htmltext; } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = event; QuestState st = player.getQuestState(qn); if (st == null) { return htmltext; } switch (event) { case "30533-03.htm": st.set("cond", "1"); st.setState(State.STARTED); st.playSound("ItemSound.quest_accept"); break; case "30520-02.htm": st.set("cond", "2"); st.giveItems(VERY_EXPENSIVE_NECKLACE, 1); break; case "30650-02.htm": st.set("cond", "3"); st.takeItems(VERY_EXPENSIVE_NECKLACE, 1); break; case "30533-06.htm": st.rewardItems(SCROLL_OF_ESCAPE_GIRAN, 1); st.giveItems(MARK_OF_TRAVELER, 1); st.unset("cond"); st.exitQuest(false); st.playSound("ItemSound.quest_finish"); break; } return htmltext; } public Q10_IntoTheWorld(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(BALANKI); addTalkId(BALANKI); addTalkId(REED); addTalkId(GERALD); questItemIds = new int[] { VERY_EXPENSIVE_NECKLACE, SCROLL_OF_ESCAPE_GIRAN, MARK_OF_TRAVELER, }; } public static void main(String[] args) { new Q10_IntoTheWorld(10, qn, "Into The World"); } }
  5. Hi, I have been recoding quest from jython to java but stucked at one thing :/ idk how to rewrite this lines; especially middle one: jython elif npcId == 30650 and st.getInt("cond")==2 : if st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) : htmltext = "30650-01.htm" into java: thanks...
  6. yes, everything has been instaled ... EDIT: ok, i've got it....problem was that JAVA_HOME wasn't set correctly....
  7. hi there, got a little problem with building source files :/ Buildfile: C:\Users\Kompik\workspace\L2J_DataPack_BETA\build.xml clean: checkRequirements: getChangelogDateVersion: BUILD FAILED C:\Users\Kompik\workspace\L2J_DataPack_BETA\build.xml:64: Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified Total time: 368 milliseconds what's wrong with that :/ ?
  8. so, all I need to do is replace .jar files from new datapack revision ...?
  9. Hi there, maybe it looks like a stupid question but I am pretty newbie to this stuff...let's say that I am running live L2j H5 server for over the year... server :5125 DT:8622 what I need to do to update it to 8623 ? just unrar the whole folder of 8623 version and replace all files in my gameserver folder ? then all my settings will be changed, wont they? Thanks
  10. hi, i would like to ask you why i have Antharas 4x in console :/ and ...i entered into his hall but didn't kill him and console shows his next respawn ? :/ thanks Uploaded with ImageShack.us
  11. thanks for replies; i have remade that and it works but get stucked at one part where npc should transform me into GuardsOfTheDawn but he dont :/ ...here is that part of code; btw whole effects are stopped but he dont transform me :( .... elif event == "30289-04.htm": player.stopAllEffects() SkillTable.getInstance().getInfo(6204,1).getEffects(player,player) st.set("cond","3")
  12. i have already tried it :/....but still doesnt work :(
  13. i got a problem with this code :/ import sys from com.l2jserver.gameserver.datatables import SkillTable from com.l2jserver.gameserver.instancemanager import InstanceManager from com.l2jserver.gameserver.model.actor.instance import L2PcInstance from com.l2jserver.gameserver.model.actor.instance import L2DoorInstance from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jserver.gameserver.network.serverpackets import ExStartScenePlayer qn = "195_SevenSignSecretRitualOfThePriests" # NPCs ClaudiaAthebalt = 31001 John = 32576 Raymond = 30289 LightOfDawn = 32575 Device = 32578 IasonHeine = 30969 PasswordEntryDevice = 32577 Shkaf = 32580 Black = 32579 # ITEMS EmperorShunaimanContract = 13823 IdentityCard = 13822 ScrollofEscape = 7128 # Transformation's skills GuardofDawn = 6204 class Quest (JQuest): def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = [identityCard, EmperorShunaimanContract] SCROLL = 0 def onAdvEvent (self,event,npc,player): htmltext = event st = player.getQuestState(qn) if not st: return if event == "31001-02.htm": st.setState(State.STARTED) st.playSound("ItemSound.quest_accept") if event == "31001-05.htm": st.set("cond","1") st.playSound("ItemSound.quest_middle") elif event == "32576-02.htm": st.giveItems(IdentityCard,1) st.set("cond","2") st.playSound("ItemSound.quest_middle") elif event == "30289-04.htm": player.stopAllEffects() SkillTable.getInstance().getInfo(6204,1).getEffects(player,player) st.set("cond","3") elif event == "30289-07.htm": player.stopAllEffects() elif event == "30969-03.htm": st.addExpAndSp(52518015, 5817677) st.unset("cond") st.exitQuest(False) st.playSound("ItemSound.quest_finish") elif event == "quit": instanceId = player.getInstanceId() instance = InstanceManager.getInstance().getInstance(instanceId) player.setInstanceId(0) player.teleToLocation(-12491,122331,-2984) htmltext = "" return htmltext def onTalk (self,npc,player): htmltext = Quest.getNoQuestMsg(player) st = player.getQuestState(qn) if not st: return htmltext npcId = npc.getNpcId() id = st.getState() cond = st.getInt("cond") if id == State.COMPLETED: htmltext = Quest.getAlreadyCompletedMsg(player) elif id == State.CREATED : if npcId == ClaudiaAthebalt and cond == 0: first = player.getQuestState("194_SevenSignContractOfMammon") if first: if first.getState() == State.COMPLETED and player.getLevel() >= 79 : htmltext = "31001-01.htm" else: htmltext = "31001-0a.htm" st.exitQuest(1) elif id == State.STARTED: if npcId == ClaudiaAthebalt: if cond == 1: htmltext = "31001-06.htm" elif npcId == John: if cond == 1: htmltext = "32576-01.htm" elif cond == 2: htmltext = "32576-03.htm" elif npcId == Raymond: if cond == 2: htmltext = "30289-01.htm" elif cond == 3: htmltext = "30289-06.htm" elif cond == 4: if SCROLL == 0: if st.getQuestItemsCount(EmperorShunaimanContract) == 1 and st.getQuestItemsCount(ScrollofEscape) == 0 : htmltext = "30289-08.htm" player.stopAllEffects() st.giveItems(ScrollofEscape,1) st.playSound("ItemSound.quest_middle") SCROLL = 1 else : player.stopAllEffects() htmltext = "30289-08.htm" else : player.stopAllEffects() htmltext = "30289-08.htm" elif npcId == LightOfDawn: if cond == 3 and st.getQuestItemsCount(IdentityCard) == 1: htmltext = "32575-03.htm" else : htmltext = "32575-01.htm" elif npcId == Device: if player.getFirstEffect(GuardofDawn) != None: htmltext = "32578-03.htm" elif player.getFirstEffect(GuardofDawn) == None: htmltext = "32578-02.htm" elif npcId == PasswordEntryDevice: if player.getFirstEffect(GuardofDawn) != None: htmltext = "32577-01.htm" elif player.getFirstEffect(GuardofDawn) == None: htmltext = "32577-03.htm" elif npcId == Shkaf and st.getQuestItemsCount(EmperorShunaimanContract) == 0: htmltext = "32580-01.htm" st.giveItems(EmperorShunaimanContract,1) st.set("cond","4") elif npcId == Black and st.getQuestItemsCount(EmperorShunaimanContract) == 1: htmltext = "32579-01.htm" elif npcId == IasonHeine and st.getQuestItemsCount(EmperorShunaimanContract) == 1: htmltext = "30969-01.htm" return htmltext QUEST = Quest(195,qn,"Seven Sign Secret Ritual Of The Priests") QUEST.addStartNpc(ClaudiaAthebalt) QUEST.addTalkId(ClaudiaAthebalt) QUEST.addTalkId(John) QUEST.addTalkId(Raymond) QUEST.addTalkId(LightOfDawn) QUEST.addTalkId(Device) QUEST.addTalkId(PasswordEntryDevice) QUEST.addTalkId(Shkaf) QUEST.addTalkId(Black) QUEST.addTalkId(IasonHeine) __init__.py.error.log wrote this "Error on: gameserver\data\scripts\quests\195_SevenSignSecretRitualOfThePriests\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): (no code object) at line 0 SyntaxError: ('invalid syntax', ('__init__.py', 95, 25, ' if npcId == ClaudiaAthebalt:')) Thanks
  14. hi, i have written one missing quest but idk how to import it to datapack core in eclipse ..... :/ or how can i add it to server ? thanks
×
×
  • Create New...