Jump to content

Recommended Posts

Posted

Hello all,

I Did my first code so i want to share it with you :)

Nothing special Just when u press .help a tab popup with the anavailable options

 

=======VoicedHelp.java========

/*
* 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/>.
*
*
*
*@Author  Rafaa
*
*
*/

package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;

import com.l2jfrozen.gameserver.cache.HtmCache;
import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;

public class Online implements IVoicedCommandHandler
{
private static String[] _voicedCommands =
{
  "help"
};

@Override
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
  if(command.equalsIgnoreCase("help"))
  {
   String htmContent = HtmCache.getInstance().getHtm("data/html/help.htm");
   NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(5);
   npcHtmlMessage.setHtml(htmContent);
   activeChar.sendPacket(npcHtmlMessage);
  return true;
  }
  return false;
}

@Override
public String[] getVoicedCommandList()
{
  return _voicedCommands;
}
}

===========Config.java=============



import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.VoicedHelp.java;


MENU_COMMAND = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowHelpCommand", "False"));
public static boolean HELP_COMMAND;
VoicedCommandHandler.java
   if(Config.HELP_COMMAND)
  {
   registerVoicedCommandHandler(new VoicedHelp());
  }


=========l2jfrozen.properties============


# If ActiveChar Press .help  A Page with usefull infos will be popout By ReBoRnED
AllowHelpCommand = True
#

 

After that create a htm file in /data/htm and c/p this :

 

 

<html> 
<title>Welcome To Rafa Server</title>
<br> <b> For Bug Reports Send Email to: </b>
<br> bugs@trelosss3.com 
<br> <b> For Any Question Send Email To: </b>
<br> help@trelosss3.com 
<br> <b> or Use Our Forum </b>
<center>Enjoy Your Gaming </center>
<br> <b> GMTeam </b>
<br> <center> Created By ReBoRned </center>
</html>

 

Coded By : me

Thanks to : Jokk3rino

 

Also i have already shared in the greek section but a guy said me to share here to :)

Posted

Lets Spam And Go At 2000 Posts Right?

Useless, becuase this exist,

It's already shared,

It's very easy to make it and you can find it everywhere.


But nvm good try.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • I think you're severely overestimating the brain power of the average lineage 2 player xD
    • Ever since claude has gotten good, I have used it to make my files better. Over the last three months I have uncovered a STAGGERING amount of exploits using claude, simply by directing it to methods of exploitation and areas of the code I know from experience are not well developed. At first I thought it was only L2JMobius issues, but it turns out all known public and private packs are insecure in multiple ways.    The L2J codebase from which all packs derive, is so incoherent with so many interweaving layers, a complete lack of proper layering, such that one simple line change that looks totally innocent, can lead to the surface of multiple exploitation vectors.    The way things stand now, a player with some knowledge of how things work and a claude subscription can easily bypass client guards and basically ruin servers. It astonishes me that this has not yet happened as I can't be the only one that has a pair of eyes that have seen these things. The things will get much worse as time passes cause there's a huge amount of code being produced in most packs using AI agents. Code that is not properly checked and that poses big risk for anyone willing to adopt it as it introduces a lot of uncertainty to his project.    At this point I'm at a loss for words. I personally cannot guarantee to the player base, that with any pack available, I can open a server and won't have a hacker a week later corrupt the whole econbomy of the server.   Sad times ahead ...        
    • Despite the overwhelming amount of expert testimony explaining why this project was fundamentally broken and apparently an insult to several generations of software engineering, the fucking thing continues to improve, and all it takes is copypasting Galagard's comments to ChatGPT as a prompt. I was going to dedicate three months to it, but unfortunately I have other things to do. ### Changelog - Fixed terrain boundaries and seamless heightmap edges. - Added native cylinder collision. - Improved water generation, height handling and missing asset support. - Fixed collapsed meshes, zero-scale actors and USX/UTX package lookup. - Fixed various parser issues. - Improved caching. **28% faster batch generation**, identical output. - Searchable errors, warnings and skipped items. - Maps/minute statistics and UI improvements. - The spinning ASCII donut remains fully operational. ### Testing Since some of our experts were particularly concerned about whether the generator could actually generate anything, I decided to test the entire Samurai client. **347 maps.** **347 L2J files.** **347 L2OFF files.** **347 pathnode files.** **1,041 successfully generated and validated files.** I'd also like to sincerely thank our dedicated community volunteers for continuing to provide free quality assurance. Your contributions have been invaluable. It's genuinely amazing how much useful feedback you can get from people who supposedly don't care about your software. Unfortunately, ChatGPT keeps fixing the problems you report, so please try finding some harder ones next time. And to those concerned about the future of software development, don't worry. I'm sure spending three months doing something that takes seven minutes will remain a highly marketable skill.   https://github.com/911reg/911reg-MapExtractor/releases/download/v0.9.0/911reg-MapExtractor-0.9.0-win64.zip   https://github.com/911reg/911reg-MapExtractor   Haters, eat your hearts out.
    • 🔥 End-of-October Deals: ChatGPT Plus, Cursor AI, Claude Pro, and Canva Pro subscriptions available at unbeatable rates!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • Hello everyone, We remind you that before making a purchase, you can take our proxies for a 3-hour test. We also provide a 20% discount on your first purchase. Welcome.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..