Gladicek

diff questy

Dec 10th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.80 KB | None | 0 0
  1. Index: Q10504_JewelOfAntharas/30755-00.htm
  2. ===================================================================
  3. --- Q10504_JewelOfAntharas/30755-00.htm (revision 0)
  4. +++ Q10504_JewelOfAntharas/30755-00.htm (working copy)
  5. @@ -0,0 +1,5 @@
  6. +<html><body>
  7. +Watcher of Antharas Theodric:<br>
  8. +You underestimate the power of Antharas. You simply do not have the skill required in order to take on this task.<br>
  9. +(Only characters level 84 or above can take this quest.)
  10. +</body></html>
  11. \ No newline at end of file
  12. Index: Q10504_JewelOfAntharas/30755-00a.htm
  13. ===================================================================
  14. --- Q10504_JewelOfAntharas/30755-00a.htm (revision 0)
  15. +++ Q10504_JewelOfAntharas/30755-00a.htm (working copy)
  16. @@ -0,0 +1,5 @@
  17. +<html><body>
  18. +Watcher of Antharas Theodric:<br>
  19. +The fact that you don't have the <font color="LEVEL">Portal Stone</font> means you did not satisfy the minimum requirement for this mission.<br>
  20. +If you really want to hear my request, you must first be recognized by <font color="LEVEL">Gabriel</font> in Giran Village.
  21. +</body></html>
  22. \ No newline at end of file
  23. Index: Q10504_JewelOfAntharas/30755-01.htm
  24. ===================================================================
  25. --- Q10504_JewelOfAntharas/30755-01.htm (revision 0)
  26. +++ Q10504_JewelOfAntharas/30755-01.htm (working copy)
  27. @@ -0,0 +1,5 @@
  28. +<html><body>
  29. +Watcher of Antharas Theodric:<br>
  30. +You have a <font color="LEVEL">Portal Stone</font>... it means that you are one of the few who can challenge Antharas. I have a task that may interest you.<br>
  31. +<a action="bypass -h Quest Q10504_JewelOfAntharas 30755-02.htm">Continue listening.</a>
  32. +</body></html>
  33. \ No newline at end of file
  34. Index: Q10504_JewelOfAntharas/30755-02.htm
  35. ===================================================================
  36. --- Q10504_JewelOfAntharas/30755-02.htm (revision 0)
  37. +++ Q10504_JewelOfAntharas/30755-02.htm (working copy)
  38. @@ -0,0 +1,5 @@
  39. +<html><body>
  40. +Watcher of Antharas Theodric:<br>
  41. +Actually, it is more of a challenge than a task. I have this <font color="LEVEL">Clear Crystal</font> I would like you to fill with the energy of Antharas.<br>
  42. +<a action="bypass -h Quest Q10504_JewelOfAntharas 30755-03.htm">"Fill the crystal with energy... this sounds familiar."</a>
  43. +</body></html>
  44. \ No newline at end of file
  45. Index: Q10504_JewelOfAntharas/30755-03.htm
  46. ===================================================================
  47. --- Q10504_JewelOfAntharas/30755-03.htm (revision 0)
  48. +++ Q10504_JewelOfAntharas/30755-03.htm (working copy)
  49. @@ -0,0 +1,5 @@
  50. +<html><body>
  51. +Watcher of Antharas Theodric:<br>
  52. +I have no idea what you are talking about. Maybe you are mistaking me for another Watcher and another Dragon. With this crystal in your possession, once you have defeated Antharas it should draw the energy of the land dragon into the crystal.<br>
  53. +<a action="bypass -h Quest Q10504_JewelOfAntharas give_crystal">Accept the mission.</a>
  54. +</body></html>
  55. \ No newline at end of file
  56. Index: Q10504_JewelOfAntharas/30755-04.htm
  57. ===================================================================
  58. --- Q10504_JewelOfAntharas/30755-04.htm (revision 0)
  59. +++ Q10504_JewelOfAntharas/30755-04.htm (working copy)
  60. @@ -0,0 +1,6 @@
  61. +<html><body>
  62. +Watcher of Antharas Theodric:<br>
  63. +Excellent. Take this <font color="LEVEL">Clear Crystal</font>.<br>
  64. +I must warn you however, you will need <font color="LEVEL">many soldiers of equal skill in order to challenge Antharas.</font><br>
  65. +Best of luck to you, sir!.
  66. +</body></html>
  67. \ No newline at end of file
  68. Index: Q10504_JewelOfAntharas/30755-05.htm
  69. ===================================================================
  70. --- Q10504_JewelOfAntharas/30755-05.htm (revision 0)
  71. +++ Q10504_JewelOfAntharas/30755-05.htm (working copy)
  72. @@ -0,0 +1,4 @@
  73. +<html><body>
  74. +Watcher of Antharas Theodric:<br>
  75. +Apologies, sir! it does not appear as though you have defeated the land dragon. If you did that <font color="LEVEL">Clear Crystal</font> would be filled with Antharas's energy. Good try though, sir! I'll be keeping an eye on you and your shenanigans.
  76. +</body></html>
  77. \ No newline at end of file
  78. Index: Q10504_JewelOfAntharas/30755-06.htm
  79. ===================================================================
  80. --- Q10504_JewelOfAntharas/30755-06.htm (revision 0)
  81. +++ Q10504_JewelOfAntharas/30755-06.htm (working copy)
  82. @@ -0,0 +1,4 @@
  83. +<html><body>
  84. +Watcher of Antharas Theodric:<br>
  85. +Without the <font color="LEVEL">Clear Crystal</font>, you cannot contain Antharas' energy even after defeating it. So please take this Clear Crystal.
  86. +</body></html>
  87. \ No newline at end of file
  88. Index: Q10504_JewelOfAntharas/30755-07.htm
  89. ===================================================================
  90. --- Q10504_JewelOfAntharas/30755-07.htm (revision 0)
  91. +++ Q10504_JewelOfAntharas/30755-07.htm (working copy)
  92. @@ -0,0 +1,5 @@
  93. +<html><body>
  94. +Watcher of Antharas Theodric:<br>
  95. +So you do decide to take this step ... You made ??a miracle in front of you and we owe a great debt.<br>
  96. +Wow, have not kept the ball in his hands the soul of a dragon. Well, you have fulfilled your promises, and I give you the <font color="LEVEL">JewelOfAntharas</font>.
  97. +</body></html>
  98. \ No newline at end of file
  99. Index: Q10504_JewelOfAntharas/30755-08.htm
  100. ===================================================================
  101. --- Q10504_JewelOfAntharas/30755-08.htm (revision 0)
  102. +++ Q10504_JewelOfAntharas/30755-08.htm (working copy)
  103. @@ -0,0 +1,3 @@
  104. +<html><body>Watcher of Antharas Theodric:<br>
  105. +(You have already completed this quest.)
  106. +</body></html>
  107. \ No newline at end of file
  108. Index: Q10504_JewelOfAntharas/Q10504_JewelOfAntharas.java
  109. ===================================================================
  110. --- Q10504_JewelOfAntharas/Q10504_JewelOfAntharas.java (revision 0)
  111. +++ Q10504_JewelOfAntharas/Q10504_JewelOfAntharas.java (working copy)
  112. @@ -0,0 +1,183 @@
  113. +/*
  114. + * This program is free software: you can redistribute it and/or modify it under
  115. + * the terms of the GNU General Public License as published by the Free Software
  116. + * Foundation, either version 3 of the License, or (at your option) any later
  117. + * version.
  118. + *
  119. + * This program is distributed in the hope that it will be useful, but WITHOUT
  120. + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  121. + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  122. + * details.
  123. + *
  124. + * You should have received a copy of the GNU General Public License along with
  125. + * this program. If not, see <http://www.gnu.org/licenses/>.
  126. + */
  127. +package quests.Q10504_JewelOfAntharas;
  128. +
  129. +import com.l2jserver.gameserver.model.actor.L2Npc;
  130. +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
  131. +import com.l2jserver.gameserver.model.quest.Quest;
  132. +import com.l2jserver.gameserver.model.quest.QuestState;
  133. +import com.l2jserver.gameserver.model.quest.State;
  134. +import com.l2jserver.gameserver.util.Util;
  135. +
  136. +/**
  137. + * Jewel Of Antharas (10504)
  138. + * @author Ivan totov, Gladicek
  139. + */
  140. +
  141. +public class Q10504_JewelOfAntharas extends Quest
  142. +{
  143. + // NPCs
  144. + private static final int THEODRICK = 30755;
  145. +
  146. + private static final int[] ANTHARAS =
  147. + {
  148. + 29019, // OLD
  149. + 29066, // WEAK
  150. + 29067, // NORMAL
  151. + 29068 // STRONG
  152. + };
  153. +
  154. + // Items
  155. + private static final int PORTAL_STONE = 3865;
  156. + private static final int CLEAR_CRYSTAL = 21905;
  157. + private static final int FILLED_CRYSTAL_ANTHARAS = 21907;
  158. + private static final int JEWEL_OF_ANTHARAS = 21898;
  159. +
  160. + // Misc
  161. + private static final int MIN_LEVEL = 83;
  162. +
  163. + public Q10504_JewelOfAntharas(int questId, String name, String descr)
  164. + {
  165. + super(questId, name, descr);
  166. + addStartNpc(THEODRICK);
  167. + addTalkId(THEODRICK);
  168. + addKillId(ANTHARAS);
  169. + registerQuestItems(CLEAR_CRYSTAL, FILLED_CRYSTAL_ANTHARAS);
  170. + }
  171. +
  172. + @Override
  173. + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  174. + {
  175. + String htmltext = event;
  176. + final QuestState st = player.getQuestState(getName());
  177. + if (st == null)
  178. + {
  179. + return null;
  180. + }
  181. +
  182. + if (npc.getNpcId() == THEODRICK)
  183. + {
  184. + switch (event)
  185. + {
  186. + case "give_crystal":
  187. + st.startQuest();
  188. + st.giveItems(CLEAR_CRYSTAL, 1);
  189. + htmltext = "30755-05.htm";
  190. + break;
  191. + }
  192. + }
  193. + return htmltext;
  194. + }
  195. +
  196. + @Override
  197. + public String onTalk(L2Npc npc, L2PcInstance player)
  198. + {
  199. + String htmltext = getNoQuestMsg(player);
  200. + final QuestState st = player.getQuestState(getName());
  201. +
  202. + if (st == null)
  203. + {
  204. + return htmltext;
  205. + }
  206. +
  207. + if (npc.getNpcId() == THEODRICK)
  208. + {
  209. + switch (st.getState())
  210. + {
  211. + case State.CREATED:
  212. + {
  213. + if (player.getLevel() < MIN_LEVEL)
  214. + {
  215. + htmltext = "30755-00.htm";
  216. + }
  217. + else
  218. + {
  219. + htmltext = st.hasQuestItems(PORTAL_STONE) ? "30755-01.htm" : "30755-00a.htm";
  220. + }
  221. + }
  222. + break;
  223. + case State.COMPLETED:
  224. + {
  225. + htmltext = "30755-08.htm";
  226. + break;
  227. + }
  228. + case State.STARTED:
  229. + {
  230. + switch (st.getCond())
  231. + {
  232. + case 1:
  233. + if (st.hasQuestItems(CLEAR_CRYSTAL))
  234. + {
  235. + htmltext = "30755-05.htm";
  236. + }
  237. + else
  238. + {
  239. + st.giveItems(CLEAR_CRYSTAL, 1);
  240. + htmltext = "30755-04.htm";
  241. + }
  242. + break;
  243. + case 2:
  244. + if (st.hasQuestItems(FILLED_CRYSTAL_ANTHARAS))
  245. + {
  246. + htmltext = "30755-07.htm";
  247. + st.takeItems(FILLED_CRYSTAL_ANTHARAS, 1);
  248. + st.giveItems(JEWEL_OF_ANTHARAS, 1);
  249. + st.exitQuest(false, true);
  250. + }
  251. + break;
  252. + }
  253. + }
  254. + }
  255. + }
  256. + return htmltext;
  257. + }
  258. +
  259. + @Override
  260. + public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
  261. + {
  262. + if (player.isInParty())
  263. + {
  264. + for (L2PcInstance ply : player.getParty().getMembers())
  265. + {
  266. + giveItem(npc, ply);
  267. + }
  268. + }
  269. + else
  270. + {
  271. + giveItem(npc, player);
  272. + }
  273. +
  274. + return super.onKill(npc, player, isPet);
  275. + }
  276. +
  277. + private void giveItem(L2Npc npc, L2PcInstance player)
  278. + {
  279. + final QuestState st = player.getQuestState(getName());
  280. + if (player.isInsideRadius(npc, 2500, false, false))
  281. + {
  282. + if (st != null && st.isCond(1) && Util.contains(ANTHARAS, npc.getNpcId()) && st.hasQuestItems(CLEAR_CRYSTAL))
  283. + {
  284. + st.takeItems(CLEAR_CRYSTAL, 1);
  285. + st.giveItems(FILLED_CRYSTAL_ANTHARAS, 1);
  286. + st.setCond(2, true);
  287. + }
  288. + }
  289. + }
  290. +
  291. + public static void main(String[] args)
  292. + {
  293. + new Q10504_JewelOfAntharas(10504, Q10504_JewelOfAntharas.class.getSimpleName(), "Jewel Of Antharas");
  294. + }
  295. +}
  296. \ No newline at end of file
  297. Index: Q10505_JewelOfValakas/31540-01.htm
  298. ===================================================================
  299. --- Q10505_JewelOfValakas/31540-01.htm (revision 0)
  300. +++ Q10505_JewelOfValakas/31540-01.htm (working copy)
  301. @@ -0,0 +1,4 @@
  302. +<html><body>Watcher of Valakas Klein:<br>
  303. +You again... I thought I gave you a different errand. Or was it someone else?<br>
  304. +<a action="bypass -h Quest Q10505_JewelOfValakas 31540-02.htm">"No, you've given me a few things to do."</a>
  305. +</body></html>
  306. \ No newline at end of file
  307. Index: Q10505_JewelOfValakas/31540-02.htm
  308. ===================================================================
  309. --- Q10505_JewelOfValakas/31540-02.htm (revision 0)
  310. +++ Q10505_JewelOfValakas/31540-02.htm (working copy)
  311. @@ -0,0 +1,5 @@
  312. +<html><body>Watcher of Valakas Klein:<br>
  313. +Really? Okay... Hmm... <br>
  314. +Why don't you take... ah... this <font color="LEVEL">Empty Crystal</font> and... fill it with... the energy of Valakas.<br>
  315. +<a action="bypass -h Quest Q10505_JewelOfValakas 31540-03.htm">"Fill the crystal with energy... why?"</a>
  316. +</body></html>
  317. \ No newline at end of file
  318. Index: Q10505_JewelOfValakas/31540-03.htm
  319. ===================================================================
  320. --- Q10505_JewelOfValakas/31540-03.htm (revision 0)
  321. +++ Q10505_JewelOfValakas/31540-03.htm (working copy)
  322. @@ -0,0 +1,5 @@
  323. +<html><body>Watcher of Valakas Klein:<br>
  324. +Never you mind, that's why! <br>
  325. +You think it is easy coming up with different reasons for you adeventurers to go fight Valakas? He's big, bad, evil and scary. You want a reward for killing him then you bring me back a <font color="LEVEL">Crystal filled with the energy of Valakas!</font><br>
  326. +<a action="bypass -h Quest Q10505_JewelOfValakas give_crystal">"Okay... I'll go fill the crystall with the energy of Valakas"</a>
  327. +</body></html>
  328. \ No newline at end of file
  329. Index: Q10505_JewelOfValakas/31540-04.htm
  330. ===================================================================
  331. --- Q10505_JewelOfValakas/31540-04.htm (revision 0)
  332. +++ Q10505_JewelOfValakas/31540-04.htm (working copy)
  333. @@ -0,0 +1,3 @@
  334. +<html><body>Watcher of Valakas Klein:<br>
  335. +If you truly defeat the fire dragon, that <font color="LEVEL">Empty Crystal</font> shall be filled with Valakas's energy. Now, please be on your way. I shall be watching you.
  336. +</body></html>
  337. \ No newline at end of file
  338. Index: Q10505_JewelOfValakas/31540-05.htm
  339. ===================================================================
  340. --- Q10505_JewelOfValakas/31540-05.htm (revision 0)
  341. +++ Q10505_JewelOfValakas/31540-05.htm (working copy)
  342. @@ -0,0 +1,4 @@
  343. +<html><body>Watcher of Valakas Klein:<br>
  344. +The fact that you don't have the <font color="LEVEL">Vacualite Floating Stone</font> means you did not satisfy the minimum requirement for this mission.<br>
  345. +If you really want to hear my request, you must first obtain a <font color="LEVEL">Vacualite Floating Stone</font>.
  346. +</body></html>
  347. \ No newline at end of file
  348. Index: Q10505_JewelOfValakas/31540-06.htm
  349. ===================================================================
  350. --- Q10505_JewelOfValakas/31540-06.htm (revision 0)
  351. +++ Q10505_JewelOfValakas/31540-06.htm (working copy)
  352. @@ -0,0 +1,4 @@
  353. +<html><body>Watcher of Valakas Klein:<br>
  354. +Praise into you for your great achievement in fulfilling my request...<br>
  355. +(You have already completed this quest.)
  356. +</body></html>
  357. \ No newline at end of file
  358. Index: Q10505_JewelOfValakas/31540-07.htm
  359. ===================================================================
  360. --- Q10505_JewelOfValakas/31540-07.htm (revision 0)
  361. +++ Q10505_JewelOfValakas/31540-07.htm (working copy)
  362. @@ -0,0 +1,6 @@
  363. +<html><body>Watcher of Valakas Klein:<br>
  364. +Excellent. I can finally make my Valakas Martini. I would share with you, but given your condition of being alive I wouldn't recommend it. It has a killer bite... literally.<br>
  365. +Oh, don't look so upset... once you've become undead maybe you can try a sip, but until that time you are just going to have to accept the consolation prize.<br>
  366. +The Jewel of Valakas... a one way trip straight to the doorstep of Valakas himself. It will come in handy so you don't have to go through the business just to get there.<br>
  367. +Now if you will excuse me... its me time.
  368. +</body></html>
  369. \ No newline at end of file
  370. Index: Q10505_JewelOfValakas/31540-08.htm
  371. ===================================================================
  372. --- Q10505_JewelOfValakas/31540-08.htm (revision 0)
  373. +++ Q10505_JewelOfValakas/31540-08.htm (working copy)
  374. @@ -0,0 +1,4 @@
  375. +<html><body>Watcher of Valakas Klein:<br>
  376. +You do not have the ability to hear my request... Please come back after raising your caliber...<br>
  377. +(Only characters above level 83 can undertake this quest.)
  378. +</body></html>
  379. \ No newline at end of file
  380. Index: Q10505_JewelOfValakas/31540-09.htm
  381. ===================================================================
  382. --- Q10505_JewelOfValakas/31540-09.htm (revision 0)
  383. +++ Q10505_JewelOfValakas/31540-09.htm (working copy)
  384. @@ -0,0 +1,4 @@
  385. +<html><body>Watcher of Valakas Klein:<br>
  386. +Good. Here is the <font color="LEVEL">Empty Crystal</font>. <br>As always, the same rules apply. Don't go alone, it's dangerous in there, be sure to <font color="LEVEL">gather a large group of skilled adventurers</font>, and try not to die.<br>
  387. +Kill the beast, grab the energy, and visit me once you have completed your task.
  388. +</body></html>
  389. \ No newline at end of file
  390. Index: Q10505_JewelOfValakas/Q10505_JewelOfValakas.java
  391. ===================================================================
  392. --- Q10505_JewelOfValakas/Q10505_JewelOfValakas.java (revision 0)
  393. +++ Q10505_JewelOfValakas/Q10505_JewelOfValakas.java (working copy)
  394. @@ -0,0 +1,159 @@
  395. +package quests.Q10505_JewelOfValakas;
  396. +
  397. +import com.l2jserver.gameserver.model.actor.L2Npc;
  398. +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
  399. +import com.l2jserver.gameserver.model.quest.Quest;
  400. +import com.l2jserver.gameserver.model.quest.QuestState;
  401. +import com.l2jserver.gameserver.model.quest.State;
  402. +
  403. +/**
  404. + * Jewel Of Valakas (10505)
  405. + * @author Ivan totov, Gladicek
  406. + */
  407. +public class Q10505_JewelOfValakas extends Quest
  408. +{
  409. + // NPC
  410. + private static final int KLEIN = 31540;
  411. + // Monster
  412. + private static final int VALAKAS = 32123;
  413. + // Items
  414. + private static final int FLOATING_STONE = 7267;
  415. + private static final int EMPTY_CRYSTAL = 21906;
  416. + private static final int FILLED_CRYSTAL = 21908;
  417. + private static final int JEWEL_OF_VALAKAS = 21896;
  418. + // Misc
  419. + private static final int MIN_LEVEL = 83;
  420. +
  421. + @Override
  422. + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  423. + {
  424. + String htmltext = event;
  425. + final QuestState st = player.getQuestState(getName());
  426. + if (st == null)
  427. + {
  428. + return null;
  429. + }
  430. + if (npc.getNpcId() == KLEIN)
  431. + {
  432. + switch (event)
  433. + {
  434. + case "give_crystal":
  435. + st.startQuest();
  436. + st.giveItems(EMPTY_CRYSTAL, 1);
  437. + htmltext = "31540-09.htm";
  438. + break;
  439. + }
  440. + }
  441. + return htmltext;
  442. + }
  443. +
  444. + @Override
  445. + public String onTalk(L2Npc npc, L2PcInstance player)
  446. + {
  447. + String htmltext = getNoQuestMsg(player);
  448. + final QuestState st = player.getQuestState(getName());
  449. +
  450. + if (st == null)
  451. + {
  452. + return htmltext;
  453. + }
  454. +
  455. + if (npc.getNpcId() == KLEIN)
  456. + {
  457. + switch (st.getState())
  458. + {
  459. + case State.CREATED:
  460. + {
  461. + if (player.getLevel() < MIN_LEVEL)
  462. + {
  463. + htmltext = "31540-08.htm";
  464. + }
  465. + else
  466. + {
  467. + htmltext = st.hasQuestItems(FLOATING_STONE) ? "31540-01.htm" : "31540-05.htm";
  468. + }
  469. + }
  470. + break;
  471. + case State.COMPLETED:
  472. + {
  473. + htmltext = "31540-06.htm";
  474. + break;
  475. + }
  476. + case State.STARTED:
  477. + {
  478. + switch (st.getCond())
  479. + {
  480. + case 1:
  481. + if (st.hasQuestItems(EMPTY_CRYSTAL))
  482. + {
  483. + htmltext = "31540-04.htm";
  484. + }
  485. + else
  486. + {
  487. + st.giveItems(EMPTY_CRYSTAL, 1);
  488. + htmltext = "31540-09.htm";
  489. + }
  490. + break;
  491. + case 2:
  492. + if (st.hasQuestItems(FILLED_CRYSTAL))
  493. + {
  494. + htmltext = "30755-07.htm";
  495. + st.takeItems(FILLED_CRYSTAL, 1);
  496. + st.giveItems(JEWEL_OF_VALAKAS, 1);
  497. + st.exitQuest(false, true);
  498. + }
  499. + break;
  500. + }
  501. + }
  502. + }
  503. + }
  504. + return htmltext;
  505. + }
  506. +
  507. + @Override
  508. + public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
  509. + {
  510. + if (player.isInParty())
  511. + {
  512. + for (L2PcInstance ply : player.getParty().getMembers())
  513. + {
  514. + giveItem(npc, ply);
  515. + }
  516. + }
  517. + else
  518. + {
  519. + giveItem(npc, player);
  520. + }
  521. +
  522. + return super.onKill(npc, player, isPet);
  523. + }
  524. +
  525. + private void giveItem(L2Npc npc, L2PcInstance player)
  526. + {
  527. + final QuestState st = player.getQuestState(getName());
  528. + if (player.isInsideRadius(npc, 2500, false, false))
  529. + {
  530. + if (st != null && st.isCond(1) && npc.getNpcId() == VALAKAS && st.hasQuestItems(EMPTY_CRYSTAL))
  531. + {
  532. + st.takeItems(EMPTY_CRYSTAL, 1);
  533. + st.giveItems(FILLED_CRYSTAL, 1);
  534. + st.setCond(2, true);
  535. + }
  536. + }
  537. + }
  538. +
  539. + public Q10505_JewelOfValakas(int questId, String name, String descr)
  540. + {
  541. + super(questId, name, descr);
  542. +
  543. + addStartNpc(KLEIN);
  544. + addTalkId(KLEIN);
  545. + addKillId(VALAKAS);
  546. + registerQuestItems(EMPTY_CRYSTAL, FILLED_CRYSTAL);
  547. + }
  548. +
  549. + public static void main(String[] args)
  550. + {
  551. + new Q10505_JewelOfValakas(10505, Q10505_JewelOfValakas.class.getSimpleName(), "Jewel Of Valakas");
  552. + }
  553. +}
  554. \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment