Преглед изворни кода

BETA: Retail-like Kamael class transfer.
* Removing old and custom code.
Reported by: Cathe
Reviewed by: lion
Tested by: Adry_85, lion

Adry_85 пре 11 година
родитељ
комит
3587c41c48
100 измењених фајлова са 925 додато и 146 уклоњено
  1. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32145.htm
  2. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32146.htm
  3. 7 0
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32191.htm
  4. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32193.htm
  5. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32196.htm
  6. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32199.htm
  7. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32202.htm
  8. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32205.htm
  9. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32206.htm
  10. 5 6
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32209.htm
  11. 5 6
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32210.htm
  12. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32213.htm
  13. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32214.htm
  14. 5 6
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32217.htm
  15. 5 6
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32218.htm
  16. 4 3
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32221.htm
  17. 5 4
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32222.htm
  18. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32225.htm
  19. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32226.htm
  20. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32229.htm
  21. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32230.htm
  22. 3 3
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32233.htm
  23. 1 1
      L2J_DataPack_BETA/dist/game/data/html/villagemaster/32234.htm
  24. 2 1
      L2J_DataPack_BETA/dist/game/data/scripts.cfg
  25. 0 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-01.htm
  26. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-02.htm
  27. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-03.htm
  28. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-04.htm
  29. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-05.htm
  30. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-06.htm
  31. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-07.htm
  32. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-08.htm
  33. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-09.htm
  34. 3 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-10.htm
  35. 3 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-11.htm
  36. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-12.htm
  37. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-13.htm
  38. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-14.htm
  39. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-15.htm
  40. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-16.htm
  41. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-17.htm
  42. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-18.htm
  43. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-19.htm
  44. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-20.htm
  45. 204 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/KamaelChange1.java
  46. 3 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-01.htm
  47. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-02.htm
  48. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-03.htm
  49. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-04.htm
  50. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-05.htm
  51. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-06.htm
  52. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-07.htm
  53. 8 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-08.htm
  54. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-09.htm
  55. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-10.htm
  56. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-11.htm
  57. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-12.htm
  58. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-13.htm
  59. 8 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-14.htm
  60. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-15.htm
  61. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-16.htm
  62. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-17.htm
  63. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-18.htm
  64. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-19.htm
  65. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-20.htm
  66. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-21.htm
  67. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-22.htm
  68. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-23.htm
  69. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-24.htm
  70. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-25.htm
  71. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-26.htm
  72. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-27.htm
  73. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-28.htm
  74. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-29.htm
  75. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-30.htm
  76. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-31.htm
  77. 1 1
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-32.htm
  78. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-33.htm
  79. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-34.htm
  80. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-35.htm
  81. 402 0
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/KamaelChange2.java
  82. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-01.htm
  83. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-02.htm
  84. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-03.htm
  85. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-04.htm
  86. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-05.htm
  87. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-06.htm
  88. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-07.htm
  89. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-08.htm
  90. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-09.htm
  91. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-10.htm
  92. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-11.htm
  93. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-12.htm
  94. 0 7
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-13.htm
  95. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-14.htm
  96. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-16.htm
  97. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-17.htm
  98. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-18.htm
  99. 0 3
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-19.htm
  100. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-20.htm

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32145.htm

@@ -1,7 +1,7 @@
 <html><body>Grand Master Maynard:<br>
 Somehow you made it here, but this is no place for a novice adventurer.<br>
 I suppose that matters little now, though.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub-class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32146.htm

@@ -1,7 +1,7 @@
 <html><body>Grand Master Valpor:<br>
 Your curiosity must have brought you here. Unless you have some business with me?<br>
 If you have advanced beyond the occupational limits as a Kamael, perhaps I can help...<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub-class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32191.htm

@@ -0,0 +1,7 @@
+<html><body>Grand Master Hanarin:<br>
+This is the Hill of Spirit, a cemetery for dead warriors. Take a moment to pray for those who rest here.<br>
+<a action="bypass -h Quest KamaelChange1">Ask about the 1st class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32193.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Yeniche:<br>
 Are you unsatisfied with your current position? Are you willing to devote yourself to improvement? Yes? Then you have come to the right place. I am Grand Master Yeniche, head of the Kamael Guild here. It's my duty to teach those like you about the nuances of class transfer.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 1st class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange1">Ask about the 1st class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32196.htm

@@ -1,7 +1,7 @@
 <html><body>Grand Master Gershwin:<br>
 Welcome, brave Kamael warrior, welcome! I am Gershwin, head of the Kamael Guild. How fine to meet a strapping young Kamael like yourself here in the middle of nowhere! I feel like showing you off to the miserable inhabitants of this place, to show them what a real adventurer looks like.<br>
 You have truly brightened my day. Please let me know if I can help you in your journey.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 1st class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange1">Ask about the 1st class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32199.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Holst:<br>
 Welcome. I am Grand Master Holst. If you are one of the Kamael who has left his own land, you should take a moment to reflect on whether you have behaved dishonorably or endangered a fellow Kamael. Be honest, now. Search yourself...<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 1st class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange1">Ask about the 1st class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32202.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Khadava:<br>
 To be honest, it matters little to me why and how you came to this town, or why you sought me out. I simply provide a service. Tell me, then, exactly what you require.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 1st class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange1">Ask about the 1st class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32205.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Aetonic:<br>
 Greetings. I am Grand Master Aetonic of the Kamael Guild. Do you have questions about the class transfer? You have come to the right person, then -- I am an expert in the Kamael class transfer. Ask me anything.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32206.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Pieche:<br>
 You look like you could use some help, my friend... No? Ha ha, oh yes you do! Don't look so surprised! Once you reach my age, you can read the truth in a person's eyes and gestures. Words only confuse the issue... How can I help you?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 5 - 6
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32209.htm

@@ -1,9 +1,8 @@
 <html><body>Grand Master Ferdinand:<br>
 Hello, my friend! Isn't this place wonderful? Ah, when I was young I had no time for the beauties of nature, but now that I am old I find Innadril's scenery positively intoxicating. I feel like a young boy on a picnic! Oh dear...please forgive my babbling. How can I help you?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
-<a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
 </body></html>

+ 5 - 6
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32210.htm

@@ -1,9 +1,8 @@
 <html><body>Grand Master Eddy:<br>
 Good day. I am Grand Master Eddy of the Kamael Guild. Why are you staring at me like that? Ah...let me guess. You met Ferdinand, I suspect. Or perhaps you simply heard rumors of a sweet, gentle Grand Master of the Kamael Guild. Well, as you can see, you are mistaken. I am not Ferdinand, nor do I spend my days laughing and loafing about. If I seem grim, it is because I am more conscious of the gravity of my position that that overgrown child ever will be.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
-<a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
 </body></html>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32213.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Vitus:<br>
 Welcome. I am Grand Master Vitus of the Kamael Guild here in the Town of Giran. If you have questions about class transfer, you have come to the right place.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32214.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Meldina:<br>
 Have you heard the news? Apparently all Giran is abuzz about our Kamael Guild; everyone, it seems, is on fire to know more about the Kamael, our abilities and our intentions. And interesting situation, to be sure. I could almost wish that another held this position...<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 5 - 6
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32217.htm

@@ -1,9 +1,8 @@
 <html><body>Grand Master Barta:<br>
 Greetings! Ah, this is the most pleasant moment of my day, meeting a young Kamael like yourself in a small town like this. Granted, there are other Kamael masters, but they are so stiff and formal. They have no fire in the bellies for adventure -- not like you youngsters. Tell me, have you had any exciting adventures lately?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
-<a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
 </body></html>

+ 5 - 6
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32218.htm

@@ -1,9 +1,8 @@
 <html><body>Grand Master Miya:<br>
 I am Miya, Grand Master of the Kamael Guild here. Perhaps you remember me? I was once renowned among our people for my skill with the sword. That was long ago, however... Now I spend my days training the young.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
-<a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
 </body></html>

+ 4 - 3
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32221.htm

@@ -1,8 +1,9 @@
 <html><body>Grand Master Brome:<br>
 Eh, did you just say something? Apologies! My focus isn't what it used to be. Sometimes I can't even remember the date! Ah, but my absent-mindedness doesn't keep me from helping our own people. Now what was it that you asked me?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Subclass 0">Sub-class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
 </body></html>

+ 5 - 4
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32222.htm

@@ -1,8 +1,9 @@
-<html><body>Grand Master Liane :<br>
+<html><body>Grand Master Liane:<br>
 Welcome to the Town of Aden. I am Grand Master Liane, head of the Kamael Guild. If you need my assistance, please do not hesitate to ask. I will do whatever I can to assist our people.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Subclass 0">Sub-class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
-<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
-<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+<a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
 </body></html>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32225.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Taine:<br>
 What do you think of the interchanges between the Kamael and the other races? I believe that to better Kamael society relations with the other races are absolutely vital. I have heard that the best soldiers come here to Goddard. Why not interact with them to develop each other's skills? What do you think? Too progressive for you?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32226.htm

@@ -1,7 +1,7 @@
 <html><body>Grand Master Raula:<br>
 Welcome to the Town of Goddard! I am Grand Master Raula, head of the Kamael Guild here. Have you met Grand Master Taine? No? Well, if you do, try not to be overly influenced by him. He is ready to start at his own shadow, and his mind is filled with wild thoughts about the Kamael.<br>
 Do you know he refuses to even speak to me these days? If you do happen to talk with him, please tell him that I am concerned -- as a colleague -- about his health.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use Shadow Weapon Exchange Coupon.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32229.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Hagel:<br>
 Welcome! I am Grand Master Hagel, head of the Kamael Guild in this town. Ah, you need not tell me -- I know why you are here. You wish to hear about class transfer, eh? You have come to the right man; I can tell you everything you need to know.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32230.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Ceci:<br>
 You came just in time! Did you see those chaps who just passed by here? They're of that new race... They mistook me for an Elf, if you can believe it. Said their eye sight is bad... I don't know how they missed these wings of mine -- I wonder if their eye sight is really that bad, or if they are simply that ignorant...<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Listen to information about second class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Listen to information about second class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Subclass 0">Sub Class.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32233.htm

@@ -1,8 +1,8 @@
 <html><body>Grand Master Zoldart:<br>
 I am Grand Master Zoldart of the Kamael Guild. Why, you look exhausted! May I give you a piece of advice? It is important for Kamael desiring class transfer to possess various abilities, but strong physical power is the most important factor. You will have to undertake a number of difficult journeys to obtain the class transfer - how will you survive them when you are already as weak as a newborn foal? Do not waste your energy - save it for when it will be needed.<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Clan">Clan.</a><br>
-<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
+<a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>
 <a action="bypass -h npc_%objectId%_Quest">Quest</a>
 </body></html>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/html/villagemaster/32234.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Nizer:<br>
 Hmm...you look familiar. Have we met before? No? My apologies -- since I was made Grand Master, I have met so many people that I cannot remember them all. I am sure you understand... In any event, how may I help you today?<br>
-<a action="bypass -h npc_%objectId%_Quest kamael_occupation_change">Ask about the 2nd class transfer.</a><br>
+<a action="bypass -h Quest KamaelChange2">Ask about the 2nd class transfer.</a><br>
 <a action="bypass -h npc_%objectId%_Quest Clan">Clan</a><br>
 <a action="bypass -h npc_%objectId%_Quest Alliance">Alliance</a><br>
 <a action="bypass -h npc_%objectId%_Quest ShadowWeapons">Use a shadow weapon exchange coupon.</a><br>

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts.cfg

@@ -168,7 +168,8 @@ village_master/elven_human_fighters_1/__init__.py
 village_master/elven_human_fighters_2/__init__.py
 village_master/elven_human_mystics_1/__init__.py
 village_master/elven_human_mystics_2/__init__.py
-village_master/kamael_occupation_change/__init__.py
+village_master/KamaelChange1/KamaelChange1.java
+village_master/KamaelChange2/KamaelChange2.java
 village_master/orc_occupation_change_1/__init__.py
 village_master/orc_occupation_change_2/__init__.py
 

+ 0 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-33.htm → L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-01.htm


+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-02.htm

@@ -0,0 +1,5 @@
+<html><body>
+It is the tradition of our people that men learn the skills necessary to become Troopers, while women learn those to become Warders.<br>
+You will be required to walk the path of the Troopers. Do you wish to learn more?<br>
+<a action="bypass -h Quest KamaelChange1 32191-03.htm">Listen to an explanation about Troopers.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-03.htm

@@ -0,0 +1,7 @@
+<html><body>
+Trooper is a special profession open only to male Kamael warriors.<br>
+In order to reach our full potential, one must pursue a greater level of expertise.<br>
+<a action="bypass -h Quest KamaelChange1 32191-04.htm">Listen to a more detailed explanation.</a><br>
+<a action="bypass -h Quest KamaelChange1 125">Transfer to a Trooper.</a><br>
+<a action="bypass -h Quest KamaelChange1 32191-02.htm">Back.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-04.htm

@@ -0,0 +1,7 @@
+<html><body>
+Trooper is open only to male Kamael. At this stage, Kamael men must choose whether they wish to develop strength of spirit or body.<br>
+The dark power hidden within can be controlled and managed to achieve success in battle.<br>
+The Ancient Swords and Rapiers used are necessary for learning advanced skills at this level of expertise.<br>
+<a action="bypass -h Quest KamaelChange1 32191-05.htm">Ask about how to become a Trooper.</a><br>
+<a action="bypass -h Quest KamaelChange1 32191-02.htm">Back.</a>
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-05.htm

@@ -0,0 +1,6 @@
+<html><body>
+To become a Trooper, you must be first recommended by someone who is highly regarded, such as Master Gwain.<br>
+If you wish to meet him, go to the Town of Gludio.<br>
+If he believes in your potential and gives you a letter of recommendation, you may become a Trooper.<br>
+<a action="bypass -h Quest KamaelChange1 32191-02.htm">Return.</a>
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-06.htm

@@ -0,0 +1,5 @@
+<html><body>
+It is the tradition of our people that men learn the skills necessary to become Troopers while women learn those to become Warders.<br>
+You will be required to walk the path of the Warders. Do you wish to learn more?<br>
+<a action="bypass -h Quest KamaelChange1 32191-07.htm">Listen to an explanation about Warders.</a>
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-07.htm

@@ -0,0 +1,6 @@
+<html><body>
+Warder is a profession only open to Kamael women who possess both power and the ability to develop their skills with Crossbow and Rapier.<br>
+<a action="bypass -h Quest KamaelChange1 32191-08.htm">Ask for more details.</a><br>
+<a action="bypass -h Quest KamaelChange1 126">Transfer to a Warder.</a><br>
+<a action="bypass -h Quest KamaelChange1 32191-06.htm">Back.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-08.htm

@@ -0,0 +1,7 @@
+<html><body>
+Warder is a profession open only to Kamael women. At this level, Kamael women carry two types of weapons: the Crossbow and the Rapier.<br>
+They also learn basic trapping magic as they prepare for their missions.<br>
+They also learn about basic trapping magic.<br>
+<a action="bypass -h Quest KamaelChange1 32191-09.htm">Ask about how to become a Warder.</a><br>
+<a action="bypass -h Quest KamaelChange1 32191-06.htm">Back.</a>
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-09.htm

@@ -0,0 +1,5 @@
+<html><body>
+There are two requirements for becoming a Warder. First, you must pass a special test. Second, you must be at least level 20.<br>
+If you wish to be tested, go to Gludin Village and seek out Master Sione.<br>
+<a action="bypass -h Quest KamaelChange1 32191-06.htm">Return.</a>
+</body></html>

+ 3 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-10.htm

@@ -0,0 +1,3 @@
+<html><body>
+You can learn nothing further from me. To advance your training, I advise you to go seek a larger village with more opportunities...
+</body></html>

+ 3 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-11.htm

@@ -0,0 +1,3 @@
+<html><body>
+You already have permission to learn the most advanced skills one can learn as a Kamael. If you wish to do so, you should ask the Elder.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-12.htm

@@ -0,0 +1,4 @@
+<html><body>
+You are now sufficiently advanced to follow the path of the heroes of old.<br>
+Do you still have questions regarding your former career?
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-13.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Trooper, you must be level 20 or higher and have obtained Master Gwain's recommendation.<br>
+You have his recommendation, but you do not meet the level requirement. Come back when you have reached level 20 or higher.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-14.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Trooper, you must be higher than level 20 and first obtain Master Gwain's recommendation.<br>
+You do not meet either requirement.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-15.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Trooper, you must be higher than level 20 and have obtained Master Gwain's recommendation.<br>
+You have reached an acceptable level, so find Master Gwain in Gludin Village and bring back his recommendation.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-16.htm

@@ -0,0 +1,6 @@
+<html><body>
+You have met all the requirements.<br>
+Congratulations, Trooper!<br>
+From now on, you will be able to learn Trooper-specific skills.<br>
+The Adventure Guild has asked me to give you these coupons to congratulate you on your achievement. Take them to a Grand Master and they will provide you with a temporary weapon of your choosing.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-17.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Warder, you must pass the steal file test and be at least level 20.<br>
+I do not think that you meet either of those conditions.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-18.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Warder, you must be level 20 or higher and have passed the Steelrazor test.<br>
+I see that you have passed the exam, but you have not yet reached level 20. Come back after you have done so.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-19.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Warder, you must be higher than level 20 and have passed the steal file exam.<br>
+You have reached an acceptable level; now you should find Master Sione in Gludin Village and take the steal file exam.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/32191-20.htm

@@ -0,0 +1,6 @@
+<html><body>
+You have met all the requirements.<br>
+Congratulations, Warder!<br>
+From now on, you will be able to learn Warder-specific skills.<br>
+The Adventure Guild has asked me to give you this coupon to congratulate you on your achievement. Take it to a Grand Master and a soldier will provide you with whatever you need.
+</body></html>

+ 204 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange1/KamaelChange1.java

@@ -0,0 +1,204 @@
+/*
+ * Copyright (C) 2004-2013 L2J DataPack
+ * 
+ * This file is part of L2J DataPack.
+ * 
+ * L2J DataPack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * L2J DataPack is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package village_master.KamaelChange1;
+
+import ai.npc.AbstractNpcAI;
+
+import com.l2jserver.gameserver.datatables.CategoryData;
+import com.l2jserver.gameserver.enums.CategoryType;
+import com.l2jserver.gameserver.enums.PcRace;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.base.ClassId;
+import com.l2jserver.gameserver.model.quest.QuestState;
+
+/**
+ * Kamael class transfer AI.
+ * @author Adry_85
+ */
+public final class KamaelChange1 extends AbstractNpcAI
+{
+	// NPCs
+	private static int[] NPCS =
+	{
+		32191, // Hanarin
+		32193, // Yeniche
+		32196, // Gershwin
+		32199, // Holst
+		32202, // Khadava
+	};
+	
+	// Items
+	private static final int SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE = 8869;
+	private static final int GWAINS_RECOMMENDATION = 9753;
+	private static final int STEELRAZOR_EVALUATION = 9772;
+	
+	private KamaelChange1()
+	{
+		super(KamaelChange1.class.getSimpleName(), "village_master");
+		addStartNpc(NPCS);
+		addTalkId(NPCS);
+	}
+	
+	@Override
+	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = null;
+		switch (event)
+		{
+			case "32191-02.htm": // master_all_kamael003m
+			case "32191-03.htm": // master_all_kamael006ma
+			case "32191-04.htm": // master_all_kamael007ma
+			case "32191-05.htm": // master_all_kamael007mait
+			case "32191-06.htm": // master_all_kamael003f
+			case "32191-07.htm": // master_all_kamael006fa
+			case "32191-08.htm": // master_all_kamael007fa
+			case "32191-09.htm": // master_all_kamael007fa
+			{
+				htmltext = event;
+				break;
+			}
+			case "125":
+			case "126":
+			{
+				htmltext = ClassChangeRequested(player, Integer.valueOf(event));
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	private String ClassChangeRequested(L2PcInstance player, int classId)
+	{
+		String htmltext = null;
+		if (CategoryData.getInstance().isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP, classId))
+		{
+			if (player.isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP))
+			{
+				htmltext = "32191-10.htm"; // master_all_kamael004a
+			}
+			else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP))
+			{
+				htmltext = "32191-11.htm"; // master_all_kamael005a
+			}
+			else if (player.isInCategory(CategoryType.KAMAEL_FOURTH_CLASS_GROUP))
+			{
+				htmltext = "32191-12.htm"; // master_all_kamael100a
+			}
+			else if ((classId == 125) && (player.getClassId() == ClassId.maleSoldier))
+			{
+				QuestState qs = player.getQuestState("62_PathoftheTrooper");
+				if (player.getLevel() < 20)
+				{
+					if ((qs != null) && qs.isCompleted())
+					{
+						htmltext = "32191-13.htm"; // master_all_kamael009ma
+					}
+					else
+					{
+						htmltext = "32191-14.htm"; // master_all_kamael008ma
+					}
+				}
+				else if ((qs == null) || !qs.isCompleted())
+				{
+					htmltext = "32191-15.htm"; // master_all_kamael010ma
+				}
+				else
+				{
+					takeItems(player, GWAINS_RECOMMENDATION, -1);
+					player.setClassId(125);
+					player.setBaseClass(125);
+					// SystemMessage and cast skill is done by setClassId
+					player.broadcastUserInfo();
+					giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15);
+					htmltext = "32191-16.htm"; // master_all_kamael011ma
+				}
+			}
+			else if ((classId == 126) && (player.getClassId() == ClassId.femaleSoldier))
+			{
+				QuestState qs = player.getQuestState("63_PathoftheWarder");
+				if (player.getLevel() < 20)
+				{
+					if ((qs != null) && qs.isCompleted())
+					{
+						htmltext = "32191-17.htm"; // master_all_kamael008fa
+					}
+					else
+					{
+						htmltext = "32191-18.htm"; // master_all_kamael009fa
+					}
+				}
+				else if ((qs == null) || !qs.isCompleted())
+				{
+					htmltext = "32191-19.htm"; // master_all_kamael010fa
+				}
+				else
+				{
+					takeItems(player, STEELRAZOR_EVALUATION, -1);
+					player.setClassId(126);
+					player.setBaseClass(126);
+					// SystemMessage and cast skill is done by setClassId
+					player.broadcastUserInfo();
+					giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15);
+					htmltext = "32191-20.htm"; // master_all_kamael011fa
+				}
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = null;
+		if (player.getRace() != PcRace.Kamael)
+		{
+			htmltext = "32191-01.htm"; // master_all_kamael002a
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_FIRST_CLASS_GROUP))
+		{
+			if (player.getClassId() == ClassId.maleSoldier)
+			{
+				htmltext = "32191-02.htm"; // master_all_kamael003m
+			}
+			else if (player.getClassId() == ClassId.femaleSoldier)
+			{
+				htmltext = "32191-06.htm"; // master_all_kamael003f
+			}
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP))
+		{
+			htmltext = "32191-10.htm"; // master_all_kamael004a
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP))
+		{
+			htmltext = "32191-11.htm"; // master_all_kamael005a
+		}
+		else
+		{
+			htmltext = "32191-12.htm"; // master_all_kamael100a
+		}
+		return htmltext;
+	}
+	
+	public static void main(String[] args)
+	{
+		new KamaelChange1();
+	}
+}

+ 3 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-01.htm

@@ -0,0 +1,3 @@
+<html><body>
+You cannot be one of us. Only those who are Kamael by birth can learn our skills and techniques. Please look elsewhere.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-02.htm

@@ -0,0 +1,4 @@
+<html><body>
+You are not yet ready to become a Trooper.<br>
+Continue your training!
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-03.htm

@@ -0,0 +1,4 @@
+<html><body>
+You still lack sufficient training.<br>
+To be my follower, you must be proficient in some very basic skills.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-04.htm

@@ -0,0 +1,4 @@
+<html><body>
+You are not a Trooper, and I only teach Troopers.<br>
+If you are a Warder, go find a Grand Master who is the same gender as you.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-05.htm

@@ -0,0 +1,6 @@
+<html><body>
+If you have been trained as a Trooper, it is now time for you to decide what path you shall follow.<br>
+You may become a Berserker and learn to master the sword or follow the traditional path of Rapier and magic. Only Kamael men may become Berserkers.<br>
+<a action="bypass -h Quest KamaelChange2 32145-06.htm">Ask about Berserkers.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-08.htm">Ask about Soul Breakers.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-06.htm

@@ -0,0 +1,7 @@
+<html><body>
+Berserkers seek mastery of the ancient Sword you are familiar with from the time you spent as a Trooper.<br>
+This path is only open to male Kamael, as it relies on sheer physical strength and raw power. If you seek pure power, this is the right path for you.<br>
+<a action="bypass -h Quest KamaelChange2 32145-07.htm">Ask about how to become a Berserker.</a><br>
+<a action="bypass -h Quest KamaelChange2 127">Transfer to Berserker.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-05.htm">Back.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-07.htm

@@ -0,0 +1,7 @@
+<html><body>
+To become a Berserker, you need the recommendation of Master Olkrus.<br>
+If you are not at least level 40, however, his recommendation will do you no good.<br>
+All other requirements or exams are in Olkrus' hands, so ask him for a thorough explanation.<br>
+If you are not at least level 39, do not even bother speaking with him.<br>
+<a action="bypass -h Quest KamaelChange2 32145-05.htm">Back.</a>
+</body></html>

+ 8 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-08.htm

@@ -0,0 +1,8 @@
+<html><body>
+Soul Breakers cherish and protect the ancient combat methods of the Kamael, with Sword in one hand and magic in the other. Any Kamael can learn this combat skill.<br>
+Whereas other professions require both physical development and knowledge of traps, becoming a Soul Breaker offers the chance to learn traditional magic.<br>
+If you wish to test yourself in combat with other Kamael, this is the path for you.<br><br>
+<a action="bypass -h Quest KamaelChange2 32145-09.htm">Ask about how to become a Soul Breaker.</a><br>
+<a action="bypass -h Quest KamaelChange2 128">Transfer to a Soul Breaker.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-05.htm">Back.</a>
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-09.htm

@@ -0,0 +1,5 @@
+<html><body>
+To become a Soul Breaker, you must obtain a letter of recommendation from Grand Master Vitus in the Town of Giran.<br>
+You must also have the necessary experience to make the change.<br>
+Once you have reached level 40, seek out Vitus and he will tell you what to do.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-10.htm

@@ -0,0 +1,4 @@
+<html><body>
+Do not pretend that you are a Warder!<br>
+I am only able to teach Warders, you should know. Even if you are Kamael, if you are a different class I cannot teach you.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-11.htm

@@ -0,0 +1,6 @@
+<html><body>
+If you have been properly trained as a Warder, now is the time you must choose the path you will walk.<br>
+You may become a Soul Breaker and awake the power of magic contained in our Kamael blood, or you may refine your skill with Crossbow and Trap as an Arbalester. Only Kamael women may become Arbalesters.<br>
+<a action="bypass -h Quest KamaelChange2 32145-12.htm">Ask about Arbalesters.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-14.htm">Ask about Soul Breakers.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-12.htm

@@ -0,0 +1,7 @@
+<html><body>
+Arbalester is a class that grew from the arbalest and trap skills possessed exclusively by Kamael females.<br>
+You can also acquire other minor skills useful for survival. Rather than facing an enemy one-on-one, however, this class is more suitable for investigation or espionage.<br>
+<a action="bypass -h Quest KamaelChange2 32145-13.htm">Ask about how to become an Arbalester.</a><br>
+<a action="bypass -h Quest KamaelChange2 130">Change class to Arbalester.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-11.htm">Back.</a>
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-13.htm

@@ -0,0 +1,6 @@
+<html><body>
+To become an Arbalester, you must pass a very special exam. Find Master Lindy in Dion Castle Village.<br>
+Once you have earned her recommendation and have reached level 40, I will confirm you as an Arbalester.<br>
+To meet Master Lindy, you must be at least level 39, however.<br>
+<a action="bypass -h Quest KamaelChange2 32145-11.htm">Back.</a>
+</body></html>

+ 8 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-14.htm

@@ -0,0 +1,8 @@
+<html><body>
+Soul Breakers cherish and protect the ancient combat methods of the Kamael...<br>
+Sword in one hand and magic in the other. Any Kamael can learn this combat skill. Whereas other professions require both physical development and knowledge of traps, becoming a Soul Breaker offers the chance to learn traditional magic.<br>
+If you test yourself in combat with other Kamael, this is the best path for you.<br>
+<a action="bypass -h Quest KamaelChange2 32145-15.htm">Ask about how to become a Soul Breaker.</a><br>
+<a action="bypass -h Quest KamaelChange2 129">Transfer to a Soul Breaker.</a><br>
+<a action="bypass -h Quest KamaelChange2 32145-11.htm">Back.</a>
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-15.htm

@@ -0,0 +1,5 @@
+<html><body>
+To become a Soul Breaker, you must obtain a letter of recommendation from Grand Master Vitus in the Town of Giran.<br>
+You must also have the necessary experience to make the change.<br>
+Once you have reached level 40, seek out Vitus and he will tell you what to do.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-16.htm

@@ -0,0 +1,4 @@
+<html><body>
+You have already chosen your path, haven't you?<br>
+Whether you have chosen the path of the Berserker or the Soul Breaker, perseverance is the key to success.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-17.htm

@@ -0,0 +1,4 @@
+<html><body>
+You have chosen your path. It is pointless to think of anything else.<br>
+Seize the opportunity before you -- work harder!
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-18.htm

@@ -0,0 +1,4 @@
+<html><body>
+Hmm... Are you questioning my past achievements?<br>
+I have heard how your power and skill have already surpassed those of the Spiculas.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-19.htm

@@ -0,0 +1,4 @@
+<html><body>
+Do you have any questions about the second duty?<br>
+You have already acquired our people's long lost knowledge and skill, have you not?
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-20.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Berserker, you must be higher than level 40 and have a letter of recommendation from Master Olkrus of the Old Castle.<br>
+You do not meet either requirement.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-21.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Berserker, you must be higher than level 40 and have a letter of recommendation from Master OlKrus of the Old Castle.<br>
+You have obtained the recommendation but still lack the necessary skills. Come back when you reach level 40.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-22.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Berserker, you must be higher than level 40 and have obtained a letter of recommendation.<br>
+You have reached an acceptable level, so find Master Orkurus in the Old Castle village and win his approval.
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-23.htm

@@ -0,0 +1,5 @@
+<html><body>
+I've read the recommendation, and both it and the necessary skills are in order.<br>
+Welcome to the Path of the Sword, my friend! Rely on the other Masters to further develop your skills.<br>
+The Adventurers Guild has asked me to give you this coupon to congratulate you on your achievement. Take it to the Grand Master and a soldier will provide you with a useable weapon.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-24.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must be higher than level 40 and have obtained a letter of recommendation.<br>
+You do not meet either requirement.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-25.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must be higher than level 40 and have obtained a letter of recommendation.<br>
+You have the recommendation, but your skills are still insufficient to allow you to become a Soul Breaker. Come back when you are higher than level 40.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-26.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must have reached at least level 40 and have obtained a letter of recommendation.<br>
+You have the experience, so you should speak with Grand Master Vitus in the Town of Giran about the letter.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-27.htm

@@ -0,0 +1,6 @@
+<html><body>
+You have met all the requirements.<br>
+Congratulations, Soul Breaker!<br>
+It will not be easy to master both swordcraft and magic, but it will definitely be worth the time and effort. Make the Kamael people proud!<br>
+The Adventurers Guild has asked me to give you this coupon to congratulate you on your achievement. Take it to the Grand Master and a soldier will provide you with whatever you need.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-28.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must pass a special test and be higher that level 40.<br>
+You do not meet either requirement.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-29.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must be higher than level 40 and have obtained a letter of recommendation.<br>
+You have the letter, but lack the skill to be admitted. Come back when you are higher than level 40.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-30.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become a Soul Breaker, you must have reached at least level 40 and have obtained a letter of recommendation.<br>
+You have the experience, so you should speak with Grand Master Vitus in the Town of Giran about the letter.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-31.htm

@@ -0,0 +1,6 @@
+<html><body>
+You have met all the requirements.<br>
+Congratulations, Soul Breaker!<br>
+It will not be easy to master both swordcraft and magic, but it will definitely be worth the time and effort. Make the Kamael people proud!<br>
+The Adventurers Guild has asked me to give you this coupon to congratulate you on your achievement. Take it to the Grand Master and a soldier will provide you with a useable weapon.
+</body></html>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-28.htm → L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-32.htm

@@ -1,4 +1,4 @@
 <html><body>
-To become an Arbalester, you must be higher than level 40 and hae obtained a letter of recommendation from Master Lindy.<br>
+To become an Arbalester, you must be higher than level 40 and have obtained a letter of recommendation from Master Lindy.<br>
 You do not meet either requirement.
 </body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-33.htm

@@ -0,0 +1,5 @@
+<html><body>
+To become an Arbalester, you must be higher than level 40 and have a letter of recommendation from Master Lindy.<br>
+You have Master Lindy's recommendation but still lack the skills necessary.<br>
+Come back when you are higher than level 40.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-34.htm

@@ -0,0 +1,4 @@
+<html><body>
+To become an Arbalester, you must be higher than level 40 and have obtained the approval of Master Lindy.<br>
+You have reached an acceptable level, so find Master Lindy in Dion Castle and win her recommendation.
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/32145-35.htm

@@ -0,0 +1,6 @@
+<html><body>
+You have passed Lindy's exam.<br>
+Congratulations on becoming an Arbalester! This is not an easy path, but it is filled with rich rewards.<br>
+You will have to rely on your wits and skill rather than brute force, but in time you will become a formidable adversary.<br>
+The Adventurers Guild has asked me to give you this coupon to congratulate you on your achievement. Take it to the Grand Master and a soldier will provide you with a suitable fighting servant.
+</body></html>

+ 402 - 0
L2J_DataPack_BETA/dist/game/data/scripts/village_master/KamaelChange2/KamaelChange2.java

@@ -0,0 +1,402 @@
+/*
+ * Copyright (C) 2004-2013 L2J DataPack
+ * 
+ * This file is part of L2J DataPack.
+ * 
+ * L2J DataPack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * L2J DataPack is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package village_master.KamaelChange2;
+
+import ai.npc.AbstractNpcAI;
+
+import com.l2jserver.gameserver.datatables.CategoryData;
+import com.l2jserver.gameserver.enums.CategoryType;
+import com.l2jserver.gameserver.enums.PcRace;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.base.ClassId;
+import com.l2jserver.gameserver.model.quest.QuestState;
+import com.l2jserver.gameserver.util.Util;
+
+/**
+ * Kamael class transfer AI.
+ * @author Adry_85
+ */
+public final class KamaelChange2 extends AbstractNpcAI
+{
+	// NPCs
+	private static int[] NPCS_MALE =
+	{
+		32146, // Valpor
+		32205, // Aetonic
+		32209, // Ferdinand
+		32213, // Vitus
+		32217, // Barta
+		32221, // Brome
+		32225, // Taine
+		32229, // Hagel
+		32233, // Zoldart
+	};
+	private static int[] NPCS_FEMALE =
+	{
+		32145, // Maynard
+		32206, // Pieche
+		32210, // Eddy
+		32214, // Meldina
+		32218, // Miya
+		32222, // Liane
+		32226, // Raula
+		32230, // Ceci
+		32234, // Nizer
+	};
+	
+	// Items
+	private static final int SHADOW_ITEM_EXCHANGE_COUPON_C_GRADE = 8870;
+	private static final int ORKURUS_RECOMMENDATION = 9760;
+	private static final int KAMAEL_INQUISITOR_MARK = 9782;
+	private static final int SOUL_BREAKER_CERTIFICATE = 9806;
+	
+	private KamaelChange2()
+	{
+		super(KamaelChange2.class.getSimpleName(), "village_master");
+		addStartNpc(NPCS_MALE);
+		addStartNpc(NPCS_FEMALE);
+		addTalkId(NPCS_MALE);
+		addTalkId(NPCS_FEMALE);
+	}
+	
+	@Override
+	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = null;
+		switch (event)
+		{
+			case "32145-05.htm": // master_all_kamael003t
+			case "32145-06.htm": // master_all_kamael006ta
+			case "32145-07.htm": // master_all_kamael007ta
+			case "32145-08.htm": // master_all_kamael006msa
+			case "32145-09.htm": // master_all_kamael007msa
+			case "32145-11.htm": // master_all_kamael003w
+			case "32145-12.htm": // master_all_kamael006wa
+			case "32145-13.htm": // master_all_kamael007wa
+			case "32145-14.htm": // master_all_kamael006fsa
+			case "32145-15.htm": // master_all_kamael007fsa
+			{
+				htmltext = event;
+				break;
+			}
+			case "127":
+			case "128":
+			case "129":
+			case "130":
+			{
+				htmltext = ClassChangeRequested(player, npc, Integer.valueOf(event));
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	private String ClassChangeRequested(L2PcInstance player, L2Npc npc, int classId)
+	{
+		String htmltext = null;
+		if (CategoryData.getInstance().isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP, classId))
+		{
+			if (player.isInCategory(CategoryType.KAMAEL_FIRST_CLASS_GROUP))
+			{
+				if (Util.contains(NPCS_MALE, npc.getId()))
+				{
+					htmltext = "32145-02.htm"; // master_all_kamael012b
+				}
+				else
+				{
+					htmltext = "32145-03.htm"; // master_all_kamael012c
+				}
+			}
+			else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP))
+			{
+				if (Util.contains(NPCS_MALE, npc.getId()))
+				{
+					htmltext = "32145-16.htm"; // master_all_kamael005b
+				}
+				else
+				{
+					htmltext = "32145-17.htm"; // master_all_kamael005c
+				}
+			}
+			else if (player.isInCategory(CategoryType.KAMAEL_FOURTH_CLASS_GROUP))
+			{
+				if (Util.contains(NPCS_MALE, npc.getId()))
+				{
+					htmltext = "32145-18.htm"; // master_all_kamael100b
+				}
+				else
+				{
+					htmltext = "32145-19.htm"; // master_all_kamael100c
+				}
+			}
+			else if (player.getClassId() == ClassId.trooper)
+			{
+				if (Util.contains(NPCS_MALE, npc.getId()))
+				{
+					if (classId == 127)
+					{
+						QuestState qs = player.getQuestState("64_CertifiedBerserker");
+						if (player.getLevel() < 40)
+						{
+							if ((qs != null) && qs.isCompleted())
+							{
+								htmltext = "32145-20.htm"; // master_all_kamael008ta
+							}
+							else
+							{
+								htmltext = "32145-21.htm"; // master_all_kamael009ta
+							}
+						}
+						else if ((qs == null) || !qs.isCompleted())
+						{
+							htmltext = "32145-22.htm"; // master_all_kamael010ta
+						}
+						else
+						{
+							takeItems(player, ORKURUS_RECOMMENDATION, -1);
+							player.setClassId(127);
+							player.setBaseClass(127);
+							// SystemMessage and cast skill is done by setClassId
+							player.broadcastUserInfo();
+							giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_C_GRADE, 15);
+							htmltext = "32145-23.htm"; // master_all_kamael011ta
+						}
+					}
+					else if (classId == 128)
+					{
+						QuestState qs = player.getQuestState("65_CertifiedSoulBreaker");
+						if (player.getLevel() < 40)
+						{
+							if ((qs != null) && qs.isCompleted())
+							{
+								htmltext = "32145-24.htm"; // master_all_kamael008msa
+							}
+							else
+							{
+								htmltext = "32145-25.htm"; // master_all_kamael009msa
+							}
+						}
+						else if ((qs == null) || !qs.isCompleted())
+						{
+							htmltext = "32145-26.htm"; // master_all_kamael010msa
+						}
+						else
+						{
+							takeItems(player, SOUL_BREAKER_CERTIFICATE, -1);
+							player.setClassId(128);
+							player.setBaseClass(128);
+							// SystemMessage and cast skill is done by setClassId
+							player.broadcastUserInfo();
+							giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_C_GRADE, 15);
+							htmltext = "32145-27.htm"; // master_all_kamael011msa
+						}
+					}
+				}
+				else
+				{
+					htmltext = "32145-10.htm"; // master_all_kamael002c
+				}
+			}
+			else if (player.getClassId() == ClassId.warder)
+			{
+				if (Util.contains(NPCS_MALE, npc.getId()))
+				{
+					htmltext = "32145-04.htm"; // master_all_kamael002b
+				}
+				else
+				{
+					if (classId == 129)
+					{
+						QuestState qs = player.getQuestState("65_CertifiedSoulBreaker");
+						if (player.getLevel() < 40)
+						{
+							if ((qs != null) && qs.isCompleted())
+							{
+								htmltext = "32145-28.htm"; // master_all_kamael008fsa
+							}
+							else
+							{
+								htmltext = "32145-29.htm"; // master_all_kamael009fsa
+							}
+						}
+						else if ((qs == null) || !qs.isCompleted())
+						{
+							htmltext = "32145-30.htm"; // master_all_kamael010fsa
+						}
+						else
+						{
+							takeItems(player, SOUL_BREAKER_CERTIFICATE, -1);
+							player.setClassId(129);
+							player.setBaseClass(129);
+							// SystemMessage and cast skill is done by setClassId
+							player.broadcastUserInfo();
+							giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_C_GRADE, 15);
+							htmltext = "32145-31.htm"; // master_all_kamael011fsa
+						}
+					}
+					else if (classId == 130)
+					{
+						QuestState qs = player.getQuestState("66_CertifiedArbalester");
+						if (player.getLevel() < 40)
+						{
+							if ((qs != null) && qs.isCompleted())
+							{
+								htmltext = "32145-32.htm"; // master_all_kamael008wa
+							}
+							else
+							{
+								htmltext = "32145-33.htm"; // master_all_kamael009wa
+							}
+						}
+						else if ((qs == null) || !qs.isCompleted())
+						{
+							htmltext = "32145-34.htm"; // master_all_kamael010wa
+						}
+						else
+						{
+							takeItems(player, KAMAEL_INQUISITOR_MARK, -1);
+							player.setClassId(130);
+							player.setBaseClass(130);
+							// SystemMessage and cast skill is done by setClassId
+							player.broadcastUserInfo();
+							giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_C_GRADE, 15);
+							htmltext = "32145-35.htm"; // master_all_kamael011wa
+						}
+					}
+				}
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = null;
+		if (player.getRace() != PcRace.Kamael)
+		{
+			htmltext = "32145-01.htm"; // master_all_kamael002a
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_FIRST_CLASS_GROUP))
+		{
+			if (player.getClassId() == ClassId.maleSoldier)
+			{
+				htmltext = "32145-02.htm"; // master_all_kamael012b
+			}
+			else if (player.getClassId() == ClassId.femaleSoldier)
+			{
+				htmltext = "32145-03.htm"; // master_all_kamael012c
+			}
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP))
+		{
+			if (Util.contains(NPCS_MALE, npc.getId()))
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_FEMALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-04.htm"; // master_all_kamael002b
+					return htmltext;
+				}
+				
+				if (player.getClassId() == ClassId.trooper)
+				{
+					htmltext = "32145-05.htm"; // master_all_kamael003t
+				}
+				else if (player.getClassId() == ClassId.warder)
+				{
+					htmltext = "32145-02.htm"; // master_all_kamael012b
+				}
+			}
+			else
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_MALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-10.htm"; // master_all_kamael002c
+					return htmltext;
+				}
+				
+				if (player.getClassId() == ClassId.trooper)
+				{
+					htmltext = "32145-03.htm"; // master_all_kamael012c
+				}
+				else if (player.getClassId() == ClassId.warder)
+				{
+					htmltext = "32145-11.htm"; // master_all_kamael003w
+				}
+			}
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP))
+		{
+			if (Util.contains(NPCS_MALE, npc.getId()))
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_MALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-16.htm"; // master_all_kamael005b
+				}
+				else
+				{
+					htmltext = "32145-04.htm"; // master_all_kamael002b
+				}
+			}
+			else
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_FEMALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-17.htm"; // master_all_kamael005c
+				}
+				else
+				{
+					htmltext = "32145-10.htm"; // master_all_kamael002c
+				}
+			}
+		}
+		else if (player.isInCategory(CategoryType.KAMAEL_FOURTH_CLASS_GROUP))
+		{
+			if (Util.contains(NPCS_MALE, npc.getId()))
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_MALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-18.htm"; // master_all_kamael100b
+				}
+				else
+				{
+					htmltext = "32145-04.htm"; // master_all_kamael002b
+				}
+			}
+			else
+			{
+				if (player.isInCategory(CategoryType.KAMAEL_FEMALE_MAIN_OCCUPATION))
+				{
+					htmltext = "32145-19.htm"; // master_all_kamael100c
+				}
+				else
+				{
+					htmltext = "32145-10.htm"; // master_all_kamael002c
+				}
+			}
+		}
+		return htmltext;
+	}
+	
+	public static void main(String[] args)
+	{
+		new KamaelChange2();
+	}
+}

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-01.htm

@@ -1,5 +0,0 @@
-<html><body>Vice hierarch Casca:<br>
-Since our race is distinguished by gender, which denotes both physical and spiritual differences, Kamael men are meant to learn their skills from Dragoons while women learn them from Warders.<br>
-You, my friend, must now walk the path of the Dragoon. Would you like to hear more?<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-02.htm">Listen to explanation about Dragoons.</a>
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-02.htm

@@ -1,6 +0,0 @@
-<html><body>
-Troopers are blah.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-03.htm">Description of the Trooper</a><br>
-<a action="bypass -h Quest kamael_occupation_change DR">Change occupations to Trooper.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-01.htm">Return</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-03.htm

@@ -1,5 +0,0 @@
-<html><body>
-Troopers are blah.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-04.htm">Explanation of quest</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-02.htm">Return</a>
-</body></html>

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-04.htm

@@ -1,4 +0,0 @@
-<html><body>
-You must pass one test to obtain a mark, for a change.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-03.htm">Return</a>
-</body></html>

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-05.htm

@@ -1,4 +0,0 @@
-<html><body>
-You kamael girl, click here.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-06.htm">Warder</a>
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-06.htm

@@ -1,6 +0,0 @@
-<html><body>
-Say with me: war-der.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-07.htm">Description of the Warder</a><br>
-<a action="bypass -h Quest kamael_occupation_change WA">Change occupations to a Warder.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-05.htm">Return</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-07.htm

@@ -1,5 +0,0 @@
-<html><body>
-Warders are sexy, warders make quests.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-08.htm">Ask about quest.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-06.htm">Return</a>
-</body></html>

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-08.htm

@@ -1,4 +0,0 @@
-<html><body>
-Warders do grind to complete their quests.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-07.htm">Return</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-09.htm

@@ -1,5 +0,0 @@
-<html><body>
-You are a male.. wait, you're a Trooper. Click:<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-10.htm">Berserker</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-38.htm">Soul Breaker</a>
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-10.htm

@@ -1,6 +0,0 @@
-<html><body>
-Berserkers are r0x.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-11.htm">Description of the Berserkers</a><br>
-<a action="bypass -h Quest kamael_occupation_change BE">Become Berserker.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-09.htm">Return</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-11.htm

@@ -1,5 +0,0 @@
-<html><body>
-Berserkers are grown Troopers.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-12.htm">Ask about the mark.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-10.htm">Return</a>
-</body></html>

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-12.htm

@@ -1,4 +0,0 @@
-<html><body>
-You click, you grind, you finish quest. Surprise!<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-11.htm">Return</a>
-</body></html>

+ 0 - 7
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-13.htm

@@ -1,7 +0,0 @@
-<html><body>
-Arbalesters master the ancient female Kamael skills of Crossbow and Trap.<br>
-Besides those, Arbalesters also learn numerous skills necessary for survival. Rather than fighting the enemy face to face, they find victory theough stealth, knowledge and covert activities.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-14.htm">Ask about how to become a Arbalester.</a><br>
-<a action="bypass -h Quest kamael_occupation_change AR">Transfer to Arbalester.</a><br>
-<a action="bypass -h Quest kamael_occupation_change 32139-35.htm">Back.</a>
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-14.htm

@@ -1,6 +0,0 @@
-<html><body>
-To become an Arbalester, you must pass a very special exam. Find Master Rindy in Town of Dion.<br>
-Once you have earned her recommendation and have reached level 40, I will confirm you as as Arbalester.<br>
-To meet Master Rindy, you must be at least level 39, however.<br>
-<a action="bypass -h Quest kamael_occupation_change 32139-13.htm">Back.</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-16.htm

@@ -1,5 +0,0 @@
-<html><body>
-Your level is not high enough and you haven't even collected all of the marks.<br>
-Come back after collecting the marks and after more training.<br>
-If you fulfill these obligations I will change your occupation to a Trooper.
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-17.htm

@@ -1,5 +0,0 @@
-<html><body>
-Your level is not high enough and you have collected all of the marks.<br>
-Come back after more training.<br>
-If you fulfill these obligations I will change your occupation to a Trooper.
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-18.htm

@@ -1,5 +0,0 @@
-<html><body>
-Your level is high enough but you haven't collected your marks.<br>
-Come back after collecting the marks.<br>
-If you fulfill these obligations I will change your occupation to a Trooper.
-</body></html>

+ 0 - 3
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-19.htm

@@ -1,3 +0,0 @@
-<html><body>
-Congratulations! Now you have finally become a proud Trooper. Thanks for playing L2J.
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/village_master/kamael_occupation_change/32139-20.htm

@@ -1,5 +0,0 @@
-<html><body>
-Your level is not high enough and you haven't even collected all of the marks.<br>
-Come back after collecting the marks and after more training.<br>
-If you fulfill these obligations I will change your occupation to a Warder.
-</body></html>

Неке датотеке нису приказане због велике количине промена