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

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



×
×
  • Create New...