Skip to content

BaseStats.JAVA ( CON Problems )

Featured Replies

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!

 

  • Author

Fixed. Thank you all for answer! Can close topic !

  • Zake locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.