Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.57 KB | None | 0 0
  1. package server.model.players.skills.crafting;
  2.  
  3. import server.model.players.Client;
  4.  
  5. /**
  6. *
  7. * @author South-Park
  8. *
  9. */
  10.  
  11. public class ArmorTrimming {
  12. Client c;
  13. public ArmorTrimming(Client c) {
  14. this.c = c;
  15. }
  16.  
  17. public static void makeGoldTrim(Client c) {
  18. String rune = GetForBars(2358, 1500, c);
  19. String addy = GetForBars(2358, 1000, c);
  20. String black = GetForBars(2358, 750, c);
  21. c.getPA().sendFrame126(rune + "" + rune, 1112);
  22. c.getPA().sendFrame126(black + "" + black, 1109);
  23. c.getPA().sendFrame126(addy + "" + addy, 1110);
  24. c.getPA().sendFrame126(rune + "" + rune, 1118);
  25. c.getPA().sendFrame126(rune + "" + rune, 1111);
  26. c.getPA().sendFrame126(rune + "" + rune, 1095);
  27. c.getPA().sendFrame126(rune + "" + rune, 1115);
  28. c.getPA().sendFrame126(rune + "" + rune, 1090);
  29. c.getPA().sendFrame126(addy + "" + addy, 1113);
  30. c.getPA().sendFrame126(rune + "" + rune, 1116);
  31. c.getPA().sendFrame126(rune + "" + rune, 1114);
  32. c.getPA().sendFrame126(addy + "" + addy, 1089);
  33. c.getPA().sendFrame126(addy + "" + addy, 8428);
  34. c.getPA().sendFrame126(addy + "" + addy, 1124);
  35. c.getPA().sendFrame126(black + "" + black, 1125);
  36. c.getPA().sendFrame126(black + "" + black, 1126);
  37. c.getPA().sendFrame126(black + "" + black, 1127);
  38. c.getPA().sendFrame126(black + "" + black, 1128);
  39. c.getPA().sendFrame126(addy + "" + addy, 1129);
  40. c.getPA().sendFrame126(addy + "" + addy, 1130);
  41. c.getPA().sendFrame126(rune + "" + rune, 1131);
  42. c.getPA().sendFrame126(black + "" + black, 13357);
  43. c.getPA().sendFrame126(black + "" + black, 11459);
  44. c.getPA().sendFrame126("Gold Trimming Armor", 1117);
  45. c.getPA().sendFrame126(
  46. GetForlvl(88, c) + "~~Trim Shop Test~~" + GetForlvl(18, c), 1101);
  47. c.getPA().sendFrame126(
  48. GetForlvl(99, c) + "Plate Legs" + GetForlvl(16, c), 1099);
  49. c.getPA().sendFrame126(
  50. GetForlvl(99, c) + "Plate Legs" + GetForlvl(16, c), 1100);
  51. c.getPA().sendFrame126(
  52. GetForlvl(99, c) + "" + GetForlvl(14, c), 1088);
  53. c.getPA().sendFrame126(
  54. GetForlvl(97, c) + "" + GetForlvl(12, c), 1105);
  55. c.getPA().sendFrame126(
  56. GetForlvl(99, c) + "Plate Legs" + GetForlvl(11, c), 1098);
  57. c.getPA().sendFrame126(
  58. GetForlvl(95, c) + "" + GetForlvl(10, c), 1092);
  59. c.getPA().sendFrame126(
  60. GetForlvl(99, c) + "Platebody" + GetForlvl(9, c), 1083);
  61. c.getPA().sendFrame126(
  62. GetForlvl(99, c) + "Kite Shield" + GetForlvl(8, c), 1104);
  63. c.getPA().sendFrame126(
  64. GetForlvl(99, c) + "Kite Shield" + GetForlvl(7, c), 1103);
  65. c.getPA().sendFrame126(
  66. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(7, c), 1106);
  67. c.getPA().sendFrame126(
  68. GetForlvl(91, c) + "" + GetForlvl(6, c), 1086);
  69. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(5, c),
  70. 1087);
  71. c.getPA().sendFrame126(
  72. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(5, c), 1108);
  73. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(4, c),
  74. 1085);
  75. c.getPA().sendFrame126(GetForlvl(99, c) + "Bolts" + GetForlvl(4, c),
  76. 9144);
  77. c.getPA().sendFrame126(GetForlvl(89, c) + "" + GetForlvl(4, c),
  78. 13358);
  79. c.getPA().sendFrame126(
  80. GetForlvl(99, c) + "Kite Shield" + GetForlvl(3, c), 1102);
  81. c.getPA().sendFrame126(
  82. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(3, c), 1107);
  83. c.getPA().sendFrame126(GetForlvl(99, c) + "Platebody" + GetForlvl(2, c),
  84. 1093);
  85. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(1, c),
  86. 1094);
  87. c.getPA().sendFrame126(GetForlvl(99, c) + "" + GetForlvl(1, c),
  88. 8429);
  89. c.getPA()
  90. .sendFrame126(GetForlvl(99, c) + "Platebody" + GetForlvl(1, c), 1091);
  91. c.getPA().sendFrame34(2595, 0, 1119, 1); // Black (g)
  92. c.getPA().sendFrame34(2591, 0, 1120, 1); // Black (g)
  93. c.getPA().sendFrame34(2593, 0, 1121, 1); // Black (g)
  94. c.getPA().sendFrame34(2597, 0, 1122, 1); // Black (g)
  95. c.getPA().sendFrame34(3473, 0, 1123, 1); // Black (g)
  96. c.getPA().sendFrame34(2613, 1, 1119, 1); // Addy (g)
  97. c.getPA().sendFrame34(2607, 1, 1120, 1); // Addy (g)
  98. c.getPA().sendFrame34(2609, 1, 1121, 1); // Addy (g)
  99. c.getPA().sendFrame34(2611, 1, 1122, 1); // Addy (g)
  100. c.getPA().sendFrame34(3475, 1, 1123, 1); // Addy (g)
  101. c.getPA().sendFrame34(2619, 2, 1119, 1); // Rune (g)
  102. c.getPA().sendFrame34(2615, 2, 1120, 1); // Rune (g)
  103. c.getPA().sendFrame34(2617, 2, 1121, 1); // Rune (g)
  104. c.getPA().sendFrame34(2621, 2, 1122, 1); // Rune (g)
  105. c.getPA().sendFrame34(3476, 2, 1123, 1); // Rune (g)
  106. c.getPA().sendFrame34(-1, 3, 1119, 1); // longsword
  107. c.getPA().sendFrame34(-1, 3, 1120, 1); // battleaxe
  108. c.getPA().sendFrame34(-1, 3, 1121, 1); // platebody
  109. c.getPA().sendFrame34(-1, 3, 1122, 1); // kiteshield
  110. c.getPA().sendFrame34(-1, 4, 1119, 1); // 2h sword
  111. c.getPA().sendFrame34(-1, 4, 1122, 1); // nails
  112. c.getPA().sendFrame34(-1, 3, 1123, 1);
  113. c.getPA().sendFrame126("", 1135);
  114. c.getPA().sendFrame126("", 1134);
  115. c.getPA().sendFrame126("", 11461);
  116. c.getPA().sendFrame126("", 11459);
  117. c.getPA().sendFrame126("", 1132);
  118. c.getPA().sendFrame126("", 1096);
  119. c.getPA().showInterface(994);
  120. }
  121.  
  122. public static void makeSilverTrim(Client c) {
  123. String rune = GetForBars(2356, 1250, c);
  124. String addy = GetForBars(2356, 750, c);
  125. String black = GetForBars(2356, 500, c);
  126. c.getPA().sendFrame126(rune + "" + rune, 1112);
  127. c.getPA().sendFrame126(black + "" + black, 1109);
  128. c.getPA().sendFrame126(addy + "" + addy, 1110);
  129. c.getPA().sendFrame126(rune + "" + rune, 1118);
  130. c.getPA().sendFrame126(rune + "" + rune, 1111);
  131. c.getPA().sendFrame126(rune + "" + rune, 1095);
  132. c.getPA().sendFrame126(rune + "" + rune, 1115);
  133. c.getPA().sendFrame126(rune + "" + rune, 1090);
  134. c.getPA().sendFrame126(addy + "" + addy, 1113);
  135. c.getPA().sendFrame126(rune + "" + rune, 1116);
  136. c.getPA().sendFrame126(rune + "" + rune, 1114);
  137. c.getPA().sendFrame126(addy + "" + addy, 1089);
  138. c.getPA().sendFrame126(addy + "" + addy, 8428);
  139. c.getPA().sendFrame126(addy + "" + addy, 1124);
  140. c.getPA().sendFrame126(black + "" + black, 1125);
  141. c.getPA().sendFrame126(black + "" + black, 1126);
  142. c.getPA().sendFrame126(black + "" + black, 1127);
  143. c.getPA().sendFrame126(black + "" + black, 1128);
  144. c.getPA().sendFrame126(addy + "" + addy, 1129);
  145. c.getPA().sendFrame126(addy + "" + addy, 1130);
  146. c.getPA().sendFrame126(rune + "" + rune, 1131);
  147. c.getPA().sendFrame126(black + "" + black, 13357);
  148. c.getPA().sendFrame126(black + "" + black, 11459);
  149. c.getPA().sendFrame126("Silver Trimming Armor", 1117);
  150. c.getPA().sendFrame126(
  151. GetForlvl(88, c) + "~~Trim Shop Test~~" + GetForlvl(18, c), 1101);
  152. c.getPA().sendFrame126(
  153. GetForlvl(99, c) + "Plate Legs" + GetForlvl(16, c), 1099);
  154. c.getPA().sendFrame126(
  155. GetForlvl(99, c) + "Plate Legs" + GetForlvl(16, c), 1100);
  156. c.getPA().sendFrame126(
  157. GetForlvl(99, c) + "" + GetForlvl(14, c), 1088);
  158. c.getPA().sendFrame126(
  159. GetForlvl(97, c) + "" + GetForlvl(12, c), 1105);
  160. c.getPA().sendFrame126(
  161. GetForlvl(99, c) + "Plate Legs" + GetForlvl(11, c), 1098);
  162. c.getPA().sendFrame126(
  163. GetForlvl(95, c) + "" + GetForlvl(10, c), 1092);
  164. c.getPA().sendFrame126(
  165. GetForlvl(99, c) + "Platebody" + GetForlvl(9, c), 1083);
  166. c.getPA().sendFrame126(
  167. GetForlvl(99, c) + "Kite Shield" + GetForlvl(8, c), 1104);
  168. c.getPA().sendFrame126(
  169. GetForlvl(99, c) + "Kite Shield" + GetForlvl(7, c), 1103);
  170. c.getPA().sendFrame126(
  171. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(7, c), 1106);
  172. c.getPA().sendFrame126(
  173. GetForlvl(91, c) + "" + GetForlvl(6, c), 1086);
  174. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(5, c),
  175. 1087);
  176. c.getPA().sendFrame126(
  177. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(5, c), 1108);
  178. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(4, c),
  179. 1085);
  180. c.getPA().sendFrame126(GetForlvl(99, c) + "Bolts" + GetForlvl(4, c),
  181. 9144);
  182. c.getPA().sendFrame126(GetForlvl(89, c) + "" + GetForlvl(4, c),
  183. 13358);
  184. c.getPA().sendFrame126(
  185. GetForlvl(99, c) + "Kite Shield" + GetForlvl(3, c), 1102);
  186. c.getPA().sendFrame126(
  187. GetForlvl(99, c) + "Plate Skirt" + GetForlvl(3, c), 1107);
  188. c.getPA().sendFrame126(GetForlvl(99, c) + "Platebody" + GetForlvl(2, c),
  189. 1093);
  190. c.getPA().sendFrame126(GetForlvl(99, c) + "Full Helm" + GetForlvl(1, c),
  191. 1094);
  192. c.getPA().sendFrame126(GetForlvl(99, c) + "" + GetForlvl(1, c),
  193. 8429);
  194. c.getPA()
  195. .sendFrame126(GetForlvl(99, c) + "Platebody" + GetForlvl(1, c), 1091);
  196. c.getPA().sendFrame34(2587, 0, 1119, 1); // Black (t)
  197. c.getPA().sendFrame34(2583, 0, 1120, 1); // Black (t)
  198. c.getPA().sendFrame34(2585, 0, 1121, 1); // Black (t)
  199. c.getPA().sendFrame34(2589, 0, 1122, 1); // Black (t)
  200. c.getPA().sendFrame34(3472, 0, 1123, 1); // Black (t)
  201. c.getPA().sendFrame34(2605, 1, 1119, 1); // Addy (t)
  202. c.getPA().sendFrame34(2599, 1, 1120, 1); // Addy (t)
  203. c.getPA().sendFrame34(2601, 1, 1121, 1); // Addy (t)
  204. c.getPA().sendFrame34(2603, 1, 1122, 1); // Addy (t)
  205. c.getPA().sendFrame34(3474, 1, 1123, 1); // Addy (t)
  206. c.getPA().sendFrame34(2627, 2, 1119, 1); // Rune (t)
  207. c.getPA().sendFrame34(2623, 2, 1120, 1); // Rune (t)
  208. c.getPA().sendFrame34(2625, 2, 1121, 1); // Rune (t)
  209. c.getPA().sendFrame34(2629, 2, 1122, 1); // Rune (t)
  210. c.getPA().sendFrame34(3477, 2, 1123, 1); // Rune (t)
  211. c.getPA().sendFrame34(-1, 3, 1119, 1); // longsword
  212. c.getPA().sendFrame34(-1, 3, 1120, 1); // battleaxe
  213. c.getPA().sendFrame34(-1, 3, 1121, 1); // platebody
  214. c.getPA().sendFrame34(-1, 3, 1122, 1); // kiteshield
  215. c.getPA().sendFrame34(-1, 4, 1119, 1); // 2h sword
  216. c.getPA().sendFrame34(-1, 4, 1122, 1); // nails
  217. c.getPA().sendFrame34(-1, 3, 1123, 1);
  218. c.getPA().sendFrame126("", 1135);
  219. c.getPA().sendFrame126("", 1134);
  220. c.getPA().sendFrame126("", 11461);
  221. c.getPA().sendFrame126("", 11459);
  222. c.getPA().sendFrame126("", 1132);
  223. c.getPA().sendFrame126("", 1096);
  224. c.getPA().showInterface(994);
  225. }
  226.  
  227. private static String GetForlvl(int i, Client c) {
  228. if (c.playerLevel[12] >= i)
  229. return "@whi@";
  230.  
  231. return "@bla@";
  232. }
  233.  
  234. private static String GetForBars(int i, int j, Client c) {
  235. if (c.getItems().playerHasItem(i, j))
  236. return "@gre@";
  237.  
  238. return "@red@";
  239. }
  240.  
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement