kamael soulbreaker sub

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

kamael soulbreaker sub

Post by janiii »

l2guru says, that a male kamael takes a female soulbreaker as sub. female kamael takes male soulbreaker as sub.
http://www.l2guru.com/forum/showpost.ph ... stcount=88

l2j says: //Check sex, male can't subclass female and vice versa

what is the truth about kamael (soulbreaker) subs?

thx.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
toastgodsupreme
Posts: 750
Joined: Sun Dec 07, 2008 7:01 pm
Location: Poland

Re: kamael soulbreaker sub

Post by toastgodsupreme »

http://www.l2guru.com/forum/showthread.php?t=124756

;)

I was confused about the same issue not too long ago, heh.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: kamael soulbreaker sub

Post by janiii »

thx tgs for info :)

l2j bug: male kamael subclasses male soulbreaker, female kamael subclasses female soulbreaker
fix: male kamael subclasses female sb, female kamael subclasses male sb

pls test. thx.

http://www.pastebin.cz/22956

Code: Select all

Index: java/net/sf/l2j/gameserver/model/base/PlayerClass.java===================================================================--- java/net/sf/l2j/gameserver/model/base/PlayerClass.java	(revision 3298)+++ java/net/sf/l2j/gameserver/model/base/PlayerClass.java	(working copy)@@ -288,11 +288,11 @@ 			{ 				subclasses = getSet(Kamael, Third); 				subclasses.remove(this);-				//Check sex, male can't subclass female and vice versa+				//Check sex, male subclasses female and vice versa 				if (player.getAppearance().getSex())+					subclasses.removeAll(EnumSet.of(femaleSoulbreaker));+				else 					subclasses.removeAll(EnumSet.of(maleSoulbreaker));-				else-					subclasses.removeAll(EnumSet.of(femaleSoulbreaker)); 				if (player.getTotalSubClasses() < 2) 					subclasses.removeAll(EnumSet.of(inspector)); 			}
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
leanndr
Posts: 92
Joined: Fri Dec 04, 2009 1:01 am

Re: kamael soulbreaker sub

Post by leanndr »

hmm, this is the actual code
but when you add a soul breaker with male kamael, the text on the html is "female soulbreaker"
and the base stats, str, dex... are from female

i'm not in the level to fix this xP
well, well, now i've read better janii's post, if youre male, you can get female as sub, and if youre female, male as sub
oO

1 down, now the classmaster judicator :S (can I do it?! dont know)
"Arrogance diminishes wisdom" / "Arrogância diminui a sabedoria"
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

Re: kamael soulbreaker sub

Post by Edelvez »

A male Soulbreaker can not take the subclass of women Soulbreaker ... For virtually the same class, with some changes in status and skills of first change
Someone once told me: "The easiest way of doing things, making them the hard way" ;)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: kamael soulbreaker sub

Post by jurchiks »

don't bump a year old topic...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

Re: kamael soulbreaker sub

Post by Edelvez »

Damn ... I did not realize <.<
Someone once told me: "The easiest way of doing things, making them the hard way" ;)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: kamael soulbreaker sub

Post by jurchiks »

not you, the guy before you...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
leanndr
Posts: 92
Joined: Fri Dec 04, 2009 1:01 am

Re: kamael soulbreaker sub

Post by leanndr »

sry for that XD

my fix for inspector/judicator on classmaster:

Code: Select all

### Eclipse Workspace Patch 1.0#P L2_GameServerIndex: java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java===================================================================--- java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java   (revision 6)+++ java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java   (working copy)@@ -420,7 +420,7 @@     */    private static final boolean validateClassId(ClassId oldCID, ClassId newCID)    {-       if (newCID == null || newCID.getRace() == null)+       if (newCID == null || newCID.getRace() == null || newCID.getId() == 135)            return false;                if (oldCID.equals(newCID.getParent())) 
"Arrogance diminishes wisdom" / "Arrogância diminui a sabedoria"
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: kamael soulbreaker sub

Post by jurchiks »

That should work :) Thx
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: kamael soulbreaker sub

Post by SolidSnake »

Nice leanndr, but maybe with a config l2jserver will commit it
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: kamael soulbreaker sub

Post by jurchiks »

well, class changer is not a subclass manager so there shouldn't be a need for config...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: kamael soulbreaker sub

Post by SolidSnake »

_DS_ wrote:Class masters are totally custom and designed for highrate pvp servers. Inspector just another kamael occupation. If you does not want it - correct the code.
So if there is a config maybe they commit it :roll:
Image
User avatar
leanndr
Posts: 92
Joined: Fri Dec 04, 2009 1:01 am

Re: kamael soulbreaker sub

Post by leanndr »

I think allowing inspector/judicator as main class can bring some bugs, like for olys
"Arrogance diminishes wisdom" / "Arrogância diminui a sabedoria"
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: kamael soulbreaker sub

Post by _DS_ »

Gnacik decided to correct it in the new release. Here is a changeset:

Code: Select all

Index: /trunk/L2J_Server_CT2.5/java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java===================================================================--- /trunk/L2J_Server_CT2.5/java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 5415)+++ /trunk/L2J_Server_CT2.5/java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 5987)@@ -235,4 +235,6 @@                    for (ClassId cid : ClassId.values())                    {+                       if (cid == ClassId.inspector && player.getTotalSubClasses() < 2)+                           continue;                        if (validateClassId(currentClassId, cid) && cid.level() == level)                        {@@ -291,4 +293,6 @@        for (ClassId cid : ClassId.values())        {+           if (cid == ClassId.inspector && player.getTotalSubClasses() < 2)+               continue;                       if (validateClassId(currentClassId, cid))            {Index: /trunk/L2J_DataPack_CT2.5/sql/updates/20101111update.sql===================================================================--- /trunk/L2J_DataPack_CT2.5/sql/updates/20101111update.sql (revision 5987)+++ /trunk/L2J_DataPack_CT2.5/sql/updates/20101111update.sql (revision 5987)@@ -0,0 +1,1 @@+UPDATE `characters` SET `base_class`='126' WHERE `base_class` in (135,136); 
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply