-
Posts
1,403 -
Credits
0 -
Joined
-
Last visited
-
Days Won
32 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by melron
-
As sam said its impressive :) good work
-
Help Subclass costum level
melron replied to VanGon's question in Request Server Development Help [L2J]
Config.java find public static final String SIEGE_FILE = "./config/siege.properties"; after that create your own custom file , for example: (the path) public static final String CUSTOM_FILE = "./config/custom.properties"; now find public static int SIEGE_LENGTH; before/after that add your own variable like for example public static int CUSTOM_SUB_LEVEL; then search for private static final void loadSieges(). after /before this method create your own , for example: /** * Loads custom settings. */ private static final void loadCustoms() { final ExProperties custom = initProperties(Config.CUSTOM_FILE); CUSTOM_SUB_LEVEL = custom.getProperty("CustomSubClassLevel", 80); } last step: search for public static final void loadGameServer() you will see more methods like loadClans(); etc.. just add your new method like loadCustoms(); ===================================================== Go to /config (the path you used) and create a .properties file with name custom. inside just write: CustomSubClassLevel = (your level) You done :) -
Help Subclass costum level
melron replied to VanGon's question in Request Server Development Help [L2J]
There are guides about how to add a new config. its about a minute dont be lazy :D -
Help Subclass costum level
melron replied to VanGon's question in Request Server Development Help [L2J]
SubClass.java public SubClass(int classId, int classIndex) { _class = ClassId.VALUES[classId]; _classIndex = classIndex; _exp = Experience.LEVEL[40]; _sp = 0; _level = 40; } -
LF i can't spawn fence pleace help
melron replied to tazerman2's question in Request Server Development Help [L2J]
maximum fence size is 1000. Maximum acceptable value is 1099 with 1000 as return size (it could be higher). Types are 1 and 2 1) only the 4 columns 2) columns with fences between them For spawning them in some conditions automatically you have to store the location where the fence was spawned, type, sizes (2), height. A table with fences data would be perfect. -
i told u 2 times in pm that i'll do it 2morrow 4 free cause im not home lol... wtf ppl?
-
Oh shit...
-
You still believe that someone didnt get what you need? :P
-
Many useless data for a simple check. There is a boolean isGm() Reciever & sender are already created and cannot be null. You need more checks about if the player is pming the gm while is in oly,inside of other event or even in pvp mode. _target.equals( string ) its wrong compare between two different objects. Probably you forgot getName().equals You can name it as a 'base' of the code he is looking for
-
It isnt so hard, you have to add some checks in Say2.java. You need help but help us too by giving your project's name.
-
Toggle Skills After Death
melron replied to sotid's question in Request Server Development Help [L2J]
Just Click on it (you will see the method's bg as grey), do not select it -
search for a magician to solve your problem so he can guess what pack you are using and crawl the rest code
-
Toggle Skills After Death
melron replied to sotid's question in Request Server Development Help [L2J]
even if this is the right place to add the check, check again what you just did. You removing the effect and then you checking if is toggle? L2Character.java -> click the stopAllEffects() with your cursor in order to highlight it In eclipse tools -> Refactor -> Change Method Signature click on Add button . A default column will appear with : Object as 'type' , newParam as Name, null as Default Value. Edit them with 'boolean' as type , 'onDeath' as Name , 'false' as default value Click ok. L2Character.java -> doDie() method, edit all stopAllEffects(false) with true argument only those are inside of "if (this instanceof L2PcInstance)" check Edit the method stopAllEffects like this: public final void stopAllEffects(boolean onDeath) { final L2Effect[] effects = getAllEffects(); for (final L2Effect effect : effects) { if (effect != null) { if (onDeath && effect.getSkill().isToggle()) continue; effect.exit(true); } else { synchronized (_effects) { _effects.remove(effect); } } } if (this instanceof L2PcInstance) { ((L2PcInstance) this).updateAndBroadcastStatus(2); } } If you just add a check in stopAllEffects() for toggle then even in subclass change/add/cancel or idk where this method is used you will keep all toggles .... P.s 'Not tested' -
(It is english section) Lets think about it, You go to the shop and saying if the Coca Cola is zero i like it. Then you saying if Coca Cola exists in your shop, give me one. With the only difference that is java and not a shop and the 'warning' is telling you that the variable item cannot be null at this location Because this variable is used a few lines before. Delete this check or before if (item.isAugmented()) add a check if (item == null) return;
-
People are confusing me. You guys saying acis bad, ok. Your personal view. Feel free to start a mid server with l2jfrozen,scoria,hellas or what ever free is out there and then come here and talk about bugs. It's so simple people. There is not exist any single project out there without bugs. You selecting the pack you want to work with and fixing by urself the bugs you want to be fixed and checking the project's owner he's updates. Oh, frozen doesnt have updates anymore.. wait.. scoria too... oh... Lets talk about the servers who successed as mid rate or even better low rate with frozen. Actually lets count em. -0-. (Maybe 1? i doubt). With all due respect for the projects owners my opinion is that acis is much better than all others but that doesnt mean acis is project without bugs.
-
LF fortress siege npc spawnlist
melron replied to wongerlt's question in Request Server Development Help [L2J]
http://legacy.lineage2.com/news/interlude_15.html 2nd paragraph too. See it as event, make your plan, start the creation, done -
How to align text from left inside a html button in interlude?
melron replied to Dan7E2's topic in [Request] Client Dev Help
if you mean this <button value="Test " width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2"> -
Help How To Make It Forbidden
melron replied to milosvamp's question in Request Server Development Help [L2J]
You can create int[],list or even do a for loop but instead of that CategoryType enum isn't exist with healer category? -
Help L2jFrozen, problem with Corpse Kaboom skill
melron replied to Haber's question in Request Server Development Help [L2J]
What you mean don't working? explain your problem...- 2 replies
-
- skill
- corpse kaboom
-
(and 4 more)
Tagged with:
-
Help How To Make It Forbidden
melron replied to milosvamp's question in Request Server Development Help [L2J]
getClassId() returns enum, so do it getClassId().getId() -
Its obvious that is there (RequestBypassToServer) but not in mysql connection. Debug your code and find your line
-
try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement st = con.prepareStatement("UPDATE passkey SET passkey = ? WHERE obj_Id = ?"); st.setString(1, encodePass(pass)); st.setInt(2, player.getObjectId()); st.executeUpdate(); st.close(); } catch (Exception e) { e.printStackTrace(); } Simply use try-with-ressources statements, then java automatically will close the connection Edit: Your error has nothing to do with the connection btw
-
connections must be closed . otherwise Ressource leak will take place and MySQLNonTransientConnectionException error will appear because of unclosed ressource