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
Edit Roy the Cat
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Edit Roy the Cat
L2ClassmasterInstance
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 4
- Joined: Wed Aug 05, 2009 5:42 pm
Re: Edit Roy the Cat
I foud this with search, but i dont know where is this ? in what file ?
-
- Posts: 253
- Joined: Thu Apr 30, 2009 12:29 am
Re: Edit Roy the Cat
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).
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).
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: Edit Roy the Cat
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));
A hero of war is that what they see...
-
- Posts: 4
- Joined: Wed Aug 05, 2009 5:42 pm
Re: Edit Roy the Cat
Thank you guys.
I foud this file, now i must learn how Eclipse work.
I foud this file, now i must learn how Eclipse work.