Jump to content
  • 0

BaseStats.JAVA ( CON Problems )


Question

Posted

Pack: L2jSunrise ( high Five )

Hello to everyone. I want help in what i did. I don;t find any error in game or in console. I raise the max BaseStat from 99 ( retail ) to 200.
And i do changes in next packages:

BaseStat.Java

 

protected static final class CON implements BaseStat
	{
		@Override
		public final double calcBonus(L2Character actor)
		{
			return CONbonus[Math.min(actor.getCON(), BaseStats.MAX_STAT_VALUE - 1)];
		}
	}

...
 

public static final int MAX_STAT_VALUE = 201;

 

 

UserInfo.Java

 

writeD(Math.min(_activeChar.getCON(), BaseStats.MAX_STAT_VALUE - 1));


statBonus.xsd
 

<xs:element name="CON" minOccurs="1" maxOccurs="1">
					<xs:complexType>
						<xs:sequence minOccurs="1" maxOccurs="1">
							<xs:element name="stat" minOccurs="1" maxOccurs="201">
								<xs:complexType>
									<xs:attribute name="bonus" type="xs:decimal" use="required" />
									<xs:attribute name="value" type="xs:integer" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>


skill xml
 

<add stat="CON" val="#stats" />
				<!--<add stat="STR" val="#stats" />
				<add stat="DEX" val="#stats" />
				<add stat="INT" val="#stats" />
				<add stat="WIT" val="#stats" />
				<add stat="MEN" val="#stats" />
				<mul stat="maxHp" val="#status" />-->

( I comment to see if just on CON i meet problems. And yes. Only on CON i have problems.

Video See what's happend!

 

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...