Jump to content

Recommended Posts

Posted

Hello MxC.I decide to create patch for newbie characters buffering.

here it is:

 

Index: config/start.properties
===================================================================
--- config/start.properties	(revision 80)
+++ config/start.properties	(working copy)
@@ -61,4 +61,10 @@
StartWithNobless = False

#All Characters Become Hero!
-StartWithHero = False
\ No newline at end of file
+StartWithHero = False
+
+#-------------------------------------------------------------
+# Newbie character Buffering
+#-------------------------------------------------------------
+#Buff Newbie Character?
+BuffNewbieCharacter = False
\ No newline at end of file
Index: java/lt/equal/Config.java
===================================================================
--- java/lt/equal/Config.java	(revision 80)
+++ java/lt/equal/Config.java	(working copy)
@@ -822,6 +822,7 @@
	public static int REC_REWARD;
	public static boolean ENCHANT_HERO_WEAPONS;	
	public static boolean ALL_CHARS_HERO;
+	public static boolean NEWBIE_CHAR_BUFF;
	//By Leki End

	// RATES_CONFIG_FILE
@@ -2019,7 +2020,8 @@
						}
					}				
				START_WITH_NOBLESS = Boolean.parseBoolean(startSettings.getProperty("StartWithNobless", "False"));
-				ALL_CHARS_HERO = Boolean.parseBoolean(startSettings.getProperty("StartWithHero", "False"));				
+				ALL_CHARS_HERO = Boolean.parseBoolean(startSettings.getProperty("StartWithHero", "False"));	
+				NEWBIE_CHAR_BUFF = Boolean.parseBoolean(startSettings.getProperty("BuffNewbieCharacter", "False"));			

				_log.info("# " + START_CONFIG_FILE + " Sucessfully LOADED #");
			}
Index: java/lt/equal/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- java/lt/equal/gameserver/network/clientpackets/EnterWorld.java	(revision 80)
+++ java/lt/equal/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -217,6 +217,12 @@
			activeChar.setProtection(true);
		}

+		//NewBie Character Buffering
+		if (Config.NEWBIE_CHAR_BUFF && activeChar.getLevel() == 1)
+		{
+			SkillTable.getInstance().getInfo(364, 1).getEffects(activeChar, activeChar);		
+		}
+
		// restore info about chat ban
		activeChar.checkBanChat(false);

 

Credits to Me.

 

 

P.s if you want more buff add this

SkillTable.getInstance().getInfo(skill_id, skill_lvl).getEffects(activeChar, activeChar);

 

After

 

SkillTable.getInstance().getInfo(364, 1).getEffects(activeChar, activeChar);
Posted

Yes..

i most try this

sound good for a newbie server like mine

so the points is all levels can get buffs right?

 

activeChar.getLevel() == 1).....nothing more to say

  • 1 year later...

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


×
×
  • 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