Jump to content
  • 0

[HELP] spawn protection triggersOnActionRequest() for VoicedCommands


Question

Posted

Hi all, I am a l2 developer and ive a doubt on how prevent the /unstuck command from interrupting your spawn protection.

The problem is that the VoicedCommands are in the DP project, separated from the l2core, so I can't use this:

	@Override
protected boolean triggersOnActionRequest()
{
	return false;
}

that in the l2core prevents the spawn protection from being stopped.

Any suggestion?

Thanks in advance

2 answers to this question

Recommended Posts

  • 0
Posted

whenever you send a voiced command, the server recive a CreatureSay packet. You can manage the triggersOnActionRequest of such packet basing on the incoming content

  • 0
Posted

The fact handlers are in DP doesn't mean at all you can't use java. It's currently the versus. Handlers ARE .java so I don't get how you managed to think you couldn't use java.

 

You surely can already see java errors on your DP. If not, check it out: http://l2jserver.com/forum/viewtopic.php?f=40&t=10726

 


 

Anyway your problem is another. Goal of triggersOnActionRequest() is to check which packet is sent, and to react accordingly.

 

Understand you must send a certain packet in order to activate content using it. The main problem of unstuck is it's using a skill. So basically (and you surely don't know it) you are casting a skill when using a SoE, or using /unstuck.

 

So you have to allow (at least) to launch a skill. You can use L2PHX to see which packets you need to allow. But care, you have to know there aren't "special cases". All those packets will be allowed.

 

Exemple, let's say escape use following packets : target (yourself), cast a skill. If you authorize those packets, that means EVEN a mage which teleports and is in spawn protection CAN ATTACK UNDER THE PROTECTION (as he can target and launch skills as he wants without making react the system) !

 

I hope my answer is kinda full for you.

 

About which packets to "add" in the current system, it's simple. You have 2 choices :

 

- use of L2PHX to sniff which packets you send, and correct them without doing them 1 by 1 via test.

- use the "debug" option of L2J. An information is sent with packet name when you break the protection. Problem of that choice is you have to correct packets 1 by 1, so you have to recompile, relog, retest, correct, recompile, relog, retest, correct...

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

    • [center][img]https://l2haruna.com/images/logo.png[/img][/center] [center][size=5][b][color=#ff9900]Lineage 2 Haruna x3 – Interlude[/color][/b][/size] [size=3][b]True Classic Interlude | Fair PvP | Long-Term Server[/b][/size][/center] Welcome to [b]L2 Haruna x3[/b], a classic [b]Interlude[/b] server focused on retail-like gameplay, fair competition, and long-term stability. No pay-to-win, no broken customs — just real Lineage 2. [b]Website:[/b] https://l2haruna.com/   [b]Discord:[/b] https://discord.gg/7DDC9Dsxnh   [b]Chronicle:[/b] Interlude   [b]Rates:[/b] x3   [b]Server Time:[/b] UTC +2 [hr] [size=4][b][color=#ff9900]📈 Rates & Core Gameplay[/color][/b][/size] • EXP / SP: x3   • Classic Interlude mechanics & formulas   • Balanced economy   • Real PvP, clan wars, sieges, and Olympiad   [hr] [size=4][b][color=#ff9900]🏆 Olympiad Information[/color][/b][/size] • Olympiad starts [b]3 months after server opening[/b]   • Participation only through [b]Olympiad Master[/b]   • Competition time: [b]20:00 – 02:00 (UTC +2)[/b]   [hr] [size=4][b][color=#ff9900]⚙️ Website & Account System[/color][/b][/size] • Master Account (MA) system on website   • Game accounts must be created via MA   • Vote system inside Master Account   • Website rankings: PvP / PK / Clans / Castles   [hr] [size=4][b][color=#ff9900]🧙 NPCs, Buffs & Utilities[/color][/b][/size] • Server Manager NPC in all towns & villages   • Adventurer’s Guide (Miss Queen) in all towns & villages   • Offline Buff Shops (.buffshop) — [b]Monster Derby Track only[/b]   • In-game Mailbox system   • Start-Up Bonus for all characters   • FREE Teleport until level 40   [hr] [size=4][b][color=#ff9900]🎮 Interface & Quality of Life[/color][/b][/size] • ALT + K — Skill panel (learn & enchant skills)   • Alt + Click — Buff removal   • Shift + Click — Monster drop & spoil info   • Offline Shop system   • 35 seconds spawn protection   • Captcha system (anti-bot)   [hr] [size=4][b][color=#ff9900]💬 Chat System[/color][/b][/size] • Global chat (!) — Free, requires level 15   • Trade chat (+) — Free, requires level 15   • (!) Global chat   • (+) Regional trade chat   [hr] [size=4][b][color=#ff9900]🛡 Fair Play & Restrictions[/color][/b][/size] • Maximum [b]2 clients per IP[/b]   • Donate & Vote coins cannot be sold / dropped / traded / destroyed   • Cursed weapons disabled until first Heroes   • Wedding system disabled (will be activated later)   [hr] [size=4][b][color=#ff9900]⚔️ Class Progression[/color][/b][/size] • 1st Class Transfer — Quest required   • 2nd Class Transfer — Quest required   • 3rd Class Transfer — Full quest required   • Subclass — Full quest required   • Noblesse — Full quest required   [hr] [size=4][b][color=#ff9900]🗡 Equipment[/color][/b][/size] • Shadow Weapons (D / C / B Grade) via Shadow Weapon Manager   [hr] [size=4][b][color=#ff9900]🧠 Technical & Protection[/color][/b][/size] • High-quality geodata & geo-engine   • Advanced DDoS protection   • Protection against third-party programs   [hr] [size=4][b][color=#ff9900]🎯 Why Haruna x3?[/color][/b][/size] ✔ No Pay-to-Win   ✔ No fake population   ✔ No admin abuse   ✔ True Interlude feeling   ✔ Built for long-term competition   [center][size=4][b]Join now:[/b][/size] [url=https://l2haruna.com/]https://l2haruna.com/[/url] [b]See you in Aden.[/b] ⚔️[/center]  
    • High Five Part 5 can be uploaded?
    • do you have a Shinemaker Compiler?
  • 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..