Jump to content
  • 0

How to make simple Event join


Question

Posted

Hi i saw that on some servers:

 

On TvT or DM event is a little announcement.

On this stands type .event for more info and .join to join that event (without going to the npc, simply type that for joinin)

 

How can i do that?

 

I use l2umbrella ct1.5

Thanks!

3 answers to this question

Recommended Posts

  • 0
Posted

It Has Been A Guide How To Put Your Own Commands

 

Simple You Have To Put Your Own Command That Joins The Event

That Command Must Be HTML Of The Join Button From The Npc (Something Like That ...)

Ok Search A Little For This Guide :)

And You Will Find Your Solution ;)

  • 0
Posted

here an example...

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.GameServer;
import net.sf.l2j.gameserver.cache.HtmCache;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage;

/**
* @author zunix
*
*/
public class Join implements IVoicedCommandHandler
{
private static String[]	VOICED_COMMANDS	=
										{ "join" };

/* (non-Javadoc)
 * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String)
 */
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	String htmFile = "Here the Path to the TvT Manger htm";
	String htmContent = HtmCache.getInstance().getHtm(htmFile);
	if (htmContent != null)
	{
		NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
		infoHtml.setHtml(htmContent);
		activeChar.sendPacket(infoHtml);
	}
	else
	{
		activeChar.sendMessage("omg u fking n00b the " + htmFile + " is missing! Go back to your Mommy");
	}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

 

@ Here the Path to the TvT Manger htm u have to write the path to the TvT manger htm like:

String htmFile = "data/html/custom/TvT.htm";

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
Answer this question...

×   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

    • I tried their panel a few weeks ago mostly to test out how well it would work if you want to buy instagram followers, and it worked smoother than I expected. The delivery was quick and the followers didn’t drop off after a day or two like on some other services I’ve tried. For anyone just starting out and wanting to grow fast, it’s been a solid option so far.
    • MultiSell_begin [armor_shop_dynaa] 533 is_dutyfree = 1 selllist={ {{{[epic_dk_heavy_armor];1};{[epic_dk_heavy_legs];1};{[epic_dk_heavy_gloves];1};{[epic_dk_heavy_boots];1};{[epic_dk_heavy_helmet];1}};{{[lembrancade];1};{[stonewater];1};{[stonewind];1}}}; {{{[epic_dk_light_armor];1};{[epic_dk_light_gloves];1};{[epic_dk_light_boots];1};{[epic_dk_light_helmet];1}};{{[lembrancade];1};{[stonewater];1};{[stonewind];1}}}; {{{[epic_dk_robe_armor];1};{[epic_dk_robe_gloves];1};{[epic_dk_robe_boots];1};{[epic_dk_robe_helmet];1}};{{[lembrancade];1};{[stonewater];1};{[stonewind];1}}} } MultiSell_end try this
    • A simple script which randomizes your target from shortest -> furthest so you can farm with Rush Impact on your doombringer   Edit your skill id (Default 45179): SkillList.ByID(45159, sweep)   Edit your search range (Default 900):  Script.NewThread(@SweepThread, Pointer(900));     var bSweepFurthest: boolean; // Global state variable to track which mob to get next // This procedure now alternates between finding the furthest and nearest mob. procedure SweepThread(dist: integer); var sweep: TL2Skill; mob: TL2Npc; begin while Delay(100) do begin if (Engine.Status = lsOnline) and SkillList.ByID(45159, sweep) then begin // Decide which mob to find based on the bSweepFurthest state if (bSweepFurthest) then begin mob:= GetFurthestSweepableMob(dist); // Looking for the furthest mob end else begin mob:= GetNearestSweepableMob(dist); // Looking for the nearest mob end; if (mob <> nil) then begin if Engine.SetTarget(mob) then Delay(1); Engine.UseSkill(sweep) ; // Flip the state for the next loop iteration bSweepFurthest := not bSweepFurthest; end; end; end; end; // Corrected to check for dead mobs function GetNearestSweepableMob(dist: integer): TL2Npc; var i: integer; begin Result:= nil; for i:= 0 to NpcList.Count-1 do begin if (NpcList(i).Valid) and (User.DistTo(NpcList(i)) < dist) and not (NpcList(i).Dead) then begin // <<< Corrected: Sweepable mobs are dead Result:= NpcList(i); dist:= User.DistTo(NpcList(i)); end; end; end; // Modified to accept a distance parameter and corrected to check for dead mobs function GetFurthestSweepableMob(dist: integer): TL2Npc; var i: integer; max_dist: integer; begin Result:= nil; max_dist:= 0; for i:= 0 to NpcList.Count-1 do begin if (NpcList(i).Valid) and (User.DistTo(NpcList(i)) < dist) // <<< Changed from 400 to the 'dist' parameter and not (NpcList(i).Dead) // <<< Corrected: Sweepable mobs are dead and (User.DistTo(NpcList(i)) > max_dist) then begin Result:= NpcList(i); max_dist:= User.DistTo(NpcList(i)); end; end; end; // Main execution block begin // Initialize the state to start by finding the furthest mob first bSweepFurthest := true; // Start the thread, passing 300 as the max distance for both nearest and furthest searches Script.NewThread(@SweepThread, Pointer(900)); Delay(-1); end.  
    • 🔥 O servidor que vai mudar seu conceito de Lineage 2! ⚔️ https://L2Destruction.com.br | Chronicle C4 - Scion of Destiny Um clássico com alma moderna. Eventos inéditos, mecânicas revolucionárias e um PvP/PvE intenso como você nunca viu! ✅ Rates: XP 75 / SP 65 / Adena 75 ✅ Party Level Up ✅ Anti-bot, anti-pay-to-win ✅ Comunidade ativa e suporte dedicado 🎯 Se você busca emoção de verdade, este é o servidor! 🔗 Acesse: https://L2Destruction.com.br 🛡️ Prepare-se para o combate. O seu destino começa agora. 🔥 The server that will redefine your Lineage 2 experience! ⚔️ https://L2Destruction.com.br | Chronicle C4 - Scion of Destiny A classic reborn with modern systems. Unique events, custom mechanics, and non-stop PvP/PvE action await you! ✅ Rates: XP 75 / SP 65 / Adena 75 ✅ Party Level Up ✅ No bots, no pay-to-win ✅ Active community and dedicated support 🎯 If you want a real challenge — this is your server! 🔗 Visit: https://L2Destruction.com.br 🛡️ The battle begins now. Your destiny awaits. 🔥 ¡El servidor que va a revolucionar tu experiencia en Lineage 2! ⚔️ https://L2Destruction.com.br | Chronicle C4 - Scion of Destiny Un clásico con alma moderna. Eventos únicos, mecánicas avanzadas y acción PvP/PvE constante como nunca antes. ✅ Rates: XP 75 / SP 65 / Adena 75 ✅ Party Level Up ✅ Sin bots, sin pay-to-win ✅ Comunidad activa y soporte dedicado 🎯 Si buscas una experiencia real — este es tu servidor. 🔗 Ingresa a: https://L2Destruction.com.br 🛡️ Prepárate para la guerra. Tu destino comienza ahora!  
    • Dear friends! We are pleased to present our new Telegram bot for purchasing  Telegram Stars  Convenient and easy to use The best prices Fast, cheap, and safe Support for multiple payment methods ➡ Go to the bot to purchase Telegram Stars Useful links: Telegram bot for purchasing Telegram Stars: Go Digital goods store: Go Store’s Telegram bot: Go SMM Panel: Go Contacts and support: ➡ Telegram: https://t.me/socnet_support  ➡ Telegram channel: https://t.me/accsforyou_shop  ➡ WhatsApp: https://wa.me/79051904467  ➡ WhatsApp channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Discord: socnet_support  ➡ Discord server: https://discord.gg/y9AStFFsrh  ➡ ✉ Email: solomonbog@socnet.store  Through these contacts you can also: — get consultations on wholesale purchases — establish a partnership (current partners: https://socnet.bgng.io/partners ) — become our supplier SocNet — digital goods and premium subscriptions store 
  • 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