Jump to content
  • 0

Balance Classes Javascript


Question

Posted (edited)

 Καλημερα...μπορειτε να μου πειτε λιγο την γνωμη σας για αυτο το Balance ? 

# These controls the chance to get a glow effect in the augmentation process
# Note:
#       No/Mid Grade Life Stone can not have glow effect
#       if you do not get a skill or Base Stat Modifier
#       On Retail you can not get glow effect with NoGrade LS
# Retail: 0, 40, 70, 100
AugmentationNGGlowChance = 0
AugmentationMidGlowChance = 40
AugmentationHighGlowChance = 70
AugmentationTopGlowChance = 100
+
+# Classes balance
+# Note: 
+#	Weapons type: DAGGER; BOW; BLUNT; DUALFIST; DUAL; SWORD; POLE
+#	Class: Too long...
+#	Damage: Current damage emperor to 2
+# ClassID 90 = Phoenix Knight
+ClassID = 90
+WeaponType = DAGGER
+Damage = 2

Index: net.sf.l2j.Config.java
================================================
    public static int AUGMENTATION_TOP_SKILL_CHANCE;
    public static int AUGMENTATION_TOP_GLOW_CHANCE;
    public static int AUGMENTATION_BASESTAT_CHANCE;
	
+	public static int ALT_CLASSID;
+	public static float ALT_DAMAGE;
+
+	public static boolean ALT_DAGGER;
+	public static boolean ALT_BOW;
+	public static boolean ALT_BLUNT;
+	public static boolean ALT_DUALFIST;
+	public static boolean ALT_DUAL;
+	public static boolean ALT_SWORD;
+	public static boolean ALT_POLE;
@@
				AUGMENTATION_TOP_SKILL_CHANCE = Integer.parseInt(otherSettings.getProperty("AugmentationTopSkillChance", "60"));
				AUGMENTATION_TOP_GLOW_CHANCE = Integer.parseInt(otherSettings.getProperty("AugmentationTopGlowChance", "100"));
				AUGMENTATION_BASESTAT_CHANCE = Integer.parseInt(otherSettings.getProperty("AugmentationBaseStatChance", "1"));
+
+				ALT_CLASSID = Integer.parseInt(otherSettings.getProperty("ClassID", "90"));
+				ALT_DAMAGE = Float.parseFloat(otherSettings.getProperty("Damage", "1.5"));
+				ALT_DAGGER = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("DAGGER");
+				ALT_BOW = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("BOW");
+				ALT_BLUNT = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("BLUNT");
+				ALT_DUALFIST = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("DUALFIST");
+				ALT_DUAL = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("DUAL");
+				ALT_SWORD = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("SWORD");
+				ALT_POLE = otherSettings.getProperty("WeaponType", "DAGGER").equalsIgnoreCase("POLE");
@@
		else if (pName.equalsIgnoreCase("GlobalChat")) DEFAULT_GLOBAL_CHAT = pValue;
		else if (pName.equalsIgnoreCase("TradeChat")) DEFAULT_TRADE_CHAT = pValue;
		else if (pName.equalsIgnoreCase("AutoannouncementsDelay")) AUTOANNOUNCEMENT_DELAY = Integer.parseInt(pValue);
		else if (pName.equalsIgnoreCase("MenuStyle"))  GM_ADMIN_MENU_STYLE = pValue;
+		else if (pName.equalsIgnoreCase("WeaponType"))
+		{
+			ALT_DAGGER		= pValue.equalsIgnoreCase("DAGGER");
+			ALT_BOW			= pValue.equalsIgnoreCase("BOW");
+			ALT_BLUNT		= pValue.equalsIgnoreCase("BLUNT");
+			ALT_DUALFIST		= pValue.equalsIgnoreCase("DUALFIST");
+			ALT_DUAL		= pValue.equalsIgnoreCase("DUAL");
+			ALT_SWORD		= pValue.equalsIgnoreCase("SWORD");
+			ALT_POLE		= pValue.equalsIgnoreCase("POLE");
+		}

Index: net.sf.l2j.gameserver.skills.Formulas.java
================================================
		// Dmg bonusses in PvP fight
		if((attacker instanceof L2PcInstance || attacker instanceof L2Summon)
				&& (target instanceof L2PcInstance || target instanceof L2Summon))
		{
			if(skill == null)
				damage *= attacker.calcStat(Stats.PVP_PHYSICAL_DMG, 1, null, null);
			else
				damage *= attacker.calcStat(Stats.PVP_PHYS_SKILL_DMG, 1, null, null);	
		}
+		if (attacker instanceof L2PcInstance)
+		{
+			L2PcInstance pcInst = (L2PcInstance)attacker;
+			if (pcInst.getClassId().getId() == Config.ALT_CLASSID)
+			{
+				if (Config.ALT_DAGGER)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.DAGGER)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_BOW)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.BOW)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_BLUNT)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.BLUNT)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_DUALFIST)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.DUALFIST)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_DUAL)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.DUAL)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_SWORD)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.SWORD)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}else if (Config.ALT_POLE)
+				{
+					L2Weapon wpn = pcInst.getActiveWeaponItem();
+					if (wpn != null && wpn.getItemType() == L2WeaponType.POLE)
+						damage /= (int) (damage / Config.ALT_DAMAGE);
+				}
+			}
+       }

Index: Classes
================================================
-- HUMANS
-- 0=Human Fighter			| 1=Human Warrior		| 2=Gladiator			| 3=Warlord			| 4=Human Knight
-- 5=Paladin				| 6=Dark Avenger			| 7=Rogue				| 8=Treasure Hunter	| 9=Hawkeye
-- 10=Human Mage			| 11=Human Wizard		| 12=Sorcerer/ss			| 13=Necromancer	| 14=Warlock
-- 15=Cleric				| 16=Bishop				| 17=Prophet

-- ELVES
-- 18=Elven Fighter			| 19=Elven Knight		| 20=Temple Knight		| 21=Swordsinger	| 22=Elven Scout
-- 23=Plainswalker			| 24=Silver Ranger		| 25=Elven Mage			| 26=Elven Wizard	| 27=Spellsinger
-- 28=Elemental Summoner	| 29=Elven Oracle		| 30=Elven Elder

-- DARK ELVES
-- 31=Dark Elven Fighter	| 32=Palus Knight		| 33=Shillien Knight	| 34=Bladedancer	| 35=Assassin
-- 36=Abyss Walker			| 37=Phantom Ranger		| 38=Dark Elven Mage	| 39=Dark Wizard	| 40=Spellhowler
-- 41=Phantom Summoner		| 42=Shillien Oracle	| 43=Shillien Elder

-- ORCS
-- 44=Orc Fighter			| 45=Orc Raider			| 46=Destroyer			| 47=Monk			| 48=Tyrant
-- 49=Orc Mage				| 50=Orc Shaman			| 51=Overlord			| 52=Warcryer

-- DWARVES
-- 53=Dwarven Fighter		| 54=Scavenger			| 55=Bounty Hunter		| 56=Artisan		| 57=Warsmith

-- HUMANS 3rd Professions
-- 88=Duelist				| 89=Dreadnought		| 90=Phoenix Knight		| 91=Hell Knight	| 92=Sagittarius
-- 93=Adventurer			| 94=Archmage			| 95=Soultaker			| 96=Arcana Lord	| 97=Cardinal
-- 98=Hierophant

-- ELVES 3rd Professions
-- 99=Evas Templar			| 100=Sword Muse		| 101=Wind Rider		| 102=Moonlight Sentinel
-- 103=Mystic Muse			| 104=Elemental Master							| 105=Evas Saint

-- DARK ELVES 3rd Professions
-- 106=Shillien Templar		| 107=Spectral Dancer	| 108=Ghost Hunter		| 109=Ghost Sentinel
-- 110=Storm Screamer		| 111=Spectral Master	| 112=Shillien Saint

-- ORCS 3rd Professions
-- 113=Titan				| 114=Grand Khavatari
-- 115=Dominator			| 116=Doomcryer

-- DWARVES 3rd Professions
-- 117=Fortune Seeker		| 118=Maestro
Edited by DennisGR

6 answers to this question

Recommended Posts

  • 0
Posted

δεν το δοκιμασα ακομα

min to dokimaseis xaneis ton xrono sou ... theleis balance ? low rate me 20 lepta buff 5 lepta dance , songs , kai special (pof, pow klp) 

kai sta poio megala client akoma poio diskolo ;)

  • 0
Posted

Χαχαχα εσυ σημερα δινεις λυσεις μονο με τα buffs xD...Κανε αυτο που σε λεει ο φιλος DoomeD και αν θες περνα και το source δεν εχεις να χασεις και τπτ....

  • 0
Posted

Ναι για pvp σερβερ ομως? το l2frozen εχει καλο balance?

pvp server ...... svineis OLA ta ressists , kaneis to lifedrain apo tous spellhowler , necro , orcandes apo 85 % ---> 30 - 35 % svineis ta cancel vazeis to poli na xorane 2-3 debuff diorthoneis merika skills kai eisai etimos :)

 

 

KAI KAI an valeis CUSTOMS DEN PIRAZEIS P O T E to attack speed kai to casting alios tin patises .

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello everyone, I am looking to purchase a Premium Lineage 2 High Five server pack. My main requirements are: Stability & Quality (Most Important): The pack must be highly stable with no system errors or major bugs. Custom Features: It must include ready-to-use custom features such as a fully functional Community Board, custom NPC Buffers, and Custom Item Sellers (GM Shops), etc. Complete Files: It is absolutely necessary that the full source code (src) and complete Geodata are included. If you are selling a pack that meets these criteria, please send me a PM or leave a reply with the following information: Brief details and key features of the pack Price Test server availability (I would like to test it before buying) Thank you!
    • L2jmobiusDevClon — Classic Interlude p110 Emulator L2jmobiusDevClon is actively developing a Lineage 2 Classic Interlude p110 emulator. Development is done in free time with a strong focus on: • Stability • Authentic Classic mechanics • Clean and optimized architecture The project is based on the L2jMobius source and is continuously evolving and improving. System Requirements: • Java 25 • MariaDB 12.0 • Client p110 Current Revision: 3.0 Development Status: Active Distribution: Free Official Website: https://www.l2jmobiusdevclon.pp.ua Discord Server: https://discord.gg/23a9S8g4Bn Contact: Telegram — @L2jmobiusDevClon Also available via private messages Project Goals: ✔ Improved stability ✔ Maximum Classic accuracy ✔ Core optimization We are currently looking for: • Testers • Server administrators Suggestions, bug reports, and ideas are always welcome. Contact us via: ✔ Discord ✔ Telegram ✔ Private Messages
    • i guess loading only the effects that are needed it will maybe work, like removing from reshade shader folder the ones that are not needed, depends on the pc also i guess, also limithing the game at 30fps can be better maybe
    • Up   SELL CHARACTERS L2 REBORN FRANZ x1     destroyer 74 lvl naked - 120 euro sws 71 lvl naked - 120 euro pp 66 skills - 120 euro se 64 lvl - 90 euro   Characters are legit with mail   i can wtt the characters for adena server franz   sell adena franz 250kk stock     add discord topeseller4081  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..