Advertisement
Reynald0

Q414 - Path To An Orc Raider

Mar 14th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 40.87 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_datapack
  3. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm
  4. ===================================================================
  5. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm (revision 0)
  6. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm (working copy)
  7. @@ -0,0 +1,3 @@
  8. +<html><body>Prefect Karukia:<br>
  9. +Of course, I know your goal is to be a dignified and noble member of our race. But courage unsupported by ability is foolishness! That is a path that leads only to a meaningless death. Train patiently, youngster, and your chance will come. <font color="LEVEL">See me again when you reach level 18!</font>
  10. +</body></html>
  11. \ No newline at end of file
  12. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm
  13. ===================================================================
  14. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm (revision 0)
  15. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm (working copy)
  16. @@ -0,0 +1,4 @@
  17. +<html><body>Prefect Tazeer:<br>
  18. +The traitorous <font color="LEVEL">Timora Orcs</font> can be found near <font color="LEVEL">the lake between the Crypts of Disgrace and the Den of Evil</font>!<br>
  19. +Now go and bring me back one of their heads!
  20. +</body></html>
  21. \ No newline at end of file
  22. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm
  23. ===================================================================
  24. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm    (revision 0)
  25. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm    (working copy)
  26. @@ -0,0 +1,4 @@
  27. +<html><body>Prefect Karukia:<br>
  28. +We of the Orc Kingdom  have long cherished our tradition of obedience to our elders. Having said that, there are always certain individuals who'd like to change the way we do things...<br>
  29. +Some such criminal dogs are said to be hiding in Gludin Village! Speak with Prefect Kasman of Gludin Village... He'll tell you what you need to do!
  30. +</body></html>
  31. \ No newline at end of file
  32. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm
  33. ===================================================================
  34. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm (revision 0)
  35. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm (working copy)
  36. @@ -0,0 +1,3 @@
  37. +<html><body>Prefect Karukia:<br>
  38. +Why have you come back already? Didn't I tell you to bring back <font color="LEVEL">ten kuruka ratman teeth</font>? Is this all the courage you can muster?
  39. +</body></html>
  40. \ No newline at end of file
  41. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm
  42. ===================================================================
  43. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm (revision 0)
  44. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm (working copy)
  45. @@ -0,0 +1,5 @@
  46. +<html><body>Prefect Karukia:<br>
  47. +Orc Raiders are of the most elite rank among fighters of our race! Their mere appearance on the battlefield makes the enemy troops shiver in fear!<br>
  48. +To earn the qualifications to become an Orc Raider, you must prove that you have courage that has no regard for death, and absolute loyalty to the Orcs. There have been many young ones that lost their lives trying to prove their courage and loyalty! It is not something to challenge with a light heart!<br>
  49. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-05.htm">Say you want to be an Orc Raider</a>
  50. +</body></html>
  51. \ No newline at end of file
  52. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm
  53. ===================================================================
  54. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm    (revision 0)
  55. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm    (working copy)
  56. @@ -0,0 +1,3 @@
  57. +<html><body>Prefect Karukia:<br>
  58. +You fool! You have already been selected as a courageous Orc Raider! Don't waste my time with useless questions. Go out to the battlefield and strike down the enemy!
  59. +</body></html>
  60. \ No newline at end of file
  61. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm
  62. ===================================================================
  63. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm (revision 0)
  64. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm (working copy)
  65. @@ -0,0 +1,5 @@
  66. +<html><body>Prefect Tazeer:<br>
  67. +Excellent! I won't tell you that you won't be in serious danger, but I believe that you're skilled enough to defeat the Timora Orcs.<br>
  68. +Bring me one of their heads and I'll reward you with the Mark of the Raider!<br>
  69. +Go now!
  70. +</body></html>
  71. \ No newline at end of file
  72. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm
  73. ===================================================================
  74. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm (revision 0)
  75. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm (working copy)
  76. @@ -0,0 +1,4 @@
  77. +<html><body>Prefect Kasman:<br>
  78. +Foul betrayers, the Umbar tribe, to think that they abandoned the courage and loyalty of high-level orcs, they have become low Orcs depraved in body as well as in soul. How truly wicked they look. I am moved to think that we have shown mercy by killing them!<br>
  79. +Anyway, you have done well. You have truly demonstrated both courage and loyalty. Congratulations! I bestow this token on you. Take it and go to <font color="LEVEL">High Prefect Osborn</font> right here! He will change your profession to Orc Raider.
  80. +</body></html>
  81. \ No newline at end of file
  82. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm
  83. ===================================================================
  84. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm (revision 0)
  85. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm (working copy)
  86. @@ -0,0 +1,4 @@
  87. +<html><body>Prefect Karukia:<br>
  88. +Then, I will give you a test! Orc Raiders are completed when they show courage that is unafraid of death and loyalty that is absolute. First, you must prove your loyalty. Destroy the <font color="LEVEL">goblins</font> that spoil the earth and the <font color="LEVEL">Kuruka Ratman Leaders</font> that control that filthy race!<br>
  89. +Take this Map. It is marked with the places where there are goblin tribes. If you obliterate the <font color="LEVEL">goblin tomb raider leader</font> there, a Kuruka Ratman Leader will appear, so make sure not to let him get away! We do not need captives. Remember, you must kill at least ten Kuruka Ratman Leaders. Plant the power and fear of the Orcs into the enemy's heart!
  90. +</body></html>
  91. \ No newline at end of file
  92. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm
  93. ===================================================================
  94. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm (revision 0)
  95. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm (working copy)
  96. @@ -0,0 +1,3 @@
  97. +<html><body>Prefect Karukia:<br>
  98. +Take the heads of the traitors to<font color="LEVEL"> Prefect Kasman in the village of Gludin</font>. If you have truly earned the qualifications to become an Orc Raider, you will receive a token to change profession from him.
  99. +</body></html>
  100. \ No newline at end of file
  101. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm
  102. ===================================================================
  103. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm (revision 0)
  104. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm (working copy)
  105. @@ -0,0 +1,7 @@
  106. +<html><body>Prefect Tazeer:<br>
  107. +All glory flows from the great fire!<br>
  108. +Are you a young soldier of the Orc Kingdom? Surely you realize that you must prove your loyalty in order to be an Orc Raider.<br>
  109. +The test is very simple. Unlike in your land, there are many lower Orcs here, who hold much power...<br>
  110. +Any move against them would take a special kind of courage... Do you have it?<br>
  111. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 31978-01b.htm">"I do."</a>
  112. +</body></html>
  113. \ No newline at end of file
  114. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm
  115. ===================================================================
  116. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm (revision 0)
  117. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm (working copy)
  118. @@ -0,0 +1,3 @@
  119. +<html><body>Prefect Kasman:<br>
  120. +Now you have one left. Go and kill the scoundrel!
  121. +</body></html>
  122. \ No newline at end of file
  123. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm
  124. ===================================================================
  125. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm (revision 0)
  126. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm (working copy)
  127. @@ -0,0 +1,3 @@
  128. +<html><body>Prefect Karukia: <br>
  129. +Oh! The Mark of the Raider! Another strong Warrior is born to fight for the Kingdom! Ha! You must go at once to the Kingdom of Humans and show this mark to the High Prefect there! He'll transfer you to the Raider class. You should visit either High Prefect Osborn in <font color="LEVEL">Gludin Village</font> or High Prefect Finker in <font color="LEVEL">the Town of Schuttgart</font>.
  130. +</body></html>
  131. \ No newline at end of file
  132. Index: data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java
  133. ===================================================================
  134. --- data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java  (revision 0)
  135. +++ data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java  (working copy)
  136. @@ -0,0 +1,200 @@
  137. +package quests.Q414_PathToAnOrcRaider;
  138. +
  139. +import net.sf.l2j.gameserver.model.actor.L2Npc;
  140. +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
  141. +import net.sf.l2j.gameserver.model.base.ClassId;
  142. +import net.sf.l2j.gameserver.model.quest.Quest;
  143. +import net.sf.l2j.gameserver.model.quest.QuestState;
  144. +import net.sf.l2j.gameserver.network.serverpackets.SocialAction;
  145. +import net.sf.l2j.util.Rnd;
  146. +
  147. +/**
  148. + * @author Reynald0
  149. + */
  150. +public class Q414_PathToAnOrcRaider extends Quest
  151. +{
  152. +   private static final String qn = "Q414_PathToAnOrcRaider";
  153. +  
  154. +   // QUEST ITEMs
  155. +   private static final int GREEN_BLOOD = 1578;
  156. +   private static final int GOBLIN_DWELLING_MAP = 1579;
  157. +   private static final int KURUKA_RATMAN_TOOTH = 1580;
  158. +   private static final int BETRAYER_REPORT = 1581;
  159. +   private static final int HEAD_OF_BETRAYER = 1591;
  160. +   private static final int TIMORA_ORC_HEAD = 8544;
  161. +  
  162. +   // NPCs
  163. +   private static final int KASMAN = 30501;;
  164. +   private static final int KARUKIA = 30570;
  165. +   private static final int TAZEER = 31978;
  166. +  
  167. +   // MONSTERs
  168. +   private static final int GOBLIN_TOMB_RAIDER_LEADER = 20320;
  169. +  
  170. +   // QUEST MONSTERs
  171. +   private static final int KURUKA_RATMAN_LEADER = 27045;
  172. +   private static final int UMBAR_ORC = 27054;
  173. +   private static final int TIMORA_ORC = 27320;
  174. +  
  175. +   // REWARD
  176. +   private static final int MARK_OF_RAIDER = 1592;
  177. +  
  178. +   public Q414_PathToAnOrcRaider()
  179. +   {
  180. +       super(414, qn, "Path to an Orc Raider");
  181. +       addStartNpc(KARUKIA);
  182. +       addTalkId(KARUKIA, KASMAN, TAZEER);
  183. +       setItemsIds(GOBLIN_DWELLING_MAP, GREEN_BLOOD, KURUKA_RATMAN_TOOTH, BETRAYER_REPORT, HEAD_OF_BETRAYER, TIMORA_ORC_HEAD);
  184. +       addKillId(GOBLIN_TOMB_RAIDER_LEADER, KURUKA_RATMAN_LEADER, UMBAR_ORC, TIMORA_ORC);
  185. +   }
  186. +  
  187. +   @Override
  188. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  189. +   {
  190. +       String htmltext = event;
  191. +       QuestState st = player.getQuestState(qn);
  192. +       if (st == null)
  193. +           return htmltext;
  194. +      
  195. +       // KARUKIA
  196. +       if (event.equalsIgnoreCase("30570-05.htm"))
  197. +       {
  198. +           st.setState(Quest.STATE_STARTED);
  199. +           st.set("cond", "1");
  200. +           st.playSound(QuestState.SOUND_ACCEPT);
  201. +           st.giveItems(GOBLIN_DWELLING_MAP, 1);
  202. +          
  203. +       }
  204. +       else if (event.equalsIgnoreCase("30570-07a.htm"))
  205. +       {
  206. +           st.set("cond", "3");
  207. +           st.playSound(QuestState.SOUND_MIDDLE);
  208. +           st.takeItems(GOBLIN_DWELLING_MAP, 1);
  209. +           st.takeItems(KURUKA_RATMAN_TOOTH, 10);
  210. +           st.giveItems(BETRAYER_REPORT, 1);
  211. +       }
  212. +       else if (event.equalsIgnoreCase("30570-07b.htm"))
  213. +       {
  214. +           st.set("cond", "5");
  215. +           st.playSound(QuestState.SOUND_MIDDLE);
  216. +           st.takeItems(KURUKA_RATMAN_TOOTH, 10);
  217. +           st.giveItems(BETRAYER_REPORT, 1);
  218. +       }
  219. +       // TAZEER
  220. +       else if (event.equalsIgnoreCase("31978-02.htm"))
  221. +       {
  222. +           st.set("cond", "6");
  223. +           st.playSound(QuestState.SOUND_MIDDLE);
  224. +       }
  225. +       return htmltext;
  226. +   }
  227. +  
  228. +   @Override
  229. +   public String onTalk(L2Npc npc, L2PcInstance player)
  230. +   {
  231. +       String htmltext = getNoQuestMsg();
  232. +       QuestState st = player.getQuestState(qn);
  233. +       if (st == null)
  234. +           return htmltext;
  235. +      
  236. +       switch (st.getState())
  237. +       {
  238. +           case Quest.STATE_CREATED:
  239. +               htmltext = (player.getLevel() < 18) ? "30570-02.htm" : "30570-01.htm";
  240. +               if (st.hasQuestItems(MARK_OF_RAIDER))
  241. +                   htmltext = "30570-04.htm";
  242. +               else if (player.getClassId() == ClassId.orcRaider)
  243. +                       htmltext = "30570-02a.htm";
  244. +           break;
  245. +          
  246. +           case Quest.STATE_STARTED:
  247. +               int cond = st.getInt("cond");
  248. +               switch (npc.getNpcId())
  249. +               {
  250. +                   case KARUKIA:
  251. +                       if (cond == 1)
  252. +                           htmltext = "30570-06.htm";
  253. +                       else if (cond == 2)
  254. +                           htmltext = "30570-07.htm";
  255. +                       else if (cond == 3)
  256. +                           htmltext = "30570-09.htm";
  257. +                   break;
  258. +                   case KASMAN:
  259. +                       if (cond == 3)
  260. +                           htmltext = st.hasQuestItems(HEAD_OF_BETRAYER) ? "30501-02.htm" : "30501-01.htm";
  261. +                       else if (cond == 4)
  262. +                       {
  263. +                           htmltext = "30501-03.htm";
  264. +                           st.takeItems(HEAD_OF_BETRAYER, 2);
  265. +                           st.giveItems(MARK_OF_RAIDER, 1);
  266. +                           st.rewardExpAndSp(3200, 4230);
  267. +                           st.playSound(QuestState.SOUND_FINISH);
  268. +                           st.exitQuest(false);
  269. +                           player.broadcastPacket(new SocialAction(player, 3));
  270. +                       }
  271. +                   break;
  272. +                   case TAZEER:
  273. +                       if (cond == 5)
  274. +                           htmltext = "31978-01.htm";
  275. +                       else if (cond == 6)
  276. +                           htmltext = "31978-03.htm";
  277. +                       else if (cond == 7)
  278. +                       {
  279. +                           htmltext = "31978-04.htm";
  280. +                           st.takeItems(TIMORA_ORC_HEAD, 1);
  281. +                           st.giveItems(MARK_OF_RAIDER, 1);
  282. +                           st.rewardExpAndSp(3200, 4230);
  283. +                           st.playSound(QuestState.SOUND_FINISH);
  284. +                           st.exitQuest(false);
  285. +                           player.broadcastPacket(new SocialAction(player, 3));
  286. +                       }
  287. +                   break;
  288. +               }
  289. +           break;
  290. +          
  291. +           case STATE_COMPLETED:
  292. +               htmltext = getAlreadyCompletedMsg();
  293. +           break;
  294. +       }
  295. +       return htmltext;
  296. +   }
  297. +  
  298. +   @Override
  299. +   public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
  300. +   {
  301. +       QuestState st = checkPlayerState(player, npc, STATE_STARTED);
  302. +       if (st == null)
  303. +           return null;
  304. +      
  305. +       int rnd = Rnd.get(1,10);
  306. +       switch (npc.getNpcId())
  307. +       {
  308. +           case GOBLIN_TOMB_RAIDER_LEADER:
  309. +               if (st.getInt("cond") == 1 && st.dropItems(GREEN_BLOOD, 1, rnd, 400000))
  310. +               {
  311. +                       st.playSound(QuestState.SOUND_BEFORE_BATTLE);
  312. +                       st.takeItems(GREEN_BLOOD, rnd);
  313. +                       addSpawn(27045, npc, false, 120000, true);
  314. +               }
  315. +           break;
  316. +           case KURUKA_RATMAN_LEADER:
  317. +               if (st.getInt("cond") == 1 && st.dropItemsAlways(KURUKA_RATMAN_TOOTH, 1, 10))
  318. +                       st.set("cond", "2");
  319. +           break;
  320. +           case UMBAR_ORC:
  321. +               if (st.getInt("cond") == 3 && st.dropItems(HEAD_OF_BETRAYER, 1, 2, 400000))
  322. +                       st.set("cond", "4");
  323. +           break;
  324. +           case TIMORA_ORC:
  325. +               if (st.getInt("cond") == 6 && st.dropItems(TIMORA_ORC_HEAD, 1, 1, 400000))
  326. +                       st.set("cond", "7");
  327. +           break;
  328. +       }
  329. +       return null;
  330. +   }
  331. +  
  332. +   public static void main(String[] args)
  333. +   {
  334. +       new Q414_PathToAnOrcRaider();
  335. +   }
  336. +}
  337. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm
  338. ===================================================================
  339. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm (revision 0)
  340. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm (working copy)
  341. @@ -0,0 +1,4 @@
  342. +<html><body>Prefect Karukia:<br>
  343. +You have not yet proven your loyalty! There are many traitors hiding far away in Gludin to avoid our eyes! They think they are safe, but we have not forgotten them. Go on now and put an end to the betrayers and prove your loyalty!<br>
  344. +When you complete this task, take the heads of the two traitors to <font color="LEVEL">Prefect Kasman in the village of Gludin</font>. If you have truly earned the qualifications to become an Orc Raider, you will receive a token to change profession from him.
  345. +</body></html>
  346. \ No newline at end of file
  347. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm
  348. ===================================================================
  349. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm    (revision 0)
  350. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm    (working copy)
  351. @@ -0,0 +1,4 @@
  352. +<html><body>Prefect Karukia:<br>
  353. +We of the Orc Kingdom  have long cherished our tradition of obedience to our elders. Having said that, there are always certain individuals who'd like to change the way we do things...<br>
  354. +Some such criminal dogs are said to be hiding in the Town of Schuttgart! Speak with Tazeer, the Lord of Schuttgart... He'll tell you what you need to do!
  355. +</body></html>
  356. \ No newline at end of file
  357. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm
  358. ===================================================================
  359. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm (revision 0)
  360. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm (working copy)
  361. @@ -0,0 +1,3 @@
  362. +<html><body>Prefect Kasman:<br>
  363. +I have received notice from Karukia. You were given the task to destroy the betrayers, right? They are sly scoundrels, so you must be careful in dealing with them. After you finish your task, bring me back their heads!
  364. +</body></html>
  365. \ No newline at end of file
  366. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm
  367. ===================================================================
  368. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm (revision 0)
  369. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm (working copy)
  370. @@ -0,0 +1,3 @@
  371. +<html><body>Prefect Karukia:<br>
  372. +Only the most courageous Orc Fighters are chosen to be Orc Raiders. You don't have the qualifications to become a Marauder!
  373. +</body></html>
  374. \ No newline at end of file
  375. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm
  376. ===================================================================
  377. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm    (revision 0)
  378. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm    (working copy)
  379. @@ -0,0 +1,6 @@
  380. +<html><body>Prefect Tazeer:<br>
  381. +Very well! Then pay close attention!<br> The <font color="LEVEL">Timora Orcs</font> betrayed us by joining the dreaded Ragna Orcs, who have long been the scourge of this area. They can usually be found near <font color="LEVEL">the lake between the Crypts of Disgrace and the Den of Evil</font>. They hide in the Den of Evil whenever they hear that we're sending a powerful Orc after them.<br>
  382. +Letting their betrayal go unchallenged would harm the reputation of the entire Orc Kingdom! If we secretly send an unknown Orc like you after them, they might be taken off-guard...<br>
  383. +Please, destroy the Timora Orcs!<br>
  384. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 31978-02.htm">"I'll do it."</a>
  385. +</body></html>
  386. \ No newline at end of file
  387. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm
  388. ===================================================================
  389. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm (revision 0)
  390. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm (working copy)
  391. @@ -0,0 +1,5 @@
  392. +<html><body>Prefect Tazeer:<br>
  393. +Tejakar Oroca! Tejakar Renegade Raider! You've brought me the head of a traitor!<br>
  394. +Please accept this Mark of the Raider! Take it to the High Prefect and he will qualify you as an Orc Raider if your skills are good enough!<br>
  395. +Glory be with you, young Orc!
  396. +</body></html>
  397. \ No newline at end of file
  398. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm
  399. ===================================================================
  400. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm (revision 0)
  401. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm (working copy)
  402. @@ -0,0 +1,6 @@
  403. +<html><body>Prefect Karukia:<br>
  404. +You accomplished the mission well, but don't get too sure of yourself! As an Orc Raider, that should've been nothing to you! Now you must prove your loyalty.<br>
  405. +Two Judges await you. Which do you want to go to?<br>
  406. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-07a.htm">"I want to go to Gludin Village."</a><br>
  407. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-07b.htm">"I want to go to the Town of Schuttgart."</a>
  408. +</body></html>
  409. \ No newline at end of file
  410. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm
  411. ===================================================================
  412. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm (revision 0)
  413. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-01.htm (working copy)
  414. @@ -0,0 +1,3 @@
  415. +<html><body>Prefect Kasman:<br>
  416. +I have received notice from Karukia. You were given the task to destroy the betrayers, right? They are sly scoundrels, so you must be careful in dealing with them. After you finish your task, bring me back their heads!
  417. +</body></html>
  418. \ No newline at end of file
  419. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm
  420. ===================================================================
  421. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm (revision 0)
  422. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-02.htm (working copy)
  423. @@ -0,0 +1,3 @@
  424. +<html><body>Prefect Kasman:<br>
  425. +Now you have one left. Go and kill the scoundrel!
  426. +</body></html>
  427. \ No newline at end of file
  428. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm
  429. ===================================================================
  430. --- data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm (revision 0)
  431. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30501-03.htm (working copy)
  432. @@ -0,0 +1,4 @@
  433. +<html><body>Prefect Kasman:<br>
  434. +Foul betrayers, the Umbar tribe, to think that they abandoned the courage and loyalty of high-level orcs, they have become low Orcs depraved in body as well as in soul. How truly wicked they look. I am moved to think that we have shown mercy by killing them!<br>
  435. +Anyway, you have done well. You have truly demonstrated both courage and loyalty. Congratulations! I bestow this token on you. Take it and go to <font color="LEVEL">High Prefect Osborn</font> right here! He will change your profession to Orc Raider.
  436. +</body></html>
  437. \ No newline at end of file
  438. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm
  439. ===================================================================
  440. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm (revision 0)
  441. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-01.htm (working copy)
  442. @@ -0,0 +1,5 @@
  443. +<html><body>Prefect Karukia:<br>
  444. +Orc Raiders are of the most elite rank among fighters of our race! Their mere appearance on the battlefield makes the enemy troops shiver in fear!<br>
  445. +To earn the qualifications to become an Orc Raider, you must prove that you have courage that has no regard for death, and absolute loyalty to the Orcs. There have been many young ones that lost their lives trying to prove their courage and loyalty! It is not something to challenge with a light heart!<br>
  446. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-05.htm">Say you want to be an Orc Raider</a>
  447. +</body></html>
  448. \ No newline at end of file
  449. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm
  450. ===================================================================
  451. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm (revision 0)
  452. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-02.htm (working copy)
  453. @@ -0,0 +1,3 @@
  454. +<html><body>Prefect Karukia:<br>
  455. +Of course, I know your goal is to be a dignified and noble member of our race. But courage unsupported by ability is foolishness! That is a path that leads only to a meaningless death. Train patiently, youngster, and your chance will come. <font color="LEVEL">See me again when you reach level 18!</font>
  456. +</body></html>
  457. \ No newline at end of file
  458. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm
  459. ===================================================================
  460. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm    (revision 0)
  461. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-02a.htm    (working copy)
  462. @@ -0,0 +1,3 @@
  463. +<html><body>Prefect Karukia:<br>
  464. +You fool! You have already been selected as a courageous Orc Raider! Don't waste my time with useless questions. Go out to the battlefield and strike down the enemy!
  465. +</body></html>
  466. \ No newline at end of file
  467. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm
  468. ===================================================================
  469. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm (revision 0)
  470. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-03.htm (working copy)
  471. @@ -0,0 +1,3 @@
  472. +<html><body>Prefect Karukia:<br>
  473. +Only the most courageous Orc Fighters are chosen to be Orc Raiders. You don't have the qualifications to become a Marauder!
  474. +</body></html>
  475. \ No newline at end of file
  476. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm
  477. ===================================================================
  478. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm (revision 0)
  479. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-04.htm (working copy)
  480. @@ -0,0 +1,3 @@
  481. +<html><body>Prefect Karukia: <br>
  482. +Oh! The Mark of the Raider! Another strong Warrior is born to fight for the Kingdom! Ha! You must go at once to the Kingdom of Humans and show this mark to the High Prefect there! He'll transfer you to the Raider class. You should visit either High Prefect Osborn in <font color="LEVEL">Gludin Village</font> or High Prefect Finker in <font color="LEVEL">the Town of Schuttgart</font>.
  483. +</body></html>
  484. \ No newline at end of file
  485. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm
  486. ===================================================================
  487. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm (revision 0)
  488. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-05.htm (working copy)
  489. @@ -0,0 +1,4 @@
  490. +<html><body>Prefect Karukia:<br>
  491. +Then, I will give you a test! Orc Raiders are completed when they show courage that is unafraid of death and loyalty that is absolute. First, you must prove your loyalty. Destroy the <font color="LEVEL">goblins</font> that spoil the earth and the <font color="LEVEL">Kuruka Ratman Leaders</font> that control that filthy race!<br>
  492. +Take this Map. It is marked with the places where there are goblin tribes. If you obliterate the <font color="LEVEL">goblin tomb raider leader</font> there, a Kuruka Ratman Leader will appear, so make sure not to let him get away! We do not need captives. Remember, you must kill at least ten Kuruka Ratman Leaders. Plant the power and fear of the Orcs into the enemy's heart!
  493. +</body></html>
  494. \ No newline at end of file
  495. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm
  496. ===================================================================
  497. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm (revision 0)
  498. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-06.htm (working copy)
  499. @@ -0,0 +1,3 @@
  500. +<html><body>Prefect Karukia:<br>
  501. +Why have you come back already? Didn't I tell you to bring back <font color="LEVEL">ten kuruka ratman teeth</font>? Is this all the courage you can muster?
  502. +</body></html>
  503. \ No newline at end of file
  504. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm
  505. ===================================================================
  506. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm (revision 0)
  507. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07.htm (working copy)
  508. @@ -0,0 +1,6 @@
  509. +<html><body>Prefect Karukia:<br>
  510. +You accomplished the mission well, but don't get too sure of yourself! As an Orc Raider, that should've been nothing to you! Now you must prove your loyalty.<br>
  511. +Two Judges await you. Which do you want to go to?<br>
  512. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-07a.htm">"I want to go to Gludin Village."</a><br>
  513. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 30570-07b.htm">"I want to go to the Town of Schuttgart."</a>
  514. +</body></html>
  515. \ No newline at end of file
  516. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm
  517. ===================================================================
  518. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm    (revision 0)
  519. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07a.htm    (working copy)
  520. @@ -0,0 +1,4 @@
  521. +<html><body>Prefect Karukia:<br>
  522. +We of the Orc Kingdom  have long cherished our tradition of obedience to our elders. Having said that, there are always certain individuals who'd like to change the way we do things...<br>
  523. +Some such criminal dogs are said to be hiding in Gludin Village! Speak with Prefect Kasman of Gludin Village... He'll tell you what you need to do!
  524. +</body></html>
  525. \ No newline at end of file
  526. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm
  527. ===================================================================
  528. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm    (revision 0)
  529. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-07b.htm    (working copy)
  530. @@ -0,0 +1,4 @@
  531. +<html><body>Prefect Karukia:<br>
  532. +We of the Orc Kingdom  have long cherished our tradition of obedience to our elders. Having said that, there are always certain individuals who'd like to change the way we do things...<br>
  533. +Some such criminal dogs are said to be hiding in the Town of Schuttgart! Speak with Tazeer, the Lord of Schuttgart... He'll tell you what you need to do!
  534. +</body></html>
  535. \ No newline at end of file
  536. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm
  537. ===================================================================
  538. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm (revision 0)
  539. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-08.htm (working copy)
  540. @@ -0,0 +1,4 @@
  541. +<html><body>Prefect Karukia:<br>
  542. +You have not yet proven your loyalty! There are many traitors hiding far away in Gludin to avoid our eyes! They think they are safe, but we have not forgotten them. Go on now and put an end to the betrayers and prove your loyalty!<br>
  543. +When you complete this task, take the heads of the two traitors to <font color="LEVEL">Prefect Kasman in the village of Gludin</font>. If you have truly earned the qualifications to become an Orc Raider, you will receive a token to change profession from him.
  544. +</body></html>
  545. \ No newline at end of file
  546. Index: data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm
  547. ===================================================================
  548. --- data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm (revision 0)
  549. +++ data/scripts/quests/Q414_PathToAnOrcRaider/30570-09.htm (working copy)
  550. @@ -0,0 +1,3 @@
  551. +<html><body>Prefect Karukia:<br>
  552. +Take the heads of the traitors to<font color="LEVEL"> Prefect Kasman in the village of Gludin</font>. If you have truly earned the qualifications to become an Orc Raider, you will receive a token to change profession from him.
  553. +</body></html>
  554. \ No newline at end of file
  555. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm
  556. ===================================================================
  557. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm (revision 0)
  558. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-01.htm (working copy)
  559. @@ -0,0 +1,7 @@
  560. +<html><body>Prefect Tazeer:<br>
  561. +All glory flows from the great fire!<br>
  562. +Are you a young soldier of the Orc Kingdom? Surely you realize that you must prove your loyalty in order to be an Orc Raider.<br>
  563. +The test is very simple. Unlike in your land, there are many lower Orcs here, who hold much power...<br>
  564. +Any move against them would take a special kind of courage... Do you have it?<br>
  565. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 31978-01b.htm">"I do."</a>
  566. +</body></html>
  567. \ No newline at end of file
  568. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm
  569. ===================================================================
  570. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm    (revision 0)
  571. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-01b.htm    (working copy)
  572. @@ -0,0 +1,6 @@
  573. +<html><body>Prefect Tazeer:<br>
  574. +Very well! Then pay close attention!<br> The <font color="LEVEL">Timora Orcs</font> betrayed us by joining the dreaded Ragna Orcs, who have long been the scourge of this area. They can usually be found near <font color="LEVEL">the lake between the Crypts of Disgrace and the Den of Evil</font>. They hide in the Den of Evil whenever they hear that we're sending a powerful Orc after them.<br>
  575. +Letting their betrayal go unchallenged would harm the reputation of the entire Orc Kingdom! If we secretly send an unknown Orc like you after them, they might be taken off-guard...<br>
  576. +Please, destroy the Timora Orcs!<br>
  577. +<a action="bypass -h Quest Q414_PathToAnOrcRaider 31978-02.htm">"I'll do it."</a>
  578. +</body></html>
  579. \ No newline at end of file
  580. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm
  581. ===================================================================
  582. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm (revision 0)
  583. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-02.htm (working copy)
  584. @@ -0,0 +1,5 @@
  585. +<html><body>Prefect Tazeer:<br>
  586. +Excellent! I won't tell you that you won't be in serious danger, but I believe that you're skilled enough to defeat the Timora Orcs.<br>
  587. +Bring me one of their heads and I'll reward you with the Mark of the Raider!<br>
  588. +Go now!
  589. +</body></html>
  590. \ No newline at end of file
  591. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm
  592. ===================================================================
  593. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm (revision 0)
  594. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-03.htm (working copy)
  595. @@ -0,0 +1,4 @@
  596. +<html><body>Prefect Tazeer:<br>
  597. +The traitorous <font color="LEVEL">Timora Orcs</font> can be found near <font color="LEVEL">the lake between the Crypts of Disgrace and the Den of Evil</font>!<br>
  598. +Now go and bring me back one of their heads!
  599. +</body></html>
  600. \ No newline at end of file
  601. Index: data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm
  602. ===================================================================
  603. --- data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm (revision 0)
  604. +++ data/scripts/quests/Q414_PathToAnOrcRaider/31978-04.htm (working copy)
  605. @@ -0,0 +1,5 @@
  606. +<html><body>Prefect Tazeer:<br>
  607. +Tejakar Oroca! Tejakar Renegade Raider! You've brought me the head of a traitor!<br>
  608. +Please accept this Mark of the Raider! Take it to the High Prefect and he will qualify you as an Orc Raider if your skills are good enough!<br>
  609. +Glory be with you, young Orc!
  610. +</body></html>
  611. \ No newline at end of file
  612. Index: data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java
  613. ===================================================================
  614. --- data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java  (revision 0)
  615. +++ data/scripts/quests/Q414_PathToAnOrcRaider/Q414_PathToAnOrcRaider.java  (working copy)
  616. @@ -0,0 +1,200 @@
  617. +package quests.Q414_PathToAnOrcRaider;
  618. +
  619. +import net.sf.l2j.gameserver.model.actor.L2Npc;
  620. +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
  621. +import net.sf.l2j.gameserver.model.base.ClassId;
  622. +import net.sf.l2j.gameserver.model.quest.Quest;
  623. +import net.sf.l2j.gameserver.model.quest.QuestState;
  624. +import net.sf.l2j.gameserver.network.serverpackets.SocialAction;
  625. +import net.sf.l2j.util.Rnd;
  626. +
  627. +/**
  628. + * @author Reynald0
  629. + */
  630. +public class Q414_PathToAnOrcRaider extends Quest
  631. +{
  632. +   private static final String qn = "Q414_PathToAnOrcRaider";
  633. +  
  634. +   // QUEST ITEMs
  635. +   private static final int GREEN_BLOOD = 1578;
  636. +   private static final int GOBLIN_DWELLING_MAP = 1579;
  637. +   private static final int KURUKA_RATMAN_TOOTH = 1580;
  638. +   private static final int BETRAYER_REPORT = 1581;
  639. +   private static final int HEAD_OF_BETRAYER = 1591;
  640. +   private static final int TIMORA_ORC_HEAD = 8544;
  641. +  
  642. +   // NPCs
  643. +   private static final int KASMAN = 30501;;
  644. +   private static final int KARUKIA = 30570;
  645. +   private static final int TAZEER = 31978;
  646. +  
  647. +   // MONSTERs
  648. +   private static final int GOBLIN_TOMB_RAIDER_LEADER = 20320;
  649. +  
  650. +   // QUEST MONSTERs
  651. +   private static final int KURUKA_RATMAN_LEADER = 27045;
  652. +   private static final int UMBAR_ORC = 27054;
  653. +   private static final int TIMORA_ORC = 27320;
  654. +  
  655. +   // REWARD
  656. +   private static final int MARK_OF_RAIDER = 1592;
  657. +  
  658. +   public Q414_PathToAnOrcRaider()
  659. +   {
  660. +       super(414, qn, "Path to an Orc Raider");
  661. +       addStartNpc(KARUKIA);
  662. +       addTalkId(KARUKIA, KASMAN, TAZEER);
  663. +       setItemsIds(GOBLIN_DWELLING_MAP, GREEN_BLOOD, KURUKA_RATMAN_TOOTH, BETRAYER_REPORT, HEAD_OF_BETRAYER, TIMORA_ORC_HEAD);
  664. +       addKillId(GOBLIN_TOMB_RAIDER_LEADER, KURUKA_RATMAN_LEADER, UMBAR_ORC, TIMORA_ORC);
  665. +   }
  666. +  
  667. +   @Override
  668. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  669. +   {
  670. +       String htmltext = event;
  671. +       QuestState st = player.getQuestState(qn);
  672. +       if (st == null)
  673. +           return htmltext;
  674. +      
  675. +       // KARUKIA
  676. +       if (event.equalsIgnoreCase("30570-05.htm"))
  677. +       {
  678. +           st.setState(Quest.STATE_STARTED);
  679. +           st.set("cond", "1");
  680. +           st.playSound(QuestState.SOUND_ACCEPT);
  681. +           st.giveItems(GOBLIN_DWELLING_MAP, 1);
  682. +          
  683. +       }
  684. +       else if (event.equalsIgnoreCase("30570-07a.htm"))
  685. +       {
  686. +           st.set("cond", "3");
  687. +           st.playSound(QuestState.SOUND_MIDDLE);
  688. +           st.takeItems(GOBLIN_DWELLING_MAP, 1);
  689. +           st.takeItems(KURUKA_RATMAN_TOOTH, 10);
  690. +           st.giveItems(BETRAYER_REPORT, 1);
  691. +       }
  692. +       else if (event.equalsIgnoreCase("30570-07b.htm"))
  693. +       {
  694. +           st.set("cond", "5");
  695. +           st.playSound(QuestState.SOUND_MIDDLE);
  696. +           st.takeItems(KURUKA_RATMAN_TOOTH, 10);
  697. +           st.giveItems(BETRAYER_REPORT, 1);
  698. +       }
  699. +       // TAZEER
  700. +       else if (event.equalsIgnoreCase("31978-02.htm"))
  701. +       {
  702. +           st.set("cond", "6");
  703. +           st.playSound(QuestState.SOUND_MIDDLE);
  704. +       }
  705. +       return htmltext;
  706. +   }
  707. +  
  708. +   @Override
  709. +   public String onTalk(L2Npc npc, L2PcInstance player)
  710. +   {
  711. +       String htmltext = getNoQuestMsg();
  712. +       QuestState st = player.getQuestState(qn);
  713. +       if (st == null)
  714. +           return htmltext;
  715. +      
  716. +       switch (st.getState())
  717. +       {
  718. +           case Quest.STATE_CREATED:
  719. +               htmltext = (player.getLevel() < 18) ? "30570-02.htm" : "30570-01.htm";
  720. +               if (st.hasQuestItems(MARK_OF_RAIDER))
  721. +                   htmltext = "30570-04.htm";
  722. +               else if (player.getClassId() == ClassId.orcRaider)
  723. +                       htmltext = "30570-02a.htm";
  724. +           break;
  725. +          
  726. +           case Quest.STATE_STARTED:
  727. +               int cond = st.getInt("cond");
  728. +               switch (npc.getNpcId())
  729. +               {
  730. +                   case KARUKIA:
  731. +                       if (cond == 1)
  732. +                           htmltext = "30570-06.htm";
  733. +                       else if (cond == 2)
  734. +                           htmltext = "30570-07.htm";
  735. +                       else if (cond == 3)
  736. +                           htmltext = "30570-09.htm";
  737. +                   break;
  738. +                   case KASMAN:
  739. +                       if (cond == 3)
  740. +                           htmltext = st.hasQuestItems(HEAD_OF_BETRAYER) ? "30501-02.htm" : "30501-01.htm";
  741. +                       else if (cond == 4)
  742. +                       {
  743. +                           htmltext = "30501-03.htm";
  744. +                           st.takeItems(HEAD_OF_BETRAYER, 2);
  745. +                           st.giveItems(MARK_OF_RAIDER, 1);
  746. +                           st.rewardExpAndSp(3200, 4230);
  747. +                           st.playSound(QuestState.SOUND_FINISH);
  748. +                           st.exitQuest(false);
  749. +                           player.broadcastPacket(new SocialAction(player, 3));
  750. +                       }
  751. +                   break;
  752. +                   case TAZEER:
  753. +                       if (cond == 5)
  754. +                           htmltext = "31978-01.htm";
  755. +                       else if (cond == 6)
  756. +                           htmltext = "31978-03.htm";
  757. +                       else if (cond == 7)
  758. +                       {
  759. +                           htmltext = "31978-04.htm";
  760. +                           st.takeItems(TIMORA_ORC_HEAD, 1);
  761. +                           st.giveItems(MARK_OF_RAIDER, 1);
  762. +                           st.rewardExpAndSp(3200, 4230);
  763. +                           st.playSound(QuestState.SOUND_FINISH);
  764. +                           st.exitQuest(false);
  765. +                           player.broadcastPacket(new SocialAction(player, 3));
  766. +                       }
  767. +                   break;
  768. +               }
  769. +           break;
  770. +          
  771. +           case STATE_COMPLETED:
  772. +               htmltext = getAlreadyCompletedMsg();
  773. +           break;
  774. +       }
  775. +       return htmltext;
  776. +   }
  777. +  
  778. +   @Override
  779. +   public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
  780. +   {
  781. +       QuestState st = checkPlayerState(player, npc, STATE_STARTED);
  782. +       if (st == null)
  783. +           return null;
  784. +      
  785. +       int rnd = Rnd.get(1,10);
  786. +       switch (npc.getNpcId())
  787. +       {
  788. +           case GOBLIN_TOMB_RAIDER_LEADER:
  789. +               if (st.getInt("cond") == 1 && st.dropItems(GREEN_BLOOD, 1, rnd, 400000))
  790. +               {
  791. +                       st.playSound(QuestState.SOUND_BEFORE_BATTLE);
  792. +                       st.takeItems(GREEN_BLOOD, rnd);
  793. +                       addSpawn(27045, npc, false, 120000, true);
  794. +               }
  795. +           break;
  796. +           case KURUKA_RATMAN_LEADER:
  797. +               if (st.getInt("cond") == 1 && st.dropItemsAlways(KURUKA_RATMAN_TOOTH, 1, 10))
  798. +                       st.set("cond", "2");
  799. +           break;
  800. +           case UMBAR_ORC:
  801. +               if (st.getInt("cond") == 3 && st.dropItems(HEAD_OF_BETRAYER, 1, 2, 400000))
  802. +                       st.set("cond", "4");
  803. +           break;
  804. +           case TIMORA_ORC:
  805. +               if (st.getInt("cond") == 6 && st.dropItems(TIMORA_ORC_HEAD, 1, 1, 400000))
  806. +                       st.set("cond", "7");
  807. +           break;
  808. +       }
  809. +       return null;
  810. +   }
  811. +  
  812. +   public static void main(String[] args)
  813. +   {
  814. +       new Q414_PathToAnOrcRaider();
  815. +   }
  816. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement