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 .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Faltan demasiados archivos,  y lógicas en clases claves como L2pcInstance, entre otras. si bien muchas cosas están y el flujo es valorable.  Gracias por tu esfuerzo es bastante... pero realmente no esta completo el código, falta que subas todas las modificaciones en clases colaterales... podrías intentar subir un diff de todo el mod  completo de tu pack y bueno ahí si que cada uno adapte... pero faltan muchas cosas, dudo que haya gente que lo haya echo funcionar con esto... 
    • I know people who have fully bypassed and reversed AAC. One day, they might even release the full source code, but for now, they’re still making money off it. I won’t name anyone, but it’s clear that there aren’t any truly solid anticheats for Lineage2. As I’ve said before, kernel level anticheats are the only real solution. Anything that runs as Internal and injects gets flagged, and your account ends up getting kicked or banned. That’s just how most games handle it nowadays. To TL;DR the whole thing cheating will always exist because there are people out there smart enough to bypass any protection and run private cheats. Public cheats are always detected eventually, so I don’t see any point in buying AAC, especially when they claim it blocks adr, which simply isn’t true.
    • 🌐 Website: https://l2adonis.com 📅 GRAND OPENING: July 18, 2025 – 20:00 (UTC+2) 💬 Discord: https://discord.com/invite/tZBj8JxAwx 🚫 No auto-farm • No auto-macro • No pay-to-win • No custom   Some Basic Info's (More detalied info's on website)  EXP/SP: x25  Adena: x15  Drop: x15  Spoil: x15  Seal Stones: x15  Raid Boss Drop: x10  Epic Boss Drop: x1  Manor: x10  Safe Enchant: +4  Max Enchant: +16  Normal Scroll Chance: 50%  Blessed Scroll Chance: 66% (If enchant fail item remain +4)  Buff Slots (30+4 extra with Divine Inspiration)  Dances/Songs Slots 14  Auto-learn skills  ⚔️ Real PvP • Real Progression • Retail-like experience JOIN NOW and relive the real L2 experience!
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchihamkt.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/uthciha-servicess  | https://campsite.bio/utchihaamkt
    • Looking for a Developer – Lineage II Interlude (Vanganth Files)   I’m seeking a developer to collaborate on a project based on Vanganth Interlude files.   Important: Applicants with a bad attitude, lack of respect, or unwillingness to work will be immediately rejected. Payment: Hourly rate, not per task. Contact: Please reach out to me via PM.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock