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.


×
×
  • 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