Jump to content

thepsolartek

Members
  • Posts

    482
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by thepsolartek

  1. Hello guys i want to share with you the BugReportNpc Code for L2Jfrozen!!! Cause some people are looking for this Npc (I do not create the code as you can see it on the credits too) Create a class in com.l2jfrozen.gameserver.model.actor.instance with the name L2BugReportInstance and paste the following code. /* * 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.*; import java.util.StringTokenizer; import javolution.text.TextBuilder; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.L2GameClient; import com.l2jfrozen.gameserver.network.clientpackets.Say2; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.CreatureSay; 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; /** * @author squallcs * */ public class L2BugReportInstance extends L2FolkInstance { private static String _type; public L2BugReportInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("send_report")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String msg = null; String type = null; type = st.nextToken(); msg = st.nextToken(); try { while (st.hasMoreTokens()) { msg = msg + " " + st.nextToken(); } sendReport(player, type, msg); } catch (StringIndexOutOfBoundsException e) { } } } static { new File("log/BugReports/").mkdirs(); } private void sendReport(L2PcInstance player, String command, String msg) { String type = command; L2GameClient info = player.getClient().getConnection().getClient(); if (type.equals("General")) _type = "General"; if (type.equals("Fatal")) _type = "Fatal"; if (type.equals("Misuse")) _type = "Misuse"; if (type.equals("Balance")) _type = "Balance"; if (type.equals("Other")) _type = "Other"; try { String fname = "log/BugReports/" + player.getName() + ".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if (!exist) { player.sendMessage("You have already sent a bug report, GMs must check it first."); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: " + info + "\r\nBug Type: " + _type + "\r\nMessage: " + msg); player.sendMessage("Report sent. GMs will check it soon. Thanks..."); for (L2PcInstance allgms : L2World.getInstance().getAllGMs()) allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Bug Report Manager", player.getName() + " sent a bug report.")); System.out.println("Character: " + player.getName() + " sent a bug report."); out.close(); } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override 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>Bug Report Manager</title>"); replyMSG.append("<body><br><br><center>"); replyMSG.append("<table border=0 height=10 bgcolor=\"444444\" width=240>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">Hello " + activeChar.getName() + ".</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">There are no Gms online</font></td></tr>"); replyMSG.append("<tr><td align=center><font color=\"00FFFF\">and you want to report something?</font></td></tr>"); replyMSG.append("</table><br>"); replyMSG.append("<img src=\"L2UI.SquareWhite\" width=280 height=1><br><br>"); replyMSG.append("<table width=250><tr>"); replyMSG.append("<td><font color=\"LEVEL\">Select Report Type:</font></td>"); replyMSG.append("<td><combobox width=105 var=type list=General;Fatal;Misuse;Balance;Other></td>"); replyMSG.append("</tr></table><br><br>"); replyMSG.append("<multiedit var=\"msg\" width=250 height=50><br>"); replyMSG.append("<br><img src=\"L2UI.SquareWhite\" width=280 height=1><br><br><br><br><br><br><br>"); replyMSG.append("<button value=\"Send Report\" action=\"bypass -h npc_" + getObjectId() + "_send_report $type $msg\" 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()); } } And the last thing you have to do it's to create a NPC in the database, and as type set L2BugReport Important: a player can submit one report at the time. Until the admin delete it from the folder BugReport /gameserver/logs/BugReport the player wont be able to make another report. I did this to keep spammers out who whine all the time and think that fixing something it's solved by using //fix_server. But if you want to, you could remove the if(!exist) clause and the file will continue filling. Credits:JisusKraist
  2. The problem is same in all underlined with red lines. how i fix it?
  3. y the problem is on masteriopack
  4. hi guys i have one problem with thhis java code: http://www.maxcheaters.com/topic/141971-rank-pvp-system-389-il-h5/page-1 the prob is inside eclipse in com.l2jfrozen.gameserver.masteriopack.rankpvpsystem (in rankpvpsystem.java and rankpvpsystempvpstatus.java) Please help me!
  5. i have problem in 2 files of com.l2jfrozen.gameserver.masteriopack.rankpvpsystem can anyone help me?
  6. y aderfe mou akribws ayto
  7. geia sas paides exw ena probhlma me ta augment skills. enw ta exw kanei na mhn feugoun sto change weapon otan allazeis weapon ayta gia kapoio logo xanontai. DeleteAgmentActiveEffectOnChangeWep = False Mhpws prepei na einai true?
  8. to paidi dn egrapse kan oti to item einai diko tou alla oti to ekane share diabaste ligo to post dn blaptei. telos symfwnw apolyta me ton sanctus arakste ligo sthn petsa sas oi perisoteroi edw pera etc ksekinhsame
  9. egw exw na mpw ena bravo ston palikaro gia to share tou mporei ontws na mhn thn eftiakse o idios dioti h armor yparxei sto l2maxi.ru alla fantazomai oti to paidi ekatse na ftiaksei ta sql xml files opws kai na fix kapia alla mikropragmata. bravo filarako astous na lene gia ta credits oloi etc ksekinhsan egw ayto kserw. Ase pou twra se krazoun
  10. dn peirazei kalo einai na amfibaleis :) toulaxiston kapioi pou dn 8a amfibaloun 8a thn kanoun download gia ton server tous.
  11. thank you my friend :) . I forgot to tell that i use it on l2j brasil but if you want it for frozen just go to the sql file and delete the word wood in all lines.
  12. Hi maxcheaters. i would like to share with you the Poseidon armor. Download Link: http://www.mediafire.com/download/7qla4q6572p9c4n/Poseidon+Armor++for+Interlude.rar Credits: Me
  13. the area doenst exist on admin panel. as i tols its fantasy island . fantasy island is a gracia area but i found it for interlude. i can telport with gm if i use //move_to and the cordinates but i cannot teleport from gatekeeper
  14. hi maxcheaters. i ve just download fantasy island on interlude and i cant even teleport on the area. i have passed the locations in teleport sql but still nothing happened. what shall i do?
  15. test the sql with your db sql files and delete the one that is useless
  16. i found the npc but it looks a bit strange on me!where it based and which reward it will give? :S
  17. no one can create a npc? or just tell me how?
  18. really??? cant someone help me with the script files?
  19. hi maxcheaters can someone help me with vote manager npc?my server is without eclipse so i need the npc complete.If you can explain me how to make it,it will be gg!
  20. hi members 8a h8ela na rwthsw pws mporw na kanw mia armor apo gracia na douleuei se interlude!Alla dn exw idea ti prepei na kanw. to armorgrp ths einai to parapakatw please help! 1 37070 0 0 11 5 0 dropitems.drop_MFighter_m012_t88_u_m00 Fire_ArmorMHF.Up_Final 0 0 0 0 0 1 0 0 Fire_Icons.up_icon -1 4180 46 1 0 0 1 21 1 Fighter.MFighter_m012_u 1 Fire_ArmorMHF.Up_Final 2 114 114 0 255 2 1 Fighter.FFighter_m012_u 1 Fire_ArmorFHF.Up_Final 2 114 114 0 255 2 1 DarkElf.MDarkElf_m010_u 1 Fire_ArmorMDELF.Up_Final 2 114 114 0 255 2 1 DarkElf.FDarkElf_m006_u 1 Fire_ArmorFDELF.Up_Final 2 114 114 0 255 2 1 Dwarf.MDwarf_m008_u 1 Fire_ArmorMDWARF.Up_Final 2 114 114 97 114 2 1 Dwarf.FDwarf_m008_u 1 Fire_ArmorFDWARF.Up_Final 2 114 114 97 114 2 1 Elf.MElf_m004_u 1 Fire_ArmorMELF.Up_Final 2 114 114 0 255 2 1 Elf.FElf_m004_u 1 Fire_ArmorFELF.Up_Final 2 114 114 0 255 2 1 Magic.MMagic_m013_u 1 Fire_ArmorMHM.Up_Final 2 0 255 97 114 2 1 Magic.FMagic_m012_u 1 Fire_ArmorFHM.Up_Final 2 0 255 97 114 2 1 Orc.MOrc_m007_u 1 Fire_ArmorMORCF.Up_Final 2 114 114 0 255 2 1 Orc.FOrc_m007_u 1 Fire_ArmorFORCF.Up_Final 2 114 114 0 255 2 1 Shaman.MShaman_m008_u 1 Fire_ArmorMORCM.Up_Final 2 0 255 97 114 2 1 Shaman.FShaman_m008_u 1 Fire_ArmorFORCM.Up_Final 2 0 255 97 114 2 1 Kamael.mkamael_m009_u 2 Fire_ArmorKMF.Up_Final Fire_ArmorKMF.UpTop_Final 3 114 114 Kamael.Mkamael_m000_w_ad00 119 95 Kamael.Mkamael_m005_l_ad00 108 95 3 Fire_ArmorKMF.Wing_Final Fire_ArmorKMF.UpTop_Final 1 Kamael.fkamael_m009_u 2 Fire_ArmorKFF.Up_Final Fire_ArmorKFF.UpTop_Final 3 114 114 Kamael.Fkamael_m000_w_ad00 119 95 Kamael.Fkamael_m009_l_ad00 108 95 3 Fire_ArmorKFF.Wing_Final Fire_ArmorKFF.UpTop_Final 1 1 0 0 LineageEffect.p_u002_a 4 ItemSound.shield_bone_1 ItemSound.armor_leather_2 ItemSound.armor_leather_3 ItemSound.armor_leather_8 ItemSound.itemdrop_armor_cloth ItemSound.itemequip_armor_cloth 1 0 2 7 0 570 0 0 36 1 37071 0 0 11 5 0 dropitems.drop_MFighter_m009_t88_l_m00 Fire_ArmorMHF.Low_Final 0 0 0 0 0 1 0 0 Fire_Icons.low_icon -1 1370 46 1 0 0 1 22 1 Fighter.MFighter_m009_l 1 Fire_ArmorMHF.Low_Final 1 0 255 1 1 Fighter.FFighter_m012_l 1 Fire_ArmorFHF.Low_Final 1 0 255 1 1 DarkElf.MDarkElf_m007_l 1 Fire_ArmorMDELF.Low_Final 1 0 255 1 1 DarkElf.FDarkElf_m010_l 1 Fire_ArmorFDELF.Low_Final 1 0 255 1 1 Dwarf.MDwarf_m008_l 1 Fire_ArmorMDWARF.Low_Final 1 0 255 1 1 Dwarf.FDwarf_m008_l 1 Fire_ArmorFDWARF.Low_Final 1 0 255 1 1 Elf.MElf_m011_l 1 Fire_ArmorMELF.Low_Final 1 0 255 1 1 Elf.FElf_m008_l 1 Fire_ArmorFELF.Low_Final 1 0 255 1 1 Magic.MMagic_m013_l 1 Fire_ArmorMHM.Low_Final 1 0 255 1 1 Magic.FMagic_m012_l 1 Fire_ArmorFHM.Low_Final 1 0 255 1 1 Orc.MOrc_m007_l 1 Fire_ArmorMORCF.Low_Final 1 0 255 1 1 Orc.FOrc_m007_l 1 Fire_ArmorFORCF.Low_Final 1 0 255 1 1 Shaman.MShaman_m008_l 1 Fire_ArmorMORCM.Low_Final 1 0 255 1 1 Shaman.FShaman_m008_l 1 Fire_ArmorFORCM.Low_Final 1 0 255 1 1 Kamael.mkamael_m009_l 1 Fire_ArmorKMF.Low_Final 1 0 255 1 1 Kamael.fkamael_m009_l 1 Fire_ArmorKFF.Low_Final 1 0 255 1 1 1 0 0 LineageEffect.p_u002_a 1 ItemSound.itemdrop_armor_leather ItemSound.itemequip_armor_glove 1 0 2 7 0 450 0 0 0 1 37072 0 0 7 4 0 dropitems.drop_MFighter_m012_t88_g_m00 Fire_ArmorMHF.Gloves_Final 0 0 0 0 0 1 0 0 Fire_Icons.gloves_icon -1 520 19 1 0 0 1 20 1 Fighter.MFighter_m012_g 1 Fire_ArmorMHF.Gloves_Final 1 0 255 1 1 Fighter.FFighter_m012_g 1 Fire_ArmorFHF.Gloves_Final 1 0 255 1 1 DarkElf.MDarkElf_m010_g 1 Fire_ArmorMDELF.Gloves_Final 1 0 255 1 1 DarkElf.FDarkElf_m006_g 1 Fire_ArmorFDELF.Gloves_Final 1 0 255 1 1 Dwarf.MDwarf_m008_g 1 Fire_ArmorMDWARF.Gloves_Final 1 0 255 1 1 Dwarf.FDwarf_m008_g 1 Fire_ArmorFDWARF.Gloves_Final 1 0 255 1 1 Elf.MElf_m011_g 1 Fire_ArmorMELF.Gloves_Final 1 0 255 1 1 Elf.FElf_m008_g 1 Fire_ArmorFELF.Gloves_Final 1 0 255 1 1 Magic.MMagic_m013_g 1 Fire_ArmorMHM.Gloves_Final 1 0 255 1 1 Magic.FMagic_m012_g 1 Fire_ArmorFHM.Gloves_Final 1 0 255 1 1 Orc.MOrc_m007_g 1 Fire_ArmorMORCF.Gloves_Final 1 0 255 1 1 Orc.FOrc_m007_g 1 Fire_ArmorFORCF.Gloves_Final 1 0 255 1 1 Shaman.MShaman_m008_g 1 Fire_ArmorMORCM.Gloves_Final 1 0 255 1 1 Shaman.FShaman_m008_g 1 Fire_ArmorFORCM.Gloves_Final 1 0 255 1 1 Kamael.mkamael_m009_g 1 Fire_ArmorKMF.Gloves_Final 1 0 255 1 1 Kamael.fkamael_m009_g 1 Fire_ArmorKFF.Gloves_Final 1 0 255 1 1 1 0 0 LineageEffect.p_u002_a 1 ItemSound.itemdrop_armor_leather ItemSound.itemequip_armor_glove 1 0 0 7 0 300 0 0 0 1 37073 0 0 7 8 0 dropitems.drop_MFighter_m009_t88_b_m00 Fire_ArmorMHF.Boots_Final 0 0 0 0 0 1 0 0 Fire_Icons.boots_icon -1 1090 19 1 0 0 1 23 1 Fighter.MFighter_m009_b 1 Fire_ArmorMHF.Boots_Final 1 0 255 1 1 Fighter.FFighter_m012_b 1 Fire_ArmorFHF.Boots_Final 1 0 255 1 1 DarkElf.MDarkElf_m007_b 1 Fire_ArmorMDELF.Boots_Final 1 0 255 1 1 DarkElf.FDarkElf_m010_b 1 Fire_ArmorFDELF.Boots_Final 1 0 255 1 1 Dwarf.MDwarf_m008_b 1 Fire_ArmorMDWARF.Boots_Final 1 0 255 1 1 Dwarf.FDwarf_m008_b 1 Fire_ArmorFDWARF.Boots_Final 1 0 255 1 1 Elf.MElf_m011_b 1 Fire_ArmorMELF.Boots_Final 1 0 255 1 1 Elf.FElf_m011_b 1 Fire_ArmorFELF.Boots_Final 1 0 255 1 1 Magic.MMagic_m013_b 1 Fire_ArmorMHM.Boots_Final 1 0 255 1 1 Magic.FMagic_m012_b 1 Fire_ArmorFHM.Boots_Final 1 0 255 1 1 Orc.MOrc_m007_b 1 Fire_ArmorMORCF.Boots_Final 1 0 255 1 1 Orc.FOrc_m007_b 1 Fire_ArmorFORCF.Boots_Final 1 0 255 1 1 Shaman.MShaman_m008_b 1 Fire_ArmorMORCM.Boots_Final 1 0 255 1 1 Shaman.FShaman_m008_b 1 Fire_ArmorFHF.Boots_Final 1 0 255 1 1 Kamael.mkamael_m009_b 1 Fire_ArmorKMF.Boots_Final 1 0 255 1 1 Kamael.fkamael_m009_b 1 Fire_ArmorKFF.Boots_Final 1 0 255 1 1 1 0 0 LineageEffect.p_u002_a 1 ItemSound.itemdrop_armor_leather ItemSound.itemequip_armor_boots 1 0 0 7 0 300 0 0 0 1 37074 0 0 5 2 0 dropitems.drop_sack_m00 dropitemstex.drop_sack_t00 0 0 0 0 0 1 0 0 Fire_Icons.helmet_icon -1 530 14 1 0 0 1 6 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 1 0 255 1 1 1 0 0 LineageEffect.p_u002_a 1 ItemSound.itemdrop_armor_helmet ItemSound.itemequip_armor_helmet 1 0 0 7 0 350 0 0 0
  21. thanks aderfe na sai kala :)
  22. Hi guys i would like to post again the vendeta mask for interlude! I upload this item again cause the 1st one has no sql system files and the data file that it needs to place it on your servers! Before you post something for sql i need to say that i use l2j brasil when i test it! So heres the download Link:http://www.mediafire.com/download/f8xy588vqacyn37/v+mask.rar And here is a photo of the item:
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock