Lineal
Members-
Posts
677 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Lineal
-
[HELP]Error Java
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
tpt ;) -
[HELP]Error Java
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
An kai pali den katalaves ti na sou pw dose mou teamviewer. -
[HELP]Error Java
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
-
[HELP]Error Java
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
exeis x64 bit windows? an nai pare to fakelo java apo to programm files x86 kai kanto paste sto kanoniko programm files fakelo. pare th diadromh apo panw px C:\Program Files\Java\jre7\bin meta pane deksi klik sto computer properties advance properties apo dipla i ri8miseis gia proxorimenous. metavlites perivalontos i home variables new i dimiourgia kenouriou meta sto Value name i sto onoma metavlitis dld to proto koutaki grapse PATH kai sto alo ti diadromh pou exeis to bin tis java sto programm files. meta kane akoma ena kenourio me apla sto name tha valeis CLASSPATH kai sto alo pali ti diadromh . pata ok kai meta eisai ok. -
[HELP]Error Java
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
pane sto server/loginserver/loginserver.properties kai vres to AcceptNewGameServer kai kanto true. kai meta eisai etimos dn xriazese hexID -
ti project xrisimopieis?
-
grapse mas edw ton kodika na doume. den eimai eidikos sta HTML ala kati grammeno lathos pistevw 8a to anagnorisw.
-
Καποιος που ξερει πως βαζουμε Auto-Updater σε Interlude?
Lineal replied to InTheEndॐ's question in Request Server Development Help [Greek]
eftixos pou ekana search protou grapsw katevato. oriste http://maxcheaters.com/forum/index.php?topic=48237.0 -
[HELP] Acc Manager Code
Lineal replied to FreakbuZz's question in Request Server Development Help [Greek]
me tv oxi , varethika prosopika na voi8aw kosmo tsampa kai na min pernw ena efxaristw. anikse to eclipse pane edw head-src/com/l2jfrozen/gameserver/model/actor/instance kane ena kenourio java file me name L2PasswordChangerInstance vale afto mesa /* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.model.actor.instance; import com.l2jfrozen.crypt.Base64; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.LeaveWorld; import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import com.l2jfrozen.gameserver.templates.L2NpcTemplate; import com.l2jfrozen.util.database.L2DatabaseFactory; import java.security.MessageDigest; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.StringTokenizer; import javolution.text.TextBuilder; public class L2PasswordChangerInstance extends L2FolkInstance { public L2PasswordChangerInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("change_password")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String currPass = null; String newPass = null; String repeatNewPass = null; try { if (st.hasMoreTokens()) { currPass = st.nextToken(); newPass = st.nextToken(); repeatNewPass = st.nextToken(); } else { player.sendMessage("Please fill in all the blanks before requesting for a password change."); return; } changePassword(currPass, newPass, repeatNewPass, player); } catch (StringIndexOutOfBoundsException e) { } } } public void onAction(L2PcInstance player) { if (!canTarget(player)) { return; } if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), 0)); player.sendPacket(new ValidateLocation(this)); } else if (!canInteract(player)) { player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); } else { showHtmlWindow(player); } player.sendPacket(new ActionFailed()); } private void showHtmlWindow(L2PcInstance activeChar) { NpcHtmlMessage nhm = new NpcHtmlMessage(5); TextBuilder replyMSG = new TextBuilder(""); replyMSG.append("<html><title>L2 InStadia Account Manager</title>"); replyMSG.append("<body><center>"); replyMSG.append("To change your password:<br1> First fill in your current password and then your new!</font><br>"); replyMSG.append("Current Password: <edit var=\"cur\" width=100 height=15><br>"); replyMSG.append("New Password: <edit var=\"new\" width=100 height=15><br>"); replyMSG.append("Repeat New Password: <edit var=\"repeatnew\" width=100 height=15><br><br>"); replyMSG.append("<button value=\"Change Password\" action=\"bypass -h npc_" + getObjectId() + "_change_password $cur $new $repeatnew\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">"); replyMSG.append("</center></body></html>"); nhm.setHtml(replyMSG.toString()); activeChar.sendPacket(nhm); activeChar.sendPacket(new ActionFailed()); } public static boolean changePassword(String currPass, String newPass, String repeatNewPass, L2PcInstance activeChar) { if (newPass.length() < 5) { activeChar.sendMessage("The new password is too short!"); return false; } if (newPass.length() > 20) { activeChar.sendMessage("The new password is too long!"); return false; } if (!newPass.equals(repeatNewPass)) { activeChar.sendMessage("Repeated password doesn't match the new password."); return false; } Connection con = null; String password = null; try { MessageDigest md = MessageDigest.getInstance("SHA"); byte[] raw = currPass.getBytes("UTF-8"); raw = md.digest(raw); String currPassEncoded = Base64.encodeBytes(raw); con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT password FROM accounts WHERE login=?"); statement.setString(1, activeChar.getAccountName()); ResultSet rset = statement.executeQuery(); while (rset.next()) { password = rset.getString("password"); } rset.close(); statement.close(); byte[] password2 = null; if (currPassEncoded.equals(password)) { password2 = newPass.getBytes("UTF-8"); password2 = md.digest(password2); PreparedStatement statement2 = con.prepareStatement("UPDATE accounts SET password=? WHERE login=?"); statement2.setString(1, Base64.encodeBytes(password2)); statement2.setString(2, activeChar.getAccountName()); statement2.executeUpdate(); statement2.close(); activeChar.sendMessage("Congratulations! Your password has been changed succesfully. You will now be disconnected for security reasons. Please login again!"); try { Thread.sleep(3000L); } catch (Exception e) { } activeChar.deleteMe(); activeChar.sendPacket(new LeaveWorld()); } else { activeChar.sendMessage("The current password you've inserted is incorrect! Please try again!"); return password2 != null; } } catch (Exception e) { _log.warning("could not update the password of account: " + activeChar.getAccountName()); } finally { try { if (con != null) con.close(); } catch (SQLException e) { _log.warning("Failed to close database connection!"); } } return true; } } kane compile k einai etimo to instance. twra gia na kaneis spawn to npc pane s opio npc 8es sto navicat kai sto type vale L2PasswordChanger kanto save kai spawn sto game.afta. an den katalaves tipota pane ma8e na kaneis compile :P -
pane sto augmentations.sql kai sto item_id 8a valeis to object_id από το items.sql
-
kane build kai apla perna to kenourio jar arxio dn xriazete na ftiaxneis ta configs. i kane to alo..apo8ikefse ta sigekrimena configs pou 8es na min alazoun pote , perna to new build kai paste ksana MONO ta configs p dn i8eles na alaksoun.
-
[HELP]Eclipse Build Error
Lineal replied to DevThomas007's question in Request Server Development Help [Greek]
Kane uninstall oti java exeis kai ksanakane install java 7. Katevase apo edw http://www.eclipse.org/downloads/ to latest version tou eclipse kane ta variables tis java kai eisai etimos :) -
Kalispera , iparxei tropos na ala3w to effect tou /unstuck command? To exw dei se enan server giafto rwtaw.
-
[Request] Άτομο για βοήθεια
Lineal replied to Dulens.'s question in Request Server Development Help [Greek]
den exw skype steile mou plirofories se pm kai an exw xrono giafta p 8es 8a s voi8isw. -
Share Interlude Server [PRIVATE]
Lineal replied to Motivati0n's topic in Server Development Discussion [L2J]
And what will you win ?fail.. -
its nice coded nice buttons not sth ordinary Now if you can LEAVE my topic!
-
Why i am trying to scamm ppl mr clever? Also i havent seen sth shared of my stuff.. btw YOU 2 go use the shared npcs none told you to buy mine :) Simple , i created some npcs , and i want to sell them.that's all!
-
Hello , i created some npcs Buffer and Gm Shop.Its not something Unique but i spend time to create them! Here is my Gm shop .. PS: if you need more photos of gm shop tell me. File includes sqls , multisells , htmls. Here some photos of my Buffer! http://i46.tinypic.com/2ufu16w.png[/img] http://i45.tinypic.com/ejidu8.png[/img] http://i47.tinypic.com/ins75g.png[/img] http://i48.tinypic.com/hv1chg.png[/img] http://i46.tinypic.com/2valbvq.png[/img] File includes sqls , htmls , skills. Client - > Interlude Price -> 10 euros If you dont like them please dont post !Or if you think that you can code them in 5 min , do it but dont spamm my topic! PS:I will update it with more npcs if i saw that it goes well.
-
lol bgale tin buffer apo to pvp zone
-
you have to edit xml files :)
-
download JDK a) add variable JAVA_HOME = "C:\Program Files\Java\jdk1.6.0_23\bin" Example: http://wso2.org/project/wsas/java/2.0-beta/docs/setting-java-home.html b) add JAVA_HOME to PATH variable: -Right-click on the My Computer icon on your desktop and then click Properties. -Click the Advanced tab. -Click Environment Variables. -Under System Variables, find PATH variable and click "Edit". -At the end of Variable Value, add ;%JAVA_HOME% -Click OK. -Click Apply Changes. credits l2jfrozen forum
-
http://l2age.com/ this server or do you want some1 to copy they futures?
-
[Help] again active
Lineal replied to ShotGun®'s question in Request Server Development Help [Greek]
den katalava oute egw e3igise ali mia! to provlima einai oti ginonte ola augument i oxi? apo mona tous i oxi? -
WTS [WTS]Interlude Ready to run server!
Lineal replied to Lineal's topic in Marketplace [L2Packs & Files]
pmed.
