Advertisement
hlwrave

Hellfire

Feb 9th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 175.50 KB | None | 0 0
  1. Index: dist/game/data/html/default/33669-1.htm
  2. ===================================================================
  3. --- dist/game/data/html/default/33669-1.htm (nonexistent)
  4. +++ dist/game/data/html/default/33669-1.htm (working copy)
  5. @@ -0,0 +1,6 @@
  6. +<html><body>Sizrak:<br>
  7. +You'd like to challenge <font color="LEVEL">Tauti</font>, eh? We would as well. <br>
  8. +  <font color="LEVEL"> (In order to challenge Tauti, you need an alliance with parties that are level 97 or above. Maximum of 35 people can join at once. You can enter the Instanced Zone through the alliance leader. Every member must also have a Mark of Resistance.) </font>  <br>
  9. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_request_tauti_normal_battle">"I am ready to fight."</button>
  10. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I've got some things to do first."</button>
  11. +</body></html>
  12. \ No newline at end of file
  13. Index: dist/game/data/html/default/33669-2.htm
  14. ===================================================================
  15. --- dist/game/data/html/default/33669-2.htm (nonexistent)
  16. +++ dist/game/data/html/default/33669-2.htm (working copy)
  17. @@ -0,0 +1,5 @@
  18. +<html><body>Sizrak:<br>
  19. +You can collect the <font color="LEVEL">Mark of the Resistance</font> by completing tasks for me.<br>
  20. +You need the <font color="LEVEL">Mark of the Resistance</font> to challenge Tauti. <br>
  21. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"All right, then."</button>
  22. +</body></html>
  23. \ No newline at end of file
  24. Index: dist/game/data/html/default/33669-3.htm
  25. ===================================================================
  26. --- dist/game/data/html/default/33669-3.htm (nonexistent)
  27. +++ dist/game/data/html/default/33669-3.htm (working copy)
  28. @@ -0,0 +1,4 @@
  29. +<html><body>Sizrak:<br>
  30. +If you want to go to <font color="LEVEL">Seed of Hellfire Level 2</font> or <font color="LEVEL">Seed of Hellfire Southern District,</font> go find a <font color="LEVEL">Transportation Assistant</font>. They can send you.<br>
  31. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Thanks for the advice."</button>
  32. +</body></html>
  33. \ No newline at end of file
  34. Index: dist/game/data/html/default/33669.htm
  35. ===================================================================
  36. --- dist/game/data/html/default/33669.htm   (nonexistent)
  37. +++ dist/game/data/html/default/33669.htm   (working copy)
  38. @@ -0,0 +1,7 @@
  39. +<html><body>Sizrak:<br>
  40. +Yes? What is it? <br>
  41. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"I'd like to enter the Temple of Tauti."</button>
  42. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">"Tell me about the Mark of the Resistance."</button>
  43. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">"How can I get around inside the Seed of Hellfire?"</button>
  44. +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">"Do you have any work for me?"</button>
  45. +</body></html>
  46. \ No newline at end of file
  47. Index: dist/game/data/html/default/33671-1.htm
  48. ===================================================================
  49. --- dist/game/data/html/default/33671-1.htm (nonexistent)
  50. +++ dist/game/data/html/default/33671-1.htm (working copy)
  51. @@ -0,0 +1,8 @@
  52. +<html><body>Aku:
  53. +   <br>
  54. +Ooh, you want to see <font color="LEVEL">Lord Tauti</font>?
  55. +   <br>
  56. +<font color="LEVEL">(You need an alliance of level 97 or above to challenge the Tauti Epic Battle. Maximum of 35 people can join at once. You can enter the Instanced Zone through the alliance leader. All members must have an Aku's Mark.)</font><br>
  57. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest TautiExtreme">"I'm not scared. Let's do this."</button>
  58. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Maybe tomorrow."</button>
  59. +</body></html>
  60. \ No newline at end of file
  61. Index: dist/game/data/html/default/33671-2.htm
  62. ===================================================================
  63. --- dist/game/data/html/default/33671-2.htm (nonexistent)
  64. +++ dist/game/data/html/default/33671-2.htm (working copy)
  65. @@ -0,0 +1,5 @@
  66. +<html><body>Aku:<br>
  67. +You want to know about <font color="LEVEL">Petras</font>? Hee! Is it story time, dingbat? <font color="LEVEL">Petra</font> is our bio-energy. We consume <font color="LEVEL">them</font> for extra power at times of need. Hee!<br>
  68. +The <font color="LEVEL">Petra</font> from <font color="LEVEL">Jahak</font>, who have been training for a long time, have better chance of being <font color="LEVEL">Top Quality Petra</font>. Not always, though You find dingbats among them too sometimes, hee!<br>
  69. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Thanks."</button>
  70. +</body></html>
  71. \ No newline at end of file
  72. Index: dist/game/data/html/default/33671.htm
  73. ===================================================================
  74. --- dist/game/data/html/default/33671.htm   (nonexistent)
  75. +++ dist/game/data/html/default/33671.htm   (working copy)
  76. @@ -0,0 +1,8 @@
  77. +<html><body>Aku:
  78. +   <br>
  79. +What? I'm busy! Go away, dingbat!
  80. +   <br>
  81. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"I would like to see Lord Tauti."</button>
  82. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">"About those Petras..."</button>
  83. +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
  84. +</body></html>
  85. \ No newline at end of file
  86. Index: dist/game/data/html/default/33676.htm
  87. ===================================================================
  88. --- dist/game/data/html/default/33676.htm   (nonexistent)
  89. +++ dist/game/data/html/default/33676.htm   (working copy)
  90. @@ -0,0 +1,4 @@
  91. +<html><head>Communications Assistant:<br>
  92. +Thanks for the help!<br>
  93. +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</button>
  94. +</head></html>
  95. Index: dist/game/data/html/default/33677.htm
  96. ===================================================================
  97. --- dist/game/data/html/default/33677.htm   (nonexistent)
  98. +++ dist/game/data/html/default/33677.htm   (working copy)
  99. @@ -0,0 +1,3 @@
  100. +<html><head>Aku's Minion:<br>Hmm? What's up? <br>
  101. +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">"Got any work for me?"</button>
  102. +</head></html>
  103. Index: dist/game/data/html/default/33681-1.htm
  104. ===================================================================
  105. --- dist/game/data/html/default/33681-1.htm (nonexistent)
  106. +++ dist/game/data/html/default/33681-1.htm (working copy)
  107. @@ -0,0 +1,5 @@
  108. +<html><head>Ferguson:<br>
  109. +<font color="LEVEL">Petra</font> is a biological energy that emanates from <font color="LEVEL">Sopha</font>
  110. +inside the <font color="LEVEL">Seed of Hellfire</font>! That's all I know for now.<br>
  111. +<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</button>
  112. +</head></html>
  113. Index: dist/game/data/html/default/33681.htm
  114. ===================================================================
  115. --- dist/game/data/html/default/33681.htm   (nonexistent)
  116. +++ dist/game/data/html/default/33681.htm   (working copy)
  117. @@ -0,0 +1,6 @@
  118. +<html><head>Ferguson:<br>
  119. +The <font color="LEVEL">Seed of Hellfire</font> is too bleak even for a dwarf like me. Good times should come soon though, I hope.<br>
  120. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me about Petra."</button>
  121. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 33681">"I'd like to exchange a bottle and soul bracelet for an improved bracelet."</button>
  122. +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</button>
  123. +</head></html>
  124. Index: dist/game/data/html/item/35702.htm
  125. ===================================================================
  126. --- dist/game/data/html/item/35702.htm  (nonexistent)
  127. +++ dist/game/data/html/item/35702.htm  (working copy)
  128. @@ -0,0 +1,3 @@
  129. +<html><body>Zahak's Petra:<br>
  130. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h item_%itemId%_Quest Q00756_TopQualityPetra">Open zahak's Petra</Button>
  131. +</body></html>
  132. \ No newline at end of file
  133. Index: dist/game/data/multisell/33681.xml
  134. ===================================================================
  135. --- dist/game/data/multisell/33681.xml  (nonexistent)
  136. +++ dist/game/data/multisell/33681.xml  (working copy)
  137. @@ -0,0 +1,11 @@
  138. +<?xml version="1.0" encoding="UTF-8"?>
  139. +<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
  140. +   <npcs>
  141. +       <npc>33681</npc>
  142. +   </npcs>
  143. +   <item>
  144. +       <ingredient id="35295" count="1"/> 
  145. +       <ingredient id="35293" count="1"/> 
  146. +       <production id="35294" count="1"/>
  147. +   </item>
  148. +</list>
  149. \ No newline at end of file
  150. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java
  151. ===================================================================
  152. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java    (nonexistent)
  153. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java    (working copy)
  154. @@ -0,0 +1,199 @@
  155. +/*
  156. + * This file is part of the L2J Mobius project.
  157. + *
  158. + * This program is free software: you can redistribute it and/or modify
  159. + * it under the terms of the GNU General Public License as published by
  160. + * the Free Software Foundation, either version 3 of the License, or
  161. + * (at your option) any later version.
  162. + *
  163. + * This program is distributed in the hope that it will be useful,
  164. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  165. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  166. + * General Public License for more details.
  167. + *
  168. + * You should have received a copy of the GNU General Public License
  169. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  170. + */
  171. +package quests.Q00754_AssistingTheRebelForces;
  172. +
  173. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  174. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  175. +import com.l2jmobius.gameserver.model.quest.Quest;
  176. +import com.l2jmobius.gameserver.model.quest.QuestState;
  177. +import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
  178. +import com.l2jmobius.gameserver.util.Util;
  179. +import com.l2jmobius.gameserver.enums.QuestType;
  180. +
  181. +/**
  182. + * @hlwrave
  183. + */
  184. +public class Q00754_AssistingTheRebelForces extends Quest
  185. +{
  186. +   // Items
  187. +   private static final int REBEL_SUPPLY_BOX = 35549;
  188. +   private static final int MARK_OF_RESISTANCE = 34909;
  189. +  
  190. +    // Npcs
  191. +   private static final int SIZRAK = 33669;
  192. +   private static final int COMMUNICATION = 33676;
  193. +   // Monsters
  194. +   private static final int KUNDA_GUARDIAN = 23224;
  195. +   private static final int KUNDA_BERSERKER = 23225;
  196. +   private static final int KUNDA_EXECUTOR = 23226;
  197. +
  198. +  
  199. +   // Misc
  200. +   private static final int MIN_LEVEL = 97;
  201. +   private static final int KUNDA_GUARDIAN_KILL = 5;
  202. +   private static final int KUNDA_BERSERKER_KILL = 5;
  203. +   private static final int KUNDA_EXECUTOR_KILL = 5;
  204. +  
  205. +  
  206. +   public Q00754_AssistingTheRebelForces()
  207. +   {
  208. +       super(754, Q00754_AssistingTheRebelForces.class.getSimpleName(), "Assisting The Rebel Forces");
  209. +       addStartNpc(SIZRAK);
  210. +       addTalkId(SIZRAK,COMMUNICATION);
  211. +       addKillId(KUNDA_GUARDIAN,KUNDA_BERSERKER,KUNDA_EXECUTOR);
  212. +       addCondMinLevel(MIN_LEVEL,"sofa_sizraku_q0754_05.htm");
  213. +
  214. +   }
  215. +
  216. +  
  217. +       @Override
  218. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  219. +   {
  220. +       String htmltext = event;
  221. +       final QuestState qs = getQuestState(player, false);
  222. +      
  223. +       if (qs == null)
  224. +       {
  225. +           return getNoQuestMsg(player);
  226. +       }
  227. +      
  228. +       switch (event)
  229. +       {
  230. +           case "quest_accpted.htm":
  231. +           {
  232. +               qs.setCond(1);
  233. +               qs.startQuest();
  234. +               qs.set(Integer.toString(KUNDA_GUARDIAN), 0);
  235. +               qs.set(Integer.toString(KUNDA_BERSERKER), 0);
  236. +               qs.set(Integer.toString(KUNDA_EXECUTOR), 0);
  237. +               htmltext = "sofa_sizraku_q0754_04.htm";
  238. +               break;
  239. +           }
  240. +       }
  241. +       return htmltext;
  242. +   }
  243. +
  244. +
  245. +  
  246. +       @Override
  247. +   public String onTalk(L2Npc npc, L2PcInstance player)
  248. +   {
  249. +       final QuestState qs = getQuestState(player, true);
  250. +       String htmltext = getNoQuestMsg(player);
  251. +      
  252. +       switch (npc.getId())
  253. +       {
  254. +           case SIZRAK:
  255. +           {
  256. +               if (qs.isCreated())
  257. +               {
  258. +                   htmltext = "sofa_sizraku_q0754_01.htm";
  259. +               }
  260. +               else if (qs.isCond(0))
  261. +               {
  262. +                   htmltext = "sofa_sizraku_q0754_03.htm";
  263. +
  264. +               }
  265. +               else if (qs.isCond(1))
  266. +               {
  267. +                   htmltext = "sofa_sizraku_q0754_07.htm";
  268. +               }
  269. +               else if (qs.isCond(2))
  270. +               {
  271. +                   qs.addExpAndSp(570676680, 261024840);
  272. +                   qs.giveItems(REBEL_SUPPLY_BOX, 1);
  273. +                   qs.giveItems(MARK_OF_RESISTANCE, 1);
  274. +                   qs.exitQuest(QuestType.DAILY, true);
  275. +                   htmltext = "sofa_sizraku_q0754_08.htm";
  276. +               }
  277. +               else if (qs.isCompleted())
  278. +               {
  279. +                   htmltext = "sofa_sizraku_q0754_06.htm";
  280. +               }
  281. +               break;
  282. +           }
  283. +           case COMMUNICATION:
  284. +           {
  285. +               if (qs.isCond(2))
  286. +                   {
  287. +                       qs.getPlayer().addExpAndSp(570676680, 261024840);
  288. +                       qs.giveItems(REBEL_SUPPLY_BOX, 1);
  289. +                       qs.giveItems(MARK_OF_RESISTANCE, 1);
  290. +                       qs.exitQuest(QuestType.DAILY, true);
  291. +                       htmltext = "sofa_sizraku_q0754_08.htm";
  292. +                   }
  293. +               break;
  294. +           }
  295. +       }
  296. +       return htmltext;
  297. +   }
  298. +
  299. +
  300. +   @Override
  301. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  302. +   {
  303. +       final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
  304. +       if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
  305. +       {
  306. +           switch (npc.getId())
  307. +           {
  308. +               case KUNDA_GUARDIAN:
  309. +               {
  310. +                   int kills = qs.getInt(Integer.toString(KUNDA_GUARDIAN));
  311. +                   if (kills < KUNDA_GUARDIAN_KILL)
  312. +                   {
  313. +                       kills++;
  314. +                       qs.set(Integer.toString(KUNDA_GUARDIAN), kills);
  315. +                   }
  316. +                   break;
  317. +               }
  318. +               case KUNDA_BERSERKER:
  319. +               {
  320. +                   int kills = qs.getInt(Integer.toString(KUNDA_BERSERKER));
  321. +                   if (kills < KUNDA_BERSERKER_KILL)
  322. +                   {
  323. +                       kills++;
  324. +                       qs.set(Integer.toString(KUNDA_BERSERKER), kills);
  325. +                   }
  326. +                   break;
  327. +               }
  328. +               case KUNDA_EXECUTOR:
  329. +               {
  330. +                   int kills = qs.getInt(Integer.toString(KUNDA_EXECUTOR));
  331. +                   if (kills < KUNDA_EXECUTOR_KILL)
  332. +                   {
  333. +                       kills++;
  334. +                       qs.set(Integer.toString(KUNDA_EXECUTOR), kills);
  335. +                   }
  336. +                   break;
  337. +               }
  338. +           }
  339. +          
  340. +           final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
  341. +           log.addNpc(KUNDA_GUARDIAN, qs.getInt(Integer.toString(KUNDA_GUARDIAN)));
  342. +           log.addNpc(KUNDA_BERSERKER, qs.getInt(Integer.toString(KUNDA_BERSERKER)));
  343. +           log.addNpc(KUNDA_EXECUTOR, qs.getInt(Integer.toString(KUNDA_EXECUTOR)));
  344. +           killer.sendPacket(log);
  345. +          
  346. +           if ((qs.getInt(Integer.toString(KUNDA_GUARDIAN)) >= KUNDA_GUARDIAN_KILL) && (qs.getInt(Integer.toString(KUNDA_BERSERKER)) >= KUNDA_BERSERKER_KILL) && (qs.getInt(Integer.toString(KUNDA_EXECUTOR)) >= KUNDA_EXECUTOR_KILL))
  347. +           {
  348. +               qs.setCond(2);
  349. +           }
  350. +       }
  351. +       return super.onKill(npc, killer, isSummon);
  352. +   }
  353. +}
  354. \ No newline at end of file
  355. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm
  356. ===================================================================
  357. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm  (nonexistent)
  358. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm  (working copy)
  359. @@ -0,0 +1,5 @@
  360. +<html><body>Sizrak:<br>
  361. +You must already know that we are fighting to drive <font color="LEVEL">Tauti</font> and his minions out.<br>
  362. +Have you come to help?<br>
  363. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00754_AssistingTheRebelForces sofa_sizraku_q0754_03.htm">"I have."</button>
  364. +</body></html>
  365. \ No newline at end of file
  366. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm
  367. ===================================================================
  368. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm  (nonexistent)
  369. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm  (working copy)
  370. @@ -0,0 +1,5 @@
  371. +<html><body>Sizrak:<br>
  372. +We're driving <font color="LEVEL">Tauti</font> out, but the fight is not an easy one. <br>
  373. +Will you lend us your sword? <br>
  374. +<button ALIGN=LEFT ICON="NORMAL" action="bypass -h menu_select?ask=0754&reply=1">"I will!"</button>
  375. +</body></html>
  376. \ No newline at end of file
  377. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm
  378. ===================================================================
  379. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm  (nonexistent)
  380. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm  (working copy)
  381. @@ -0,0 +1,4 @@
  382. +<html><body>Sizrak:<br>
  383. +Excellent! Go to <font color="LEVEL">Seed of Hellfire Level 2</font> and kill <font color="LEVEL">Kundas</font>. Our people... they haven't had much success there. Perhaps your luck is different.<br>
  384. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00754_AssistingTheRebelForces quest_accpted.htm">"I'm sure it will be."</button>
  385. +</body></html>
  386. \ No newline at end of file
  387. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm
  388. ===================================================================
  389. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm  (nonexistent)
  390. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm  (working copy)
  391. @@ -0,0 +1,5 @@
  392. +<html><body>Sizrak:<br>
  393. +Your confidence is heartening.<br>
  394. +You can find the <font color="LEVEL">Kunda</font> at the <font color="LEVEL">Seed of Hellfire Level 2</font>. Go there and kill <font color="LEVEL">5</font> of <font color="LEVEL">Kunda's Guardians</font>, <font color="LEVEL">Kunda's Berserkers</font> and <font color="LEVEL">Kunda's Executors</font>. Five each.<br>
  395. +If it is too much trouble to return here, then report back to my <font color="LEVEL">Communications Assistants</font>. They are authorized to speak on my behalf.<br>
  396. +</body></html>
  397. \ No newline at end of file
  398. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm
  399. ===================================================================
  400. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm  (nonexistent)
  401. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm  (working copy)
  402. @@ -0,0 +1,4 @@
  403. +<html><body>Sizrak:<br>
  404. +Hmm... I think not. You can't help us at the moment.<br>
  405. +(You must be level 97 or above to start this quest.)<br>
  406. +</body></html>
  407. \ No newline at end of file
  408. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm
  409. ===================================================================
  410. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm  (nonexistent)
  411. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm  (working copy)
  412. @@ -0,0 +1,4 @@
  413. +<html><body>Sizrak:<br>
  414. +I think that's enough for today. Come back tomorrow.<br>
  415. +(You can only do this quest once a day. This quest resets at 6:30 AM.)<br>
  416. +</body></html>
  417. \ No newline at end of file
  418. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm
  419. ===================================================================
  420. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm  (nonexistent)
  421. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm  (working copy)
  422. @@ -0,0 +1,3 @@
  423. +<html><body>Sizrak:<br>
  424. +You can find Kundas at the <font color="LEVEL">Seed of Hellfire Level 2</font>. Go now, and with our highest hopes.<br>
  425. +</body></html>
  426. \ No newline at end of file
  427. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm
  428. ===================================================================
  429. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm  (nonexistent)
  430. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm  (working copy)
  431. @@ -0,0 +1,3 @@
  432. +<html><body>Sizrak:<br>
  433. +Astounding! This is a great help to our cause! I think you have done enough for us today, but if you wish to return tomorrow, you will always be welcome here!<br>
  434. +</body></html>
  435. \ No newline at end of file
  436. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java
  437. ===================================================================
  438. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java    (nonexistent)
  439. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/Q00754_AssistingTheRebelForces.java    (working copy)
  440. @@ -0,0 +1,199 @@
  441. +/*
  442. + * This file is part of the L2J Mobius project.
  443. + *
  444. + * This program is free software: you can redistribute it and/or modify
  445. + * it under the terms of the GNU General Public License as published by
  446. + * the Free Software Foundation, either version 3 of the License, or
  447. + * (at your option) any later version.
  448. + *
  449. + * This program is distributed in the hope that it will be useful,
  450. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  451. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  452. + * General Public License for more details.
  453. + *
  454. + * You should have received a copy of the GNU General Public License
  455. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  456. + */
  457. +package quests.Q00754_AssistingTheRebelForces;
  458. +
  459. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  460. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  461. +import com.l2jmobius.gameserver.model.quest.Quest;
  462. +import com.l2jmobius.gameserver.model.quest.QuestState;
  463. +import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
  464. +import com.l2jmobius.gameserver.util.Util;
  465. +import com.l2jmobius.gameserver.enums.QuestType;
  466. +
  467. +/**
  468. + * @hlwrave
  469. + */
  470. +public class Q00754_AssistingTheRebelForces extends Quest
  471. +{
  472. +   // Items
  473. +   private static final int REBEL_SUPPLY_BOX = 35549;
  474. +   private static final int MARK_OF_RESISTANCE = 34909;
  475. +  
  476. +    // Npcs
  477. +   private static final int SIZRAK = 33669;
  478. +   private static final int COMMUNICATION = 33676;
  479. +   // Monsters
  480. +   private static final int KUNDA_GUARDIAN = 23224;
  481. +   private static final int KUNDA_BERSERKER = 23225;
  482. +   private static final int KUNDA_EXECUTOR = 23226;
  483. +
  484. +  
  485. +   // Misc
  486. +   private static final int MIN_LEVEL = 97;
  487. +   private static final int KUNDA_GUARDIAN_KILL = 5;
  488. +   private static final int KUNDA_BERSERKER_KILL = 5;
  489. +   private static final int KUNDA_EXECUTOR_KILL = 5;
  490. +  
  491. +  
  492. +   public Q00754_AssistingTheRebelForces()
  493. +   {
  494. +       super(754, Q00754_AssistingTheRebelForces.class.getSimpleName(), "Assisting The Rebel Forces");
  495. +       addStartNpc(SIZRAK);
  496. +       addTalkId(SIZRAK,COMMUNICATION);
  497. +       addKillId(KUNDA_GUARDIAN,KUNDA_BERSERKER,KUNDA_EXECUTOR);
  498. +       addCondMinLevel(MIN_LEVEL,"sofa_sizraku_q0754_05.htm");
  499. +
  500. +   }
  501. +
  502. +  
  503. +       @Override
  504. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  505. +   {
  506. +       String htmltext = event;
  507. +       final QuestState qs = getQuestState(player, false);
  508. +      
  509. +       if (qs == null)
  510. +       {
  511. +           return getNoQuestMsg(player);
  512. +       }
  513. +      
  514. +       switch (event)
  515. +       {
  516. +           case "quest_accpted.htm":
  517. +           {
  518. +               qs.setCond(1);
  519. +               qs.startQuest();
  520. +               qs.set(Integer.toString(KUNDA_GUARDIAN), 0);
  521. +               qs.set(Integer.toString(KUNDA_BERSERKER), 0);
  522. +               qs.set(Integer.toString(KUNDA_EXECUTOR), 0);
  523. +               htmltext = "sofa_sizraku_q0754_04.htm";
  524. +               break;
  525. +           }
  526. +       }
  527. +       return htmltext;
  528. +   }
  529. +
  530. +
  531. +  
  532. +       @Override
  533. +   public String onTalk(L2Npc npc, L2PcInstance player)
  534. +   {
  535. +       final QuestState qs = getQuestState(player, true);
  536. +       String htmltext = getNoQuestMsg(player);
  537. +      
  538. +       switch (npc.getId())
  539. +       {
  540. +           case SIZRAK:
  541. +           {
  542. +               if (qs.isCreated())
  543. +               {
  544. +                   htmltext = "sofa_sizraku_q0754_01.htm";
  545. +               }
  546. +               else if (qs.isCond(0))
  547. +               {
  548. +                   htmltext = "sofa_sizraku_q0754_03.htm";
  549. +
  550. +               }
  551. +               else if (qs.isCond(1))
  552. +               {
  553. +                   htmltext = "sofa_sizraku_q0754_07.htm";
  554. +               }
  555. +               else if (qs.isCond(2))
  556. +               {
  557. +                   qs.addExpAndSp(570676680, 261024840);
  558. +                   qs.giveItems(REBEL_SUPPLY_BOX, 1);
  559. +                   qs.giveItems(MARK_OF_RESISTANCE, 1);
  560. +                   qs.exitQuest(QuestType.DAILY, true);
  561. +                   htmltext = "sofa_sizraku_q0754_08.htm";
  562. +               }
  563. +               else if (qs.isCompleted())
  564. +               {
  565. +                   htmltext = "sofa_sizraku_q0754_06.htm";
  566. +               }
  567. +               break;
  568. +           }
  569. +           case COMMUNICATION:
  570. +           {
  571. +               if (qs.isCond(2))
  572. +                   {
  573. +                       qs.getPlayer().addExpAndSp(570676680, 261024840);
  574. +                       qs.giveItems(REBEL_SUPPLY_BOX, 1);
  575. +                       qs.giveItems(MARK_OF_RESISTANCE, 1);
  576. +                       qs.exitQuest(QuestType.DAILY, true);
  577. +                       htmltext = "sofa_sizraku_q0754_08.htm";
  578. +                   }
  579. +               break;
  580. +           }
  581. +       }
  582. +       return htmltext;
  583. +   }
  584. +
  585. +
  586. +   @Override
  587. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  588. +   {
  589. +       final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
  590. +       if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
  591. +       {
  592. +           switch (npc.getId())
  593. +           {
  594. +               case KUNDA_GUARDIAN:
  595. +               {
  596. +                   int kills = qs.getInt(Integer.toString(KUNDA_GUARDIAN));
  597. +                   if (kills < KUNDA_GUARDIAN_KILL)
  598. +                   {
  599. +                       kills++;
  600. +                       qs.set(Integer.toString(KUNDA_GUARDIAN), kills);
  601. +                   }
  602. +                   break;
  603. +               }
  604. +               case KUNDA_BERSERKER:
  605. +               {
  606. +                   int kills = qs.getInt(Integer.toString(KUNDA_BERSERKER));
  607. +                   if (kills < KUNDA_BERSERKER_KILL)
  608. +                   {
  609. +                       kills++;
  610. +                       qs.set(Integer.toString(KUNDA_BERSERKER), kills);
  611. +                   }
  612. +                   break;
  613. +               }
  614. +               case KUNDA_EXECUTOR:
  615. +               {
  616. +                   int kills = qs.getInt(Integer.toString(KUNDA_EXECUTOR));
  617. +                   if (kills < KUNDA_EXECUTOR_KILL)
  618. +                   {
  619. +                       kills++;
  620. +                       qs.set(Integer.toString(KUNDA_EXECUTOR), kills);
  621. +                   }
  622. +                   break;
  623. +               }
  624. +           }
  625. +          
  626. +           final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
  627. +           log.addNpc(KUNDA_GUARDIAN, qs.getInt(Integer.toString(KUNDA_GUARDIAN)));
  628. +           log.addNpc(KUNDA_BERSERKER, qs.getInt(Integer.toString(KUNDA_BERSERKER)));
  629. +           log.addNpc(KUNDA_EXECUTOR, qs.getInt(Integer.toString(KUNDA_EXECUTOR)));
  630. +           killer.sendPacket(log);
  631. +          
  632. +           if ((qs.getInt(Integer.toString(KUNDA_GUARDIAN)) >= KUNDA_GUARDIAN_KILL) && (qs.getInt(Integer.toString(KUNDA_BERSERKER)) >= KUNDA_BERSERKER_KILL) && (qs.getInt(Integer.toString(KUNDA_EXECUTOR)) >= KUNDA_EXECUTOR_KILL))
  633. +           {
  634. +               qs.setCond(2);
  635. +           }
  636. +       }
  637. +       return super.onKill(npc, killer, isSummon);
  638. +   }
  639. +}
  640. \ No newline at end of file
  641. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm
  642. ===================================================================
  643. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm  (nonexistent)
  644. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_01.htm  (working copy)
  645. @@ -0,0 +1,5 @@
  646. +<html><body>Sizrak:<br>
  647. +You must already know that we are fighting to drive <font color="LEVEL">Tauti</font> and his minions out.<br>
  648. +Have you come to help?<br>
  649. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00754_AssistingTheRebelForces sofa_sizraku_q0754_03.htm">"I have."</button>
  650. +</body></html>
  651. \ No newline at end of file
  652. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm
  653. ===================================================================
  654. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm  (nonexistent)
  655. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_02.htm  (working copy)
  656. @@ -0,0 +1,5 @@
  657. +<html><body>Sizrak:<br>
  658. +We're driving <font color="LEVEL">Tauti</font> out, but the fight is not an easy one. <br>
  659. +Will you lend us your sword? <br>
  660. +<button ALIGN=LEFT ICON="NORMAL" action="bypass -h menu_select?ask=0754&reply=1">"I will!"</button>
  661. +</body></html>
  662. \ No newline at end of file
  663. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm
  664. ===================================================================
  665. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm  (nonexistent)
  666. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_03.htm  (working copy)
  667. @@ -0,0 +1,4 @@
  668. +<html><body>Sizrak:<br>
  669. +Excellent! Go to <font color="LEVEL">Seed of Hellfire Level 2</font> and kill <font color="LEVEL">Kundas</font>. Our people... they haven't had much success there. Perhaps your luck is different.<br>
  670. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00754_AssistingTheRebelForces quest_accpted.htm">"I'm sure it will be."</button>
  671. +</body></html>
  672. \ No newline at end of file
  673. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm
  674. ===================================================================
  675. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm  (nonexistent)
  676. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_04.htm  (working copy)
  677. @@ -0,0 +1,5 @@
  678. +<html><body>Sizrak:<br>
  679. +Your confidence is heartening.<br>
  680. +You can find the <font color="LEVEL">Kunda</font> at the <font color="LEVEL">Seed of Hellfire Level 2</font>. Go there and kill <font color="LEVEL">5</font> of <font color="LEVEL">Kunda's Guardians</font>, <font color="LEVEL">Kunda's Berserkers</font> and <font color="LEVEL">Kunda's Executors</font>. Five each.<br>
  681. +If it is too much trouble to return here, then report back to my <font color="LEVEL">Communications Assistants</font>. They are authorized to speak on my behalf.<br>
  682. +</body></html>
  683. \ No newline at end of file
  684. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm
  685. ===================================================================
  686. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm  (nonexistent)
  687. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_05.htm  (working copy)
  688. @@ -0,0 +1,4 @@
  689. +<html><body>Sizrak:<br>
  690. +Hmm... I think not. You can't help us at the moment.<br>
  691. +(You must be level 97 or above to start this quest.)<br>
  692. +</body></html>
  693. \ No newline at end of file
  694. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm
  695. ===================================================================
  696. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm  (nonexistent)
  697. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_06.htm  (working copy)
  698. @@ -0,0 +1,4 @@
  699. +<html><body>Sizrak:<br>
  700. +I think that's enough for today. Come back tomorrow.<br>
  701. +(You can only do this quest once a day. This quest resets at 6:30 AM.)<br>
  702. +</body></html>
  703. \ No newline at end of file
  704. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm
  705. ===================================================================
  706. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm  (nonexistent)
  707. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_07.htm  (working copy)
  708. @@ -0,0 +1,3 @@
  709. +<html><body>Sizrak:<br>
  710. +You can find Kundas at the <font color="LEVEL">Seed of Hellfire Level 2</font>. Go now, and with our highest hopes.<br>
  711. +</body></html>
  712. \ No newline at end of file
  713. Index: dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm
  714. ===================================================================
  715. --- dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm  (nonexistent)
  716. +++ dist/game/data/scripts/quests/Q00754_AssistingTheRebelForces/sofa_sizraku_q0754_08.htm  (working copy)
  717. @@ -0,0 +1,3 @@
  718. +<html><body>Sizrak:<br>
  719. +Astounding! This is a great help to our cause! I think you have done enough for us today, but if you wish to return tomorrow, you will always be welcome here!<br>
  720. +</body></html>
  721. \ No newline at end of file
  722. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java
  723. ===================================================================
  724. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java  (nonexistent)
  725. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java  (working copy)
  726. @@ -0,0 +1,153 @@
  727. +/*
  728. + * This file is part of the L2J Mobius project.
  729. + *
  730. + * This program is free software: you can redistribute it and/or modify
  731. + * it under the terms of the GNU General Public License as published by
  732. + * the Free Software Foundation, either version 3 of the License, or
  733. + * (at your option) any later version.
  734. + *
  735. + * This program is distributed in the hope that it will be useful,
  736. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  737. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  738. + * General Public License for more details.
  739. + *
  740. + * You should have received a copy of the GNU General Public License
  741. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  742. + */
  743. +package quests.Q00755_InNeedofPetras;
  744. +
  745. +import com.l2jmobius.gameserver.util.Util;
  746. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  747. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  748. +import com.l2jmobius.gameserver.model.quest.Quest;
  749. +import com.l2jmobius.gameserver.model.quest.QuestState;
  750. +import com.l2jmobius.gameserver.enums.QuestType;
  751. +
  752. +/**
  753. + * @hlwrave
  754. +**/
  755. +public class Q00755_InNeedofPetras extends Quest
  756. +{
  757. +   // NPC's
  758. +   private static final int AKU = 33671;
  759. +
  760. +   // Monster's
  761. +   private static final int[] MONSTERS =
  762. +    { 23213,
  763. +     23214,
  764. +     23227,
  765. +     23228,
  766. +     23229,
  767. +     23230,
  768. +     23215,
  769. +     23216,
  770. +     23217,
  771. +     23218,
  772. +     23231,
  773. +     23232,
  774. +     23233,
  775. +     23234,
  776. +     23237,
  777. +     23219 };
  778. +
  779. +   // Item's
  780. +   private static final int AKUS_SUPPLY_BOX = 35550;
  781. +   private static final int ENERGY_OF_DESTRUCTION = 35562;
  782. +   private static final int PETRA = 34959;
  783. +
  784. +   // Other
  785. +   private static final int MIN_LEVEL = 97;
  786. +
  787. +   public Q00755_InNeedofPetras()
  788. +   {
  789. +       super(755, Q00755_InNeedofPetras.class.getSimpleName(), "In Need Of Petras");
  790. +       addStartNpc(AKU);
  791. +       addTalkId(AKU);
  792. +       addKillId(MONSTERS);
  793. +       registerQuestItems(PETRA);
  794. +       addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_05.htm");
  795. +   }
  796. +
  797. +   @Override
  798. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  799. +   {
  800. +       String htmltext = event;
  801. +       final QuestState qs = getQuestState(player, false);
  802. +      
  803. +       if (qs == null)
  804. +       {
  805. +           return getNoQuestMsg(player);
  806. +       }
  807. +      
  808. +       switch (event)
  809. +       {
  810. +           case "sofa_aku_q0755_04.htm":
  811. +           {
  812. +               qs.setCond(1);
  813. +               qs.startQuest();
  814. +               break;
  815. +           }
  816. +       }
  817. +       return htmltext;
  818. +   }
  819. +
  820. +
  821. +   @Override
  822. +   public String onTalk(L2Npc npc, L2PcInstance player)
  823. +   {
  824. +       final QuestState qs = getQuestState(player, true);
  825. +       String htmltext = getNoQuestMsg(player);
  826. +      
  827. +       switch (npc.getId())
  828. +       {
  829. +           case AKU:
  830. +           {
  831. +               if (qs.isCreated())
  832. +               {
  833. +                   htmltext = "sofa_aku_q0755_01.htm";
  834. +               }
  835. +               else if (qs.isStarted())
  836. +               {
  837. +                   if (qs.isCond(1))
  838. +                   {
  839. +                       htmltext = "sofa_aku_q0755_07.htm";
  840. +                   }
  841. +                   else if (qs.isCond(2))
  842. +                   {
  843. +                   qs.takeItems(PETRA, -1L);
  844. +                   qs.addExpAndSp(570676680, 26102484);
  845. +                   qs.giveItems(AKUS_SUPPLY_BOX, 1);
  846. +                   qs.giveItems(ENERGY_OF_DESTRUCTION, 1);
  847. +                   qs.exitQuest(QuestType.DAILY, true);
  848. +                   htmltext = "sofa_aku_q0755_08.htm";
  849. +                   }
  850. +               }
  851. +               else if (qs.isCompleted())
  852. +               {
  853. +                   htmltext = "sofa_aku_q0755_06.htm";
  854. +               }
  855. +               break;
  856. +           }
  857. +       }
  858. +       return htmltext;
  859. +   }
  860. +  
  861. +   @Override
  862. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  863. +   {
  864. +       final QuestState qs = getQuestState(killer, false);
  865. +       if ((qs != null) && qs.isCond(1) && qs.isStarted())
  866. +       {
  867. +          
  868. +           if (Util.contains(MONSTERS, npc.getId()))
  869. +           {
  870. +               giveItemRandomly(killer, npc, PETRA, 1, 100, 0.75, true);
  871. +           }
  872. +           if (getQuestItemsCount(killer, PETRA) >= 50)
  873. +           {
  874. +               qs.setCond(2);
  875. +           }
  876. +       }
  877. +       return super.onKill(npc, killer, isSummon);
  878. +   }  
  879. +}
  880. \ No newline at end of file
  881. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm
  882. ===================================================================
  883. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm   (nonexistent)
  884. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm   (working copy)
  885. @@ -0,0 +1,5 @@
  886. +<html><body>Aku:<br>
  887. +Hmm? Oh, it's you! I'm so glad you are here. Could you collect <font color="LEVEL">Petra</font> for me again?
  888. +<br>
  889. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_03.htm">"Sure."</button>
  890. +</body></html>
  891. \ No newline at end of file
  892. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm
  893. ===================================================================
  894. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm   (nonexistent)
  895. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm   (working copy)
  896. @@ -0,0 +1,4 @@
  897. +<html><body>Aku:<br>
  898. +I'm collecting <font color="LEVEL">Petra</font> right now, and I need help. You look like you need something to do, hee! <br>
  899. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_03.htm">"Sure, I'll help."</button>
  900. +</body></html>
  901. \ No newline at end of file
  902. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm
  903. ===================================================================
  904. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm   (nonexistent)
  905. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm   (working copy)
  906. @@ -0,0 +1,4 @@
  907. +<html><body>Aku:<br>
  908. +Hee, hat's what I like to hear! Go to <font color="LEVEL">Seed of Hellfire</font> and kill the Zofans. They carry the <font color="LEVEL">Petra</font>.<br>
  909. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_04.htm">"Here I go!"</button>
  910. +</body></html>
  911. \ No newline at end of file
  912. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm
  913. ===================================================================
  914. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm   (nonexistent)
  915. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm   (working copy)
  916. @@ -0,0 +1,4 @@
  917. +<html><body>Aku:<br>
  918. +You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. <font color="LEVEL">50</font> should do it, hee!<br>
  919. +Oh yes! You can also give them to <font color="LEVEL">Aku's Minions</font> if it's too hard to bring <font color="LEVEL">Petras</font> all the way back here.<br>
  920. +</body></html>
  921. \ No newline at end of file
  922. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm
  923. ===================================================================
  924. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm   (nonexistent)
  925. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm   (working copy)
  926. @@ -0,0 +1,5 @@
  927. +<html><body>Aku:
  928. +   <br>
  929. +Hee! You can't help, you dingbat! <br>
  930. +(You must be level 97 or above.)<br>
  931. +</body></html>
  932. \ No newline at end of file
  933. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm
  934. ===================================================================
  935. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm   (nonexistent)
  936. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm   (working copy)
  937. @@ -0,0 +1,6 @@
  938. +<html><body>Aku:
  939. +   <br>
  940. +That's as much as I can hold, hee! Let's do this again tomorrow.
  941. +   <br>
  942. +(You can only do this quest once a day. This quest is reset everyday at 6:30 AM.)<br>
  943. +</body></html>
  944. \ No newline at end of file
  945. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm
  946. ===================================================================
  947. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm   (nonexistent)
  948. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm   (working copy)
  949. @@ -0,0 +1,4 @@
  950. +<html><body>Aku:<br>
  951. +What? This isn't enough, you dingbat! Bring me more!<br>
  952. +You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. Hee!<br>
  953. +</body></html>
  954. \ No newline at end of file
  955. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm
  956. ===================================================================
  957. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm   (nonexistent)
  958. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm   (working copy)
  959. @@ -0,0 +1,3 @@
  960. +<html><body>Aku:<br>
  961. +Hee! That's as much as I can take for today. Let's do this again tomorrow!<br>
  962. +</body></html>
  963. \ No newline at end of file
  964. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java
  965. ===================================================================
  966. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java  (nonexistent)
  967. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/Q00755_InNeedofPetras.java  (working copy)
  968. @@ -0,0 +1,153 @@
  969. +/*
  970. + * This file is part of the L2J Mobius project.
  971. + *
  972. + * This program is free software: you can redistribute it and/or modify
  973. + * it under the terms of the GNU General Public License as published by
  974. + * the Free Software Foundation, either version 3 of the License, or
  975. + * (at your option) any later version.
  976. + *
  977. + * This program is distributed in the hope that it will be useful,
  978. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  979. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  980. + * General Public License for more details.
  981. + *
  982. + * You should have received a copy of the GNU General Public License
  983. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  984. + */
  985. +package quests.Q00755_InNeedofPetras;
  986. +
  987. +import com.l2jmobius.gameserver.util.Util;
  988. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  989. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  990. +import com.l2jmobius.gameserver.model.quest.Quest;
  991. +import com.l2jmobius.gameserver.model.quest.QuestState;
  992. +import com.l2jmobius.gameserver.enums.QuestType;
  993. +
  994. +/**
  995. + * @hlwrave
  996. +**/
  997. +public class Q00755_InNeedofPetras extends Quest
  998. +{
  999. +   // NPC's
  1000. +   private static final int AKU = 33671;
  1001. +
  1002. +   // Monster's
  1003. +   private static final int[] MONSTERS =
  1004. +    { 23213,
  1005. +     23214,
  1006. +     23227,
  1007. +     23228,
  1008. +     23229,
  1009. +     23230,
  1010. +     23215,
  1011. +     23216,
  1012. +     23217,
  1013. +     23218,
  1014. +     23231,
  1015. +     23232,
  1016. +     23233,
  1017. +     23234,
  1018. +     23237,
  1019. +     23219 };
  1020. +
  1021. +   // Item's
  1022. +   private static final int AKUS_SUPPLY_BOX = 35550;
  1023. +   private static final int ENERGY_OF_DESTRUCTION = 35562;
  1024. +   private static final int PETRA = 34959;
  1025. +
  1026. +   // Other
  1027. +   private static final int MIN_LEVEL = 97;
  1028. +
  1029. +   public Q00755_InNeedofPetras()
  1030. +   {
  1031. +       super(755, Q00755_InNeedofPetras.class.getSimpleName(), "In Need Of Petras");
  1032. +       addStartNpc(AKU);
  1033. +       addTalkId(AKU);
  1034. +       addKillId(MONSTERS);
  1035. +       registerQuestItems(PETRA);
  1036. +       addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_05.htm");
  1037. +   }
  1038. +
  1039. +   @Override
  1040. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  1041. +   {
  1042. +       String htmltext = event;
  1043. +       final QuestState qs = getQuestState(player, false);
  1044. +      
  1045. +       if (qs == null)
  1046. +       {
  1047. +           return getNoQuestMsg(player);
  1048. +       }
  1049. +      
  1050. +       switch (event)
  1051. +       {
  1052. +           case "sofa_aku_q0755_04.htm":
  1053. +           {
  1054. +               qs.setCond(1);
  1055. +               qs.startQuest();
  1056. +               break;
  1057. +           }
  1058. +       }
  1059. +       return htmltext;
  1060. +   }
  1061. +
  1062. +
  1063. +   @Override
  1064. +   public String onTalk(L2Npc npc, L2PcInstance player)
  1065. +   {
  1066. +       final QuestState qs = getQuestState(player, true);
  1067. +       String htmltext = getNoQuestMsg(player);
  1068. +      
  1069. +       switch (npc.getId())
  1070. +       {
  1071. +           case AKU:
  1072. +           {
  1073. +               if (qs.isCreated())
  1074. +               {
  1075. +                   htmltext = "sofa_aku_q0755_01.htm";
  1076. +               }
  1077. +               else if (qs.isStarted())
  1078. +               {
  1079. +                   if (qs.isCond(1))
  1080. +                   {
  1081. +                       htmltext = "sofa_aku_q0755_07.htm";
  1082. +                   }
  1083. +                   else if (qs.isCond(2))
  1084. +                   {
  1085. +                   qs.takeItems(PETRA, -1L);
  1086. +                   qs.addExpAndSp(570676680, 26102484);
  1087. +                   qs.giveItems(AKUS_SUPPLY_BOX, 1);
  1088. +                   qs.giveItems(ENERGY_OF_DESTRUCTION, 1);
  1089. +                   qs.exitQuest(QuestType.DAILY, true);
  1090. +                   htmltext = "sofa_aku_q0755_08.htm";
  1091. +                   }
  1092. +               }
  1093. +               else if (qs.isCompleted())
  1094. +               {
  1095. +                   htmltext = "sofa_aku_q0755_06.htm";
  1096. +               }
  1097. +               break;
  1098. +           }
  1099. +       }
  1100. +       return htmltext;
  1101. +   }
  1102. +  
  1103. +   @Override
  1104. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  1105. +   {
  1106. +       final QuestState qs = getQuestState(killer, false);
  1107. +       if ((qs != null) && qs.isCond(1) && qs.isStarted())
  1108. +       {
  1109. +          
  1110. +           if (Util.contains(MONSTERS, npc.getId()))
  1111. +           {
  1112. +               giveItemRandomly(killer, npc, PETRA, 1, 100, 0.75, true);
  1113. +           }
  1114. +           if (getQuestItemsCount(killer, PETRA) >= 50)
  1115. +           {
  1116. +               qs.setCond(2);
  1117. +           }
  1118. +       }
  1119. +       return super.onKill(npc, killer, isSummon);
  1120. +   }  
  1121. +}
  1122. \ No newline at end of file
  1123. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm
  1124. ===================================================================
  1125. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm   (nonexistent)
  1126. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_01.htm   (working copy)
  1127. @@ -0,0 +1,5 @@
  1128. +<html><body>Aku:<br>
  1129. +Hmm? Oh, it's you! I'm so glad you are here. Could you collect <font color="LEVEL">Petra</font> for me again?
  1130. +<br>
  1131. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_03.htm">"Sure."</button>
  1132. +</body></html>
  1133. \ No newline at end of file
  1134. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm
  1135. ===================================================================
  1136. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm   (nonexistent)
  1137. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_02.htm   (working copy)
  1138. @@ -0,0 +1,4 @@
  1139. +<html><body>Aku:<br>
  1140. +I'm collecting <font color="LEVEL">Petra</font> right now, and I need help. You look like you need something to do, hee! <br>
  1141. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_03.htm">"Sure, I'll help."</button>
  1142. +</body></html>
  1143. \ No newline at end of file
  1144. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm
  1145. ===================================================================
  1146. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm   (nonexistent)
  1147. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_03.htm   (working copy)
  1148. @@ -0,0 +1,4 @@
  1149. +<html><body>Aku:<br>
  1150. +Hee, hat's what I like to hear! Go to <font color="LEVEL">Seed of Hellfire</font> and kill the Zofans. They carry the <font color="LEVEL">Petra</font>.<br>
  1151. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedofPetras sofa_aku_q0755_04.htm">"Here I go!"</button>
  1152. +</body></html>
  1153. \ No newline at end of file
  1154. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm
  1155. ===================================================================
  1156. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm   (nonexistent)
  1157. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_04.htm   (working copy)
  1158. @@ -0,0 +1,4 @@
  1159. +<html><body>Aku:<br>
  1160. +You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. <font color="LEVEL">50</font> should do it, hee!<br>
  1161. +Oh yes! You can also give them to <font color="LEVEL">Aku's Minions</font> if it's too hard to bring <font color="LEVEL">Petras</font> all the way back here.<br>
  1162. +</body></html>
  1163. \ No newline at end of file
  1164. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm
  1165. ===================================================================
  1166. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm   (nonexistent)
  1167. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_05.htm   (working copy)
  1168. @@ -0,0 +1,5 @@
  1169. +<html><body>Aku:
  1170. +   <br>
  1171. +Hee! You can't help, you dingbat! <br>
  1172. +(You must be level 97 or above.)<br>
  1173. +</body></html>
  1174. \ No newline at end of file
  1175. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm
  1176. ===================================================================
  1177. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm   (nonexistent)
  1178. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_06.htm   (working copy)
  1179. @@ -0,0 +1,6 @@
  1180. +<html><body>Aku:
  1181. +   <br>
  1182. +That's as much as I can hold, hee! Let's do this again tomorrow.
  1183. +   <br>
  1184. +(You can only do this quest once a day. This quest is reset everyday at 6:30 AM.)<br>
  1185. +</body></html>
  1186. \ No newline at end of file
  1187. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm
  1188. ===================================================================
  1189. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm   (nonexistent)
  1190. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_07.htm   (working copy)
  1191. @@ -0,0 +1,4 @@
  1192. +<html><body>Aku:<br>
  1193. +What? This isn't enough, you dingbat! Bring me more!<br>
  1194. +You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. Hee!<br>
  1195. +</body></html>
  1196. \ No newline at end of file
  1197. Index: dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm
  1198. ===================================================================
  1199. --- dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm   (nonexistent)
  1200. +++ dist/game/data/scripts/quests/Q00755_InNeedofPetras/sofa_aku_q0755_08.htm   (working copy)
  1201. @@ -0,0 +1,3 @@
  1202. +<html><body>Aku:<br>
  1203. +Hee! That's as much as I can take for today. Let's do this again tomorrow!<br>
  1204. +</body></html>
  1205. \ No newline at end of file
  1206. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java
  1207. ===================================================================
  1208. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java    (nonexistent)
  1209. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java    (working copy)
  1210. @@ -0,0 +1,145 @@
  1211. +/*
  1212. + * This file is part of the L2J Mobius project.
  1213. + *
  1214. + * This program is free software: you can redistribute it and/or modify
  1215. + * it under the terms of the GNU General Public License as published by
  1216. + * the Free Software Foundation, either version 3 of the License, or
  1217. + * (at your option) any later version.
  1218. + *
  1219. + * This program is distributed in the hope that it will be useful,
  1220. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1221. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1222. + * General Public License for more details.
  1223. + *
  1224. + * You should have received a copy of the GNU General Public License
  1225. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  1226. + */
  1227. +package quests.Q00756_TopQualityPetra;
  1228. +
  1229. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  1230. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  1231. +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
  1232. +import com.l2jmobius.gameserver.model.quest.Quest;
  1233. +import com.l2jmobius.gameserver.model.quest.QuestState;
  1234. +import com.l2jmobius.gameserver.enums.QuestType;
  1235. +import com.l2jmobius.gameserver.model.quest.State;
  1236. +
  1237. +
  1238. +/**
  1239. + * @hlwrave
  1240. +**/
  1241. +public class Q00756_TopQualityPetra extends Quest
  1242. +{
  1243. +   //Npcs
  1244. +   private int AKU = 33671;
  1245. +   //Items
  1246. +   private int AKU_MARK = 34910;
  1247. +   private int TOP_QUALITY_PETRA = 35703;
  1248. +    private int ZAHAK_PETRA = 35702;      
  1249. +   // Other
  1250. +   private static final int MIN_LEVEL = 97;
  1251. +
  1252. +  
  1253. +
  1254. +  
  1255. +   public Q00756_TopQualityPetra()
  1256. +   {
  1257. +       super(756, Q00756_TopQualityPetra.class.getSimpleName(), "Top Quality Petra");
  1258. +       addTalkId(AKU);
  1259. +       addItemTalkId(ZAHAK_PETRA);
  1260. +       registerQuestItems(TOP_QUALITY_PETRA);     
  1261. +       addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_05.htm");
  1262. +   }
  1263. +
  1264. +
  1265. +  
  1266. +   @Override
  1267. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  1268. +   {
  1269. +       String htmltext = event;
  1270. +       final QuestState qs = getQuestState(player, false);
  1271. +      
  1272. +       switch (event)
  1273. +       {
  1274. +          
  1275. +           case "petra_of_zahaq_q0756_03.htm":
  1276. +           {
  1277. +               qs.setCond(1);
  1278. +               qs.takeItems(ZAHAK_PETRA, 1);
  1279. +               qs.giveItems(TOP_QUALITY_PETRA, 1);
  1280. +               qs.startQuest();
  1281. +           }
  1282. +           case "sofa_aku_q0756_02.htm":
  1283. +           {
  1284. +                   qs.takeItems(TOP_QUALITY_PETRA,-1);
  1285. +                   qs.addExpAndSp(570676680, 26102484);
  1286. +                   qs.giveItems(AKU_MARK, 1);
  1287. +                   qs.exitQuest(QuestType.DAILY, true);
  1288. +           }
  1289. +       }
  1290. +       return htmltext;
  1291. +   }
  1292. +
  1293. +
  1294. +       @Override
  1295. +   public String onItemTalk(L2ItemInstance item, L2PcInstance player)
  1296. +   {
  1297. +       String htmltext = getNoQuestMsg(player);
  1298. +       final QuestState st = getQuestState(player, true);
  1299. +      
  1300. +       boolean startQuest = false;
  1301. +       switch (st.getState())
  1302. +       {
  1303. +           case State.CREATED:
  1304. +               startQuest = true;
  1305. +               break;
  1306. +           case State.COMPLETED:
  1307. +               if (st.isNowAvailable())
  1308. +               {
  1309. +                   st.setState(State.CREATED);
  1310. +                   startQuest = true;
  1311. +               }
  1312. +               break;
  1313. +       }
  1314. +      
  1315. +       if (startQuest)
  1316. +       {
  1317. +           if (player.getLevel() >= MIN_LEVEL)
  1318. +           {
  1319. +               st.setCond(1);
  1320. +               st.startQuest();
  1321. +               st.takeItems(ZAHAK_PETRA, 1);
  1322. +               st.giveItems(TOP_QUALITY_PETRA, 1);
  1323. +               htmltext = "petra_of_zahaq_q0756_03.htm";
  1324. +           }
  1325. +           else
  1326. +           {
  1327. +               htmltext = "petra_of_zahaq_q0756_02.htm";
  1328. +           }
  1329. +       }
  1330. +       return htmltext;
  1331. +   }
  1332. +  
  1333. +   @Override
  1334. +   public String onTalk(L2Npc npc, L2PcInstance player)
  1335. +   {
  1336. +       final QuestState qs = getQuestState(player, true);
  1337. +       String htmltext = getNoQuestMsg(player);
  1338. +      
  1339. +       if (npc.getId() == AKU)
  1340. +       {
  1341. +           if(qs.isCond(1) && qs.hasQuestItems(TOP_QUALITY_PETRA))
  1342. +               {
  1343. +                   htmltext = "sofa_aku_q0756_01.htm";
  1344. +               }
  1345. +               else
  1346. +               {
  1347. +                   htmltext = "sofa_aku_q0756_03.htm";
  1348. +               }  
  1349. +       }
  1350. +       return htmltext;
  1351. +   }
  1352. +  
  1353. +
  1354. +
  1355. +}
  1356. \ No newline at end of file
  1357. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm
  1358. ===================================================================
  1359. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm    (nonexistent)
  1360. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm    (working copy)
  1361. @@ -0,0 +1,2 @@
  1362. +<html><body>You do not yet meet the conditions for this quest.<br>
  1363. +</body></html>
  1364. \ No newline at end of file
  1365. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm
  1366. ===================================================================
  1367. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm    (nonexistent)
  1368. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm    (working copy)
  1369. @@ -0,0 +1,4 @@
  1370. +<html><body>(You need permission to confront Petra.)
  1371. +   <br>
  1372. +(This quest is for level 97 or above.)<br>
  1373. +</body></html>
  1374. \ No newline at end of file
  1375. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm
  1376. ===================================================================
  1377. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm    (nonexistent)
  1378. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm    (working copy)
  1379. @@ -0,0 +1,2 @@
  1380. +<html><body>(<font color="LEVEL">Jahak's Petra</font> is more powerful than expected. Take this <font color="LEVEL">Top Quality Petra</font> to <font color="LEVEL">Aku</font>, though it's probably best not to mention <font color="LEVEL">Jahak</font>.)<br>
  1381. +</body></html>
  1382. \ No newline at end of file
  1383. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm
  1384. ===================================================================
  1385. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm  (nonexistent)
  1386. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm  (working copy)
  1387. @@ -0,0 +1,5 @@
  1388. +<html><body>Aku:
  1389. +   <br>
  1390. +Hee! You can't help, you dingbat! <br>
  1391. +(You must be level 97 or above.)<br>
  1392. +</body></html>
  1393. \ No newline at end of file
  1394. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm
  1395. ===================================================================
  1396. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm  (nonexistent)
  1397. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm  (working copy)
  1398. @@ -0,0 +1,4 @@
  1399. +<html><body>Aku:<br>
  1400. +Ooh! This Petra is delightful! Where did you get such high-quality stuff?<br>
  1401. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00756_TopQualityPetra sofa_aku_q0756_02.htm">"Uh, from the Zofans?"</button>
  1402. +</body></html>
  1403. \ No newline at end of file
  1404. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm
  1405. ===================================================================
  1406. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm  (nonexistent)
  1407. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm  (working copy)
  1408. @@ -0,0 +1,4 @@
  1409. +<html><body>Aku:<br>
  1410. +Ooh, yes? Well, that is rare! But this is fine enough for Lord Tauti himself...<br>
  1411. +Hee! If you find a <font color="LEVEL">Top Quality Petra</font> like this one again, make sure you bring it to me!<br>
  1412. +</body></html>
  1413. \ No newline at end of file
  1414. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm
  1415. ===================================================================
  1416. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm  (nonexistent)
  1417. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm  (working copy)
  1418. @@ -0,0 +1,3 @@
  1419. +<html><body>Aku:<br>
  1420. +You do not yet meet the conditions for this quest.<br>
  1421. +</body></html>
  1422. \ No newline at end of file
  1423. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm
  1424. ===================================================================
  1425. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm    (nonexistent)
  1426. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_01.htm    (working copy)
  1427. @@ -0,0 +1,2 @@
  1428. +<html><body>You do not yet meet the conditions for this quest.<br>
  1429. +</body></html>
  1430. \ No newline at end of file
  1431. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm
  1432. ===================================================================
  1433. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm    (nonexistent)
  1434. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_02.htm    (working copy)
  1435. @@ -0,0 +1,4 @@
  1436. +<html><body>(You need permission to confront Petra.)
  1437. +   <br>
  1438. +(This quest is for level 97 or above.)<br>
  1439. +</body></html>
  1440. \ No newline at end of file
  1441. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm
  1442. ===================================================================
  1443. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm    (nonexistent)
  1444. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/petra_of_zahaq_q0756_03.htm    (working copy)
  1445. @@ -0,0 +1,2 @@
  1446. +<html><body>(<font color="LEVEL">Jahak's Petra</font> is more powerful than expected. Take this <font color="LEVEL">Top Quality Petra</font> to <font color="LEVEL">Aku</font>, though it's probably best not to mention <font color="LEVEL">Jahak</font>.)<br>
  1447. +</body></html>
  1448. \ No newline at end of file
  1449. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java
  1450. ===================================================================
  1451. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java    (nonexistent)
  1452. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/Q00756_TopQualityPetra.java    (working copy)
  1453. @@ -0,0 +1,145 @@
  1454. +/*
  1455. + * This file is part of the L2J Mobius project.
  1456. + *
  1457. + * This program is free software: you can redistribute it and/or modify
  1458. + * it under the terms of the GNU General Public License as published by
  1459. + * the Free Software Foundation, either version 3 of the License, or
  1460. + * (at your option) any later version.
  1461. + *
  1462. + * This program is distributed in the hope that it will be useful,
  1463. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1464. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1465. + * General Public License for more details.
  1466. + *
  1467. + * You should have received a copy of the GNU General Public License
  1468. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  1469. + */
  1470. +package quests.Q00756_TopQualityPetra;
  1471. +
  1472. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  1473. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  1474. +import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
  1475. +import com.l2jmobius.gameserver.model.quest.Quest;
  1476. +import com.l2jmobius.gameserver.model.quest.QuestState;
  1477. +import com.l2jmobius.gameserver.enums.QuestType;
  1478. +import com.l2jmobius.gameserver.model.quest.State;
  1479. +
  1480. +
  1481. +/**
  1482. + * @hlwrave
  1483. +**/
  1484. +public class Q00756_TopQualityPetra extends Quest
  1485. +{
  1486. +   //Npcs
  1487. +   private int AKU = 33671;
  1488. +   //Items
  1489. +   private int AKU_MARK = 34910;
  1490. +   private int TOP_QUALITY_PETRA = 35703;
  1491. +    private int ZAHAK_PETRA = 35702;      
  1492. +   // Other
  1493. +   private static final int MIN_LEVEL = 97;
  1494. +
  1495. +  
  1496. +
  1497. +  
  1498. +   public Q00756_TopQualityPetra()
  1499. +   {
  1500. +       super(756, Q00756_TopQualityPetra.class.getSimpleName(), "Top Quality Petra");
  1501. +       addTalkId(AKU);
  1502. +       addItemTalkId(ZAHAK_PETRA);
  1503. +       registerQuestItems(TOP_QUALITY_PETRA);     
  1504. +       addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_05.htm");
  1505. +   }
  1506. +
  1507. +
  1508. +  
  1509. +   @Override
  1510. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  1511. +   {
  1512. +       String htmltext = event;
  1513. +       final QuestState qs = getQuestState(player, false);
  1514. +      
  1515. +       switch (event)
  1516. +       {
  1517. +          
  1518. +           case "petra_of_zahaq_q0756_03.htm":
  1519. +           {
  1520. +               qs.setCond(1);
  1521. +               qs.takeItems(ZAHAK_PETRA, 1);
  1522. +               qs.giveItems(TOP_QUALITY_PETRA, 1);
  1523. +               qs.startQuest();
  1524. +           }
  1525. +           case "sofa_aku_q0756_02.htm":
  1526. +           {
  1527. +                   qs.takeItems(TOP_QUALITY_PETRA,-1);
  1528. +                   qs.addExpAndSp(570676680, 26102484);
  1529. +                   qs.giveItems(AKU_MARK, 1);
  1530. +                   qs.exitQuest(QuestType.DAILY, true);
  1531. +           }
  1532. +       }
  1533. +       return htmltext;
  1534. +   }
  1535. +
  1536. +
  1537. +       @Override
  1538. +   public String onItemTalk(L2ItemInstance item, L2PcInstance player)
  1539. +   {
  1540. +       String htmltext = getNoQuestMsg(player);
  1541. +       final QuestState st = getQuestState(player, true);
  1542. +      
  1543. +       boolean startQuest = false;
  1544. +       switch (st.getState())
  1545. +       {
  1546. +           case State.CREATED:
  1547. +               startQuest = true;
  1548. +               break;
  1549. +           case State.COMPLETED:
  1550. +               if (st.isNowAvailable())
  1551. +               {
  1552. +                   st.setState(State.CREATED);
  1553. +                   startQuest = true;
  1554. +               }
  1555. +               break;
  1556. +       }
  1557. +      
  1558. +       if (startQuest)
  1559. +       {
  1560. +           if (player.getLevel() >= MIN_LEVEL)
  1561. +           {
  1562. +               st.setCond(1);
  1563. +               st.startQuest();
  1564. +               st.takeItems(ZAHAK_PETRA, 1);
  1565. +               st.giveItems(TOP_QUALITY_PETRA, 1);
  1566. +               htmltext = "petra_of_zahaq_q0756_03.htm";
  1567. +           }
  1568. +           else
  1569. +           {
  1570. +               htmltext = "petra_of_zahaq_q0756_02.htm";
  1571. +           }
  1572. +       }
  1573. +       return htmltext;
  1574. +   }
  1575. +  
  1576. +   @Override
  1577. +   public String onTalk(L2Npc npc, L2PcInstance player)
  1578. +   {
  1579. +       final QuestState qs = getQuestState(player, true);
  1580. +       String htmltext = getNoQuestMsg(player);
  1581. +      
  1582. +       if (npc.getId() == AKU)
  1583. +       {
  1584. +           if(qs.isCond(1) && qs.hasQuestItems(TOP_QUALITY_PETRA))
  1585. +               {
  1586. +                   htmltext = "sofa_aku_q0756_01.htm";
  1587. +               }
  1588. +               else
  1589. +               {
  1590. +                   htmltext = "sofa_aku_q0756_03.htm";
  1591. +               }  
  1592. +       }
  1593. +       return htmltext;
  1594. +   }
  1595. +  
  1596. +
  1597. +
  1598. +}
  1599. \ No newline at end of file
  1600. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm
  1601. ===================================================================
  1602. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm  (nonexistent)
  1603. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0755_05.htm  (working copy)
  1604. @@ -0,0 +1,5 @@
  1605. +<html><body>Aku:
  1606. +   <br>
  1607. +Hee! You can't help, you dingbat! <br>
  1608. +(You must be level 97 or above.)<br>
  1609. +</body></html>
  1610. \ No newline at end of file
  1611. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm
  1612. ===================================================================
  1613. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm  (nonexistent)
  1614. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_01.htm  (working copy)
  1615. @@ -0,0 +1,4 @@
  1616. +<html><body>Aku:<br>
  1617. +Ooh! This Petra is delightful! Where did you get such high-quality stuff?<br>
  1618. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00756_TopQualityPetra sofa_aku_q0756_02.htm">"Uh, from the Zofans?"</button>
  1619. +</body></html>
  1620. \ No newline at end of file
  1621. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm
  1622. ===================================================================
  1623. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm  (nonexistent)
  1624. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_02.htm  (working copy)
  1625. @@ -0,0 +1,4 @@
  1626. +<html><body>Aku:<br>
  1627. +Ooh, yes? Well, that is rare! But this is fine enough for Lord Tauti himself...<br>
  1628. +Hee! If you find a <font color="LEVEL">Top Quality Petra</font> like this one again, make sure you bring it to me!<br>
  1629. +</body></html>
  1630. \ No newline at end of file
  1631. Index: dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm
  1632. ===================================================================
  1633. --- dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm  (nonexistent)
  1634. +++ dist/game/data/scripts/quests/Q00756_TopQualityPetra/sofa_aku_q0756_03.htm  (working copy)
  1635. @@ -0,0 +1,3 @@
  1636. +<html><body>Aku:<br>
  1637. +You do not yet meet the conditions for this quest.<br>
  1638. +</body></html>
  1639. \ No newline at end of file
  1640. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java
  1641. ===================================================================
  1642. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java    (nonexistent)
  1643. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java    (working copy)
  1644. @@ -0,0 +1,139 @@
  1645. +/*
  1646. + * This file is part of the L2J Mobius project.
  1647. + *
  1648. + * This program is free software: you can redistribute it and/or modify
  1649. + * it under the terms of the GNU General Public License as published by
  1650. + * the Free Software Foundation, either version 3 of the License, or
  1651. + * (at your option) any later version.
  1652. + *
  1653. + * This program is distributed in the hope that it will be useful,
  1654. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1655. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1656. + * General Public License for more details.
  1657. + *
  1658. + * You should have received a copy of the GNU General Public License
  1659. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  1660. + */
  1661. +package quests.Q10381_TotheSeedofHellfire;
  1662. +
  1663. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  1664. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  1665. +import com.l2jmobius.gameserver.model.quest.Quest;
  1666. +import com.l2jmobius.gameserver.model.quest.QuestState;
  1667. +import com.l2jmobius.gameserver.enums.QuestType;
  1668. +
  1669. +/**
  1670. + * @hlwrave
  1671. +**/
  1672. +public class Q10381_TotheSeedofHellfire extends Quest
  1673. +{
  1674. +
  1675. +   // NPC'S
  1676. +   private static final int KEUCEREUS = 32548;
  1677. +   private static final int KBALDIR = 32733;
  1678. +   private static final int SIZRAK = 33669;
  1679. +
  1680. +   // Item's
  1681. +   private static final int KBALDIRS_LETTER = 34957;
  1682. +  
  1683. +   // Misc
  1684. +   private static final int MIN_LEVEL = 97;
  1685. +
  1686. +   public Q10381_TotheSeedofHellfire()
  1687. +   {
  1688. +       super(10381, Q10381_TotheSeedofHellfire.class.getSimpleName(), "To the Seed of Hellfire");
  1689. +       addStartNpc(KEUCEREUS);
  1690. +       addTalkId(KEUCEREUS, KBALDIR, SIZRAK);
  1691. +       registerQuestItems(KBALDIRS_LETTER);
  1692. +       addCondMinLevel(MIN_LEVEL, "kserth_q10381_04.htm");
  1693. +   }
  1694. +
  1695. +   @Override
  1696. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  1697. +   {
  1698. +       String htmltext = event;
  1699. +       final QuestState qs = getQuestState(player, false);
  1700. +      
  1701. +       if (qs == null)
  1702. +       {
  1703. +           return getNoQuestMsg(player);
  1704. +       }
  1705. +      
  1706. +       switch (event)
  1707. +       {
  1708. +           case "kserth_q10381_03.htm":
  1709. +           {
  1710. +               qs.setCond(1);
  1711. +               qs.startQuest();
  1712. +               break;
  1713. +           }
  1714. +           case "kbarldire_q10381_03.htm":
  1715. +           {
  1716. +               qs.setCond(2);
  1717. +               qs.giveItems(KBALDIRS_LETTER, 1);
  1718. +               break;
  1719. +           }
  1720. +           case "sofa_sizraku_q10381_03.htm":
  1721. +           {
  1722. +               qs.takeItems(KBALDIRS_LETTER, -1);
  1723. +               qs.addExpAndSp(951127800, 435041400);
  1724. +               qs.giveItems(57, 3256740);
  1725. +               qs.exitQuest(QuestType.ONE_TIME, true);
  1726. +               break;
  1727. +           }
  1728. +       }
  1729. +       return htmltext;
  1730. +   }
  1731. +
  1732. +  
  1733. +   @Override
  1734. +   public String onTalk(L2Npc npc, L2PcInstance player)
  1735. +   {
  1736. +       final QuestState qs = getQuestState(player, true);
  1737. +       String htmltext = getNoQuestMsg(player);
  1738. +      
  1739. +       switch (npc.getId())
  1740. +       {
  1741. +           case KEUCEREUS:
  1742. +           {
  1743. +               if (qs.isCreated())
  1744. +               {
  1745. +                   htmltext = "kserth_q10381_01.htm";
  1746. +               }
  1747. +               else if (qs.isStarted())
  1748. +               {
  1749. +                   htmltext = "kserth_q10381_06.htm";
  1750. +
  1751. +               }
  1752. +               else if (qs.isCompleted())
  1753. +               {
  1754. +                   htmltext = "kserth_q10381_05.htm";
  1755. +               }
  1756. +               break;
  1757. +           }
  1758. +           case KBALDIR:
  1759. +           {
  1760. +               if (qs.isCond(1))
  1761. +                   {
  1762. +                       htmltext = "kbarldire_q10381_01.htm";
  1763. +                   }
  1764. +                   else if(qs.isCond(2))
  1765. +                   {
  1766. +                       htmltext = "kbarldire_q10381_04.htm";
  1767. +                   }
  1768. +               break;
  1769. +           }
  1770. +           case SIZRAK:
  1771. +           {
  1772. +               if (qs.isCond(2))
  1773. +                   {
  1774. +                       htmltext = "sofa_sizraku_q10381_01.htm";
  1775. +                   }
  1776. +               break;
  1777. +           }
  1778. +       }
  1779. +       return htmltext;
  1780. +   }
  1781. +
  1782. +
  1783. +}
  1784. \ No newline at end of file
  1785. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm
  1786. ===================================================================
  1787. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm    (nonexistent)
  1788. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm    (working copy)
  1789. @@ -0,0 +1,4 @@
  1790. +<html><body>Commander Kbaldir:<br>
  1791. +It's you! I've been waiting for you. Right now the insurgent force is secretly working in the <font color="LEVEL">Seed of Hellfire</font>. But they could use your help, if you were willing to give it.<br>
  1792. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kbarldire_q10381_02.htm">"Always."</button>
  1793. +</body></html>
  1794. \ No newline at end of file
  1795. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm
  1796. ===================================================================
  1797. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm    (nonexistent)
  1798. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm    (working copy)
  1799. @@ -0,0 +1,5 @@
  1800. +<html><body>Commander Kbaldir:<br>
  1801. +Alright!<br>
  1802. +To get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left</font>.<br>
  1803. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kbarldire_q10381_03.htm">"Got it."</button>
  1804. +</body></html>
  1805. \ No newline at end of file
  1806. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm
  1807. ===================================================================
  1808. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm    (nonexistent)
  1809. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm    (working copy)
  1810. @@ -0,0 +1,3 @@
  1811. +<html><body>Commander Kbaldir:<br>
  1812. +Good. Now hurry and leave for the <font color="LEVEL">Seed of Hellfire</font>. Once there, find <font color="LEVEL">Sizrak</font>. He's a member of the Insurgent force, and will tell you what needs doing.<br>
  1813. +</body></html>
  1814. \ No newline at end of file
  1815. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm
  1816. ===================================================================
  1817. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm    (nonexistent)
  1818. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm    (working copy)
  1819. @@ -0,0 +1,4 @@
  1820. +<html><body>Commander Kbaldir:<br>
  1821. +Huh? Why haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet?<br>
  1822. + Remember, to get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left.</font>.<br>
  1823. +</body></html>
  1824. \ No newline at end of file
  1825. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm
  1826. ===================================================================
  1827. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm   (nonexistent)
  1828. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm   (working copy)
  1829. @@ -0,0 +1,5 @@
  1830. +<html><body>Admiral Keucereus:<br>
  1831. +I have to urgently send a person to the <font color="LEVEL">Seed of Hellfire</font>, but I guess there is nobody except you who I can trust.<br>
  1832. +Could you go there?<br>
  1833. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kserth_q10381_02.htm">"Yes, of course!"</button>
  1834. +</body></html>
  1835. \ No newline at end of file
  1836. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm
  1837. ===================================================================
  1838. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm   (nonexistent)
  1839. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm   (working copy)
  1840. @@ -0,0 +1,4 @@
  1841. +<html><body>Admiral Keucereus:<br>
  1842. +Well answered! Go and see <font color="LEVEL">Commander Kbaldir</font>. He will not only tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>, but also briefly tell you about the situation over there.<br>
  1843. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kserth_q10381_03.htm">"I understand."</button>
  1844. +</body></html>
  1845. \ No newline at end of file
  1846. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm
  1847. ===================================================================
  1848. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm   (nonexistent)
  1849. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm   (working copy)
  1850. @@ -0,0 +1,3 @@
  1851. +<html><body>Admiral Keucereus:<br>
  1852. +<font color="LEVEL">Commander Kbaldir</font> is in this <font color="LEVEL">Keucereus Alliance Base</font>. Hurry to him!<br>
  1853. +</body></html>
  1854. \ No newline at end of file
  1855. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm
  1856. ===================================================================
  1857. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm   (nonexistent)
  1858. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm   (working copy)
  1859. @@ -0,0 +1,4 @@
  1860. +<html><body>Admiral Keucereus:<br>
  1861. +I'm sorry but I cannot send you there now that I saw your skills. I don't want any more blood on my hands.<br>
  1862. +(You must be level 97 or above to start this quest.)<br>
  1863. +</body></html>
  1864. \ No newline at end of file
  1865. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm
  1866. ===================================================================
  1867. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm   (nonexistent)
  1868. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm   (working copy)
  1869. @@ -0,0 +1,4 @@
  1870. +<html><body>Admiral Keucereus:<br>
  1871. +Rest up, friend. You have done well.<br>
  1872. +(You have already completed this quest.)<br>
  1873. +</body></html>
  1874. \ No newline at end of file
  1875. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm
  1876. ===================================================================
  1877. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm   (nonexistent)
  1878. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm   (working copy)
  1879. @@ -0,0 +1,3 @@
  1880. +<html><body>Admiral Keucereus:<br>
  1881. +Huh? Haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet? Hurry and go find <font color="LEVEL">Commander Kbaldir</font>. He will tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>.<br>
  1882. +</body></html>
  1883. \ No newline at end of file
  1884. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm
  1885. ===================================================================
  1886. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm (nonexistent)
  1887. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm (working copy)
  1888. @@ -0,0 +1,4 @@
  1889. +<html><body>Sizrak:<br>
  1890. +Hmm? Do I know you? I'm sorry, I'm busy here and I don't have time for conversation. What? <font color="LEVEL">Keucereus Alliance Base</font> sent you?<br>
  1891. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire sofa_sizraku_q10381_02.htm">"I have a letter from Kbaldir."</button>
  1892. +</body></html>
  1893. \ No newline at end of file
  1894. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm
  1895. ===================================================================
  1896. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm (nonexistent)
  1897. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm (working copy)
  1898. @@ -0,0 +1,5 @@
  1899. +<html><body>Sizrak:<br>
  1900. +Do you mind waiting while I read it?<br>
  1901. +To be honest, I didn't expect <font color="LEVEL">Keucereus Alliance Base</font> to respond to my request for help. Did you come alone?<br>
  1902. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire sofa_sizraku_q10381_03.htm">"I am just the vanguard."</button>
  1903. +</body></html>
  1904. \ No newline at end of file
  1905. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm
  1906. ===================================================================
  1907. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm (nonexistent)
  1908. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm (working copy)
  1909. @@ -0,0 +1,3 @@
  1910. +<html><body>Sizrak:<br>
  1911. +Hmm... The vanguard of what, I wonder. Well, perhaps you can help us drive <font color="LEVEL">Tauti</font> out... We've had enough trouble with this already, so more blades will be appreciated.<br>
  1912. +</body></html>
  1913. \ No newline at end of file
  1914. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm
  1915. ===================================================================
  1916. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm    (nonexistent)
  1917. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_01.htm    (working copy)
  1918. @@ -0,0 +1,4 @@
  1919. +<html><body>Commander Kbaldir:<br>
  1920. +It's you! I've been waiting for you. Right now the insurgent force is secretly working in the <font color="LEVEL">Seed of Hellfire</font>. But they could use your help, if you were willing to give it.<br>
  1921. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kbarldire_q10381_02.htm">"Always."</button>
  1922. +</body></html>
  1923. \ No newline at end of file
  1924. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm
  1925. ===================================================================
  1926. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm    (nonexistent)
  1927. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_02.htm    (working copy)
  1928. @@ -0,0 +1,5 @@
  1929. +<html><body>Commander Kbaldir:<br>
  1930. +Alright!<br>
  1931. +To get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left</font>.<br>
  1932. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kbarldire_q10381_03.htm">"Got it."</button>
  1933. +</body></html>
  1934. \ No newline at end of file
  1935. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm
  1936. ===================================================================
  1937. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm    (nonexistent)
  1938. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_03.htm    (working copy)
  1939. @@ -0,0 +1,3 @@
  1940. +<html><body>Commander Kbaldir:<br>
  1941. +Good. Now hurry and leave for the <font color="LEVEL">Seed of Hellfire</font>. Once there, find <font color="LEVEL">Sizrak</font>. He's a member of the Insurgent force, and will tell you what needs doing.<br>
  1942. +</body></html>
  1943. \ No newline at end of file
  1944. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm
  1945. ===================================================================
  1946. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm    (nonexistent)
  1947. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kbarldire_q10381_04.htm    (working copy)
  1948. @@ -0,0 +1,4 @@
  1949. +<html><body>Commander Kbaldir:<br>
  1950. +Huh? Why haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet?<br>
  1951. + Remember, to get to the <font color="LEVEL">Seed of Hellfire</font>, use a <font color="LEVEL">Flight Device</font>. The nearest <font color="LEVEL">device</font> can be found <font color="LEVEL">by following the road behind me and turning left.</font>.<br>
  1952. +</body></html>
  1953. \ No newline at end of file
  1954. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm
  1955. ===================================================================
  1956. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm   (nonexistent)
  1957. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_01.htm   (working copy)
  1958. @@ -0,0 +1,5 @@
  1959. +<html><body>Admiral Keucereus:<br>
  1960. +I have to urgently send a person to the <font color="LEVEL">Seed of Hellfire</font>, but I guess there is nobody except you who I can trust.<br>
  1961. +Could you go there?<br>
  1962. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kserth_q10381_02.htm">"Yes, of course!"</button>
  1963. +</body></html>
  1964. \ No newline at end of file
  1965. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm
  1966. ===================================================================
  1967. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm   (nonexistent)
  1968. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_02.htm   (working copy)
  1969. @@ -0,0 +1,4 @@
  1970. +<html><body>Admiral Keucereus:<br>
  1971. +Well answered! Go and see <font color="LEVEL">Commander Kbaldir</font>. He will not only tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>, but also briefly tell you about the situation over there.<br>
  1972. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire kserth_q10381_03.htm">"I understand."</button>
  1973. +</body></html>
  1974. \ No newline at end of file
  1975. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm
  1976. ===================================================================
  1977. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm   (nonexistent)
  1978. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_03.htm   (working copy)
  1979. @@ -0,0 +1,3 @@
  1980. +<html><body>Admiral Keucereus:<br>
  1981. +<font color="LEVEL">Commander Kbaldir</font> is in this <font color="LEVEL">Keucereus Alliance Base</font>. Hurry to him!<br>
  1982. +</body></html>
  1983. \ No newline at end of file
  1984. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm
  1985. ===================================================================
  1986. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm   (nonexistent)
  1987. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_04.htm   (working copy)
  1988. @@ -0,0 +1,4 @@
  1989. +<html><body>Admiral Keucereus:<br>
  1990. +I'm sorry but I cannot send you there now that I saw your skills. I don't want any more blood on my hands.<br>
  1991. +(You must be level 97 or above to start this quest.)<br>
  1992. +</body></html>
  1993. \ No newline at end of file
  1994. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm
  1995. ===================================================================
  1996. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm   (nonexistent)
  1997. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_05.htm   (working copy)
  1998. @@ -0,0 +1,4 @@
  1999. +<html><body>Admiral Keucereus:<br>
  2000. +Rest up, friend. You have done well.<br>
  2001. +(You have already completed this quest.)<br>
  2002. +</body></html>
  2003. \ No newline at end of file
  2004. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm
  2005. ===================================================================
  2006. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm   (nonexistent)
  2007. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/kserth_q10381_06.htm   (working copy)
  2008. @@ -0,0 +1,3 @@
  2009. +<html><body>Admiral Keucereus:<br>
  2010. +Huh? Haven't you left for the <font color="LEVEL">Seed of Hellfire</font> yet? Hurry and go find <font color="LEVEL">Commander Kbaldir</font>. He will tell you how to go to the <font color="LEVEL">Seed of Hellfire</font>.<br>
  2011. +</body></html>
  2012. \ No newline at end of file
  2013. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java
  2014. ===================================================================
  2015. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java    (nonexistent)
  2016. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/Q10381_TotheSeedofHellfire.java    (working copy)
  2017. @@ -0,0 +1,139 @@
  2018. +/*
  2019. + * This file is part of the L2J Mobius project.
  2020. + *
  2021. + * This program is free software: you can redistribute it and/or modify
  2022. + * it under the terms of the GNU General Public License as published by
  2023. + * the Free Software Foundation, either version 3 of the License, or
  2024. + * (at your option) any later version.
  2025. + *
  2026. + * This program is distributed in the hope that it will be useful,
  2027. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2028. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2029. + * General Public License for more details.
  2030. + *
  2031. + * You should have received a copy of the GNU General Public License
  2032. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  2033. + */
  2034. +package quests.Q10381_TotheSeedofHellfire;
  2035. +
  2036. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  2037. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  2038. +import com.l2jmobius.gameserver.model.quest.Quest;
  2039. +import com.l2jmobius.gameserver.model.quest.QuestState;
  2040. +import com.l2jmobius.gameserver.enums.QuestType;
  2041. +
  2042. +/**
  2043. + * @hlwrave
  2044. +**/
  2045. +public class Q10381_TotheSeedofHellfire extends Quest
  2046. +{
  2047. +
  2048. +   // NPC'S
  2049. +   private static final int KEUCEREUS = 32548;
  2050. +   private static final int KBALDIR = 32733;
  2051. +   private static final int SIZRAK = 33669;
  2052. +
  2053. +   // Item's
  2054. +   private static final int KBALDIRS_LETTER = 34957;
  2055. +  
  2056. +   // Misc
  2057. +   private static final int MIN_LEVEL = 97;
  2058. +
  2059. +   public Q10381_TotheSeedofHellfire()
  2060. +   {
  2061. +       super(10381, Q10381_TotheSeedofHellfire.class.getSimpleName(), "To the Seed of Hellfire");
  2062. +       addStartNpc(KEUCEREUS);
  2063. +       addTalkId(KEUCEREUS, KBALDIR, SIZRAK);
  2064. +       registerQuestItems(KBALDIRS_LETTER);
  2065. +       addCondMinLevel(MIN_LEVEL, "kserth_q10381_04.htm");
  2066. +   }
  2067. +
  2068. +   @Override
  2069. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  2070. +   {
  2071. +       String htmltext = event;
  2072. +       final QuestState qs = getQuestState(player, false);
  2073. +      
  2074. +       if (qs == null)
  2075. +       {
  2076. +           return getNoQuestMsg(player);
  2077. +       }
  2078. +      
  2079. +       switch (event)
  2080. +       {
  2081. +           case "kserth_q10381_03.htm":
  2082. +           {
  2083. +               qs.setCond(1);
  2084. +               qs.startQuest();
  2085. +               break;
  2086. +           }
  2087. +           case "kbarldire_q10381_03.htm":
  2088. +           {
  2089. +               qs.setCond(2);
  2090. +               qs.giveItems(KBALDIRS_LETTER, 1);
  2091. +               break;
  2092. +           }
  2093. +           case "sofa_sizraku_q10381_03.htm":
  2094. +           {
  2095. +               qs.takeItems(KBALDIRS_LETTER, -1);
  2096. +               qs.addExpAndSp(951127800, 435041400);
  2097. +               qs.giveItems(57, 3256740);
  2098. +               qs.exitQuest(QuestType.ONE_TIME, true);
  2099. +               break;
  2100. +           }
  2101. +       }
  2102. +       return htmltext;
  2103. +   }
  2104. +
  2105. +  
  2106. +   @Override
  2107. +   public String onTalk(L2Npc npc, L2PcInstance player)
  2108. +   {
  2109. +       final QuestState qs = getQuestState(player, true);
  2110. +       String htmltext = getNoQuestMsg(player);
  2111. +      
  2112. +       switch (npc.getId())
  2113. +       {
  2114. +           case KEUCEREUS:
  2115. +           {
  2116. +               if (qs.isCreated())
  2117. +               {
  2118. +                   htmltext = "kserth_q10381_01.htm";
  2119. +               }
  2120. +               else if (qs.isStarted())
  2121. +               {
  2122. +                   htmltext = "kserth_q10381_06.htm";
  2123. +
  2124. +               }
  2125. +               else if (qs.isCompleted())
  2126. +               {
  2127. +                   htmltext = "kserth_q10381_05.htm";
  2128. +               }
  2129. +               break;
  2130. +           }
  2131. +           case KBALDIR:
  2132. +           {
  2133. +               if (qs.isCond(1))
  2134. +                   {
  2135. +                       htmltext = "kbarldire_q10381_01.htm";
  2136. +                   }
  2137. +                   else if(qs.isCond(2))
  2138. +                   {
  2139. +                       htmltext = "kbarldire_q10381_04.htm";
  2140. +                   }
  2141. +               break;
  2142. +           }
  2143. +           case SIZRAK:
  2144. +           {
  2145. +               if (qs.isCond(2))
  2146. +                   {
  2147. +                       htmltext = "sofa_sizraku_q10381_01.htm";
  2148. +                   }
  2149. +               break;
  2150. +           }
  2151. +       }
  2152. +       return htmltext;
  2153. +   }
  2154. +
  2155. +
  2156. +}
  2157. \ No newline at end of file
  2158. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm
  2159. ===================================================================
  2160. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm (nonexistent)
  2161. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_01.htm (working copy)
  2162. @@ -0,0 +1,4 @@
  2163. +<html><body>Sizrak:<br>
  2164. +Hmm? Do I know you? I'm sorry, I'm busy here and I don't have time for conversation. What? <font color="LEVEL">Keucereus Alliance Base</font> sent you?<br>
  2165. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire sofa_sizraku_q10381_02.htm">"I have a letter from Kbaldir."</button>
  2166. +</body></html>
  2167. \ No newline at end of file
  2168. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm
  2169. ===================================================================
  2170. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm (nonexistent)
  2171. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_02.htm (working copy)
  2172. @@ -0,0 +1,5 @@
  2173. +<html><body>Sizrak:<br>
  2174. +Do you mind waiting while I read it?<br>
  2175. +To be honest, I didn't expect <font color="LEVEL">Keucereus Alliance Base</font> to respond to my request for help. Did you come alone?<br>
  2176. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10381_TotheSeedofHellfire sofa_sizraku_q10381_03.htm">"I am just the vanguard."</button>
  2177. +</body></html>
  2178. \ No newline at end of file
  2179. Index: dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm
  2180. ===================================================================
  2181. --- dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm (nonexistent)
  2182. +++ dist/game/data/scripts/quests/Q10381_TotheSeedofHellfire/sofa_sizraku_q10381_03.htm (working copy)
  2183. @@ -0,0 +1,3 @@
  2184. +<html><body>Sizrak:<br>
  2185. +Hmm... The vanguard of what, I wonder. Well, perhaps you can help us drive <font color="LEVEL">Tauti</font> out... We've had enough trouble with this already, so more blades will be appreciated.<br>
  2186. +</body></html>
  2187. \ No newline at end of file
  2188. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java
  2189. ===================================================================
  2190. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java    (nonexistent)
  2191. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java    (working copy)
  2192. @@ -0,0 +1,146 @@
  2193. +/*
  2194. + * This file is part of the L2J Mobius project.
  2195. + *
  2196. + * This program is free software: you can redistribute it and/or modify
  2197. + * it under the terms of the GNU General Public License as published by
  2198. + * the Free Software Foundation, either version 3 of the License, or
  2199. + * (at your option) any later version.
  2200. + *
  2201. + * This program is distributed in the hope that it will be useful,
  2202. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2203. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2204. + * General Public License for more details.
  2205. + *
  2206. + * You should have received a copy of the GNU General Public License
  2207. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  2208. + */
  2209. +package quests.Q10382_DayofLiberation;
  2210. +
  2211. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  2212. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  2213. +import com.l2jmobius.gameserver.model.quest.Quest;
  2214. +import com.l2jmobius.gameserver.model.quest.QuestState;
  2215. +import com.l2jmobius.gameserver.enums.QuestType;
  2216. +//import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
  2217. +import com.l2jmobius.gameserver.util.Util;
  2218. +
  2219. +import quests.Q10381_TotheSeedofHellfire.Q10381_TotheSeedofHellfire;
  2220. +/**
  2221. + * @hlwrave
  2222. +**/
  2223. +public class Q10382_DayofLiberation extends Quest
  2224. +{
  2225. +   // NPC'S
  2226. +   private static final int SIZRAK = 33669;
  2227. +   private static final int TAUTI = 29236;
  2228. +
  2229. +   // Item's
  2230. +   private static final int TAUTIS_BRACELET = 35293;
  2231. +  
  2232. +   // Misc
  2233. +   private static final int MIN_LEVEL = 97;
  2234. +
  2235. +   public Q10382_DayofLiberation()
  2236. +   {
  2237. +       super(10382, Q10382_DayofLiberation.class.getSimpleName(), "Day of Liberation");
  2238. +       addStartNpc(SIZRAK);
  2239. +       addTalkId(SIZRAK);
  2240. +       addKillId(TAUTI);
  2241. +       addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10382_04.htm");
  2242. +       addCondCompletedQuest(Q10381_TotheSeedofHellfire.class.getSimpleName(), "sofa_sizraku_q10382_05.htm");
  2243. +   }
  2244. +
  2245. +
  2246. +  
  2247. +   @Override
  2248. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  2249. +   {
  2250. +       String htmltext = event;
  2251. +       final QuestState qs = getQuestState(player, false);
  2252. +      
  2253. +       if (qs == null)
  2254. +       {
  2255. +           return getNoQuestMsg(player);
  2256. +       }
  2257. +      
  2258. +       switch (event)
  2259. +       {
  2260. +           case "sofa_sizraku_q10382_03.htm":
  2261. +           {
  2262. +               qs.setCond(1);
  2263. +               qs.startQuest();
  2264. +               qs.set(Integer.toString(TAUTI), 0);
  2265. +               break;
  2266. +           }
  2267. +           case "sofa_sizraku_q10382_10.htm":
  2268. +           {
  2269. +               qs.addExpAndSp(951127800, 435041400);
  2270. +               qs.giveItems(57, 3256740);
  2271. +               qs.giveItems(TAUTIS_BRACELET, 1);
  2272. +               qs.exitQuest(QuestType.ONE_TIME, true);
  2273. +               break;
  2274. +           }
  2275. +       }
  2276. +       return htmltext;
  2277. +   }
  2278. +
  2279. +
  2280. +  
  2281. +       @Override
  2282. +   public String onTalk(L2Npc npc, L2PcInstance player)
  2283. +   {
  2284. +       final QuestState qs = getQuestState(player, true);
  2285. +       String htmltext = getNoQuestMsg(player);
  2286. +      
  2287. +       switch (npc.getId())
  2288. +       {
  2289. +           case SIZRAK:
  2290. +           {
  2291. +               if (qs.isCreated())
  2292. +               {
  2293. +                   htmltext = "sofa_sizraku_q10382_01.htm";
  2294. +               }
  2295. +               else if (qs.isStarted())
  2296. +               {
  2297. +                   if (qs.isCond(1))
  2298. +                   {
  2299. +                       htmltext = "sofa_sizraku_q10382_07.htm";
  2300. +                   }
  2301. +                   else if(qs.isCond(2))
  2302. +                   {
  2303. +                       htmltext = "sofa_sizraku_q10382_08.htm";
  2304. +                   }
  2305. +
  2306. +               }
  2307. +               else if (qs.isCompleted())
  2308. +               {
  2309. +                   htmltext = "sofa_sizraku_q10382_06.htm";
  2310. +               }
  2311. +               break;
  2312. +           }
  2313. +       }
  2314. +       return htmltext;
  2315. +   }
  2316. +
  2317. +   @Override
  2318. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  2319. +   {
  2320. +       final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
  2321. +       if ((qs != null) && qs.isStarted() && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
  2322. +       {
  2323. +           int kills = qs.getInt(Integer.toString(TAUTI));
  2324. +           kills++;
  2325. +           qs.set(Integer.toString(TAUTI), kills);
  2326. +          
  2327. +          
  2328. +          
  2329. +           if (kills == 1)
  2330. +           {
  2331. +               qs.setCond(2);
  2332. +           }
  2333. +       }
  2334. +       return super.onKill(npc, killer, isSummon);
  2335. +   }
  2336. +
  2337. +
  2338. +}
  2339. \ No newline at end of file
  2340. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm
  2341. ===================================================================
  2342. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm (nonexistent)
  2343. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm (working copy)
  2344. @@ -0,0 +1,5 @@
  2345. +<html><body>Sizrak:<br>
  2346. +Now is the time! Go to the <font color="LEVEL">Temple of Tauti</font> and drive <font color="LEVEL">Tauti</font> and his minions out! For the freedom of the <font color="LEVEL">Seed of Hellfire</font>!<br>
  2347. +Will you fight <font color="LEVEL">Tauti</font> with us?<br>
  2348. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_02.htm">"My blade is at your command!"</button>
  2349. +</body></html>
  2350. \ No newline at end of file
  2351. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm
  2352. ===================================================================
  2353. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm (nonexistent)
  2354. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm (working copy)
  2355. @@ -0,0 +1,4 @@
  2356. +<html><body>Sizrak:<br>
  2357. +Good! I will send out the orders. You rally your people--if they exist--and collect <font color="LEVEL">Mark of the Resistance</font>. You'll need them to get into the <font color="LEVEL">Temple of Tauti</font>.<br>
  2358. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_03.htm">"I got it."</button>
  2359. +</body></html>
  2360. \ No newline at end of file
  2361. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm
  2362. ===================================================================
  2363. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm (nonexistent)
  2364. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm (working copy)
  2365. @@ -0,0 +1,3 @@
  2366. +<html><body>Sizrak:<br>
  2367. +Once you and your troops are prepared, come to me. I will send you there.<br>
  2368. +</body></html>
  2369. \ No newline at end of file
  2370. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm
  2371. ===================================================================
  2372. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm (nonexistent)
  2373. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm (working copy)
  2374. @@ -0,0 +1,4 @@
  2375. +<html><body>Sizrak:<br>
  2376. +I'm not sure if we should trust you yet. Perhaps later. <br>
  2377. +(This quest is for players level 97 or above.)<br>
  2378. +</body></html>
  2379. \ No newline at end of file
  2380. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm
  2381. ===================================================================
  2382. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm (nonexistent)
  2383. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm (working copy)
  2384. @@ -0,0 +1,4 @@
  2385. +<html><body>Sizrak:<br>
  2386. +Hmm? Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have any recommendation? Or, for that matter, proof of who you are? <br>
  2387. +(You haven't finished the prerequisite quest.)<br>
  2388. +</body></html>
  2389. \ No newline at end of file
  2390. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm
  2391. ===================================================================
  2392. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm (nonexistent)
  2393. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm (working copy)
  2394. @@ -0,0 +1,4 @@
  2395. +<html><body>Sizrak:<br>
  2396. +Thanks to your help, our burden is lightened. We are grateful.<br>
  2397. +(You have already finished the quest.)<br>
  2398. +</body></html>
  2399. \ No newline at end of file
  2400. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm
  2401. ===================================================================
  2402. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm (nonexistent)
  2403. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm (working copy)
  2404. @@ -0,0 +1,3 @@
  2405. +<html><body>Sizrak<br>
  2406. +You have the <font color="LEVEL">Mark of the Resistance</font>? Then I shall send you to the <font color="LEVEL">Temple of Tauti</font>, if you are prepared.<br>
  2407. +</body></html>
  2408. \ No newline at end of file
  2409. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm
  2410. ===================================================================
  2411. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm (nonexistent)
  2412. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm (working copy)
  2413. @@ -0,0 +1,4 @@
  2414. +<html><body>Sizrak:<br>
  2415. +<font color="LEVEL">Tauti</font> is on the run! You are our savior! <br>
  2416. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_09.htm">"How did your men fare?"</button>
  2417. +</body></html>
  2418. \ No newline at end of file
  2419. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm
  2420. ===================================================================
  2421. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm (nonexistent)
  2422. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm (working copy)
  2423. @@ -0,0 +1,4 @@
  2424. +<html><body>Sizrak:<br>
  2425. +Many lives were lost, but their sacrifice was not in vain.<br>
  2426. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_10.htm">"Indeed, it was not."</button>
  2427. +</body></html>
  2428. \ No newline at end of file
  2429. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm
  2430. ===================================================================
  2431. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm (nonexistent)
  2432. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm (working copy)
  2433. @@ -0,0 +1,3 @@
  2434. +<html><body>Sizrak:<br>
  2435. +This is our independence day. We will remember your role in this!<br>
  2436. +</body></html>
  2437. \ No newline at end of file
  2438. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java
  2439. ===================================================================
  2440. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java    (nonexistent)
  2441. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/Q10382_DayofLiberation.java    (working copy)
  2442. @@ -0,0 +1,146 @@
  2443. +/*
  2444. + * This file is part of the L2J Mobius project.
  2445. + *
  2446. + * This program is free software: you can redistribute it and/or modify
  2447. + * it under the terms of the GNU General Public License as published by
  2448. + * the Free Software Foundation, either version 3 of the License, or
  2449. + * (at your option) any later version.
  2450. + *
  2451. + * This program is distributed in the hope that it will be useful,
  2452. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2453. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2454. + * General Public License for more details.
  2455. + *
  2456. + * You should have received a copy of the GNU General Public License
  2457. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  2458. + */
  2459. +package quests.Q10382_DayofLiberation;
  2460. +
  2461. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  2462. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  2463. +import com.l2jmobius.gameserver.model.quest.Quest;
  2464. +import com.l2jmobius.gameserver.model.quest.QuestState;
  2465. +import com.l2jmobius.gameserver.enums.QuestType;
  2466. +//import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
  2467. +import com.l2jmobius.gameserver.util.Util;
  2468. +
  2469. +import quests.Q10381_TotheSeedofHellfire.Q10381_TotheSeedofHellfire;
  2470. +/**
  2471. + * @hlwrave
  2472. +**/
  2473. +public class Q10382_DayofLiberation extends Quest
  2474. +{
  2475. +   // NPC'S
  2476. +   private static final int SIZRAK = 33669;
  2477. +   private static final int TAUTI = 29236;
  2478. +
  2479. +   // Item's
  2480. +   private static final int TAUTIS_BRACELET = 35293;
  2481. +  
  2482. +   // Misc
  2483. +   private static final int MIN_LEVEL = 97;
  2484. +
  2485. +   public Q10382_DayofLiberation()
  2486. +   {
  2487. +       super(10382, Q10382_DayofLiberation.class.getSimpleName(), "Day of Liberation");
  2488. +       addStartNpc(SIZRAK);
  2489. +       addTalkId(SIZRAK);
  2490. +       addKillId(TAUTI);
  2491. +       addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10382_04.htm");
  2492. +       addCondCompletedQuest(Q10381_TotheSeedofHellfire.class.getSimpleName(), "sofa_sizraku_q10382_05.htm");
  2493. +   }
  2494. +
  2495. +
  2496. +  
  2497. +   @Override
  2498. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  2499. +   {
  2500. +       String htmltext = event;
  2501. +       final QuestState qs = getQuestState(player, false);
  2502. +      
  2503. +       if (qs == null)
  2504. +       {
  2505. +           return getNoQuestMsg(player);
  2506. +       }
  2507. +      
  2508. +       switch (event)
  2509. +       {
  2510. +           case "sofa_sizraku_q10382_03.htm":
  2511. +           {
  2512. +               qs.setCond(1);
  2513. +               qs.startQuest();
  2514. +               qs.set(Integer.toString(TAUTI), 0);
  2515. +               break;
  2516. +           }
  2517. +           case "sofa_sizraku_q10382_10.htm":
  2518. +           {
  2519. +               qs.addExpAndSp(951127800, 435041400);
  2520. +               qs.giveItems(57, 3256740);
  2521. +               qs.giveItems(TAUTIS_BRACELET, 1);
  2522. +               qs.exitQuest(QuestType.ONE_TIME, true);
  2523. +               break;
  2524. +           }
  2525. +       }
  2526. +       return htmltext;
  2527. +   }
  2528. +
  2529. +
  2530. +  
  2531. +       @Override
  2532. +   public String onTalk(L2Npc npc, L2PcInstance player)
  2533. +   {
  2534. +       final QuestState qs = getQuestState(player, true);
  2535. +       String htmltext = getNoQuestMsg(player);
  2536. +      
  2537. +       switch (npc.getId())
  2538. +       {
  2539. +           case SIZRAK:
  2540. +           {
  2541. +               if (qs.isCreated())
  2542. +               {
  2543. +                   htmltext = "sofa_sizraku_q10382_01.htm";
  2544. +               }
  2545. +               else if (qs.isStarted())
  2546. +               {
  2547. +                   if (qs.isCond(1))
  2548. +                   {
  2549. +                       htmltext = "sofa_sizraku_q10382_07.htm";
  2550. +                   }
  2551. +                   else if(qs.isCond(2))
  2552. +                   {
  2553. +                       htmltext = "sofa_sizraku_q10382_08.htm";
  2554. +                   }
  2555. +
  2556. +               }
  2557. +               else if (qs.isCompleted())
  2558. +               {
  2559. +                   htmltext = "sofa_sizraku_q10382_06.htm";
  2560. +               }
  2561. +               break;
  2562. +           }
  2563. +       }
  2564. +       return htmltext;
  2565. +   }
  2566. +
  2567. +   @Override
  2568. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  2569. +   {
  2570. +       final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
  2571. +       if ((qs != null) && qs.isStarted() && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
  2572. +       {
  2573. +           int kills = qs.getInt(Integer.toString(TAUTI));
  2574. +           kills++;
  2575. +           qs.set(Integer.toString(TAUTI), kills);
  2576. +          
  2577. +          
  2578. +          
  2579. +           if (kills == 1)
  2580. +           {
  2581. +               qs.setCond(2);
  2582. +           }
  2583. +       }
  2584. +       return super.onKill(npc, killer, isSummon);
  2585. +   }
  2586. +
  2587. +
  2588. +}
  2589. \ No newline at end of file
  2590. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm
  2591. ===================================================================
  2592. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm (nonexistent)
  2593. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_01.htm (working copy)
  2594. @@ -0,0 +1,5 @@
  2595. +<html><body>Sizrak:<br>
  2596. +Now is the time! Go to the <font color="LEVEL">Temple of Tauti</font> and drive <font color="LEVEL">Tauti</font> and his minions out! For the freedom of the <font color="LEVEL">Seed of Hellfire</font>!<br>
  2597. +Will you fight <font color="LEVEL">Tauti</font> with us?<br>
  2598. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_02.htm">"My blade is at your command!"</button>
  2599. +</body></html>
  2600. \ No newline at end of file
  2601. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm
  2602. ===================================================================
  2603. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm (nonexistent)
  2604. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_02.htm (working copy)
  2605. @@ -0,0 +1,4 @@
  2606. +<html><body>Sizrak:<br>
  2607. +Good! I will send out the orders. You rally your people--if they exist--and collect <font color="LEVEL">Mark of the Resistance</font>. You'll need them to get into the <font color="LEVEL">Temple of Tauti</font>.<br>
  2608. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_03.htm">"I got it."</button>
  2609. +</body></html>
  2610. \ No newline at end of file
  2611. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm
  2612. ===================================================================
  2613. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm (nonexistent)
  2614. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_03.htm (working copy)
  2615. @@ -0,0 +1,3 @@
  2616. +<html><body>Sizrak:<br>
  2617. +Once you and your troops are prepared, come to me. I will send you there.<br>
  2618. +</body></html>
  2619. \ No newline at end of file
  2620. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm
  2621. ===================================================================
  2622. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm (nonexistent)
  2623. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_04.htm (working copy)
  2624. @@ -0,0 +1,4 @@
  2625. +<html><body>Sizrak:<br>
  2626. +I'm not sure if we should trust you yet. Perhaps later. <br>
  2627. +(This quest is for players level 97 or above.)<br>
  2628. +</body></html>
  2629. \ No newline at end of file
  2630. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm
  2631. ===================================================================
  2632. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm (nonexistent)
  2633. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_05.htm (working copy)
  2634. @@ -0,0 +1,4 @@
  2635. +<html><body>Sizrak:<br>
  2636. +Hmm? Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have any recommendation? Or, for that matter, proof of who you are? <br>
  2637. +(You haven't finished the prerequisite quest.)<br>
  2638. +</body></html>
  2639. \ No newline at end of file
  2640. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm
  2641. ===================================================================
  2642. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm (nonexistent)
  2643. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_06.htm (working copy)
  2644. @@ -0,0 +1,4 @@
  2645. +<html><body>Sizrak:<br>
  2646. +Thanks to your help, our burden is lightened. We are grateful.<br>
  2647. +(You have already finished the quest.)<br>
  2648. +</body></html>
  2649. \ No newline at end of file
  2650. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm
  2651. ===================================================================
  2652. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm (nonexistent)
  2653. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_07.htm (working copy)
  2654. @@ -0,0 +1,3 @@
  2655. +<html><body>Sizrak<br>
  2656. +You have the <font color="LEVEL">Mark of the Resistance</font>? Then I shall send you to the <font color="LEVEL">Temple of Tauti</font>, if you are prepared.<br>
  2657. +</body></html>
  2658. \ No newline at end of file
  2659. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm
  2660. ===================================================================
  2661. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm (nonexistent)
  2662. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_08.htm (working copy)
  2663. @@ -0,0 +1,4 @@
  2664. +<html><body>Sizrak:<br>
  2665. +<font color="LEVEL">Tauti</font> is on the run! You are our savior! <br>
  2666. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_09.htm">"How did your men fare?"</button>
  2667. +</body></html>
  2668. \ No newline at end of file
  2669. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm
  2670. ===================================================================
  2671. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm (nonexistent)
  2672. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_09.htm (working copy)
  2673. @@ -0,0 +1,4 @@
  2674. +<html><body>Sizrak:<br>
  2675. +Many lives were lost, but their sacrifice was not in vain.<br>
  2676. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayofLiberation sofa_sizraku_q10382_10.htm">"Indeed, it was not."</button>
  2677. +</body></html>
  2678. \ No newline at end of file
  2679. Index: dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm
  2680. ===================================================================
  2681. --- dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm (nonexistent)
  2682. +++ dist/game/data/scripts/quests/Q10382_DayofLiberation/sofa_sizraku_q10382_10.htm (working copy)
  2683. @@ -0,0 +1,3 @@
  2684. +<html><body>Sizrak:<br>
  2685. +This is our independence day. We will remember your role in this!<br>
  2686. +</body></html>
  2687. \ No newline at end of file
  2688. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java
  2689. ===================================================================
  2690. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java  (nonexistent)
  2691. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java  (working copy)
  2692. @@ -0,0 +1,173 @@
  2693. +/*
  2694. + * This file is part of the L2J Mobius project.
  2695. + *
  2696. + * This program is free software: you can redistribute it and/or modify
  2697. + * it under the terms of the GNU General Public License as published by
  2698. + * the Free Software Foundation, either version 3 of the License, or
  2699. + * (at your option) any later version.
  2700. + *
  2701. + * This program is distributed in the hope that it will be useful,
  2702. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2703. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2704. + * General Public License for more details.
  2705. + *
  2706. + * You should have received a copy of the GNU General Public License
  2707. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  2708. + */
  2709. +package quests.Q10383_FergasonsOffer;
  2710. +
  2711. +import com.l2jmobius.gameserver.util.Util;
  2712. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  2713. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  2714. +import com.l2jmobius.gameserver.model.quest.Quest;
  2715. +import com.l2jmobius.gameserver.model.quest.QuestState;
  2716. +import com.l2jmobius.gameserver.enums.QuestType;
  2717. +
  2718. +import quests.Q10381_TotheSeedofHellfire.Q10381_TotheSeedofHellfire;
  2719. +
  2720. +/**
  2721. + * @hlwrave
  2722. +**/
  2723. +public class Q10383_FergasonsOffer extends Quest
  2724. +{
  2725. +   // NPC'S
  2726. +   private static final int SIZRAK = 33669;
  2727. +   private static final int AKU = 33671;
  2728. +   private static final int FERGASON = 33681;
  2729. +
  2730. +   // Monster's
  2731. +   private static final int[] MONSTERS =
  2732. +   { 23213,
  2733. +         23214,
  2734. +     23215,
  2735. +     23216,
  2736. +     23217,
  2737. +     23218,
  2738. +     23219 };
  2739. +
  2740. +   // Item's
  2741. +   private static final int UNSTABLE_PETRA = 34958;
  2742. +   // Misc
  2743. +   private static final int MIN_LEVEL = 97;
  2744. +
  2745. +   public Q10383_FergasonsOffer()
  2746. +   {
  2747. +       super(10383, Q10383_FergasonsOffer.class.getSimpleName(), "Fergasons Offer");
  2748. +       addStartNpc(SIZRAK);
  2749. +       addTalkId(SIZRAK, AKU, FERGASON);
  2750. +       addKillId(MONSTERS);
  2751. +       registerQuestItems(UNSTABLE_PETRA);
  2752. +       addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10383_04.htm");
  2753. +       addCondCompletedQuest(Q10381_TotheSeedofHellfire.class.getSimpleName(), "sofa_sizraku_q10383_07.htm");
  2754. +   }
  2755. +
  2756. +  
  2757. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  2758. +   {
  2759. +       String htmltext = event;
  2760. +       final QuestState qs = getQuestState(player, false);
  2761. +      
  2762. +       if (qs == null)
  2763. +       {
  2764. +           return getNoQuestMsg(player);
  2765. +       }
  2766. +      
  2767. +       switch (event)
  2768. +       {
  2769. +           case "sofa_sizraku_q10383_03.htm":
  2770. +           {
  2771. +               qs.setCond(1);
  2772. +               qs.startQuest();
  2773. +               break;
  2774. +           }
  2775. +           case "maestro_ferguson_q10383_04.htm":
  2776. +           {
  2777. +               qs.setCond(2);
  2778. +               break;
  2779. +           }
  2780. +           case "sofa_aku_q10383_03.htm":
  2781. +           {
  2782. +               qs.takeItems(UNSTABLE_PETRA, -1L);
  2783. +               qs.addExpAndSp(951127800, 435041400);
  2784. +               qs.giveItems(57, 3256740);
  2785. +               qs.exitQuest(QuestType.ONE_TIME, true);
  2786. +               break;
  2787. +           }
  2788. +       }
  2789. +       return htmltext;
  2790. +   }
  2791. +
  2792. +  
  2793. +   @Override
  2794. +   public String onTalk(L2Npc npc, L2PcInstance player)
  2795. +   {
  2796. +       final QuestState qs = getQuestState(player, true);
  2797. +       String htmltext = getNoQuestMsg(player);
  2798. +      
  2799. +       switch (npc.getId())
  2800. +       {
  2801. +           case SIZRAK:
  2802. +           {
  2803. +               if (qs.isCreated())
  2804. +               {
  2805. +                   htmltext = "sofa_sizraku_q10383_01.htm";
  2806. +               }
  2807. +               else if (qs.isStarted())
  2808. +               {
  2809. +                   htmltext = "sofa_sizraku_q10383_06.htm";
  2810. +               }
  2811. +               else if (qs.isCompleted())
  2812. +               {
  2813. +                   htmltext = "sofa_sizraku_q10383_05.htm";
  2814. +               }
  2815. +               break;
  2816. +           }
  2817. +           case FERGASON:
  2818. +           {
  2819. +               if (qs.isCond(1))
  2820. +               {
  2821. +                   htmltext = "maestro_ferguson_q10383_01.htm";
  2822. +               }
  2823. +               else if (qs.isCond(2))
  2824. +               {
  2825. +                   htmltext = "maestro_ferguson_q10383_05.htm";
  2826. +               }
  2827. +                  
  2828. +               break;
  2829. +           }
  2830. +           case AKU:
  2831. +           {
  2832. +               if (qs.isCond(1))
  2833. +               {
  2834. +                   htmltext = "sofa_aku_q10383_01.htm";
  2835. +               }
  2836. +               else if (qs.isCond(3))
  2837. +               {
  2838. +                   htmltext = "sofa_aku_q10383_02.htm";
  2839. +               }
  2840. +                  
  2841. +               break;
  2842. +           }
  2843. +       }
  2844. +       return htmltext;
  2845. +   }
  2846. +
  2847. +   @Override
  2848. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  2849. +   {
  2850. +       final QuestState qs = getQuestState(killer, false);
  2851. +       if ((qs != null) && qs.isCond(2) && qs.isStarted())
  2852. +       {
  2853. +          
  2854. +           if (Util.contains(MONSTERS, npc.getId()))
  2855. +           {
  2856. +               giveItemRandomly(killer, npc, UNSTABLE_PETRA, 1, 20, 0.75, true);
  2857. +           }
  2858. +           if (getQuestItemsCount(killer, UNSTABLE_PETRA) >= 20)
  2859. +           {
  2860. +               qs.setCond(3);
  2861. +           }
  2862. +       }
  2863. +       return super.onKill(npc, killer, isSummon);
  2864. +   }
  2865. +}
  2866. \ No newline at end of file
  2867. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm
  2868. ===================================================================
  2869. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm  (nonexistent)
  2870. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm  (working copy)
  2871. @@ -0,0 +1,5 @@
  2872. +<html><body>Fergason:<br>
  2873. +You're the outsider that <font color="LEVEL">Sizrak</font> was talking about. It's good to meet you. My name is <font color="LEVEL">Fergason</font>. <br>
  2874. + <br>
  2875. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_02.htm">"Why are you here?"</button>
  2876. +</body></html>
  2877. \ No newline at end of file
  2878. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm
  2879. ===================================================================
  2880. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm  (nonexistent)
  2881. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm  (working copy)
  2882. @@ -0,0 +1,5 @@
  2883. +<html><body>Fergason:<br>
  2884. +I came here because I heard the rumor about <font color="LEVEL">Tauti</font> living here. I'm not sure if you know, but <font color="LEVEL">Tauti</font> is one of <font color="LEVEL">Bremnon's</font> weapons, and a brother to <font color="LEVEL">Demonic Sword Zariche</font>. <br>
  2885. +To catch a glimpse of such a creature... not many have that honor.<br>
  2886. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_03.htm">"Can you actually help with this quest?"</button>
  2887. +</body></html>
  2888. \ No newline at end of file
  2889. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm
  2890. ===================================================================
  2891. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm  (nonexistent)
  2892. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm  (working copy)
  2893. @@ -0,0 +1,5 @@
  2894. +<html><body>Fergason:<br>
  2895. +Yes! Of course! What you need to do is collect <font color="LEVEL">Petra</font> and deliver them to <font color="LEVEL">Aku</font>.<br>
  2896. +<font color="LEVEL">Petra</font> is a biological energy that emanates from <font color="LEVEL">Zofan</font>, found in the <font color="LEVEL">Seed of Hellfire</font>. <font color="LEVEL">Aku</font> is collecting them, and if you help him, he will arrange a meeting with <font color="LEVEL">Tauti</font>.What do you think? Will you try?<br>
  2897. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_04.htm">"Uh. Sure."</button>
  2898. +</body></html>
  2899. \ No newline at end of file
  2900. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm
  2901. ===================================================================
  2902. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm  (nonexistent)
  2903. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm  (working copy)
  2904. @@ -0,0 +1,4 @@
  2905. +<html><body>Fergason:<br>
  2906. +Good! Now, to get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
  2907. +And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!<br>
  2908. +</body></html>
  2909. \ No newline at end of file
  2910. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm
  2911. ===================================================================
  2912. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm  (nonexistent)
  2913. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm  (working copy)
  2914. @@ -0,0 +1,4 @@
  2915. +<html><body>Fergason:<br>
  2916. +To get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
  2917. +And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!<br>
  2918. +</body></html>
  2919. \ No newline at end of file
  2920. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm
  2921. ===================================================================
  2922. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm  (nonexistent)
  2923. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm  (working copy)
  2924. @@ -0,0 +1,3 @@
  2925. +<html><body>Aku:<br>
  2926. +Ooh, more <font color="LEVEL">Petra</font>? Hee, that's not enough, dingbat! Talk to me when you have more!<br>
  2927. +</body></html>
  2928. \ No newline at end of file
  2929. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm
  2930. ===================================================================
  2931. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm  (nonexistent)
  2932. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm  (working copy)
  2933. @@ -0,0 +1,5 @@
  2934. +<html><body>Aku:<br>
  2935. +Hee, this <font color="LEVEL">Petra</font> is all you could find? And what? You want to see <font color="LEVEL">Lord Tauti</font>? Dingbat!
  2936. +<br>
  2937. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_aku_q10383_03.htm">"Wait, that's not fair!"</button>
  2938. +</body></html>
  2939. \ No newline at end of file
  2940. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm
  2941. ===================================================================
  2942. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm  (nonexistent)
  2943. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm  (working copy)
  2944. @@ -0,0 +1,4 @@
  2945. +<html><body>Aku:<br>
  2946. +Hee! Fair! Fair is a <font color="LEVEL">Top Quality Petra</font>, and that is all! Then I will give you <font color="LEVEL">Aku's Mark</font>. <br>
  2947. +Once you collect enough <font color="LEVEL">Aku's Mark</font>, then you can ask to see <font color="LEVEL">Lord Tauti</font>. Dingbat!<br>
  2948. +</body></html>
  2949. \ No newline at end of file
  2950. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm
  2951. ===================================================================
  2952. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm  (nonexistent)
  2953. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm  (working copy)
  2954. @@ -0,0 +1,4 @@
  2955. +<html><body>Sizrak:<br>
  2956. +I talked to <font color="LEVEL">Fergason</font>, and he seemed to be interested in meeting you. How about it?<br>
  2957. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_02.htm">"Who is Fergason?"</button>
  2958. +</body></html>
  2959. \ No newline at end of file
  2960. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm
  2961. ===================================================================
  2962. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm  (nonexistent)
  2963. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm  (working copy)
  2964. @@ -0,0 +1,4 @@
  2965. +<html><body>Sizrak:<br>
  2966. +He's an outsider, like you, who's given us help He has forged our weapon and refused our pay. He is a true comrade! Go to him.<br>
  2967. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_03.htm">"I think I might."</button>
  2968. +</body></html>
  2969. \ No newline at end of file
  2970. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm
  2971. ===================================================================
  2972. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm  (nonexistent)
  2973. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm  (working copy)
  2974. @@ -0,0 +1,3 @@
  2975. +<html><body>Sizrak:<br>
  2976. +<font color="LEVEL">Fergason</font> is here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.<br>
  2977. +</body></html>
  2978. \ No newline at end of file
  2979. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm
  2980. ===================================================================
  2981. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm  (nonexistent)
  2982. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm  (working copy)
  2983. @@ -0,0 +1,4 @@
  2984. +<html><body>Sizrak:<br>
  2985. +Hmm... I think not. You can't help us at the moment.<br>
  2986. +(This quest is for players level 97 or above.)<br>
  2987. +</body></html>
  2988. \ No newline at end of file
  2989. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm
  2990. ===================================================================
  2991. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm  (nonexistent)
  2992. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm  (working copy)
  2993. @@ -0,0 +1,4 @@
  2994. +<html><body>Sizrak:<br>
  2995. +You have done great things for us, comrade. <br>
  2996. +(You have already finished the quest.)<br>
  2997. +</body></html>
  2998. \ No newline at end of file
  2999. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm
  3000. ===================================================================
  3001. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm  (nonexistent)
  3002. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm  (working copy)
  3003. @@ -0,0 +1,4 @@
  3004. +<html><body>Sizrak:<br>
  3005. +You haven't met <font color="LEVEL">Fergason</font> yet?<br>
  3006. +He's right here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.<br>
  3007. +</body></html>
  3008. \ No newline at end of file
  3009. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm
  3010. ===================================================================
  3011. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm  (nonexistent)
  3012. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm  (working copy)
  3013. @@ -0,0 +1,4 @@
  3014. +<html><body>Sizrak:<br>
  3015. +Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have some sort of proof? Why should I trust you? <br>
  3016. +(You haven't finished the prerequisite quest.)<br>
  3017. +</body></html>
  3018. \ No newline at end of file
  3019. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm
  3020. ===================================================================
  3021. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm  (nonexistent)
  3022. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_01.htm  (working copy)
  3023. @@ -0,0 +1,5 @@
  3024. +<html><body>Fergason:<br>
  3025. +You're the outsider that <font color="LEVEL">Sizrak</font> was talking about. It's good to meet you. My name is <font color="LEVEL">Fergason</font>. <br>
  3026. + <br>
  3027. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_02.htm">"Why are you here?"</button>
  3028. +</body></html>
  3029. \ No newline at end of file
  3030. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm
  3031. ===================================================================
  3032. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm  (nonexistent)
  3033. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_02.htm  (working copy)
  3034. @@ -0,0 +1,5 @@
  3035. +<html><body>Fergason:<br>
  3036. +I came here because I heard the rumor about <font color="LEVEL">Tauti</font> living here. I'm not sure if you know, but <font color="LEVEL">Tauti</font> is one of <font color="LEVEL">Bremnon's</font> weapons, and a brother to <font color="LEVEL">Demonic Sword Zariche</font>. <br>
  3037. +To catch a glimpse of such a creature... not many have that honor.<br>
  3038. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_03.htm">"Can you actually help with this quest?"</button>
  3039. +</body></html>
  3040. \ No newline at end of file
  3041. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm
  3042. ===================================================================
  3043. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm  (nonexistent)
  3044. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_03.htm  (working copy)
  3045. @@ -0,0 +1,5 @@
  3046. +<html><body>Fergason:<br>
  3047. +Yes! Of course! What you need to do is collect <font color="LEVEL">Petra</font> and deliver them to <font color="LEVEL">Aku</font>.<br>
  3048. +<font color="LEVEL">Petra</font> is a biological energy that emanates from <font color="LEVEL">Zofan</font>, found in the <font color="LEVEL">Seed of Hellfire</font>. <font color="LEVEL">Aku</font> is collecting them, and if you help him, he will arrange a meeting with <font color="LEVEL">Tauti</font>.What do you think? Will you try?<br>
  3049. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_04.htm">"Uh. Sure."</button>
  3050. +</body></html>
  3051. \ No newline at end of file
  3052. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm
  3053. ===================================================================
  3054. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm  (nonexistent)
  3055. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_04.htm  (working copy)
  3056. @@ -0,0 +1,4 @@
  3057. +<html><body>Fergason:<br>
  3058. +Good! Now, to get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
  3059. +And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!<br>
  3060. +</body></html>
  3061. \ No newline at end of file
  3062. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm
  3063. ===================================================================
  3064. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm  (nonexistent)
  3065. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/maestro_ferguson_q10383_05.htm  (working copy)
  3066. @@ -0,0 +1,4 @@
  3067. +<html><body>Fergason:<br>
  3068. +To get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
  3069. +And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!<br>
  3070. +</body></html>
  3071. \ No newline at end of file
  3072. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java
  3073. ===================================================================
  3074. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java  (nonexistent)
  3075. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/Q10383_FergasonsOffer.java  (working copy)
  3076. @@ -0,0 +1,173 @@
  3077. +/*
  3078. + * This file is part of the L2J Mobius project.
  3079. + *
  3080. + * This program is free software: you can redistribute it and/or modify
  3081. + * it under the terms of the GNU General Public License as published by
  3082. + * the Free Software Foundation, either version 3 of the License, or
  3083. + * (at your option) any later version.
  3084. + *
  3085. + * This program is distributed in the hope that it will be useful,
  3086. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3087. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3088. + * General Public License for more details.
  3089. + *
  3090. + * You should have received a copy of the GNU General Public License
  3091. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  3092. + */
  3093. +package quests.Q10383_FergasonsOffer;
  3094. +
  3095. +import com.l2jmobius.gameserver.util.Util;
  3096. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  3097. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  3098. +import com.l2jmobius.gameserver.model.quest.Quest;
  3099. +import com.l2jmobius.gameserver.model.quest.QuestState;
  3100. +import com.l2jmobius.gameserver.enums.QuestType;
  3101. +
  3102. +import quests.Q10381_TotheSeedofHellfire.Q10381_TotheSeedofHellfire;
  3103. +
  3104. +/**
  3105. + * @hlwrave
  3106. +**/
  3107. +public class Q10383_FergasonsOffer extends Quest
  3108. +{
  3109. +   // NPC'S
  3110. +   private static final int SIZRAK = 33669;
  3111. +   private static final int AKU = 33671;
  3112. +   private static final int FERGASON = 33681;
  3113. +
  3114. +   // Monster's
  3115. +   private static final int[] MONSTERS =
  3116. +   { 23213,
  3117. +         23214,
  3118. +     23215,
  3119. +     23216,
  3120. +     23217,
  3121. +     23218,
  3122. +     23219 };
  3123. +
  3124. +   // Item's
  3125. +   private static final int UNSTABLE_PETRA = 34958;
  3126. +   // Misc
  3127. +   private static final int MIN_LEVEL = 97;
  3128. +
  3129. +   public Q10383_FergasonsOffer()
  3130. +   {
  3131. +       super(10383, Q10383_FergasonsOffer.class.getSimpleName(), "Fergasons Offer");
  3132. +       addStartNpc(SIZRAK);
  3133. +       addTalkId(SIZRAK, AKU, FERGASON);
  3134. +       addKillId(MONSTERS);
  3135. +       registerQuestItems(UNSTABLE_PETRA);
  3136. +       addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10383_04.htm");
  3137. +       addCondCompletedQuest(Q10381_TotheSeedofHellfire.class.getSimpleName(), "sofa_sizraku_q10383_07.htm");
  3138. +   }
  3139. +
  3140. +  
  3141. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  3142. +   {
  3143. +       String htmltext = event;
  3144. +       final QuestState qs = getQuestState(player, false);
  3145. +      
  3146. +       if (qs == null)
  3147. +       {
  3148. +           return getNoQuestMsg(player);
  3149. +       }
  3150. +      
  3151. +       switch (event)
  3152. +       {
  3153. +           case "sofa_sizraku_q10383_03.htm":
  3154. +           {
  3155. +               qs.setCond(1);
  3156. +               qs.startQuest();
  3157. +               break;
  3158. +           }
  3159. +           case "maestro_ferguson_q10383_04.htm":
  3160. +           {
  3161. +               qs.setCond(2);
  3162. +               break;
  3163. +           }
  3164. +           case "sofa_aku_q10383_03.htm":
  3165. +           {
  3166. +               qs.takeItems(UNSTABLE_PETRA, -1L);
  3167. +               qs.addExpAndSp(951127800, 435041400);
  3168. +               qs.giveItems(57, 3256740);
  3169. +               qs.exitQuest(QuestType.ONE_TIME, true);
  3170. +               break;
  3171. +           }
  3172. +       }
  3173. +       return htmltext;
  3174. +   }
  3175. +
  3176. +  
  3177. +   @Override
  3178. +   public String onTalk(L2Npc npc, L2PcInstance player)
  3179. +   {
  3180. +       final QuestState qs = getQuestState(player, true);
  3181. +       String htmltext = getNoQuestMsg(player);
  3182. +      
  3183. +       switch (npc.getId())
  3184. +       {
  3185. +           case SIZRAK:
  3186. +           {
  3187. +               if (qs.isCreated())
  3188. +               {
  3189. +                   htmltext = "sofa_sizraku_q10383_01.htm";
  3190. +               }
  3191. +               else if (qs.isStarted())
  3192. +               {
  3193. +                   htmltext = "sofa_sizraku_q10383_06.htm";
  3194. +               }
  3195. +               else if (qs.isCompleted())
  3196. +               {
  3197. +                   htmltext = "sofa_sizraku_q10383_05.htm";
  3198. +               }
  3199. +               break;
  3200. +           }
  3201. +           case FERGASON:
  3202. +           {
  3203. +               if (qs.isCond(1))
  3204. +               {
  3205. +                   htmltext = "maestro_ferguson_q10383_01.htm";
  3206. +               }
  3207. +               else if (qs.isCond(2))
  3208. +               {
  3209. +                   htmltext = "maestro_ferguson_q10383_05.htm";
  3210. +               }
  3211. +                  
  3212. +               break;
  3213. +           }
  3214. +           case AKU:
  3215. +           {
  3216. +               if (qs.isCond(1))
  3217. +               {
  3218. +                   htmltext = "sofa_aku_q10383_01.htm";
  3219. +               }
  3220. +               else if (qs.isCond(3))
  3221. +               {
  3222. +                   htmltext = "sofa_aku_q10383_02.htm";
  3223. +               }
  3224. +                  
  3225. +               break;
  3226. +           }
  3227. +       }
  3228. +       return htmltext;
  3229. +   }
  3230. +
  3231. +   @Override
  3232. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  3233. +   {
  3234. +       final QuestState qs = getQuestState(killer, false);
  3235. +       if ((qs != null) && qs.isCond(2) && qs.isStarted())
  3236. +       {
  3237. +          
  3238. +           if (Util.contains(MONSTERS, npc.getId()))
  3239. +           {
  3240. +               giveItemRandomly(killer, npc, UNSTABLE_PETRA, 1, 20, 0.75, true);
  3241. +           }
  3242. +           if (getQuestItemsCount(killer, UNSTABLE_PETRA) >= 20)
  3243. +           {
  3244. +               qs.setCond(3);
  3245. +           }
  3246. +       }
  3247. +       return super.onKill(npc, killer, isSummon);
  3248. +   }
  3249. +}
  3250. \ No newline at end of file
  3251. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm
  3252. ===================================================================
  3253. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm  (nonexistent)
  3254. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_01.htm  (working copy)
  3255. @@ -0,0 +1,3 @@
  3256. +<html><body>Aku:<br>
  3257. +Ooh, more <font color="LEVEL">Petra</font>? Hee, that's not enough, dingbat! Talk to me when you have more!<br>
  3258. +</body></html>
  3259. \ No newline at end of file
  3260. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm
  3261. ===================================================================
  3262. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm  (nonexistent)
  3263. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_02.htm  (working copy)
  3264. @@ -0,0 +1,5 @@
  3265. +<html><body>Aku:<br>
  3266. +Hee, this <font color="LEVEL">Petra</font> is all you could find? And what? You want to see <font color="LEVEL">Lord Tauti</font>? Dingbat!
  3267. +<br>
  3268. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_aku_q10383_03.htm">"Wait, that's not fair!"</button>
  3269. +</body></html>
  3270. \ No newline at end of file
  3271. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm
  3272. ===================================================================
  3273. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm  (nonexistent)
  3274. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_aku_q10383_03.htm  (working copy)
  3275. @@ -0,0 +1,4 @@
  3276. +<html><body>Aku:<br>
  3277. +Hee! Fair! Fair is a <font color="LEVEL">Top Quality Petra</font>, and that is all! Then I will give you <font color="LEVEL">Aku's Mark</font>. <br>
  3278. +Once you collect enough <font color="LEVEL">Aku's Mark</font>, then you can ask to see <font color="LEVEL">Lord Tauti</font>. Dingbat!<br>
  3279. +</body></html>
  3280. \ No newline at end of file
  3281. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm
  3282. ===================================================================
  3283. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm  (nonexistent)
  3284. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_01.htm  (working copy)
  3285. @@ -0,0 +1,4 @@
  3286. +<html><body>Sizrak:<br>
  3287. +I talked to <font color="LEVEL">Fergason</font>, and he seemed to be interested in meeting you. How about it?<br>
  3288. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_02.htm">"Who is Fergason?"</button>
  3289. +</body></html>
  3290. \ No newline at end of file
  3291. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm
  3292. ===================================================================
  3293. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm  (nonexistent)
  3294. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_02.htm  (working copy)
  3295. @@ -0,0 +1,4 @@
  3296. +<html><body>Sizrak:<br>
  3297. +He's an outsider, like you, who's given us help He has forged our weapon and refused our pay. He is a true comrade! Go to him.<br>
  3298. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_03.htm">"I think I might."</button>
  3299. +</body></html>
  3300. \ No newline at end of file
  3301. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm
  3302. ===================================================================
  3303. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm  (nonexistent)
  3304. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_03.htm  (working copy)
  3305. @@ -0,0 +1,3 @@
  3306. +<html><body>Sizrak:<br>
  3307. +<font color="LEVEL">Fergason</font> is here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.<br>
  3308. +</body></html>
  3309. \ No newline at end of file
  3310. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm
  3311. ===================================================================
  3312. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm  (nonexistent)
  3313. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_04.htm  (working copy)
  3314. @@ -0,0 +1,4 @@
  3315. +<html><body>Sizrak:<br>
  3316. +Hmm... I think not. You can't help us at the moment.<br>
  3317. +(This quest is for players level 97 or above.)<br>
  3318. +</body></html>
  3319. \ No newline at end of file
  3320. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm
  3321. ===================================================================
  3322. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm  (nonexistent)
  3323. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_05.htm  (working copy)
  3324. @@ -0,0 +1,4 @@
  3325. +<html><body>Sizrak:<br>
  3326. +You have done great things for us, comrade. <br>
  3327. +(You have already finished the quest.)<br>
  3328. +</body></html>
  3329. \ No newline at end of file
  3330. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm
  3331. ===================================================================
  3332. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm  (nonexistent)
  3333. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_06.htm  (working copy)
  3334. @@ -0,0 +1,4 @@
  3335. +<html><body>Sizrak:<br>
  3336. +You haven't met <font color="LEVEL">Fergason</font> yet?<br>
  3337. +He's right here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.<br>
  3338. +</body></html>
  3339. \ No newline at end of file
  3340. Index: dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm
  3341. ===================================================================
  3342. --- dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm  (nonexistent)
  3343. +++ dist/game/data/scripts/quests/Q10383_FergasonsOffer/sofa_sizraku_q10383_07.htm  (working copy)
  3344. @@ -0,0 +1,4 @@
  3345. +<html><body>Sizrak:<br>
  3346. +Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have some sort of proof? Why should I trust you? <br>
  3347. +(You haven't finished the prerequisite quest.)<br>
  3348. +</body></html>
  3349. \ No newline at end of file
  3350. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java
  3351. ===================================================================
  3352. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java    (nonexistent)
  3353. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java    (working copy)
  3354. @@ -0,0 +1,159 @@
  3355. +/*
  3356. + * This file is part of the L2J Mobius project.
  3357. + *
  3358. + * This program is free software: you can redistribute it and/or modify
  3359. + * it under the terms of the GNU General Public License as published by
  3360. + * the Free Software Foundation, either version 3 of the License, or
  3361. + * (at your option) any later version.
  3362. + *
  3363. + * This program is distributed in the hope that it will be useful,
  3364. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3365. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3366. + * General Public License for more details.
  3367. + *
  3368. + * You should have received a copy of the GNU General Public License
  3369. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  3370. + */
  3371. +package quests.Q10384_AnAudienceWithTauti;
  3372. +
  3373. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  3374. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  3375. +import com.l2jmobius.gameserver.model.quest.Quest;
  3376. +import com.l2jmobius.gameserver.model.quest.QuestState;
  3377. +import com.l2jmobius.gameserver.enums.QuestType;
  3378. +
  3379. +import quests.Q10383_FergasonsOffer.Q10383_FergasonsOffer;
  3380. +/**
  3381. + * @hlwrave
  3382. +**/
  3383. +public class Q10384_AnAudienceWithTauti extends Quest
  3384. +{
  3385. +   // NPC'S
  3386. +   private static final int FERGASON = 33681;
  3387. +   private static final int AKU = 33671;
  3388. +
  3389. +   // Monster's
  3390. +   private static final int TAUTI = 29237;
  3391. +
  3392. +   // Item's
  3393. +   private static final int TAUTIS_FRAGMENT = 34960;
  3394. +   private static final int BOTTLE_OF_TAUTIS_SOUL = 35295;
  3395. +  
  3396. +   // Misc
  3397. +   private static final int MIN_LEVEL = 97;
  3398. +
  3399. +
  3400. +  
  3401. +   public Q10384_AnAudienceWithTauti()
  3402. +   {
  3403. +       super(10384, Q10384_AnAudienceWithTauti.class.getSimpleName(), "An Audience With Tauti");
  3404. +       addStartNpc(FERGASON);
  3405. +       addTalkId(FERGASON, AKU);
  3406. +       addKillId(TAUTI);
  3407. +       registerQuestItems(TAUTIS_FRAGMENT);
  3408. +       addCondMinLevel(MIN_LEVEL, "maestro_ferguson_q10384_05.htm");
  3409. +       addCondCompletedQuest(Q10383_FergasonsOffer.class.getSimpleName(), "maestro_ferguson_q10384_06.htm");
  3410. +
  3411. +   }
  3412. +
  3413. +  
  3414. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  3415. +   {
  3416. +       String htmltext = event;
  3417. +       final QuestState qs = getQuestState(player, false);
  3418. +      
  3419. +       if (qs == null)
  3420. +       {
  3421. +           return getNoQuestMsg(player);
  3422. +       }
  3423. +      
  3424. +       switch (event)
  3425. +       {
  3426. +           case "maestro_ferguson_q10384_04.htm":
  3427. +           {
  3428. +               qs.setCond(1);
  3429. +               qs.startQuest();
  3430. +               break;
  3431. +           }
  3432. +           case "sofa_aku_q10384_02.htm":
  3433. +           {
  3434. +               qs.setCond(2);
  3435. +               break;
  3436. +           }
  3437. +           case "maestro_ferguson_q10384_11.htm":
  3438. +           {
  3439. +               qs.addExpAndSp(951127800, 435041400);
  3440. +               qs.giveItems(57, 3256740);
  3441. +               qs.giveItems(BOTTLE_OF_TAUTIS_SOUL, 1);
  3442. +               qs.exitQuest(QuestType.ONE_TIME, true);
  3443. +               break;
  3444. +           }
  3445. +       }
  3446. +       return htmltext;
  3447. +   }
  3448. +
  3449. +
  3450. +  
  3451. +   @Override
  3452. +   public String onTalk(L2Npc npc, L2PcInstance player)
  3453. +   {
  3454. +       final QuestState qs = getQuestState(player, true);
  3455. +       String htmltext = getNoQuestMsg(player);
  3456. +      
  3457. +       switch (npc.getId())
  3458. +       {
  3459. +           case FERGASON:
  3460. +           {
  3461. +               if (qs.isCreated())
  3462. +               {
  3463. +                   htmltext = "maestro_ferguson_q10384_01.htm";
  3464. +               }
  3465. +               else if (qs.isStarted())
  3466. +               {
  3467. +                   if (qs.isCond(1) || qs.isCond(2))
  3468. +                   {
  3469. +                       htmltext = "maestro_ferguson_q10384_08.htm";
  3470. +                   }
  3471. +                   else if(qs.isCond(3) && qs.hasQuestItems(TAUTIS_FRAGMENT))
  3472. +                   {
  3473. +                       htmltext = "maestro_ferguson_q10384_09.htm";
  3474. +                   }
  3475. +
  3476. +               }
  3477. +               else if (qs.isCompleted())
  3478. +               {
  3479. +                   htmltext = "maestro_ferguson_q10384_07.htm";
  3480. +               }
  3481. +               break;
  3482. +           }
  3483. +           case AKU:
  3484. +           {
  3485. +               if (qs.isStarted())
  3486. +               {
  3487. +                   htmltext = "sofa_aku_q10384_01.htm";
  3488. +               }
  3489. +               break;
  3490. +           }
  3491. +       }
  3492. +       return htmltext;
  3493. +   }
  3494. +
  3495. +  
  3496. +   @Override
  3497. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  3498. +   {
  3499. +       final QuestState qs = getQuestState(killer, false);
  3500. +      
  3501. +       if ((qs != null) && qs.isCond(2))
  3502. +       {
  3503. +           if (npc.getId() == TAUTI)
  3504. +           {
  3505. +               qs.setCond(3);
  3506. +               qs.giveItems(TAUTIS_FRAGMENT, 1);
  3507. +           }
  3508. +       }
  3509. +       return super.onKill(npc, killer, isSummon);
  3510. +   }
  3511. +
  3512. +
  3513. +}
  3514. \ No newline at end of file
  3515. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm
  3516. ===================================================================
  3517. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm (nonexistent)
  3518. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm (working copy)
  3519. @@ -0,0 +1,4 @@
  3520. +<html><body>Ferguson:<br>
  3521. +How have you been? Are you getting on with <font color="LEVEL">Aku</font><br>
  3522. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_02.htm">"Well enough."</button>
  3523. +</body></html>
  3524. \ No newline at end of file
  3525. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm
  3526. ===================================================================
  3527. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm (nonexistent)
  3528. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm (working copy)
  3529. @@ -0,0 +1,4 @@
  3530. +<html><body>Ferguson:<br>
  3531. +Remember, he's the key to meeting <font color="LEVEL">Tauti</font>! That's the most important thing.<br>
  3532. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_03.htm">"I know, I know."</button>
  3533. +</body></html>
  3534. \ No newline at end of file
  3535. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm
  3536. ===================================================================
  3537. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm (nonexistent)
  3538. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm (working copy)
  3539. @@ -0,0 +1,4 @@
  3540. +<html><body>Ferguson:<br>
  3541. +Well then, if you do meet <font color="LEVEL">Tauti</font>, please bring me <font color="LEVEL">1</font> of <font color="LEVEL">Tauti's Fragment</font>.<br>
  3542. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_04.htm">"No problem!"</button>
  3543. +</body></html>
  3544. \ No newline at end of file
  3545. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm
  3546. ===================================================================
  3547. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm (nonexistent)
  3548. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm (working copy)
  3549. @@ -0,0 +1,4 @@
  3550. +<html><body>Fergason:<br>
  3551. +You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
  3552. +Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.<br>
  3553. +</body></html>
  3554. \ No newline at end of file
  3555. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm
  3556. ===================================================================
  3557. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm (nonexistent)
  3558. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm (working copy)
  3559. @@ -0,0 +1,4 @@
  3560. +<html><body>Fergason:<br>
  3561. +Hm... You're much too weak for this quest!<br>
  3562. +(You must be level 97 or above to start this quest.)<br>
  3563. +</body></html>
  3564. \ No newline at end of file
  3565. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm
  3566. ===================================================================
  3567. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm (nonexistent)
  3568. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm (working copy)
  3569. @@ -0,0 +1,4 @@
  3570. +<html><body>Ferguson:<br>
  3571. +Huh? Do we know each other?<br>
  3572. +(You have not completed the prerequisite quests.)<br>
  3573. +</body></html>
  3574. \ No newline at end of file
  3575. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm
  3576. ===================================================================
  3577. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm (nonexistent)
  3578. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm (working copy)
  3579. @@ -0,0 +1,4 @@
  3580. +<html><body>Ferguson:<br>
  3581. +Hehe. Now I think I can create the best weapons! Hahahah!<br>
  3582. +(You have already completed this quest.)<br>
  3583. +</body></html>
  3584. \ No newline at end of file
  3585. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm
  3586. ===================================================================
  3587. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm (nonexistent)
  3588. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm (working copy)
  3589. @@ -0,0 +1,4 @@
  3590. +<html><body>Ferguson:<br>
  3591. +You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
  3592. +Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.<br>
  3593. +</body></html>
  3594. \ No newline at end of file
  3595. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm
  3596. ===================================================================
  3597. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm (nonexistent)
  3598. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm (working copy)
  3599. @@ -0,0 +1,4 @@
  3600. +<html><body>Ferguson:<br>
  3601. +Hahaha! Finally I get the <font color="LEVEL">Tauti's Fragment</font>!<br>
  3602. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_10.htm">"What are you going to do with it?"</button>
  3603. +</body></html>
  3604. \ No newline at end of file
  3605. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm
  3606. ===================================================================
  3607. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm (nonexistent)
  3608. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm (working copy)
  3609. @@ -0,0 +1,4 @@
  3610. +<html><body>Fergason:<br>
  3611. +Create the greatest weapon ever made, that's what! These are not simple weapons, but actual living organisms! I have been searching through <font color="LEVEL">Aden</font> for years now, looking for materials like these <font color="LEVEL">Tauti's Fragments</font>! And finally, I have one!<br>
  3612. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_11.htm">"You should... sleep a bit."</button>
  3613. +</body></html>
  3614. \ No newline at end of file
  3615. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm
  3616. ===================================================================
  3617. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm (nonexistent)
  3618. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm (working copy)
  3619. @@ -0,0 +1,4 @@
  3620. +<html><body>Fergason:<br>
  3621. + <br>
  3622. +Hahaha! No! No sleep for me! Wasted hours! Could be spent crafting! Hahahaha! <br>
  3623. +</body></html>
  3624. \ No newline at end of file
  3625. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm
  3626. ===================================================================
  3627. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm (nonexistent)
  3628. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm (working copy)
  3629. @@ -0,0 +1,6 @@
  3630. +<html><body>Aku:
  3631. +   <br>
  3632. +Oh, you want to see <font color="LEVEL">Lord Tauti</font>? Hee, okay, I will give you the chance. <font color="LEVEL">Lord Tauti</font> seemed to be interested in you too, after all those <font color="LEVEL">Petras.</font>
  3633. +   <br>
  3634. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti sofa_aku_q10384_02.htm">"Send me, please!"</button>
  3635. +</body></html>
  3636. \ No newline at end of file
  3637. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm
  3638. ===================================================================
  3639. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm (nonexistent)
  3640. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm (working copy)
  3641. @@ -0,0 +1,6 @@
  3642. +<html><body>Aku:
  3643. +   <br>
  3644. +Someone's in a hurry to see <font color="LEVEL">Lord Tauti</font>! You think it's easy, dingbat?
  3645. +   <br>
  3646. +First! Do you have enough <font color="LEVEL">Aku's Mark</font>s? You must be sure! Be sure! Double-check! And then you must politely ask <font color="LEVEL">"I would like to see Lord Tauti."</font> <br>
  3647. +</body></html>
  3648. \ No newline at end of file
  3649. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm
  3650. ===================================================================
  3651. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm (nonexistent)
  3652. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_01.htm (working copy)
  3653. @@ -0,0 +1,4 @@
  3654. +<html><body>Ferguson:<br>
  3655. +How have you been? Are you getting on with <font color="LEVEL">Aku</font><br>
  3656. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_02.htm">"Well enough."</button>
  3657. +</body></html>
  3658. \ No newline at end of file
  3659. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm
  3660. ===================================================================
  3661. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm (nonexistent)
  3662. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_02.htm (working copy)
  3663. @@ -0,0 +1,4 @@
  3664. +<html><body>Ferguson:<br>
  3665. +Remember, he's the key to meeting <font color="LEVEL">Tauti</font>! That's the most important thing.<br>
  3666. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_03.htm">"I know, I know."</button>
  3667. +</body></html>
  3668. \ No newline at end of file
  3669. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm
  3670. ===================================================================
  3671. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm (nonexistent)
  3672. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_03.htm (working copy)
  3673. @@ -0,0 +1,4 @@
  3674. +<html><body>Ferguson:<br>
  3675. +Well then, if you do meet <font color="LEVEL">Tauti</font>, please bring me <font color="LEVEL">1</font> of <font color="LEVEL">Tauti's Fragment</font>.<br>
  3676. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_04.htm">"No problem!"</button>
  3677. +</body></html>
  3678. \ No newline at end of file
  3679. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm
  3680. ===================================================================
  3681. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm (nonexistent)
  3682. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_04.htm (working copy)
  3683. @@ -0,0 +1,4 @@
  3684. +<html><body>Fergason:<br>
  3685. +You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
  3686. +Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.<br>
  3687. +</body></html>
  3688. \ No newline at end of file
  3689. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm
  3690. ===================================================================
  3691. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm (nonexistent)
  3692. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_05.htm (working copy)
  3693. @@ -0,0 +1,4 @@
  3694. +<html><body>Fergason:<br>
  3695. +Hm... You're much too weak for this quest!<br>
  3696. +(You must be level 97 or above to start this quest.)<br>
  3697. +</body></html>
  3698. \ No newline at end of file
  3699. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm
  3700. ===================================================================
  3701. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm (nonexistent)
  3702. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_06.htm (working copy)
  3703. @@ -0,0 +1,4 @@
  3704. +<html><body>Ferguson:<br>
  3705. +Huh? Do we know each other?<br>
  3706. +(You have not completed the prerequisite quests.)<br>
  3707. +</body></html>
  3708. \ No newline at end of file
  3709. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm
  3710. ===================================================================
  3711. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm (nonexistent)
  3712. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_07.htm (working copy)
  3713. @@ -0,0 +1,4 @@
  3714. +<html><body>Ferguson:<br>
  3715. +Hehe. Now I think I can create the best weapons! Hahahah!<br>
  3716. +(You have already completed this quest.)<br>
  3717. +</body></html>
  3718. \ No newline at end of file
  3719. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm
  3720. ===================================================================
  3721. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm (nonexistent)
  3722. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_08.htm (working copy)
  3723. @@ -0,0 +1,4 @@
  3724. +<html><body>Ferguson:<br>
  3725. +You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
  3726. +Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.<br>
  3727. +</body></html>
  3728. \ No newline at end of file
  3729. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm
  3730. ===================================================================
  3731. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm (nonexistent)
  3732. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_09.htm (working copy)
  3733. @@ -0,0 +1,4 @@
  3734. +<html><body>Ferguson:<br>
  3735. +Hahaha! Finally I get the <font color="LEVEL">Tauti's Fragment</font>!<br>
  3736. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_10.htm">"What are you going to do with it?"</button>
  3737. +</body></html>
  3738. \ No newline at end of file
  3739. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm
  3740. ===================================================================
  3741. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm (nonexistent)
  3742. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_10.htm (working copy)
  3743. @@ -0,0 +1,4 @@
  3744. +<html><body>Fergason:<br>
  3745. +Create the greatest weapon ever made, that's what! These are not simple weapons, but actual living organisms! I have been searching through <font color="LEVEL">Aden</font> for years now, looking for materials like these <font color="LEVEL">Tauti's Fragments</font>! And finally, I have one!<br>
  3746. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_11.htm">"You should... sleep a bit."</button>
  3747. +</body></html>
  3748. \ No newline at end of file
  3749. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm
  3750. ===================================================================
  3751. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm (nonexistent)
  3752. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/maestro_ferguson_q10384_11.htm (working copy)
  3753. @@ -0,0 +1,4 @@
  3754. +<html><body>Fergason:<br>
  3755. + <br>
  3756. +Hahaha! No! No sleep for me! Wasted hours! Could be spent crafting! Hahahaha! <br>
  3757. +</body></html>
  3758. \ No newline at end of file
  3759. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java
  3760. ===================================================================
  3761. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java    (nonexistent)
  3762. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java    (working copy)
  3763. @@ -0,0 +1,159 @@
  3764. +/*
  3765. + * This file is part of the L2J Mobius project.
  3766. + *
  3767. + * This program is free software: you can redistribute it and/or modify
  3768. + * it under the terms of the GNU General Public License as published by
  3769. + * the Free Software Foundation, either version 3 of the License, or
  3770. + * (at your option) any later version.
  3771. + *
  3772. + * This program is distributed in the hope that it will be useful,
  3773. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3774. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3775. + * General Public License for more details.
  3776. + *
  3777. + * You should have received a copy of the GNU General Public License
  3778. + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  3779. + */
  3780. +package quests.Q10384_AnAudienceWithTauti;
  3781. +
  3782. +import com.l2jmobius.gameserver.model.actor.L2Npc;
  3783. +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
  3784. +import com.l2jmobius.gameserver.model.quest.Quest;
  3785. +import com.l2jmobius.gameserver.model.quest.QuestState;
  3786. +import com.l2jmobius.gameserver.enums.QuestType;
  3787. +
  3788. +import quests.Q10383_FergasonsOffer.Q10383_FergasonsOffer;
  3789. +/**
  3790. + * @hlwrave
  3791. +**/
  3792. +public class Q10384_AnAudienceWithTauti extends Quest
  3793. +{
  3794. +   // NPC'S
  3795. +   private static final int FERGASON = 33681;
  3796. +   private static final int AKU = 33671;
  3797. +
  3798. +   // Monster's
  3799. +   private static final int TAUTI = 29237;
  3800. +
  3801. +   // Item's
  3802. +   private static final int TAUTIS_FRAGMENT = 34960;
  3803. +   private static final int BOTTLE_OF_TAUTIS_SOUL = 35295;
  3804. +  
  3805. +   // Misc
  3806. +   private static final int MIN_LEVEL = 97;
  3807. +
  3808. +
  3809. +  
  3810. +   public Q10384_AnAudienceWithTauti()
  3811. +   {
  3812. +       super(10384, Q10384_AnAudienceWithTauti.class.getSimpleName(), "An Audience With Tauti");
  3813. +       addStartNpc(FERGASON);
  3814. +       addTalkId(FERGASON, AKU);
  3815. +       addKillId(TAUTI);
  3816. +       registerQuestItems(TAUTIS_FRAGMENT);
  3817. +       addCondMinLevel(MIN_LEVEL, "maestro_ferguson_q10384_05.htm");
  3818. +       addCondCompletedQuest(Q10383_FergasonsOffer.class.getSimpleName(), "maestro_ferguson_q10384_06.htm");
  3819. +
  3820. +   }
  3821. +
  3822. +  
  3823. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  3824. +   {
  3825. +       String htmltext = event;
  3826. +       final QuestState qs = getQuestState(player, false);
  3827. +      
  3828. +       if (qs == null)
  3829. +       {
  3830. +           return getNoQuestMsg(player);
  3831. +       }
  3832. +      
  3833. +       switch (event)
  3834. +       {
  3835. +           case "maestro_ferguson_q10384_04.htm":
  3836. +           {
  3837. +               qs.setCond(1);
  3838. +               qs.startQuest();
  3839. +               break;
  3840. +           }
  3841. +           case "sofa_aku_q10384_02.htm":
  3842. +           {
  3843. +               qs.setCond(2);
  3844. +               break;
  3845. +           }
  3846. +           case "maestro_ferguson_q10384_11.htm":
  3847. +           {
  3848. +               qs.addExpAndSp(951127800, 435041400);
  3849. +               qs.giveItems(57, 3256740);
  3850. +               qs.giveItems(BOTTLE_OF_TAUTIS_SOUL, 1);
  3851. +               qs.exitQuest(QuestType.ONE_TIME, true);
  3852. +               break;
  3853. +           }
  3854. +       }
  3855. +       return htmltext;
  3856. +   }
  3857. +
  3858. +
  3859. +  
  3860. +   @Override
  3861. +   public String onTalk(L2Npc npc, L2PcInstance player)
  3862. +   {
  3863. +       final QuestState qs = getQuestState(player, true);
  3864. +       String htmltext = getNoQuestMsg(player);
  3865. +      
  3866. +       switch (npc.getId())
  3867. +       {
  3868. +           case FERGASON:
  3869. +           {
  3870. +               if (qs.isCreated())
  3871. +               {
  3872. +                   htmltext = "maestro_ferguson_q10384_01.htm";
  3873. +               }
  3874. +               else if (qs.isStarted())
  3875. +               {
  3876. +                   if (qs.isCond(1) || qs.isCond(2))
  3877. +                   {
  3878. +                       htmltext = "maestro_ferguson_q10384_08.htm";
  3879. +                   }
  3880. +                   else if(qs.isCond(3) && qs.hasQuestItems(TAUTIS_FRAGMENT))
  3881. +                   {
  3882. +                       htmltext = "maestro_ferguson_q10384_09.htm";
  3883. +                   }
  3884. +
  3885. +               }
  3886. +               else if (qs.isCompleted())
  3887. +               {
  3888. +                   htmltext = "maestro_ferguson_q10384_07.htm";
  3889. +               }
  3890. +               break;
  3891. +           }
  3892. +           case AKU:
  3893. +           {
  3894. +               if (qs.isStarted())
  3895. +               {
  3896. +                   htmltext = "sofa_aku_q10384_01.htm";
  3897. +               }
  3898. +               break;
  3899. +           }
  3900. +       }
  3901. +       return htmltext;
  3902. +   }
  3903. +
  3904. +  
  3905. +   @Override
  3906. +   public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
  3907. +   {
  3908. +       final QuestState qs = getQuestState(killer, false);
  3909. +      
  3910. +       if ((qs != null) && qs.isCond(2))
  3911. +       {
  3912. +           if (npc.getId() == TAUTI)
  3913. +           {
  3914. +               qs.setCond(3);
  3915. +               qs.giveItems(TAUTIS_FRAGMENT, 1);
  3916. +           }
  3917. +       }
  3918. +       return super.onKill(npc, killer, isSummon);
  3919. +   }
  3920. +
  3921. +
  3922. +}
  3923. \ No newline at end of file
  3924. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm
  3925. ===================================================================
  3926. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm (nonexistent)
  3927. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.htm (working copy)
  3928. @@ -0,0 +1,6 @@
  3929. +<html><body>Aku:
  3930. +   <br>
  3931. +Oh, you want to see <font color="LEVEL">Lord Tauti</font>? Hee, okay, I will give you the chance. <font color="LEVEL">Lord Tauti</font> seemed to be interested in you too, after all those <font color="LEVEL">Petras.</font>
  3932. +   <br>
  3933. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti sofa_aku_q10384_02.htm">"Send me, please!"</button>
  3934. +</body></html>
  3935. \ No newline at end of file
  3936. Index: dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm
  3937. ===================================================================
  3938. --- dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm (nonexistent)
  3939. +++ dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.htm (working copy)
  3940. @@ -0,0 +1,6 @@
  3941. +<html><body>Aku:
  3942. +   <br>
  3943. +Someone's in a hurry to see <font color="LEVEL">Lord Tauti</font>! You think it's easy, dingbat?
  3944. +   <br>
  3945. +First! Do you have enough <font color="LEVEL">Aku's Mark</font>s? You must be sure! Be sure! Double-check! And then you must politely ask <font color="LEVEL">"I would like to see Lord Tauti."</font> <br>
  3946. +</body></html>
  3947. \ No newline at end of file
  3948. Index: dist/game/data/scripts/quests/QuestMasterHandler.java
  3949. ===================================================================
  3950. --- dist/game/data/scripts/quests/QuestMasterHandler.java   (revision 1221)
  3951. +++ dist/game/data/scripts/quests/QuestMasterHandler.java   (working copy)
  3952. @@ -168,6 +168,9 @@
  3953.  import quests.Q00700_CursedLife.Q00700_CursedLife;
  3954.  import quests.Q00701_ProofOfExistence.Q00701_ProofOfExistence;
  3955.  import quests.Q00702_ATrapForRevenge.Q00702_ATrapForRevenge;
  3956. +import quests.Q00754_AssistingTheRebelForces.Q00754_AssistingTheRebelForces;
  3957. +import quests.Q00755_InNeedofPetras.Q00755_InNeedofPetras;
  3958. +import quests.Q00756_TopQualityPetra.Q00756_TopQualityPetra;
  3959.  import quests.Q00757_TriolsMovement.Q00757_TriolsMovement;
  3960.  import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade;
  3961.  import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra;
  3962. @@ -224,6 +227,10 @@
  3963.  import quests.Q10365_SeekerEscort.Q10365_SeekerEscort;
  3964.  import quests.Q10366_RuinsStatusUpdate.Q10366_RuinsStatusUpdate;
  3965.  import quests.Q10368_RebellionOfMonsters.Q10368_RebellionOfMonsters;
  3966. +import quests.Q10381_TotheSeedofHellfire.Q10381_TotheSeedofHellfire;
  3967. +import quests.Q10382_DayofLiberation.Q10382_DayofLiberation;
  3968. +import quests.Q10383_FergasonsOffer.Q10383_FergasonsOffer;
  3969. +import quests.Q10384_AnAudienceWithTauti.Q10384_AnAudienceWithTauti;
  3970.  import quests.Q10388_ConspiracyBehindDoor.Q10388_ConspiracyBehindDoor;
  3971.  import quests.Q10389_TheVoiceOfAuthority.Q10389_TheVoiceOfAuthority;
  3972.  import quests.Q10390_KekropusLetter.Q10390_KekropusLetter;
  3973. @@ -268,6 +275,7 @@
  3974.  import quests.Q10769_LettersFromTheQueen_CrumaTower.Q10769_LettersFromTheQueen_CrumaTower;
  3975.  import quests.Q10782_LettersFromTheQueen_ForsakenPlains.Q10782_LettersFromTheQueen_ForsakenPlains;
  3976.  
  3977. +
  3978.  /**
  3979.   * @author NosBit
  3980.   */
  3981. @@ -426,6 +434,9 @@
  3982.         Q00700_CursedLife.class,
  3983.         Q00701_ProofOfExistence.class,
  3984.         Q00702_ATrapForRevenge.class,
  3985. +       Q00754_AssistingTheRebelForces.class,
  3986. +       Q00755_InNeedofPetras.class,
  3987. +       Q00756_TopQualityPetra.class,
  3988.         Q00757_TriolsMovement.class,
  3989.         Q00901_HowLavasaurusesAreMade.class,
  3990.         Q00902_ReclaimOurEra.class,
  3991. @@ -482,6 +493,10 @@
  3992.         Q10365_SeekerEscort.class,
  3993.         Q10366_RuinsStatusUpdate.class,
  3994.         Q10368_RebellionOfMonsters.class,
  3995. +       Q10381_TotheSeedofHellfire.class,
  3996. +       Q10382_DayofLiberation.class,
  3997. +       Q10383_FergasonsOffer.class,
  3998. +       Q10384_AnAudienceWithTauti.class,
  3999.         Q10388_ConspiracyBehindDoor.class,
  4000.         Q10389_TheVoiceOfAuthority.class,
  4001.         Q10390_KekropusLetter.class,
  4002. Index: dist/game/data/stats/items/35700-35799.xml
  4003. ===================================================================
  4004. --- dist/game/data/stats/items/35700-35799.xml  (revision 1221)
  4005. +++ dist/game/data/stats/items/35700-35799.xml  (working copy)
  4006. @@ -23,9 +23,12 @@
  4007.         <!-- Petra obtained after defeating Zahak in the Seed of Hellfire. You can find out about the quest by clicking on it. Quest start item. -->
  4008.         <set name="icon" val="icon.etc_torch_on_i00" />
  4009.         <set name="default_action" val="START_QUEST" />
  4010. +       <set name="handler" val="Bypass" />
  4011. +       <set name="immediate_effect" val="true" />
  4012.         <set name="is_auctionable" val="false" />
  4013.         <set name="is_depositable" val="false" />
  4014.         <set name="is_dropable" val="false" />
  4015. +       <set name="is_oly_restricted" val="true" />
  4016.         <set name="is_sellable" val="false" />
  4017.         <set name="is_tradable" val="false" />
  4018.         <set name="material" val="CRYSTAL" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement