Dan7E2 Posted March 7, 2016 Share Posted March 7, 2016 need premium rune for l2jfrozen i searched in forum and i found only a code which doesnt work at all l2jfrozen already have //setdonator but no item Quote Link to comment Share on other sites More sharing options...
0 Lineal Posted March 7, 2016 Share Posted March 7, 2016 whats a premium rune mate? Sorry if i should already know that , could you explain it better ? Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 7, 2016 Author Share Posted March 7, 2016 l2jfrozen already have //setdonator command which give a character sp xp adena drop spoil bonus rate i want an item like this: when you have the item in inventory you get donator status , can be a quest item for example and i set the item duration in database to 24 hours for example Quote Link to comment Share on other sites More sharing options...
0 Rootware Posted March 7, 2016 Share Posted March 7, 2016 If you want it for free, then teach Java. This code you will not find. What need: 1. Create new items and itemhandler for activation premium time. 2. Create global task for control premium state of all characters. If you want global premium for all characters and servers when need cretate global task on the Login server side. Otherwise, on the Game server. 3. Add modifiers and checks for rates EXP, SP and DROP for premium users. And this you want to get at free? Learn Java or buy. Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 7, 2016 Author Share Posted March 7, 2016 If you want it for free, then teach Java. This code you will not find. What need: 1. Create new items and itemhandler for activation premium time. 2. Create global task for control premium state of all characters. If you want global premium for all characters and servers when need cretate global task on the Login server side. Otherwise, on the Game server. 3. Add modifiers and checks for rates EXP, SP and DROP for premium users. And this you want to get at free? Learn Java or buy. I made the code but i have some errors when compile Quote Link to comment Share on other sites More sharing options...
0 Szakalaka Posted March 7, 2016 Share Posted March 7, 2016 Then fix the Java or buy, simple as that Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 7, 2016 Author Share Posted March 7, 2016 compile: [javac] Compiling 1122 source files to C:\Users\XXX\Desktop\source\source\build\classes [javac] C:\Users\XXX\Desktop\source\source\head-src\com\l2jfrozen\gameserver\handler\admincommandhandlers\AdminDonator.java:179: error: cannot find symbol [javac] stmt.setLong(6, player.getHeroDate(player.getObjectId())); [javac] ^ [javac] symbol: method getHeroDate(int) [javac] location: variable player of type L2PcInstance [javac] C:\Users\XXX\Desktop\source\source\head-src\com\l2jfrozen\gameserver\handler\itemhandlers\DonatorCustomItem.java:96: error: cannot find symbol [javac] stmt.setLong(6, player.isHero() ? 0 : player.getHeroDate(player.getObjectId())); [javac] ^ [javac] symbol: method getHeroDate(int) [javac] location: variable player of type L2PcInstance [javac] C:\Users\XXX\Desktop\source\source\head-src\com\l2jfrozen\gameserver\handler\itemhandlers\HeroCustomItem.java:99: error: cannot find symbol [javac] stmt.setLong(6, player.getHeroDate(player.getObjectId()) + heroTime); [javac] ^ [javac] symbol: method getHeroDate(int) [javac] location: variable player of type L2PcInstance [javac] 3 errors BUILD FAILED C:\Users\XXX\Desktop\source\source\build.xml:65: Compile failed; see the compiler error output for details. Total time: 14 seconds Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 7, 2016 Author Share Posted March 7, 2016 anyone can help? Quote Link to comment Share on other sites More sharing options...
0 KruMix Posted March 7, 2016 Share Posted March 7, 2016 Put the code here. Quote Link to comment Share on other sites More sharing options...
0 Rootware Posted March 7, 2016 Share Posted March 7, 2016 player.getHeroDate(player.getObjectId()) + heroTime You are hero in Java. :happyforever: Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 7, 2016 Author Share Posted March 7, 2016 player.getHeroDate(player.getObjectId()) + heroTime You are hero in Java. :happyforever: I simply need some help, i know i am not that experienced as you are ;) Quote Link to comment Share on other sites More sharing options...
0 Lineal Posted March 8, 2016 Share Posted March 8, 2016 hmm try to activechar.gerinventory() and them getitemid if its true activechar setdonator its should work.. or simply u can make it by clicking on item..to gain donator status..just copy the noble one and edit it ( if i got what you mean)!! Quote Link to comment Share on other sites More sharing options...
0 SQL Developer Posted March 8, 2016 Share Posted March 8, 2016 You must create an Handler like NoblessCustomItem.java name it Donateruneitem.java then copy/paste what nobless handler got inside .. change all the important thinks and the check you want to have like if (activeChar.isInOlympiadMode()) { activeChar.sendMessage("This Item Cannot Be Used On Olympiad Games."); } if (activeChar.isNoble()) { activeChar.sendMessage("You Are Already A Noblesse!."); } Then change the with setdonator or however is the command to set someone donator 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); activeChar.getInventory().addItem("Tiara", 7694, 1, activeChar, null); } and for the last go to Config.java check how noblesse work somethink like that: if (Config.NOBLE_CUSTOM_ITEMS) // this is inside NoblessCustomItem.java public static boolean NOBLE_CUSTOM_ITEMS; // this is inside config.java NOBLE_CUSTOM_ITEMS = Boolean.parseBoolean(L2JFrozenSettings.getProperty("EnableNobleCustomItem", "true")); NOOBLE_CUSTOM_ITEM_ID = Integer.parseInt(L2JFrozenSettings.getProperty("NoobleCustomItemId", "6673")); # ------------------------------------------------------- # Noble Custom Item Configuration - ///////////// <--- This is inside config.properties # ------------------------------------------------------- # When ActiveChar will use this item will gain Noble Status. EnableNobleCustomItem = True // Is the NOBLE_CUSTOM_ITEMS in config.java # Id Itemn Need's NoobleCustomItemId = 10085 // is the NOOBLE_CUSTOM_ITEM_ID in config.java well from the time you got allready the "command" instance is very very very easy to make it usable from an item Quote Link to comment Share on other sites More sharing options...
Question
Dan7E2
need premium rune for l2jfrozen
i searched in forum and i found only a code which doesnt work at all
l2jfrozen already have //setdonator but no item
Link to comment
Share on other sites
12 answers to this question
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.