Jump to content
  • 0

l2mythras pack


Question

10 answers to this question

Recommended Posts

  • 0
Posted (edited)
3 hours ago, sotid said:

L2ClassMasterInstance.java propably.

this file not exist in this pack 100% :D just ClassMasterInstance and look like this 

 

package npc.model;

import l2f.gameserver.Config;
import l2f.gameserver.cache.Msg;
import l2f.gameserver.data.xml.holder.ItemHolder;
import l2f.gameserver.model.Player;
import l2f.gameserver.model.base.ClassId;
import l2f.gameserver.model.instances.MerchantInstance;
import l2f.gameserver.network.serverpackets.MagicSkillUse;
import l2f.gameserver.network.serverpackets.NpcHtmlMessage;
import l2f.gameserver.network.serverpackets.SocialAction;
import l2f.gameserver.network.serverpackets.components.SystemMsg;
import l2f.gameserver.templates.item.ItemTemplate;
import l2f.gameserver.templates.npc.NpcTemplate;
import l2f.gameserver.utils.HtmlUtils;
import l2f.gameserver.utils.Util;

import java.util.StringTokenizer;


public final class ClassMasterInstance extends MerchantInstance
{
    /**
     * L2Phoenix (just here was Mythras) <------------------------------
     */
    private static final long serialVersionUID = -6206315361251464210L;

    public ClassMasterInstance(int objectId, NpcTemplate template)
    {
        super(objectId, template);
    }

    private String makeMessage(Player player)
    {
        ClassId classId = player.getClassId();
        int jobLevelTemp = 0;
        switch (classId.getLevel())
        {
            case 1:
                jobLevelTemp = 1;
                break;
            case 2:
                jobLevelTemp = 2;
                break;
            case 3:
                jobLevelTemp = 3;
                break;
            default:
                jobLevelTemp = 0;
                break;
        }
        int jobLevel = classId.getLevel();
        int level = player.getLevel();
        
        StringBuilder html = new StringBuilder();
        if (Config.ALLOW_CLASS_MASTERS_LIST.isEmpty() || !Config.ALLOW_CLASS_MASTERS_LIST.contains(jobLevelTemp))
            jobLevel = 4;
            
        if ((level >= 20 && jobLevel == 1 || level >= 40 && jobLevel == 2 || level >= 76 && jobLevel == 3) && Config.ALLOW_CLASS_MASTERS_LIST.contains(jobLevelTemp))
        {
            ItemTemplate item = ItemHolder.getInstance().getTemplate(Config.CLASS_MASTERS_PRICE_ITEM);
            if (Config.CLASS_MASTERS_PRICE_LIST[jobLevel] > 0)
                html.append("Price: ").append(Util.formatAdena(Config.CLASS_MASTERS_PRICE_LIST[jobLevel])).append(" ").append(item.getName()).append("<br1>");
            for (ClassId cid : ClassId.VALUES)
            {
                // Inspector is heir trooper and warder, but to replace it as a profession can not be
                // As this subclass. Inherited from their parents in order to obtain skills.
                if (cid == ClassId.inspector)
                    continue;
                if (cid.childOf(classId) && cid.getLevel() == classId.getLevel() + 1)
                    html.append("<a action=\"bypass -h npc_").append(getObjectId()).append("_change_class ").append(cid.getId()).append(" ").append(Config.CLASS_MASTERS_PRICE_LIST[jobLevel]).append("\">").append(HtmlUtils.htmlClassName(cid.getId())).append("</a><br>");
            }
            player.sendPacket(new NpcHtmlMessage(player, this).setHtml(html.toString()));
        }
        else
            switch (jobLevel)
            {
            case 1:
                html.append("Come back here when you reached level 20 to change your class.");
                break;
            case 2:
                html.append("Come back here when you reached level 40 to change your class.");
                break;
            case 3:
                html.append("Come back here when you reached level 76 to change your class.");
                break;
            case 0:
                html.append("There is no class changes for you any more.");
                break;
            default:
                html.append("There is no class changes for you right now !");
                break;
            }
        return html.toString();
    }

    @Override
    public void showChatWindow(Player player, int val, Object... arg)
    {
        NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
        msg.setFile("custom/31860.htm");
        msg.replace("%classmaster%", makeMessage(player));
        msg.replace("%nick%", player.getName());
        player.sendPacket(msg);
    }

    @Override
    public void onBypassFeedback(Player player, String command)
    {
        if (!canBypassCheck(player, this))
            return;

        StringTokenizer st = new StringTokenizer(command);
        if (st.nextToken().equals("change_class"))
        {
            int val = Integer.parseInt(st.nextToken());
            long price = Long.parseLong(st.nextToken());
            if (player.getInventory().destroyItemByItemId(Config.CLASS_MASTERS_PRICE_ITEM, price, "ClassMasterInstance"))
                changeClass(player, val);
            else if (Config.CLASS_MASTERS_PRICE_ITEM == 57)
                player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
            else
                player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
        }
        else
            super.onBypassFeedback(player, command);
    }

    private void changeClass(Player player, int val)
    {
        if (player.getClassId().getLevel() == 3)
            player.sendPacket(Msg.YOU_HAVE_COMPLETED_THE_QUEST_FOR_3RD_OCCUPATION_CHANGE_AND_MOVED_TO_ANOTHER_CLASS_CONGRATULATIONS); // ??? 3 ?????
        else
            player.sendPacket(Msg.CONGRATULATIONS_YOU_HAVE_TRANSFERRED_TO_A_NEW_CLASS); // ??? 1 ? 2 ?????

        player.setClassId(val, false, false);
        player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
        final MagicSkillUse msu = new MagicSkillUse(player, player, 2527, 1, 0, 500);
        player.broadcastPacket(msu);
        player.broadcastCharInfo();
    }
}

Edited by Prostyle1990
  • 0
Posted
6 minutes ago, Akar0 said:

64750758f7baa88f7565eb7986111609.png

Man thanks for fast answer but already modified all files from the server with my new name of server , im done with this pack i also added many things many dress me many items etc ... system patch changed , i see my name of my new server on all window just in this one when change class appear still mythras :D :D :D if u have 2 min to take a look on my project :D

  • 0
Posted

If you know how to use Eclipse, you can edit it in 2 seconds, its not hard to do it with a minimal knowledge of eclipse. If it still showing the same, you are doing something wrong.

 

That file you are trying to edit, it must be edit on Level21.html and _255_Tutorial.java, just it.

 

If it didn't help, please do not trying to use this pack for you "project" and go buy a pack to Nevermore "Sunrise Project" where you can get real support.

 

 

  • 0
Posted
On 22/3/2018 at 7:27 PM, Akar0 said:

If you know how to use Eclipse, you can edit it in 2 seconds, its not hard to do it with a minimal knowledge of eclipse. If it still showing the same, you are doing something wrong.

 

That file you are trying to edit, it must be edit on Level21.html and _255_Tutorial.java, just it.

 

If it didn't help, please do not trying to use this pack for you "project" and go buy a pack to Nevermore "Sunrise Project" where you can get real support.

 

 

Hello men i did thats changes and in my eclipse appear the name of my server in the _255_tutorial.java but in the server appears the same sh1t L2AvA bla bla bla i changed the others but class change are the same 

  • 0
Posted

take the new libs that you created after the built (propably->workspace/gameserver/built/gameserver.rar/gameserver/lib)

and put them on your server's lib ,server files/gameserver/lib

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Try to add before the row " ; " like in File_52= ;File_52={{[chatfilter.ini];{363E6F64AABB21A81C61E9C89737B84F}}}   [CliExt_Files] Enabled=1 MostrarMensajesConsola=1 ;File_1={{[ALAudio.dll];{9BBF6199558AE72F3CB8C54D4A09009F}} ;File_2={{[Core.dll];{B519540B5F7F5B9153263ECB492E88CC}} ;File_3={{[D3DDrv.dll];{8AB869364379486F220259FA1C6C7D90};{F99D13D552D2E19F5EFD195B264BC2F8}} ;File_4={{[defopenal32.dll];{ECAB7CB66244BFB9FD926ADBDEEB0412}} ;File_5={{[dsetup.dll];{230173F19C0AD3648B455F50C9088EA2}} ;File_6={{[encvag.dll];{DC48574DC8C7B4DF5708A53AF50AFE8A}} ;File_7={{[engine.dll];{BD3F551F5F942CABF7457084E810FD62}} ;File_8={{[Fire.dll];{961D0C1622CC7D41682BA3E2600E62FE}} ;File_9={{[ifc23.dll];{3A1970D3E997B018FBC776560740B95E}} ;File_10={{[IpDrv.dll];{4DCD3F45A05B962B458B13969C5F906B}} ;File_11={{[LineageCreature.dll];{B212DACDECBAB47CC09DB633C232CF18}} ;File_12={{[lineageenv.dll];{3C2506853038560AA66D5DA32DFC795F}} ;File_13={{[msxml4.dll];{7851D6CFA3AA0B41444978F2EAC40FE1}} ;File_14={{[msxml4a.dll];{31AF8904D926B6EDF664E420E0E58865}} ;File_15={{[msxml4r.dll];{644031676F66BC9DBC1989D2F73044E6}} ;File_16={{[nosleep.dll];{E70AFA303842DBA60FF0E8CEFEA3E513}} ;File_17={{[npkcrypt.dll];{A89A8D11CD3C9D8C75B91EA40E3A38FF}} ;File_18={{[npkpdb.dll];{755F8B8BEBC46D524ED232FB46F44575}} ;File_19={{[nwindow.dll];{4AD629893C278777987DA63A2792C6AD};{6C1B532F8FB48657D5BAC6B2944E83B8}} ;File_20={{[ogg.dll];{DB3A7B14F42EE908B966D3E03FB31A44}} ;File_21={{[openal32.dll];{432204FEE4A5CF3D9AF1D518CF135DEF}} ;File_22={{[orc.dll];{292658615568B670CA54CDF0C7F05DA1}} ;File_23={{[vorbis.dll];{991B6CEBEC143D42E2E837A85A67FBC1}} ;File_24={{[vorbisfile.dll];{79DC3FB2408AAFB15A0C7432C3498256}} ;File_25={{[Window.dll];{769B7A97B3EF8693DCEDEF0916005767}} ;File_26={{[WinDrv.dll];{A01CA9CBE89CE9AB665BA4D64CF15865}} ;File_27={{[wrap_oal.dll];{3F4A774BE86425D0FE098F9D82C12DE9}} ;File_28={{[Core.u];{16FC24769D23435B7F25C7B93B7396D3}} ;File_29={{[Editor.u];{1FF6A7867E913AB658D2AB9CEC5A3A19}} ;File_30={{[Engine.u];{F3CD3D4BFF79246C6D54AB381DE8E7CA}} ;File_31={{[Fire.u];{D3627A58A9339565EF9A313C58130C24}} ;File_32={{[GamePlay.u];{F0CFF07EB8318E45AAFDB8FDD32ABE44}} ;File_34={{[IpDrv.u];{E37822CA6BD9DED36858EBBE91F5A6BA}} ;File_35={{[LineageCreature.u];{4DAFE33542B9E86519A2931EEA1B0244}} ;File_36={{[LineageDeco.u];{F71E69C0F16A285DC860F63BFDF93747}} ;File_37={{[lineageeffect.u];{65F0DBB83A8DC7C859FD990D7B2DED0E};{17D901593A7B3042084E2A0A0ACCEE36}} ;File_38={{[lineageenv.u];{8982D65168E1319770237EFC3D0FD4E4}} ;File_39={{[LineageMonster.u];{512232DBC8DF6D027363C9925D86D0CD}} ;File_40={{[LineageMonster2.u];{74BEC9C4E3384885CACA83590EF240CC}} ;File_41={{[LineageMonster3.u];;{2838C03A1D38A218F68B7101BD6A5B76}} ;File_42={{[lineagenpc.u];{A5DE036E6C69FFDDD386FB7F33BB699E}} ;File_43={{[lineagenpc2.u];{4D603979200EFCC17BE4DBF342358799}} ;File_44={{[lineagenpcev.u];{A569BA469C17DB6FE5DBD9E5B6170AF6}} ;File_45={{[LineageVehicle.u];{51764074182854077DB32528223E2678}} ;File_46={{[LineageWarrior.u];{CCF42641F30C4639ED8D316B9A4E1F42};{FA89E977FD204296FC0E9D59F0E9A272}} ;File_47={{[nwindow.u];{360DFAFDCD0509E48B09CD491242FD54}} ;File_48={{[udebugmenu.u];{8195778FB290CCD62C5DEF2F6671C11C}} ;File_49={{[UWindow.u];{5D7CAF94751BF1FCDEBB9B2BEF502B02}} ;File_50={{[L2.exe];{379A0AD30E300AD8BB5DD8A149EBC515}} ;File_33={{[interface.u];{014A36E6A55EE1A7F9C3D37B5B877613};{F191D538FCEA5E4B3038B428E04C7ECD};{1B4DD48DEC6F97B6C8D3255B1147E9EC}} ;File_51={{[interface.xdat];{078434CCE990486A1D7B41835E69FABB};{8B6090820C7B32204BE5AA9ABABDEFF3}} ;File_53={{[_Interface.u];{00000000000000000000000000000000}} ;File_54={{[CliExx.dll];{00000000000000000000000000000000}} ;File_55={{[l2ui.dll];{00000000000000000000000000000000}} ;File_56={{[npkscrypt.dll];{5908C3EE24B40F6F08F1500723B1A41D}} ;File_52={{[chatfilter.ini];{363E6F64AABB21A81C61E9C89737B84F}} ;File_53={{[Client.ini];{1906F536DB0890BA89AEB12A81A44876}} ;File_54={{[l2.ini];{F1C1441E187AC18A0473F8D6C7E3F90D}} ;File_55={{[Lineage2us.ini];{DF2166EAD1F750E22F8EBC18DC1FA14C}} ;File_56={{[Localization.ini];{FBA90399D006FF4A842D1EF832BFB5DF}} ;File_57={{[Option.ini];{626C690FF12E4AB1BA974FB2E4A3C1BD}} ;File_58={{[s_info.ini];{D34E9E0B34595812A72AABA13997F097}} ;File_59={{[ttfontinfo.ini];{CBEB6D54158002449958B24DFB13BFFD}} ;File_60={{[user.ini];{325704B1149A55CDA0B52B01329AC3F6}}   or generate new MD5 hash for your patch! 
    • no have autofarm system
    • Which part is a scam exactly? Please explain me. My project, my rules. I don't ask that much. I'm not some charity. And it's not my problem if the customer ruins his server pack by himself and refuses pay for updates. I don't work just for fun. The most important thing he had the only one problem that told me and it was about boss stat, because he felt it's wrong.... He did not have anything to compare, he just felt it's wrong. Smart? Yeah it's very smart...  More info here:  This guy doesn't understand how the server works and changed many things without understanding/knowledge what he is actually doing. He changed random configs, tried add stats by himself. He mixed files, server pack updates without the right server core. These customers like him are just a severe headache... However, I tried to help him every time and never disappeared, but he did many times. Now I see why. It's weird like people acts, one day he says thanks and in next, he calls me a scammer.  What he needed to do, just a get membership that costs 5GBP/week... Just 5GBP 😐  It's even ridiculously small. So, he needed just update his server pack up to the latest or ask me to do it and that's all, but no, he worked on his own and ruined the server. End of story. And now I'm a scammer? Why? I work my job and I'm not charity. If you can't pay just 5GBP then sorry, but server is not for you, because you won't be available to pay your bills for his own server's website, VDS, guard and so on. This screenshot also proves that I never disappeared until he did. 🙂   and this one about - he never talked to me about any other problem and when I asked about his friend comments here at this forum I didn't get any answer, but this post. Thanks a lot 🙂  You're like a rabid dog that needs to be put to sleep. Everywhere every time  where you see me or my project name you always finds what to say bad. Please don't forget visit your doctor, because something really wrong with you.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock