Page 1 of 1

Edit Roy the Cat

Posted: Fri Sep 11, 2009 1:24 pm
by ccvwolf
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:3325
L2JDP Revision Number:6439

Hi,
I want edit Roy the Cat NPC, to can advance only first and secons class.
I check in gameserver/data/html/calssmaster all html files, and i dont have any link to 3rd classes, but when i reach the 76 lvl i can go to Roy the Cat and advance to 3rd class. How can i change that ? I want players do the quest for 3rd. What files i must change for that ?

Thank you

Re: Edit Roy the Cat

Posted: Fri Sep 11, 2009 1:33 pm
by janiii
L2ClassmasterInstance

Re: Edit Roy the Cat

Posted: Fri Sep 11, 2009 3:29 pm
by ccvwolf
I foud this with search, but i dont know where is this ? in what file ?

Re: Edit Roy the Cat

Posted: Fri Sep 11, 2009 3:41 pm
by lishawj
In eclipse:

L2_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java

You will find what you need in this class. Commenting out the Third Class IDs and the appropriate sections for the 3rd class scripts should work (not tested).

Re: Edit Roy the Cat

Posted: Fri Sep 11, 2009 3:48 pm
by devo
Quick work, not tested, but gm's also will be not able to change class.

Code: Select all

### Eclipse Workspace Patch 1.0#P L2_GameServerIndex: java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java===================================================================--- java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java	(revision 3479)+++ java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java	(working copy)@@ -46,9 +46,6 @@ 	private static final int[] SECOND_CLASS_IDS = {2, 3, 5, 6, 9, 8, 12, 13,                 14, 16, 17, 20, 21, 23, 24, 27, 28, 30, 33, 34, 36, 37, 40, 41,                 43, 46, 48, 51, 52, 55, 57};-        private static final int[] THIRD_CLASS_IDS = {88, 89, 90, 91, 92, 93,-                94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107,-                108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118};  	/** 	 * @param template@@ -210,13 +207,6 @@ 				showChatWindow2nd(player); 			} 		}-		else if(command.startsWith("3rdClass"))-		{-			if(player.isGM())-			{-				showChatWindow3rd(player);-			}-		} 		else if(command.startsWith("baseClass")) 		{ 			if(player.isGM())@@ -367,12 +357,6 @@             player.sendPacket(html); 	} -	private void showChatWindow3rd(L2PcInstance player) {-            NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());-            html.setHtml(createGMClassMasterHtml(THIRD_CLASS_IDS));-            player.sendPacket(html);-	}- 	private void showChatWindowBase(L2PcInstance player) {             NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());             html.setHtml(createGMClassMasterHtml(BASE_CLASS_IDS));  

Re: Edit Roy the Cat

Posted: Fri Sep 11, 2009 6:49 pm
by ccvwolf
Thank you guys.
I foud this file, now i must learn how Eclipse work.