Jump to content

Recommended Posts

Posted

Before some minutes i was looking that topic..

 

http://www.maxcheaters.com/forum/index.php?topic=45460.0

 

 

 

here is the code to fix that :)

 

 

 

Open

 

net.sf.l2j.gameserver.model.actor.instance.L2ObservationInstance;

 

 

 

replace that:

 

  @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
        if (command.startsWith("observeSiege"))
        {
            String val = command.substring(13);
            StringTokenizer st = new StringTokenizer(val);
            st.nextToken(); // Bypass cost

            if (SiegeManager.getInstance().getSiege(Integer.parseInt(st.nextToken()),
                                                         Integer.parseInt(st.nextToken()),
                                                         Integer.parseInt(st.nextToken())) != null)
            {
                doObserve(player, val);
            }
            else player.sendPacket(new SystemMessage(SystemMessageId.ONLY_VIEW_SIEGE));
        }
        else if (command.startsWith("observe"))
        {
            doObserve(player, command.substring(8));
        }
        else
            super.onBypassFeedback(player, command);
    }

 

 

with that

 

 

    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
    	if(Olympiad.getInstance().isRegistered(player))
    		return;
    	if(Olympiad.getInstance().isRegisteredInComp(player))
    		return;
        if (command.startsWith("observeSiege"))
        {
            String val = command.substring(13);
            StringTokenizer st = new StringTokenizer(val);
            st.nextToken(); // Bypass cost

            if (SiegeManager.getInstance().getSiege(Integer.parseInt(st.nextToken()),Integer.parseInt(st.nextToken()),Integer.parseInt(st.nextToken())) != null)
            {
                doObserve(player, val);
            }
            else player.sendPacket(new SystemMessage(SystemMessageId.ONLY_VIEW_SIEGE));
        }
        else if (command.startsWith("observe"))
        {
            doObserve(player, command.substring(8));
        }
        else
            super.onBypassFeedback(player, command);
    }

 

:)

 

 

 

 

    [javac] Compiling 1299 source files to C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\build\classes

    [javac] C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\java\net\sf\l2j\gameserver\model\actor\instance\L2ObservationInstance.java:50: cannot find symbol

    [javac] symbol  : variable Olympiad

    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2ObservationInstance

    [javac]    if(Olympiad.getInstance().isRegistered(player))

    [javac]      ^

    [javac] C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\java\net\sf\l2j\gameserver\model\actor\instance\L2ObservationInstance.java:52: cannot find symbol

    [javac] symbol  : variable Olympiad

    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2ObservationInstance

    [javac]    if(Olympiad.getInstance().isRegisteredInComp(player))

Posted

    [javac] Compiling 1299 source files to C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\build\classes

    [javac] C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\java\net\sf\l2j\gameserver\model\actor\instance\L2ObservationInstance.java:50: cannot find symbol

    [javac] symbol  : variable Olympiad

    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2ObservationInstance

    [javac]    if(Olympiad.getInstance().isRegistered(player))

    [javac]      ^

    [javac] C:\Users\florin\Desktop\java\workspace\L2JBHP\L2JBHP\L2jBHP_Gameserver\java\net\sf\l2j\gameserver\model\actor\instance\L2ObservationInstance.java:52: cannot find symbol

    [javac] symbol  : variable Olympiad

    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2ObservationInstance

    [javac]    if(Olympiad.getInstance().isRegisteredInComp(player))

 

where is the import for olympiad :O

Posted

Why to replace all that part with the code you've provided, if the only changes are these new checks? pff

 

 

 

are you serious can you fix them with another way ...? i will w8 for your way. pro dev.!

 

Α AND BTW THIS CODE IS FOR "newbies" simple for them..

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
  • 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