WizZy™ Posted July 13, 2009 Posted July 13, 2009 Well its kinda unique.. I never saw it in another server before,decided to make mine like this cuz olympiad is failure - feedings etc..So with this thingie you can make every logged player a hero + skills. Works on all l2j's ^^ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java Find this : // Set Hero status if it applies if (Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(activeChar.getObjectId())) activeChar.setHero(true); Delete it and on the deleted lines paste this : // All chars are hero's if(!activeChar.isHero()) activeChar.setHero(true); PLS dont post things like USELESS .. P.S. Thanks to Horus and Stefoulis15 for helping me ;d
ExTrEmEDwarf Posted July 13, 2009 Posted July 13, 2009 Horus is the best^^ he doesnt give u a code to paste, he just tell u how to do it and u have to search it by yourself. I love when he do that :P
WizZy™ Posted July 13, 2009 Author Posted July 13, 2009 Yes ,that actually i learned something today ^^ Thanks to him Again :)
Horus Posted July 13, 2009 Posted July 13, 2009 You're welcome ^^ Thats my job, to make naapzords only naapies :P ihih. Kidding, anyway good job people.
Stefoulis15 Posted July 15, 2009 Posted July 15, 2009 good job mate.. i see u done it :) gratz :) keep up the shares.. :)
MasterDisaster Posted July 15, 2009 Posted July 15, 2009 Good one mate..Keep sharing such codes and soon u gonna be top dev :D
WizZy™ Posted July 15, 2009 Author Posted July 15, 2009 Good one mate..Keep sharing such codes and soon u gonna be top dev :D I don't think so ;d This is the most simple thing ever :/
Intrepid Posted July 15, 2009 Posted July 15, 2009 The only problem is i think if you gain hero status you lost it because of the check. anyway everybody who start to learn java is welcome :)
Kràtos Posted July 15, 2009 Posted July 15, 2009 anyway everybody who start to learn java is welcome :) Owned!!! ;P
Horus Posted July 15, 2009 Posted July 15, 2009 The only problem is i think if you gain hero status you lost it because of the check. LOOL are you crazy ? Jeez Intrepid are you on drugs and suddenly forgot Java ? In english the check works like this: IF the character is NOT a hero, then make him. ELSE if he IS a hero DO NOTHING. ^^
Intrepid Posted July 15, 2009 Posted July 15, 2009 LOOL are you crazy ? Jeez Intrepid are you on drugs and suddenly forgot Java ? In english the check works like this: IF the character is NOT a hero, then make him. ELSE if he IS a hero DO NOTHING. ^^ ahh lol sry nahh im not on drugs(or maybe :D ) that happens when i write something 10min after i get up :D
MasterDisaster Posted July 16, 2009 Posted July 16, 2009 I don't think so ;d This is the most simple thing ever :/ WeLL u must know that all the top devs started from teh most simple things and now here they are... ;)
WizZy™ Posted July 16, 2009 Author Posted July 16, 2009 Interpid you're wrong.. From PHP i know that when u do a if(!activeChar.isHero()) ! means that if(false) etc etc.They are so close languages ;d Almost same!(yea sure..;x).Okay okay not the same cuz i write php but i can't java this is another shit ^^ I`ll make it on a config too.(mabey:D)
Stefoulis15 Posted July 16, 2009 Posted July 16, 2009 as a config. it's not sth difficult. just Enterworld.java // All chars are hero's if (Config.NEW_CHAR_SET_HERO) { if(!activeChar.isHero()) activeChar.setHero(true); } Config.java + public static boolean NEW_CHAR_SET_HERO; + NEW_CHAR_SET_HERO = Boolean.parseBoolean(L2JModSettings.getProperty("NewCharSetHero", "True")); L2JMod.properties #Set Hero Every New Character On It's Login? NewCharSetHero = True sth like this. NOTE: Im not on my eclipse , so there might be some mistakes.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now