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.

  • Thanks 1
  • 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

  • Like 1
  • 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?

  • Like 1
  • 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
  • Like 1
  • 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

    • Perfect way to experience L2 without the brutal official grind. The progression here is so much smoother and faster, you get to the fun PvP and epic raids way quicker. The custom stuff keeps it fresh too. Definitely worth diving into!
    • L2-Getwork server highly customized with high-stats https://l2server.eu/ https://discord.gg/SsVhm7R Rates: L2 High Five fully customized Getwork Style with High Stats and Enchant ExP/Sp: 75x (custom) Drop/Spoil: 1x (custom) Safe: 500 Max: 50 000   Enchant System: Normal Scrolls: 93% - fail - decrease enchant by 20 Blessed Scrolls: 96% - fail - decrease enchant by 10   Armor Max Enchant D-Grade: +1000 Max Enchant C-Grade: +2000 Max Enchant B-Grade: +3000 Max Enchant A-Grade: +4000 Max Enchant S-Grade: +5000   Weapons Max Enchant D-Grade: +5000 Max Enchant C-Grade: +10000 Max Enchant B-Grade: +15000 Max Enchant A-Grade: +20000 Max Enchant S-Grade: +25000 - 50000   Fir Tree Branch (Weapon): +100 into Weapons (max 50 000) Fir Tree Branch (Armor): +15 into Armor (max 5000) Road to Dvc Cloak Enchant: +1 into cloak (max +1000) Masks of Spirit/Demon Horns Enchants: +1 into Masks (max +10) Each accessories has different max enchant and chances Daily Missions (.missions) Collections (ALT + B) Gambling System(.gamble) - each pack cost different amount Gamble Points, different items How to get gambling points? - by killing Raid Bosses/Events or Completing Daily Missions. Clan Bonus VIP Bonuses (maximum level 10) Battlepass (maximum level 100) - by killing monsters Rebirth (starting in Parnassus) Everything in ALT+B Master's Buffs - 100 Small Glass Box (1 buff) Farm Zones: Custom Farm Zones: Ruin of Agony (Exp Zone) Underground Coliseum (Safe Exp Zone) DVC,Brigand,Frost are similiar farm zones with same monsters Dvc Brigand Stronghold Frost Lake Parnassus - TOP ZONE some of our features: .gamble,collections,battlepass,talent tree, rebirth        
    • https://www.mediafire.com/file/l905r1sd84hnovf/FileEdit.rar/file
  • 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