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

    • ***DO NOT BUY WHAT IS POSTED HERE FOR FREE*** https://www.mediafire.com/file/mhjiaoipe6hohjm/Extender_Rev_222_by_Guytis.rar/file   It has everything Devs is offering for $450 USD with a license. Here it is, free and with source code. 
    • Hello, well obviously i dont have access to the server side, and neither have those guys in the picture, i thought it was something client side since they manage to have that...    Here is another example, Its essence server btw  
    • So according to you, you found a bug so hidden that nobody can discover it — not even by analyzing the source code with modern tools.   Is that really what you're trying to say?   Because what you're basically claiming is that: The files contain an error But nobody can find it Nobody can fix it Not even by analyzing the code with tools like ChatGPT So… a magical invisible bug that only you can see.   Do you realize how absurd that sounds?   If there was actually a real problem, it would be very easy to demonstrate: Open the server. Show the error. Point to the exact place in the code where it happens.   But instead of doing that, the only thing you've done so far is write vague messages and say “I'll make a video.” Perfect. Go ahead and make the video. Show the error. Show the code.   Because up to this point, all we have here are accusations without a single piece of technical evidence. And in a development forum, that has absolutely no value.   Regards.   ***DO NOT BUY WHAT IS POSTED HERE FOR FREE*** https://www.mediafire.com/file/mhjiaoipe6hohjm/Extender_Rev_222_by_Guytis.rar/file   It has everything Devs is offering for $450 USD with a license. Here it is, free and with source code.  ------------------------------------------------------------------------------------------------------   I would like to ask if a moderator or administrator could please review the thread and consider closing it.   The user involved keeps posting misleading statements and accusations without providing any technical proof. The discussion has stopped being a constructive technical conversation and has turned into repeated attempts to spread misinformation about the files.   Despite being asked multiple times to provide evidence (such as a reproducible error, logs, or code analysis), none has been presented. Instead, the thread continues with vague claims that only generate confusion within the community.   From my perspective, the purpose seems to be discouraging users from using the freely available files while promoting alternative products.   Since no technical evidence has been provided and the thread is no longer productive, I believe it would be better for the community if the discussion were closed.   Thank you for your time and attention.   Best regards. --------------------------------------------------------------------------------------------------------   ***DO NOT BUY WHAT IS POSTED HERE FOR FREE*** https://www.mediafire.com/file/mhjiaoipe6hohjm/Extender_Rev_222_by_Guytis.rar/file   It has everything Devs is offering for $450 USD with a license. Here it is, free and with source code.   
    • What ChatGPT? Dont think ChatGPT will fix your problem :d You will never figure out where the problem actually is. Don’t try to twist things. Just open the server and write here.. i will make a video for you showing how everything goes to hell with “your files”
  • 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..