-
Posts
461 -
Joined
-
Last visited
-
Days Won
19 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Finn
-
/* * Copyright (C) 2004-2014 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.Q11005_DeliverGoods; import org.l2junity.gameserver.model.actor.Npc; import org.l2junity.gameserver.model.actor.instance.PlayerInstance; import org.l2junity.gameserver.model.quest.Quest; import org.l2junity.gameserver.model.quest.QuestState; import org.l2junity.gameserver.model.quest.State; /** * Deliver Goods (153) * @author Zoey76 * @version 1.0 Freya (11/16/2010), Based on Naia (EURO) */ public final class Q11005_DeliverGoods extends Quest { // NPCs private static final int JACKSON_ID = 30002; private static final int SILVIA_ID = 30003; private static final int ARNOLD_ID = 30041; private static final int RANT_ID = 30054; // Items private static final int DELIVERY_LIST_ID = 1012; private static final int HEAVY_WOOD_BOX_ID = 1013; private static final int CLOTH_BUNDLE_ID = 1014; private static final int CLAY_POT_ID = 1015; private static final int JACKSONS_RECEIPT_ID = 1016; private static final int SILVIAS_RECEIPT_ID = 1017; private static final int RANTS_RECEIPT_ID = 1018; // Rewards private static final int SOULSHOT_NO_GRADE_ID = 1835; // You get 3 Soulshots no grade. private static final int RING_OF_KNOWLEDGE_ID = 875; private static final int XP_REWARD_AMOUNT = 600; public Q11005_DeliverGoods() { super(11005); addStartNpc(ARNOLD_ID); addTalkId(JACKSON_ID, SILVIA_ID, ARNOLD_ID, RANT_ID); registerQuestItems(DELIVERY_LIST_ID, HEAVY_WOOD_BOX_ID, CLOTH_BUNDLE_ID, CLAY_POT_ID, JACKSONS_RECEIPT_ID, SILVIAS_RECEIPT_ID, RANTS_RECEIPT_ID); } @Override public String onAdvEvent(String event, Npc npc, PlayerInstance player) { final QuestState qs = getQuestState(player, false); if ((qs != null) && (npc.getId() == ARNOLD_ID)) { if (event.equalsIgnoreCase("30041-02.html")) { qs.startQuest(); giveItems(player, DELIVERY_LIST_ID, 1); giveItems(player, HEAVY_WOOD_BOX_ID, 1); giveItems(player, CLOTH_BUNDLE_ID, 1); giveItems(player, CLAY_POT_ID, 1); } } return event; } @Override public String onTalk(Npc npc, PlayerInstance player) { String htmltext = getNoQuestMsg(player); final QuestState qs = getQuestState(player, true); if (qs != null) { if (npc.getId() == ARNOLD_ID) { switch (qs.getState()) { case State.CREATED: htmltext = (player.getLevel() >= 2) ? "30041-01.html" : "30041-00.html"; break; case State.STARTED: if (qs.isCond(1)) { htmltext = "30041-03.html"; } else if (qs.isCond(2)) { takeItems(player, DELIVERY_LIST_ID, -1); takeItems(player, JACKSONS_RECEIPT_ID, -1); takeItems(player, SILVIAS_RECEIPT_ID, -1); takeItems(player, RANTS_RECEIPT_ID, -1); // On retail it gives 2 rings but one at the time. giveItems(player, RING_OF_KNOWLEDGE_ID, 1); giveItems(player, RING_OF_KNOWLEDGE_ID, 1); addExpAndSp(player, XP_REWARD_AMOUNT, 0); qs.exitQuest(false, true); htmltext = "30041-04.html"; } break; case State.COMPLETED: htmltext = getAlreadyCompletedMsg(player); break; } } else { if (npc.getId() == JACKSON_ID) { if (hasQuestItems(player, HEAVY_WOOD_BOX_ID)) { takeItems(player, HEAVY_WOOD_BOX_ID, -1); giveItems(player, JACKSONS_RECEIPT_ID, 1); htmltext = "30002-01.html"; } else { htmltext = "30002-02.html"; } } else if (npc.getId() == SILVIA_ID) { if (hasQuestItems(player, CLOTH_BUNDLE_ID)) { takeItems(player, CLOTH_BUNDLE_ID, -1); giveItems(player, SILVIAS_RECEIPT_ID, 1); giveItems(player, SOULSHOT_NO_GRADE_ID, 3); htmltext = "30003-01.html"; } else { htmltext = "30003-02.html"; } } else if (npc.getId() == RANT_ID) { if (hasQuestItems(player, CLAY_POT_ID)) { takeItems(player, CLAY_POT_ID, -1); giveItems(player, RANTS_RECEIPT_ID, 1); htmltext = "30054-01.html"; } else { htmltext = "30054-02.html"; } } if (qs.isCond(1) && hasQuestItems(player, JACKSONS_RECEIPT_ID) && hasQuestItems(player, SILVIAS_RECEIPT_ID) && hasQuestItems(player, RANTS_RECEIPT_ID)) { qs.setCond(2, true); } } } return htmltext; } } This is one of the old human starter quests. (latest l2jh5 files) So when i try to run this quest on l2junity all i get is => My text is missing... "data/scripts/quests/Q11005_DeliverGoods/30041-01.html" Everything is in place. Where's the error? :o
-
Discussion [L2-Saturn] Buffstation Preview
Finn replied to Protein's topic in Server Development Discussion [L2J]
MAXCHEATERS - Yours Bitchfights since 2005 :troll: -
Discussion [L2-Saturn] Buffstation Preview
Finn replied to Protein's topic in Server Development Discussion [L2J]
I like it. :) It's way better that those AIO buffers that don't fit into the l2 environment which you can find on all those crappy no content 2 week server projects with "no wipes" and "5000k+ players". :dat: keep up! :) -
But not Mion. She will fkin scam you! Heh heh...
-
Tumran Bugbear But why are you looking for npcs if you dont want to customize :'D
-
You are using an old version. Thats why its useless for you. Get the new one.
-
With l2tool (or use utpt if you want to have a look on some textures)
-
You can use the animation that comes together with the special christmas tree. :) Or is this one exact the animation i'm talking about? Looks kinda strange on this preview picture. ^^
-
Share Neophron: Classic Lobby [Interlude]
Finn replied to L2Neophron's topic in Client Development Discussion
He mentioned to use different lobby.unr for square and widescreen resolutions. So it's an image I think. -
???? Npcs in java files? They moved them out of the database and saved them in xml files. Thats all.
-
Check your multisell
-
Project L2Junity - Grand Crusade
Finn replied to Gladicek's topic in Server Development Discussion [L2J]
Ah okay. Just wonered. I newer played the newer chronicles on official servers. Thought they were removed completely. But you are right...Rainbow Springs and both Flagwar Scripts were the worst i think. ^^ -
Project L2Junity - Grand Crusade
Finn replied to Gladicek's topic in Server Development Discussion [L2J]
Are conquerabele clanhalls working, or were they removed in newer chronicles? -
3500 players expected xDDDDDD
-
all those information in the first topic. for example: who the fuck wants to know what your hardware is or what the enchantrates are - and all this other stuff? keep it clean and u will be fine.
- 10 replies
-
- ertheia set
- good server
-
(and 2 more)
Tagged with:
-
Every server has missing features. But all you need exists since 2007. You will be fine. Just take it and make it. ;)
-
No answers for ppl that are to lazy to google the simpliest things. :-*
-
Google or MxC search function. Lmao
-
Oups...forgot the link... here u go
-
Here i found something from a mobius dude. He actually posted his sourcefiles. You can look up there :)
-
L2j has technically something to do with the client itself. But like Tryskell mentioned before - NCsoft never cared. It was a kind of free advertising for them like game lets plays on youtube nowadays.
-
Help! Datapack For Interlude.
Finn replied to thenawex's topic in Server Development Discussion [L2J]
So acis is not a fork actually? -
Help Problem With Item Name On Accessories
Finn replied to MaZeStIk's topic in [Request] Client Dev Help
1. Start Excel 2. Copypaste an original line of ur dat file with the topic line so you can see which columns actually exist. 3. Then paste the new lines you are trying to insert just right beneath under your original one and spot the differences. 4. restructure your new lines to fit your original one (and try not to mix up the columns 5. when ready copy your newly restructured lines into your dat file and dont forget to leave the last line of your dat file empty or you wont be able to save your file correctly. :)


