Jump to content
  • 0

[L2jServerH5] Chat question mark handle


Question

Posted (edited)

Hello,

today i'm working on party voice command system and i'm stuck.

I broadcast message with question mark to all active players but I don't have idea how to detect click and handle it. I spend all day on it and message with button is all what i've done.  I was trying to made custom listener but unsuccessfully. I don't even know is that possible.

I'm looking for advice or direciton where to search in code something similar

 

Best wishes

Edited by sylwuu

14 answers to this question

Recommended Posts

  • 0
Posted
6 minutes ago, sylwuu said:

obraz.png.0cd312b6451e78550ca206b2fa1021fb.png

 

I need to know how to handle action after click on this small question mark.

In your way after broadcast this message question mark appear but this is not what i need or i don't get how this things are connected

 

I'm not sure if this event is handled by server at least in lower chronicles such as HighFive, but you can find the L2GameClientPacket and log this way:

 

try
{
    System.out.println("Packet: " + getClass().getSimpleName());
    readImpl();
    return true;
}

 

Upon click it will show you if it handled by server or not in console.

  • 0
Posted
5 hours ago, sylwuu said:

My mistake. Unfortunatelly i can't delete/move post

Ok. Also afcourse you can handle it. The packet you're lookin for is the RequestTutorialQuestionMark

  • 0
Posted

Thank you for your answer

I put sendMessage to  RequestTutorialQuestionMark and OnPlayerTutorialQuestionMark but it don't work for my button. Ofc I check it on tutorial button and i receive message so I think my chat button have a wrong type.

I made chat button by

"\b\tType=1 \tID=" + id + "\t \tColor=0 \tUnderline=0 \tTitle=\u001B\u001B\b"

I already tried couple numbers for type but except above only Type=2 works and on click it's show empty black box but not handled like tutorial question mark.

I'm tested another listeners from EventType class but i didn't found any connected to my question mark

  • 0
Posted
10 minutes ago, sylwuu said:

Thank you for your answer

I put sendMessage to  RequestTutorialQuestionMark and OnPlayerTutorialQuestionMark but it don't work for my button. Ofc I check it on tutorial button and i receive message so I think my chat button have a wrong type.

I made chat button by

"\b\tType=1 \tID=" + id + "\t \tColor=0 \tUnderline=0 \tTitle=\u001B\u001B\b"

I already tried couple numbers for type but except above only Type=2 works and on click it's show empty black box but not handled like tutorial question mark.

I'm tested another listeners from EventType class but i didn't found any connected to my question mark

 

Question mark is server packet and it's called this way player.sendPacket(new TutorialShowQuestionMark(number)); What exactly are you talkin about html?

  • 0
Posted

Not quite, it's text passing as paremeter of BroadCast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTY, "[Party]" , text)); and in this way i receive question mark button in chat

  • 0
Posted (edited)
13 minutes ago, sylwuu said:

Not quite, it's text passing as paremeter of BroadCast.toAllOnlinePlayers(new CreatureSay(0, Say2.PARTY, "[Party]" , text)); and in this way i receive question mark button in chat

 

What are you talking about? RequestTutorialQuestionMark is handled by TutorialShowQuestionMark which it's a gameserver packet which you send to the player. 

 

You want to make an event? Go wherever you send a message and send also the player.sendPacket(new TutorialShowQuestionMark(number)); and replace the 'number' with your event ID. 

Edited by Kara
  • 0
Posted

obraz.png.0cd312b6451e78550ca206b2fa1021fb.png

 

I need to know how to handle action after click on this small question mark.

In your way after broadcast this message question mark appear but this is not what i need or i don't get how this things are connected

  • 0
Posted

On this subject everything went well.

 

The topic can be closed I have a problem with something else but it's not related and I'll dig a little before ask for help

 

Sorry for late reply

Best Wishes

Guest
This topic is now closed to further replies.


  • Posts

    • What you're talking about, my friend, is the "daily mission reward" system—that’s something different. This one is a standard daily login reward: if you don't log in on a given day, you miss that prize, and once you reach the final day (Day 28), it resets to Day 1. Check the forums or other sites; you'll see it's not the same thing. I also have that "daily mission reward" mod you're referring to—the one involving levels, mob counts, and class changes—but this is different; it's strictly for logging in. You have to stay online for half an hour to claim it, though that duration can be adjusted (from fewer to more minutes). It also features IP protection, and if you haven't claimed the prize for the day, the window opens automatically when you log in with your character so you don't forget. If you *have* claimed it, the window won't pop up automatically until the next day (though the auto-open feature can be enabled or disabled). Plus, as I mentioned, you can customize the item quantity, item ID, and the item icon. Cheers!
    • What’s the point of giving away free items every day just for logging in? That’s only about 5% of what the feature is supposed to be. If you want to implement the One Day Reward system from Classic/Essence, there’s a lot more to it: triggerType=KILL/LEVEL_UP, conditionLevel, canLevelMin, canLevelMax, classFilter, killCredit=SOLO/PARTY/CLAN, npcIds, isNoble, isHero, IsDayOfTheWeek, olympiad conditions, etc.
    • Yes, it's L2J—specifically L2Lucera—but it can be adapted for L2jAcis and Lucera; I imagine it would work for High Five as well. For now, I've only implemented it in L2Lucera (Interlude), but it will be available for L2jAcis too. Regards. As soon as you log in with your character, the window opens automatically so you can collect your reward. You can change the daily item ID and icon, and even set a waiting period—like 30 minutes—before collection is allowed. It includes IP protection, so players can't claim rewards using other accounts or create new ones to exploit the system; you can also adjust the number of days (e.g., 28, 1, or however many you prefer), and every feature can be enabled or disabled. The player command is `.daily`, and there are also four GM commands. I’ll be uploading a short video tomorrow to show everything more clearly. I also plan to improve the HTML window design and add MAC and HWID systems to prevent users from bypassing IP restrictions via VPNs or abusing the system with multi-accounting—basically, I’ll be continuously refining the system.
    • Elaborate on that? How would that work
  • 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..