Jump to content
  • 0

[question] How Disable Mob Attacking At Towns?


EdenEternal
 Share

Question

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?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



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