'Baggos' Posted August 9, 2012 Posted August 9, 2012 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 Quote
Dulens. Posted August 9, 2012 Posted August 9, 2012 This code isn't for effect, but for hero status. Also, learn to make patch. Gz! Quote
SweeTs Posted August 9, 2012 Posted August 9, 2012 This code isn't for effect, but for hero status. I was about to say the same.. :) Quote
'Baggos' Posted August 10, 2012 Author Posted August 10, 2012 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. Quote
Dulens. Posted August 10, 2012 Posted August 10, 2012 activeChar.setHero(true); this is setting you hero, when you obtain exp. Quote
'Baggos' Posted August 10, 2012 Author Posted August 10, 2012 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. Quote
Recommended Posts
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.