Jump to content

Bug Report Manager


Recommended Posts

  • 2 months later...
  • 2 months later...
  • 1 month later...

Καλησπέρα!!

 

Το δοκιμάζω σε l2j frozen interlude και μου δημιουργεί ένα αρχείο BugReport.java.error.log μέσα στο φάκελο BugReport και το αρχείο περιέχει αυτό :

 

Error on: C:\Users\Administrator\Desktop\ServerFrozen2\gameserver\data\scripts\custom\BugReport\BugReport.java.error.log
Line: -1 - Column: -1

compilation failed

 

Τι να κάνω ;

 

Υ.Γ. Συγγνώμη για την ίσως ηλίθια ερώτηση...είμαι λίγο άσχετος  :alone:

 

EDIT : Εννοείτε ότι το βασικό πρόβλήμα είναι ότι εν τέλη δεν δουλεύει :P

Link to comment
Share on other sites

  • 3 months later...

I'm using l2j H5 unstable latest revision and i got no errors... but while i'm pressing the "Report it" button, it just don't doing anything..! just closing the pop up and doing nothing..

no errors, no logs..! any idea?!

Edited by xXObanXx
Link to comment
Share on other sites

  • 1 year later...

ade parte mia new idea :P den pisteyw na yparxei kati paramoio :P

[GR]dokimasmeno se l2jserver H5

[ENG]Tested in l2jserverH5

 

[ENG]create a file inside data/scripts/custom/BugReport/ with name BugReport.java and paste the code bellow

[GR]dhmiourghste ena ena file me name: BugReport.java mesa sto data/scripts/custom/BugReport/

kai kade paste ton parakatw kodika.

package custom.BugReport;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.StringTokenizer;
import java.util.logging.Logger;

import com.l2jserver.gameserver.cache.HtmCache;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.network.L2GameClient;
import com.l2jserver.gameserver.network.clientpackets.Say2;
import com.l2jserver.gameserver.network.serverpackets.CreatureSay;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

/**
 * @author -=DoctorNo=-
 * Version 2.3
 */
public class BugReport extends Quest
{
	private Logger _log = Logger.getLogger(BugReport.class.getName());
	private static final int NpcId = 553; // npc id here
	private static String htmlLoc = "data/scripts/custom/BugReport/1.htm";
	
	public BugReport(int questId, String name, String descr)
	{
		super(questId, name, descr);
		addFirstTalkId(NpcId);
		addTalkId(NpcId);
		addStartNpc(NpcId);
	}
	
	@Override
	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
	{
		if (event.startsWith("report"))
		{
			sendReport(event, npc, player, event);
		}
		return "";
	}
	
	private void sendReport(String event, L2Npc npc, L2PcInstance player, String command)
	{
		StringTokenizer st = new StringTokenizer(command);
		st.nextToken();
		
		String message = "";
		String _type = null; // General, Fatal, Misuse, Balance, Other
		L2GameClient info = player.getClient().getConnection().getClient();
		
		try
		{
			_type = st.nextToken();
			while(st.hasMoreTokens())
				message = message + st.nextToken() + " ";
			
			if (message.equals(""))
			{
				player.sendMessage("Message box cannot be empty.");
				return;
			}
			
			String fname = "data/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: " + message);
			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."));
				allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Report Type", _type + "."));
			}
			
			_log.info("Character: " + player.getName() + " sent a bug report.");
			out.close();
		}
		catch (Exception e)
		{
			player.sendMessage("Something went wrong try again.");
		}
	}
	
	@Override
	public String onFirstTalk(L2Npc npc, L2PcInstance player)
	{
		final int npcId = npc.getNpcId();
		if (player.getQuestState(getName()) == null)
			newQuestState(player);
		
		if (npcId == NpcId)
		{
			String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htmlLoc);
			html = html.replaceAll("%player%", player.getName());
			
			NpcHtmlMessage npcHtml = new NpcHtmlMessage(0);
			npcHtml.setHtml(html);
			player.sendPacket(npcHtml);
		}
		return "";
	}
	
	public static void main(final String[] args)
	{
		new BugReport(-1, BugReport.class.getSimpleName(), "custom");
		System.out.println("CUSTOM: BugReport Manager loaded");
	}
}
[ENG]in the same folder create one html with name: 1.htm and paste the code bellow

[GR]ston idio fakelo dhmiourghste ena htm me name:1.htm kai valte ton parakatw kodika

<html>
<title>Bug Report Manager</title>
<body>
<br><br>
<center>
<table border="0" height=10 bgcolor="444444" width=240>
<tr><td align=center><font color="00FFFF">Hello %player%.</font></td></tr>
<tr><td align=center><font color="00FFFF">There are no Gms online</font></td></tr>
<tr><td align=center><font color="00FFFF">and you want to report something?</font></td></tr>
<tr><td align=center><font color="00FFFF">Now it is possible.</font></td></tr>
</table>
<br>
<img src="L2UI.SquareWhite" width=280 height=1>
<br><br>
<table width=250>
<tr>
<td><font color="LEVEL">Select Report Type:</font></td>
<td><combobox width=105 var=type list=General;Fatal;Misuse;Balance;Other></td>
</tr>
</table>
<br><br>
<multiedit var="msg" width=250 height=50><br>
<button value="Report It" action="bypass -h Quest BugReport report $type $msg" width=128 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
<br>
<img src="L2UI.SquareWhite" width=280 height=1>
<br><br><br><br><br><br><br>
<font color=3293F3>L2Total Team</font><br>
<img src="L2UI.SquareWhite" width=280 height=1>
</center>
</body></html>
[ENG]dont forget to add in scripts.cfg file

[GR]mhn ksexase sto scripts.cfg na  kanete paste afto

custom/BugReport/BugReport.java
[ENG]finally create an empty folder with name BugReports in data/

[GR]kai telos na dhmiourghse enan adeio fakelo me name BugReports

mesa sto data...

Den asxoli8ika kai polu, alla sta petaxta pou ekana 2-3 tests den mou evgale provlhma.

 

Version 2.3 Change log.

1. Code rework-format

2. Empty message box check added

 

jjblw0.jpg

width=1024 height=599http://i49.tinypic.com/2yxg7ld.jpg[/img]

width=1024 height=599http://i49.tinypic.com/whh6h.jpg[/img]

 

doulevi kai se frozen?

Link to comment
Share on other sites

 

I'm using l2j H5 unstable latest revision and i got no errors... but while i'm pressing the "Report it" button, it just don't doing anything..! just closing the pop up and doing nothing..

no errors, no logs..! any idea?!

 

 

+10

 

Test in l2jserver beta last, same error.

Link to comment
Share on other sites

  • 1 month later...

Hello and nice work but i got an error on hi5 client, any solutions??
 

 

Error on: C:\Users\Shurik\Desktop\fixed\game\data\scripts\custom\BugReport\BugReport.java.error.log

Line: -1 - Column: -1
 
compilation failed
Link to comment
Share on other sites

I got this error

 

Error on: C:\Users\brits_000\Desktop\6670\game\data\scripts\custom\BugReport\BugReport.java.error.log
Line: -1 - Column: -1

compilation failed

 

someone can help me what I need to do
 
thanks
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • - lost love spells caster in, Amsterdam,Brazil,London,Kuwait .Egypt, Atlanta, Latvia, Lithuania, Sweden۞۩ஜ???? +256704892479  Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies overnight Https://nativelovespellscaster.com or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call  ஜ۩۞۩ஜ ??? + 256704892479ஜ۩۞۩ஜ ??Https://nativelovespellscaster.com
    • Hello, my discord is : misanthropic1085           I am selling Frintezza Aq Baium     Reborn origins x1    
    • L2Topzone has a lower traffic ranking than every other website! We spent over 160 Euro for listing server and banner and we've got only 4 download conversions!  Proof: https://prnt.sc/YeJudEKFov1m
    • Any WTS code global chat for this? 
    • Hi, I see what you mean, but I do it differently.   I don't want some features from Hi5 in my project, so I gradually add Ai, zones, items, etc... manually.   And again I want some features from Classic.   So I'm continuing the Classic storyline up to High Five.   My project runs on the client's Prelude of War.   I will release the first public test version soon, which will still be without some "hi5" stuff, because first I need to test for example Fortress Siege, pets and some instances/quests. In the future, I also want to "unlock" new locations from the GoD story.   And what I like most about Classic is that you don't have SA in weapons and it goes back to the roots of Lineage 2. Also you can connect to my discord and talk about with me.
  • Topics

×
×
  • Create New...