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

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...