Skip to content

[Request] Class Create Restrictions

Featured Replies

So hello, long time ago on Maxcheaters, i had found class create restriction, like you are unable to create some class - Kamael. And now i am not able to find that topic, maybe someone could share that PATH or give a proper link to that restriction.

 

Would be thankfull.

delete the classes from char_template table in your database :)

 

if (activeChar.getRace() == Race.kamael)

{

  activeChar.closeNetConnection();

return;

}

Enterworld.java

if (activeChar.getRace() == Race.kamael)

{

  activeChar.closeNetConnection();

return;

}

Enterworld.java

 

lol verrrrrrrrrrrrrrrrrrrrry smart...

when he create kamael and login he will get disconnected any time ... hah

  • Author

lol verrrrrrrrrrrrrrrrrrrrry smart...

when he create kamael and login he will get disconnected any time ... hah

 

Well i need something like that:

When you press choose kamael, enter nick and etc and press create button, you see this message:

You are not allowed to do this, choose another class.

Try this a gave y why y want to make all this :/ disconnect is ok i thing

CharacterCreate.java

 

	if(template == "kamael classid")
	{
		CharCreateFail ccf = new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED);
		sendPacket(ccf);
		return;
	}

  • Author

CharacterCreate.java

 

	if(template == "kamael classid")
	{
		CharCreateFail ccf = new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED);
		sendPacket(ccf);
		return;
	}

 

Ty Working. Topic can be locked now.

Locked as requested.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.