Jump to content

Recommended Posts

Posted

Hello members of maxcheaters.

I came back from ban and i want to share something.

I do not think there is something similar and I told him to build one.

Is a simple code.

 

Is a hero system effect for new players.

On starting the new player have Hero Aura.

When the player get exp/level, lost hero status after restart.

 

Based L2J Server IL.

 

config:
ChampionRewardItemQty = 1
+
+#---------------------------------------------------------------
+# Hero System                   
+#---------------------------------------------------------------
+HeroAuraSystem = True
=====
Index: sf/l2j/config.java
    public static int L2JMOD_CHAMPION_REWARD_QTY;
+  public static boolean			HERO_AURA_SYSTEM;


                L2JMOD_CHAMPION_REWARD_QTY            = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1"));
+              HERO_AURA_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("HeroAuraSystem", "false"));
=====
Index: sf/l2j/gameserver/clientpackets/EnterWorld.java
	Quest.playerEnter(activeChar);
	activeChar.sendPacket(new QuestList());

+		if (Config.HERO_AURA_SYSTEM)
+	       {
+	        	if (activeChar.getExp() <= 0)
+     
+	           activeChar.setHero(true);
+	            activeChar.sendMessage("[Auto Messenger]: You get Hero Aura until restart");
+	}

Credits:Me

Posted

This code isn't for effect, but for hero status.

 

Also, learn to make patch. Gz!

How status. and when the player get exp/level will lose it.

Posted

activeChar.setHero(true);

 

this is setting you hero, when you obtain exp.

if (activeChar.getExp() <= 0)

   

activeChar.setHero(true);

 

When a new player has logged is hero. Without to get exp.

 

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