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.

 

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
Reply to this topic...

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



×
×
  • Create New...