Jump to content

SQL Developer

VIP Member
  • Posts

    727
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by SQL Developer

  1. http://www.maxcheaters.com/topic/180575-interlude-trances-l2gold-project/check this
  2. there is free shared check and you will find it i saw them before some days
  3. As titlle say i looking for {PVP} interlude armors (tallum,dc,ic,drago,ma) .. anyone god it?
  4. paizw lol afthn thn stigmi den mporo na mpw .. ekei akrivos vale to url apo to SVN tou projectpou 9es na xrisimopoieiseis p.x http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/
  5. 3 Pragmata exeis na kaneis ,install to subclipse,na ftiakseis to JAVA_HOME kai na ftiakseis to jdk apo to eclipse (window->prefences->install JRE's->search->to diko m einai C:\Program Files\Java\jdk1.7.0_75\jre)
  6. meta kato sthn mpara pou leei problems,javadoc,declaration,console 9a sou vgalei kai SVN Repositories pata panw kane deksi click sto keno kai pata new .. meta vale to link tou SVN pou theleis esy
  7. thanks a lot budy :))) now i will try get out of the code the html .. i try do that from yesterday good luck on me :D
  8. Works fine,i correct a copy/paste wrong line: /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package com.l2jfrozen.gameserver.model.actor.instance; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.network.serverpackets.SocialAction; import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import com.l2jfrozen.gameserver.templates.L2NpcTemplate; import com.l2jfrozen.util.random.Rnd; /** * @author Debian * * Rework Ayami */ public class L2ClanManagerInstance extends L2FolkInstance { public L2ClanManagerInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("levelup")) { if(player.getClan() != null) { if (!player.isClanLeader()) { player.sendMessage("Only clan leaders, can use this service."); } if (player.isClanLeader() && player.getClan().getReputationScore() > 50000) { player.getClan().setReputationScore(50000, true); player.getClan().changeLevel(8); player.sendMessage("Your clan successfully changed to level 8."); } else { player.sendMessage("Your clan must have 50000 clan reputation points in order to buy level 8."); } } else { player.sendMessage("You don't have a clan."); } } } @Override public void onAction(L2PcInstance player) { if (!canTarget(player)) return; player.setLastFolkNPC(this); // Check if the L2PcInstance already target the L2NpcInstance if (this != player.getTarget()) { // Set the target of the L2PcInstance player player.setTarget(this); // Send a Server->Client packet MyTargetSelected to the L2PcInstance player MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); my = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { // Calculate the distance between the L2PcInstance and the L2NpcInstance if (!canInteract(player)) { // Notify the L2PcInstance AI with AI_INTENTION_INTERACT player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); } else { showMessageWindow(player); } } // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet player.sendPacket(ActionFailed.STATIC_PACKET); } private void showMessageWindow(L2PcInstance player) { NpcHtmlMessage debian = new NpcHtmlMessage(5); StringBuilder tb = new StringBuilder(""); tb.append("<html><head><title>Clan Manager</title></head><body>"); tb.append("<center>"); tb.append("<img src=\"L2Font-e.replay_logo-e\" width=256 height=80>"); tb.append("<br>"); tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>"); tb.append("<br>"); tb.append("<font color=\"FFAA00\">Clan Manager</font>"); tb.append("<br>"); tb.append("</center>"); tb.append("<center>"); tb.append("<a action=\"bypass -h npc_" + getObjectId() + "_levelup\">Get your clan at level 8.</a><br>"); tb.append("<font color=\"FFAA00\">It costs 50.000 clan reputation points.</font>"); tb.append("<br>"); tb.append("</center>"); tb.append("<center>"); tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>"); tb.append("<br>"); tb.append("</center>"); tb.append("</body></html>"); debian.setHtml(tb.toString()); player.sendPacket(debian); } }
  9. i want to add this code because i want remove the html from code side and paste it on merchant because i want make one npc who will enclude many thinks like Enchant skill,enchant item,increase clan lvl etc ... sec i will post errors
  10. c1? not even download it ... too low graphics .. i want god graphics on interlude client .. this is somethink who i will play for sure ...
  11. i tryed but i still get some errors of some lines who i dont know to correct them for this i ask for help
  12. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2ClanManagerInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2ClanManagerInstance.java (revision 0) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2ClanManagerInstance.java (working copy) @@ -0,0 +1,116 @@ /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.model.actor.instance; import net.sf.l2j.Config; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.MyTargetSelected; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.network.serverpackets.ValidateLocation; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; import net.sf.l2j.util.Rnd; /** * @author Debian * */ public class L2ClanManagerInstance extends L2NpcInstance { public L2ClanManagerInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("levelup")) { if(player.getClan() != null) { if (!player.isClanLeader()) { player.sendMessage("Only clan leaders, can use this service."); } if (player.isClanLeader() && player.getClan().getReputationScore() > 50000) { player.getClan().takeReputationScore(50000); player.getClan().changeLevel(8); player.sendMessage("Your clan successfully changed to level 8."); } else { player.sendMessage("Your clan must have 50000 clan reputation points in order to buy level 8."); } } else { player.sendMessage("You don't have a clan."); } } } @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { SocialAction sa = new SocialAction(this, Rnd.get(8)); broadcastPacket(sa); player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showMessageWindow(L2PcInstance player) { NpcHtmlMessage debian = new NpcHtmlMessage(5); StringBuilder tb = new StringBuilder(""); tb.append("<html><head><title>Clan Manager</title></head><body>"); tb.append("<center>"); tb.append("<img src=\"L2Font-e.replay_logo-e\" width=256 height=80>"); tb.append("<br>"); tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>"); tb.append("<br>"); tb.append("<font color=\"FFAA00\">Clan Manager</font>"); tb.append("<br>"); tb.append("</center>"); tb.append("<center>"); tb.append("<a action=\"bypass -h npc_" + getObjectId() + "_levelup\">Get your clan at level 8.</a><br>"); tb.append("<font color=\"FFAA00\">It costs 50.000 clan reputation points.</font>"); tb.append("<br>"); tb.append("</center>"); tb.append("<center>"); tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>"); tb.append("<br>"); tb.append("<font color=\"FFAA00\">" + Config.SERVER_NAME + "</font>"); tb.append("</center>"); tb.append("</body></html>"); debian.setHtml(tb.toString()); player.sendPacket(debian); } } As titlle say anyone have this code for frozen?
  13. what did nefer to you mate .. you was working with frozen for years .. :D
  14. Ataka tis dekaetias: Xtusame parthenones .. as araksoume loipon gia allous 2 aiones!
  15. L2Jfrozen , i will change and i will tell you
  16. not working,post edited for more informations
  17. Hello i have this code who include's html .. Well i want to take away the html from code because i want to make one AIO npc you will have this code+some other thinks but if html is on code is impossible So i want take out the code .. code is : /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package com.l2jfrozen.gameserver.model.actor.instance; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.Collection; import java.util.NoSuchElementException; import java.util.StringTokenizer; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.templates.L2NpcTemplate; import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import javolution.text.TextBuilder; /** * @author * */ public class L2PscDonateInstance extends L2FolkInstance { public L2PscDonateInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(final L2PcInstance player, String command) { if(player == null) { return; } if(command.startsWith("dlist")) { info(player); } if(command.startsWith("donate")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String quantity = null; int pin1 = 0; int pin2 = 0; int pin3 = 0; int pin4 = 0; String message = ""; quantity = st.nextToken(); try { pin1 = Integer.parseInt(st.nextToken()); pin2 = Integer.parseInt(st.nextToken()); pin3 = Integer.parseInt(st.nextToken()); pin4 = Integer.parseInt(st.nextToken()); } catch(NumberFormatException enf) { player.sendMessage("Enter a valid pin."); return; } catch(NoSuchElementException enf) { player.sendMessage("Enter a valid pin."); return; } try { while(st.hasMoreTokens()) message = message + st.nextToken() + " "; String fname = "data/donates/"+player.getName()+".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if(!exist) { player.sendMessage("You have already sent a donation , GMs must check it first"); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: [Character: "+ player.getName() +"["+ player.getObjectId()+"] - Account: "+ player.getAccountName()+" - IP: "+player.getClient().getConnection().getInetAddress().getHostAddress()+"]\nMessage : donate "+ quantity +" "+ message + " "+ pin1+ " "+ pin2+ " "+ pin3+ " "+ pin4); out.close(); player.sendMessage("Donation sent. GMs will check it soon. Thanks..."); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); for (L2PcInstance gms : pls) { if(gms.isGM()) gms.sendMessage(player.getName() +" sent a donation."); } } catch(Exception e) { e.printStackTrace(); } } } @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { player.setLastFolkNPC(this); showHtmlWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } private void showHtmlWindow(L2PcInstance activeChar) { TextBuilder tb = new TextBuilder(); NpcHtmlMessage html = new NpcHtmlMessage(1); tb.append("<html><head><title>Donation Manager</title></head><body><center><table width=\"250\" bgcolor=\"000000\"><tr><td align=center><font color=\"6fd3d1\">Easy Donation With Paysafe Card</font></td></tr></table>_______________________________________<br><br><table width=\"250\"><tr><td><font color=\"ddc16d\">Select Donation amount:</font></td><td><combobox width=80 height=17 var=amount list=5-Euro;10-Euro;15-Euro;20-Euro;25-Euro;50-Euro;100-Euro;></td></tr></table><br><br><font color=\"ddc16d\">Paysafe Card Pin:</font><table width=\"250\"><tr><td><edit var=\"pin1\" width=50 height=12 type=number></td><td><edit var=\"pin2\" width=50 height=12 type=number></td><td><edit var=\"pin3\" width=50 height=12 type=number></td><td><edit var=\"pin4\" width=50 height=12 type=number></td></table><br><br><multiedit var=\"message\" width=240 height=40><br><br><button value=\"Donate!\" action=\"bypass -h npc_" + getObjectId() + "_donate $amount $pin1 $pin2 $pin3 $pin4 $message\" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\"><br><button value=\"Donation List\" action=\"bypass -h npc_" + getObjectId() + "_dlist\" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\"><br><font color=\"a1df64\"></font></center></body></html>"); html.setHtml(tb.toString()); activeChar.sendPacket(html); } private void info(L2PcInstance activeChar) { TextBuilder tb = new TextBuilder(); NpcHtmlMessage html = new NpcHtmlMessage(1); tb.append("<html><head><title>Donation Manager</title></head><body><center>blablabla<br><br><br><br><br><br><br><br>name</center></body></html>"); html.setHtml(tb.toString()); activeChar.sendPacket(html); } } I delete the tb.append line (html) I change the html.setHtml(tb.toString()); to html.setFile("merchant/10000"); and i make htm file on Merhant/10000 (sorry for htm code mess but i copy/past it ... <html><head><title> Donation Manager</title></head> <body><center><table width="250" bgcolor="000000"> <tr><td align=center> <font color="6fd3d1">Easy Donation With Paysafe Card</font></td> </tr></table>_______________________________________<br><br><table width="250"> <tr><td><font color="ddc16d">Select Donation amount:</font> </td><td><combobox width=80 height=17 var=amount list=5-Euro;10-Euro;15-Euro;20-Euro;25-Euro;50-Euro;100-Euro;> </td></tr></table><br><br><font color="ddc16d">Paysafe Card Pin:</font><table width="250"> <tr><td><edit var="pin1" width=50 height=12 type=number></td><td><edit var="pin2" width=50 height=12 type=number> </td><td><edit var="pin3" width=50 height=12 type=number></td><td><edit var="pin4" width=50 height=12 type=number> </td></table><br> <br><multiedit var="message" width=240 height=40><br><br> <button value="Donate!" action="bypass -h npc_%ObjectId%_donate $amount $pin1 $pin2 $pin3 $pin4 $message" width=95 height=21 back="bigbutton_over" fore="bigbutton"><br> <button value="Donation List" action="bypass -h npc_"%ObjectId%"_dlist" width=95 height=21 back="bigbutton_over" fore="bigbutton"><br> <font color="a1df64"></font></center></body> </html> Well the html work's fine but when i click Donate it doesnt work at all .. the normal is to send the psc pin on stat/donates .. but nothink .. not even players.message I know is litlle difficult and huge but if you can help .. thanks
  18. Hey my friend's, I would like to learn if is possible to: Make one NPC who will have options: Donate NOW [i have psc code to send dirrect msg and psc code on gm] Item Enchanter [Players will have option to enchant there items on max +][for donate coins] Skill Enchanter [Players will have the option to enchant skill max+13 for example][for donate coins] Agument Skill Shop [Players will have the option to buy agument on weapons][for donate coins] Donate Shop[i can make this :D] So other is possible but remember .. all this options to one npc
×
×
  • Create New...