Jump to content
  • 0

[question] How Disable Mob Attacking At Towns?


Question

Posted

hello maxcheaters! i have L2Open GF Last Pack. i have 1 bug and i can't fix it!

 

players can attack mobs and go to SubClass Manager when thay kill mob and Chaning Sub Class together!

and skills is moving to new subclass!

 

how to fix?

4 answers to this question

Recommended Posts

  • 0
Posted

i have the same and its hidden post , so i dont put mobs at towns or subclass manager near lvl area ! ( if i helped )

  • 0
Posted

find :

                    if (player.getLevel() < 75)
                    {
                        player.sendMessage("You may not add a new sub class before you are level 75 on your previous class.");
                        allowAddition = false;
                    }

 

and add after :

                    if (player.isInCombat())
                    {
                    	player.sendMessage("You can't use priest in combat mode.");
                    	return;
                    }

 

find :

                    if (Olympiad.getInstance().isRegisteredInComp(player)
                        || player.getOlympiadGameId() > 0)
                    {
                        player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));
                        return;
                    }

 

add after :

                    if (player.isInCombat())
                    {
                    	player.sendMessage("You can't use priest in combat mode.");
                    	return;
                    }

 

find :

                	if (Olympiad.getInstance().isRegisteredInComp(player) || player.getOlympiadGameId() > 0)
                	{
                		player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));
                		return;
                	}

 

add below :

                    if (player.isInCombat())
                    {
                    	player.sendMessage("You can't use priest in combat mode.");
                    	return;
                    }

 

its working for me in interlude hope that it will work for you too.

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


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