Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
- -private static void ClassChangeCoin(Player player, String command)
- - {
- - String nameclasse = player.getTemplate().getClassName();
- -
- - String type = command;
- - if (type.equals("---SELECT---"))
- - {
- - NpcHtmlMessage html = new NpcHtmlMessage(0);
- - html.setFile("data/html/mods/class_changer/Class.htm");
- - player.sendPacket(html);
- - player.sendPacket(ActionFailed.STATIC_PACKET);
- - }
- - if (type.equals("Duelist"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 88)
- - {
- - player.sendMessage("Your class is already " + nameclasse + ".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(88);
- - if (!player.isSubClassActive())
- - player.setBaseClass(88);
- -
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("DreadNought"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 89)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(89);
- - if (!player.isSubClassActive())
- - player.setBaseClass(89);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Phoenix_Knight"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 90)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(90);
- - if (!player.isSubClassActive())
- - player.setBaseClass(90);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Hell_Knight"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 91)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(91);
- - if (!player.isSubClassActive())
- - player.setBaseClass(91);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Sagittarius"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 92)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(92);
- - if (!player.isSubClassActive())
- - player.setBaseClass(92);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Adventurer"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 93)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(93);
- - if (!player.isSubClassActive())
- - player.setBaseClass(93);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Archmage"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 94)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(94);
- - if (!player.isSubClassActive())
- - player.setBaseClass(94);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Soultaker"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 95)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(95);
- - if (!player.isSubClassActive())
- - player.setBaseClass(95);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Arcana_Lord"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 96)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(96);
- - if (!player.isSubClassActive())
- - player.setBaseClass(96);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Cardinal"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 97)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(97);
- - if (!player.isSubClassActive())
- - player.setBaseClass(97);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Hierophant"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 98)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(98);
- - if (!player.isSubClassActive())
- - player.setBaseClass(98);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Eva_Templar"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 99)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(99);
- - if (!player.isSubClassActive())
- - player.setBaseClass(99);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Sword_Muse"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 100)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(100);
- - if (!player.isSubClassActive())
- - player.setBaseClass(100);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Wind_Rider"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 101)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(101);
- - if (!player.isSubClassActive())
- - player.setBaseClass(101);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Moonli_Sentinel"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 102)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(102);
- - if (!player.isSubClassActive())
- - player.setBaseClass(102);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Mystic_Muse"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 103)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(103);
- - if (!player.isSubClassActive())
- - player.setBaseClass(103);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Elemental_Master"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 104)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(104);
- - if (!player.isSubClassActive())
- - player.setBaseClass(104);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Eva_Saint"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 105)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(105);
- - if (!player.isSubClassActive())
- - player.setBaseClass(105);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Shillien_Templar"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 106)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(106);
- - if (!player.isSubClassActive())
- - player.setBaseClass(106);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Spectral_Dancer"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 107)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(107);
- - if (!player.isSubClassActive())
- - player.setBaseClass(107);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Ghost_Hunter"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 108)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(108);
- - if (!player.isSubClassActive())
- - player.setBaseClass(108);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Ghost_Sentinel"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 109)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(109);
- - if (!player.isSubClassActive())
- - player.setBaseClass(109);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Storm_Screamer"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 110)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(110);
- - if (!player.isSubClassActive())
- - player.setBaseClass(110);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Spectral_Master"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 111)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(111);
- - if (!player.isSubClassActive())
- - player.setBaseClass(111);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Shillen_Saint"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 112)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(112);
- - if (!player.isSubClassActive())
- - player.setBaseClass(112);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Titan"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 113)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(113);
- - if (!player.isSubClassActive())
- - player.setBaseClass(113);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Grand_Khauatari"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 114)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(114);
- - if (!player.isSubClassActive())
- - player.setBaseClass(114);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Dominator"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 115)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(115);
- - if (!player.isSubClassActive())
- - player.setBaseClass(115);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Doomcryer"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 116)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(116);
- - if (!player.isSubClassActive())
- - player.setBaseClass(116);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Fortune_Seeker"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 117)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(117);
- - if (!player.isSubClassActive())
- - player.setBaseClass(117);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - if (type.equals("Maestro"))
- - {
- - if (player.getInventory().getInventoryItemCount(9590, 0) >= 1)
- - {
- - if (player.getClassId().getId() == 118)
- - {
- - player.sendMessage("Your class is already "+nameclasse+".");
- - return;
- - }
- -
- - RemoverSkills(player);
- -
- - player.setClassId(118);
- - if (!player.isSubClassActive())
- - player.setBaseClass(118);
- - Finish(player);
- - }
- - else
- - {
- - player.sendMessage("You dont have class card item!");
- - return;
- - }
- - }
- - }
- +private static void ClassChangeCoin(Player player, String command)
- + {
- + String nameclasse = player.getTemplate().getClassName();
- +
- + String type = command;
- + if (type.equals("---SELECT---"))
- + {
- + NpcHtmlMessage html = new NpcHtmlMessage(0);
- + html.setFile("data/html/mods/class_changer/Class.htm");
- + player.sendPacket(html);
- + player.sendPacket(ActionFailed.STATIC_PACKET);
- + }
- + if (type.equals("Duelist"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 88)
- + {
- + player.sendMessage("Your class is already " + nameclasse + ".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(88);
- + if (!player.isSubClassActive())
- + player.setBaseClass(88);
- +
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("DreadNought"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 89)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(89);
- + if (!player.isSubClassActive())
- + player.setBaseClass(89);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Phoenix_Knight"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 90)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(90);
- + if (!player.isSubClassActive())
- + player.setBaseClass(90);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Hell_Knight"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 91)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(91);
- + if (!player.isSubClassActive())
- + player.setBaseClass(91);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Sagittarius"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 92)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(92);
- + if (!player.isSubClassActive())
- + player.setBaseClass(92);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Adventurer"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 93)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(93);
- + if (!player.isSubClassActive())
- + player.setBaseClass(93);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Archmage"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 94)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(94);
- + if (!player.isSubClassActive())
- + player.setBaseClass(94);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Soultaker"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 95)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(95);
- + if (!player.isSubClassActive())
- + player.setBaseClass(95);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Arcana_Lord"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 96)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(96);
- + if (!player.isSubClassActive())
- + player.setBaseClass(96);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Cardinal"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 97)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(97);
- + if (!player.isSubClassActive())
- + player.setBaseClass(97);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Hierophant"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 98)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(98);
- + if (!player.isSubClassActive())
- + player.setBaseClass(98);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Eva_Templar"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 99)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(99);
- + if (!player.isSubClassActive())
- + player.setBaseClass(99);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Sword_Muse"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 100)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(100);
- + if (!player.isSubClassActive())
- + player.setBaseClass(100);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Wind_Rider"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 101)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(101);
- + if (!player.isSubClassActive())
- + player.setBaseClass(101);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Moonli_Sentinel"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 102)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(102);
- + if (!player.isSubClassActive())
- + player.setBaseClass(102);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Mystic_Muse"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 103)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(103);
- + if (!player.isSubClassActive())
- + player.setBaseClass(103);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Elemental_Master"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 104)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(104);
- + if (!player.isSubClassActive())
- + player.setBaseClass(104);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Eva_Saint"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 105)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(105);
- + if (!player.isSubClassActive())
- + player.setBaseClass(105);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Shillien_Templar"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 106)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(106);
- + if (!player.isSubClassActive())
- + player.setBaseClass(106);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Spectral_Dancer"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 107)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(107);
- + if (!player.isSubClassActive())
- + player.setBaseClass(107);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Ghost_Hunter"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 108)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(108);
- + if (!player.isSubClassActive())
- + player.setBaseClass(108);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Ghost_Sentinel"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 109)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(109);
- + if (!player.isSubClassActive())
- + player.setBaseClass(109);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Storm_Screamer"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 110)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(110);
- + if (!player.isSubClassActive())
- + player.setBaseClass(110);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Spectral_Master"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 111)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(111);
- + if (!player.isSubClassActive())
- + player.setBaseClass(111);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Shillen_Saint"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 112)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(112);
- + if (!player.isSubClassActive())
- + player.setBaseClass(112);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Titan"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 113)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(113);
- + if (!player.isSubClassActive())
- + player.setBaseClass(113);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Grand_Khauatari"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 114)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(114);
- + if (!player.isSubClassActive())
- + player.setBaseClass(114);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Dominator"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 115)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(115);
- + if (!player.isSubClassActive())
- + player.setBaseClass(115);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Doomcryer"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 116)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(116);
- + if (!player.isSubClassActive())
- + player.setBaseClass(116);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Fortune_Seeker"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 117)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(117);
- + if (!player.isSubClassActive())
- + player.setBaseClass(117);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + if (type.equals("Maestro"))
- + {
- + if (player.getInventory().getInventoryItemCount(Config.ITEM_CLASS_ID, 0) >= 1)
- + {
- + if (player.getClassId().getId() == 118)
- + {
- + player.sendMessage("Your class is already "+nameclasse+".");
- + return;
- + }
- +
- + RemoverSkills(player);
- +
- + player.setClassId(118);
- + if (!player.isSubClassActive())
- + player.setBaseClass(118);
- + Finish(player);
- + }
- + else
- + {
- + player.sendMessage("You dont have class card item!");
- + return;
- + }
- + }
- + }
- Index: net/sf/l2j/Config.java
- public static int CONT_DUNGEON_ITEM;
- +public static int ITEM_CLASS_ID;
- DUNGEON_ITEM_RENEWAL5 = L2JDev.getProperty("DungeonRenewalHtml5", 15);
- +ITEM_CLASS_ID = L2JDev.getProperty("ItemCard", 0);
- Index: gameserver\config\custom\L2JDev.properties
- DungeonRenewalHtml4 = 9614
- DungeonRenewalHtml5 = 9615
- +#=============================================================
- +# Class Card Item ID
- +#=============================================================
- +#Item Card para trocar de class
- +ItemCard = 9516
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement