Jump to content

Recommended Posts

Posted

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]

Posted

Polu kalo alla de nomizeis pws siga siga oi players ta pernoun ola sto piato? As kanoyn ena petition i na kanoun log in sto forum. :-P

axxaax Player : den 3erw apo forum re soz den 3erw kan ti einai forum kaneme pt..
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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

    • Yes, I have no problem going that route either. I've already done business with a couple of people and always paid. Thank you for your concern and for protecting the community from scammers. cheers. K
    • For many Elden Ring players, especially those short on time or seeking a specific build, buying items online has become a practical and time-saving solution. However, as someone who’s made that choice multiple times, I know firsthand that not all sellers are legitimate—and the risk of losing your money, or worse, getting banned, is real. Through trial and error, and countless hours in the community, I’ve discovered five proven methods to help players like you find authentic Elden Ring items to buy—safely, efficiently, and without risking your account. Here’s how to make sure you’re getting exactly what you need, the right way. 1. Choose Platforms That Guarantee Elden Ring Items Without Ban The number one concern when you buy Elden Ring items is avoiding account penalties. I've personally used platforms that explicitly promote delivery methods aligned with FromSoftware’s guidelines—like safe in-game drops, no cheats, and no modded content. Look for sellers or marketplaces that guarantee you’ll receive elden ring items without ban risk. If that promise isn’t clear or backed by community trust, move on. One time, I made the mistake of buying from an unverified Discord seller—within a week, I saw strange behavior on my account and had to delete my save file. Lesson learned: stick with professional services that know what they’re doing. 2. Rely on Established Marketplaces with Verified Reviews Always look for buyer feedback and real user ratings. Reputable platforms will have a track record of successful transactions and transparent customer experiences. I tend to avoid any site or seller that hides feedback or has a generic, incomplete website. The platforms I trust most let users post detailed reviews and show proof of item delivery—usually with timestamps and screenshots. That added layer of transparency gave me peace of mind the first time I placed an order, and it’s been part of my decision-making ever since. 3. Start with a Small Order to Test Reliability If you’re uncertain, try a small purchase first. This was my approach when I first decided to buy Elden Ring items. I ordered just a few smithing stones to upgrade a secondary weapon and see how the process worked. The seller delivered in under 10 minutes, and the transaction went smoothly. That small step helped build trust, and I gradually scaled up future purchases for full armor sets and talismans. It’s the smartest way to gauge service quality without taking a big risk up front.  [url=https://www.u4gm.com/elden-ring-items][img]https://i.pinimg.com/736x/9d/7d/d4/9d7dd41fc381c64fe9b93e5c11584513.jpg [/img][/url]   4. Confirm Safe Delivery Methods (No Bots or Cheats) Authentic sellers will provide clear instructions on how the item delivery will happen—usually through password-protected multiplayer sessions where they drop items directly to your character. That’s how I’ve received every safe delivery so far. If a seller talks about instant “mailing,” bots, or strange back-end tools, that’s a red flag. Those methods are often tied to bans or corrupted saves. Look for sellers who mention manual delivery, cooperative drops, or private session coordination—these methods are the standard for getting elden ring items without ban issues. 5. Ask for Live Support or Communication Options Good sellers are responsive, offer live chat, or message confirmations. I once had a situation where I accidentally gave the wrong character name for delivery. Thanks to a quick reply from customer support, they corrected it instantly. If a seller isn’t responsive or has no support at all, that’s a sign they may disappear after you’ve paid. A platform with clear customer service builds trust and shows professionalism—especially helpful if you’re new to the process.   There’s nothing wrong with wanting to buy Elden Ring items to save time or explore new builds. I’ve done it several times, and when done correctly, it can genuinely enhance the game without ruining the experience. But your safety comes first. By following these five proven methods, you can make sure the items you receive are legitimate, safe, and won’t get your account flagged. Always prioritize platforms that clearly offer elden ring items without ban risk, and when in doubt—start small, ask questions, and trust your instincts. How to Earn Fast: Buy Elden Ring Items Safely – No Risk of Ban
  • Topics

×
×
  • 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