This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
3xpl0it3R
Esbisa afto pou eixa balei edw(Gia na min kanw pali neo topic).Exw mia aporia.Ekana compile kanonika.Peira to SVN apo to L2Dot kai exw kanonika ta arxeia.Twra egw brika afto to topic :
http://www.maxcheaters.com/forum/index.php?topic=50288.0
Peiga ekei pou eprepe.Diladi
Egw twra prepei na anoiksw to arxeio me to Eclipse.Sosta ??? .Afou to anoiksw prepei na balw sto telos tou arxeiou afto ?
--- java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 2705) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (working copy) @@ -18,9 +18,11 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.datatables.CharTemplateTable; +import net.sf.l2j.gameserver.datatables.NpcTable; import net.sf.l2j.gameserver.model.base.ClassId; import net.sf.l2j.gameserver.model.base.ClassLevel; import net.sf.l2j.gameserver.model.base.PlayerClass; +import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.quest.Quest; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; @@ -40,7 +42,11 @@ //private static Logger _log = Logger.getLogger(L2ClassMasterInstance.class.getName()); private static final int[] SECONDN_CLASS_IDS = {2,3,5,6,9,8,12,13,14,16,17,20,21,23,24,27, 28,30,33,34,36,37,40,41,43,46,48,51,52,55,57}; - + public static L2ClassMasterInstance ClassMaster = new L2ClassMasterInstance(31228, NpcTable.getInstance().getTemplate(31228)); + static + { + L2World.getInstance().storeObject(ClassMaster); + } /** * @param template */ @@ -52,8 +58,8 @@ @Override public void onAction(L2PcInstance player) { - if (!canTarget(player)) return; - + //if (!canTarget(player)) return; +/* // Check if the L2PcInstance already target the L2NpcInstance if (getObjectId() != player.getTargetId()) { @@ -73,7 +79,7 @@ player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); return; } - +*/ if (Config.DEBUG) _log.fine("ClassMaster activated"); @@ -94,19 +100,16 @@ jobLevel = 3; } - if (!Config.ALLOW_CLASS_MASTERS) - jobLevel = 3; - if(player.isGM()) { showChatWindowChooseClass(player); } - else if (((level >= 20 && jobLevel == 1 ) || - (level >= 40 && jobLevel == 2 )) && Config.ALLOW_CLASS_MASTERS) + else if ((level >= 20 && jobLevel == 1 ) || + (level >= 40 && jobLevel == 2 )) { showChatWindow(player, classId.getId()); } - else if (level >= 76 && Config.ALLOW_CLASS_MASTERS && classId.getId() < 88) + else if (level >= 76 && classId.getId() < 88) { for (int i = 0; i < SECONDN_CLASS_IDS.length; i++) { @@ -126,7 +129,7 @@ } } } - else if (level >= 76 && Config.ALLOW_CLASS_MASTERS && ((classId.getId() >= 123 && classId.getId() < 131 ) || classId.getId() == 135)) // this is for Kamael Race 3rd Transfer + else if (level >= 76 && ((classId.getId() >= 123 && classId.getId() < 131 ) || classId.getId() == 135)) // this is for Kamael Race 3rd Transfer { showChatWindow(player, classId.getId()); } @@ -155,7 +158,7 @@ html.setHtml(sb.toString()); player.sendPacket(html); } - } + //} player.sendPacket(ActionFailed.STATIC_PACKET); }Sas parakalw peite mou.Ti prepei na prosexw.Sorry alla den exw dei kanena topic gia afto to 8ema.
PS:Otan ma8w kala gia afta sas iposxome pws 8a kanw ena GUIDE gia afto to 8ela.Eclipse-kai afta ta add.
0 answers to this question
Recommended Posts