N3uTr0n
Members-
Posts
21 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by N3uTr0n
-
Discussion The Best Java In The Europe
N3uTr0n replied to nn03's question in Request Server Development Help [L2J]
i vote for l2jserver -
cool for donate
-
Hey, i haven't any idees how to fix it... my problem is in tools folder database_installer.bat file... then i change mysql destination it wont open... becouse i add (x86) if i do not add () then works but didint see any mysql destination, how to fix it or how to change destination from nivaicat? I want to navicat navicat to look mysql to C:/mysql/mysql 5.1/ bin but now it looking to C:/porgram files/Mysql/mysql 5.1/bin
-
[SHARE]CounterStrike sounds during pvp.
N3uTr0n replied to Vago's topic in Server Shares & Files [L2J]
still got error + PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers() {{{.values(); }} <---- HERE ------ + for (L2PcInstance onlinePlayer : pls) + if (onlinePlayer.isOnline() == 1) + { + if (onlinePlayer.getClan() != null) + { + if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk) + { + onlinePlayer.sendPacket(_snd); + } + } + } + -
got error on vlaues what to do?
-
[SHARE]CounterStrike sounds during pvp.
N3uTr0n replied to Vago's topic in Server Shares & Files [L2J]
+ PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); ------ + for (L2PcInstance onlinePlayer : pls) + if (onlinePlayer.isOnline() == 1) + { + if (onlinePlayer.getClan() != null) + { + if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk) + { + onlinePlayer.sendPacket(_snd); + } + } + } + got on values error -
[HELP]Seed of Destruction instance
N3uTr0n posted a question in Request Server Development Help [L2J]
hello, i need help for Seed of destruction, it's count a Comand chanal , but i need it to count a party members for mid rate server becouse i dont except a lot of players now it count min 25 players max 36 i think, but i turn them for 2-9 and test it with party(2members) ir say need to be in comand chanal can samone fix it? Realy thx who can help me also i'll give +karma and respect u ;) P.S using l2jserver pack script: http://pastebin.com/P7rwQy04 -
[Share] Auto Announce Without (.bat) files! (+ Guide)
N3uTr0n replied to NightLife's topic in Server Shares & Files [L2J]
alerdy in l2jserver files -
good for cusum servers
-
main classes cant join?
-
[Share] Premium (Vitamin) items / Rewarding players
N3uTr0n replied to rullezz's topic in Server Shares & Files [L2J]
works on freya? -
works on l2jserver?
-
hm better be if we can atribute them
-
realy nice i will try it
-
sorry for spam but fixed it ;)
-
where wtirte it? /* 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 net.sf.l2j.gameserver.model.entity; import java.sql.PreparedStatement; import java.sql.ResultSet; import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.clientpackets.Say2; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.serverpackets.CreatureSay; /** * * @author xAddytzu */ public class ProtectionIP { public static void onEnterWorld(L2PcInstance player) { String last = ""; String curr = ""; try { last = LastIP(player); curr = player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress(); } catch (Exception e) { } if (!last.equals(curr)) player.sendPacket(new CreatureSay(1, Say2.PARTY, "SYSTEM", "Your last ip was: "+last+" and current: "+curr)); UpdateLastIP(player, player.getAccountName()); } public static String LastIP(L2PcInstance player) { String lastIp = ""; java.sql.Connection con = null; try { ResultSet rset; con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT * FROM `accounts` WHERE login = ?"); statement.setString(1, player.getAccountName()); rset = statement.executeQuery(); while(rset.next()) { lastIp = rset.getString("lastIP"); } } catch(Exception e) { e.printStackTrace(); } finally { try { con.close(); } catch(Exception e) { e.printStackTrace(); } } return lastIp; } public static void UpdateLastIP(L2PcInstance player ,String user) { String address = player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress(); java.sql.Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("UPDATE accounts SET lastIP=? WHERE login=?"); statement.setString(1, address); statement.setString(2, user); statement.execute(); statement.close(); } catch(Exception e) { e.printStackTrace(); } finally { try { con.close(); } catch(Exception e) { e.printStackTrace(); } } } }
-
[SHARE]CounterStrike sounds during pvp.
N3uTr0n replied to Vago's topic in Server Shares & Files [L2J]
cooooool realy helped ;) -
Hey every one, im looking for faction mod for l2jserver files, it could be Freya or h5. If samone can post it, realy thanks. :)