Jump to content
  • 0

Remove Kamael Classes


Question

Posted

How i can restrict Kamael class from the server? Any ideas?

I thought about doing it via client, but I'm looking for something more optimum.

9 answers to this question

Recommended Posts

  • 0
Posted

I have done it this way: (Client packets - CharacterCreate.java)

		// Last Verified: May 30, 2009 - Gracia Final
		if (!Util.isAlphaNumeric(_name) || !isValidName(_name))
		{
			if (Config.DEBUG)
			{
				_log.fine("Character Creation Failure: Character name " + _name + " is invalid. Message generated: Incorrect name. Please try again.");
			}
			
			sendPacket(new CharCreateFail(CharCreateFail.REASON_INCORRECT_NAME));
			return;
		}
+		// Disable kamaels
+		if ((_race == 5) && Config.DISABLE_KAMAEL_RACE)
+		{
+			sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
+			return;
+		}
		if ((_face > 2) || (_face < 0))
		{
			_log.warning("Character Creation Failure: Character face " + _face + " is invalid. Possible client hack. " + getClient());
			
			sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
			return;
		}
  • 0
Posted (edited)

 

  1. Buy brains;
  2. Learn Java language;
  3. Learn L2J architecture;
  4. Do something;
  5. If don't know how GOTO 2;
  6. If don't know where GOTO 3;
  7. Do what you known things;
  8. PROFIT.

 

1. Buying brain is not allowed, since the Organ trafficking is forbidden. Also brains? Why multiple brains? Why not just one?

2. Why you added the "language" next to java? Is there something else named java too? 

3. Yap

4. Relevant to l2j or irrelevant?

5. haha you used GOTO seem you're C/C++ fan

7. Does not make sense..

8. Profit? Tried your advice, ended up baking my leg in my neighbors kitchen

 

Also what java has to do with client part..? Removing kamaels is client side no java side.. 

Edited by Solid State Drive
  • 0
Posted

1. Buying brain is not allowed, since the Organ trafficking is forbidden. Also brains? Why multiple brains? Why not just one?

2. Why you added the "language" next to java? Is there something else named java too? 

3. Yap

4. Relevant to l2j or irrelevant?

5. haha you used GOTO seem you're C/C++ fan

7. Does not make sense..

8. Profit? Tried your advice, ended up baking my leg in my neighbors kitchen

 

Also what java has to do with client part..? Removing kamaels is client side no java side.. 

 

I use HF5, Gracia, HB client for servers w/o Kamael's race. Me not interests what contains into client. Server don't knows about this race. Stop chatting, do something.

 

While you're chatting, your opponent is already doing it.

 

Sad story, if you can't to buy a brains and existing brains enough only for Bla Bla Bla.

  • 0
Posted

I use HF5, Gracia, HB client for servers w/o Kamael's race. Me not interests what contains into client. Server don't knows about this race. Stop chatting, do something.

 

While you're chatting, your opponent is already doing it.

 

Sad story, if you can't to buy a brains and existing brains enough only for Bla Bla Bla.

 

Wow, i never read dumbest comment. Sir u worth a cookie

  • 0
Posted

Classically , all people will "attack" you here without reason ROFL. 

Maybe the worst way is to add a check on CharacterCreate.java but it does the work.

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...