Stefoulis15 Posted February 11, 2009 Posted February 11, 2009 Well , Since It's My Very FIRST Java Creation , I Want To Hear Your Opinions.. This Is A Custom Item , That Allows You When You Double-Click On It , To Grand You With Noblesse Status + Noblesse Skills . ( For Ever. NOT Until Restart! ) NOTE!: Tested On L2JFree And L2J And It's Working. ( The Following Guide Is For L2J ) Okay Let's Start.. First , Go To java.net.sf.l2j.gameserver.handler.itemhandlers And Create a New .java File Named "NobleCustomItem" ( Without The Quotes ) Second , Open It And Paste Inside It , These : // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 5/10/2008 2:12:00 μμ // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version! // Decompiler options: packimports(3) // Source File Name: NobleCustomItem.java package net.sf.l2j.gameserver.handler.itemhandlers; import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; public class NobleCustomItem implements IItemHandler { public NobleCustomItem() { } public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(Config.NOBLE_CUSTOM_ITEMS) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; if(activeChar.isNoble()) { activeChar.sendMessage("You Are Already A Noblesse!."); } else { activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setNoble(true); activeChar.sendMessage("You Are Now a Noble,You Are Granted With Noblesse Status , And Noblesse Skills."); activeChar.broadcastUserInfo(); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } } } public int[] getItemIds() { return ITEM_IDS; } private static final int ITEM_IDS[] = { 6673 }; } Third , Save It And Close It. Fourth , Go To java.config Find The File "Character.properties" And Open It. Go At The Bottom And Paste This : #============================================================# # Custom Noblesse Item Configuration # #============================================================# # Noble Custom Item Configuration. # Item Id = 7196. # When ActiveChar will use this item will gain Noble Status. EnableNobleCustomItem = True Save It And Close It. Fifth , Go To java.net.sf.l2j And Find The File "Config.java" Find This Line : public static int PARTY_XP_CUTOFF_LEVEL; And Paste This Right After It : public static boolean NOBLE_CUSTOM_ITEMS; Now , Find This Line : PARTY_XP_CUTOFF_LEVEL = Integer.parseInt(Character.getProperty("PartyXpCutoffLevel", "30")); And Paste This Right After It : NOBLE_CUSTOM_ITEMS = Boolean.parseBoolean(Character.getProperty("EnableNobleCustomItem", "true")); Save It , And Close It. Sixth, Go To java.net.sf.l2j.gameserver.handler And Find The File "ItemHandler.java" Open It. Find This : import net.sf.l2j.gameserver.handler.itemhandlers.*; And Paste This Right After It : import net.sf.l2j.gameserver.handler.itemhandlers.NobleCustomItem; Then Find This : registerItemHandler(new SpiritLake()); And Paste This , Right After It : registerItemHandler(new NobleCustomItem()); Save It And Close It. Seventh, Compile Your Gs ( Via Maven , Ant Build Doesn't Really Matter..But Since I Use L2J I Did It Via Ant Build ) And You Are Okay..! Enjoy! P.S: Special Thanks To Cobra For Showing Me The First Steps Of Java... Also , I'll Post a Video Later In Order To See What This Item Does.. [EDIT] Ready Patch Files ( .diff ) http://www.4shared.com/file/87327813/a83a8f7a/NobleCustomItem.html
xXxExosoulerxXx Posted February 11, 2009 Posted February 11, 2009 IT ROCKS!!!!! this work and to l2jfree IL?
Kràtos Posted February 11, 2009 Posted February 11, 2009 Well i'm happy to see my teaches ..work's xD Good Work !!! And you learn Fast ...!! Keep Up Mate :)
Intrepid Posted February 11, 2009 Posted February 11, 2009 gg stef good work nice to see when somebody try to make java modifications alone:)
Fogotendx20 Posted February 12, 2009 Posted February 12, 2009 its awsome dude!! gg bro you rock! nothing special.... for ppl without java knowledge is just copy/past the "hero item handler" and change only this part activeChar.setNoble(true); ... shared by mafia
Jαkє Posted February 12, 2009 Posted February 12, 2009 Good Job Stefoulis ;) nothing special.... for ppl without java knowledge is just copy/past the "hero item handler" and change only this part activeChar.setNoble(true); ... shared by mafia About you, why dont you show us your Uber Mega Java Skills By Creating something by your Own ? (Using JAVA), Istead of criticizing other ppl work. thanks again Stefoulis. Much appreciated.
DāЯқŜiĐє Posted February 12, 2009 Posted February 12, 2009 Good Job Stefoulis ;) About you, why dont you show us your Uber Mega Java Skills By Creating something by your Own ? (Using JAVA), Istead of criticizing other ppl work. thanks again Stefoulis. Much appreciated. LOL IiIiJacKiIiI you are omfg...Have you ever seen Fogotend's shares?? LOL...Learn first then speak..(check forum for his creations)..Anyway Stefoulis Thank you for the awesome share..
Kràtos Posted February 12, 2009 Posted February 12, 2009 nothing special.... for ppl without java knowledge is just copy/past the "hero item handler" and change only this part activeChar.setNoble(true); ... shared by mafia Look the other share is from Vago and Hanwik did it .... the wrong on other share is the item can't be disapear .. Wen the Character press on the item ....!! So if you understand about java you must see it ....!!! Anyway ([Gr]O kathenas me tin trela tou) //End p.s: Stef Again you do great job :)
DāЯқŜiĐє Posted February 12, 2009 Posted February 12, 2009 Look the other share is from Vago and Hanwik did it .... the wrong on other share is the item can't be disapear .. Wen the Character press on the item ....!! So if you understand about java you must see it ....!!! Anyway ([Gr]O kathenas me tin trela tou) //End Yep I agree with you...(3 months ago I played in a server and when i click 1 item i get full buffs..I will check it in mxc forum..) [GR]Ti na peis....Epeidi o allos dn kanei search nomizei oti o Fogotend einai kanenas tyxaiws pou aplos einai perastikos apo to mxc...Anyway o ka8enas me tn trela tou edw mesa :)
Intrepid Posted February 12, 2009 Posted February 12, 2009 nothing special.... for ppl without java knowledge is just copy/past the "hero item handler" and change only this part activeChar.setNoble(true); ... shared by mafia Man he learn how to make things in java... I dont know why but there are some ppl like you who said its not a big deal easy to make but thats nonsense because you talk but dont do anything i see too many ppl in mxc like you... correct me if i'm wrong but i dont see any JAVA guide share or else from you only a subclass delay(but its implemented in l2jfree so easy to have it...) make a USEFULL JAVA share when you have it you can talk like that but until you dont have it plz let them to learn java and dont insult them...
DāЯқŜiĐє Posted February 12, 2009 Posted February 12, 2009 Man he learn how to make things in java... I dont know why but there are some ppl like you who said its not a big deal easy to make but thats nonsense because you talk but dont do anything i see too many ppl in mxc like you... correct me if i'm wrong but i dont see any JAVA guide share or else from you only a subclass delay(but its implemented in l2jfree so easy to have it...) make a USEFULL JAVA share when you have it you can talk like that but until you dont have it plz let them to learn java and dont insult them... Look his insulting style is F@cking wrong but he knows things(L2 modding etc...)I didnt agree with IiIiJacKiIiI because he said that Fogotend didnt make any good share..Anyway all these things are offtopic...
Intrepid Posted February 12, 2009 Posted February 12, 2009 Look his insulting style is F@cking wrong but he knows things(L2 modding etc...)I didnt agree with IiIiJacKiIiI because he said that Fogotend didnt make any good share..Anyway all these things are offtopic... Thats all nice and good BUT you dont understand my reply i said LET THEM LEARN...look what stef said: Well , Since It's My Very FIRST Java Creation , I Want To Hear Your Opinions.. for fogotend its not a hard thing to make?thats ok but for stef its a good start because java is not an easy thing and because of that the only thing we can do is thanks the work he made not reply like this: for ppl without java knowledge is just copy/paste... ahh i really start to understand why A-style leave...
Stefoulis15 Posted February 12, 2009 Author Posted February 12, 2009 Well ,Thanks For Your Comments People.. Also , Yes Maybe It Is a C/p Fogotendx20 for people without java knowledge.. but u can check that the people that created the hero item , wasn't working fully.. so it can't be a c/p W/e , I'll Continue Creating Things.. Don't Really Care If You Like It Or Not.
Ombladon1991 Posted February 12, 2009 Posted February 12, 2009 nice mod... but // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 5/10/2008 2:12:00 μμ ::) ::) ::)
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