Jump to content
  • 0

Question

Posted

Hello, on acis my multishop only show first html windows. Not show's other chats, anyone can help?


 

public void showChatWindow(Player player, int val)
{
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile("data/html/mods/donateNpc/" + getNpcId()+ (val == 0 ? "" : "-" + val) + ".htm");
html.replace("%objectId%", getObjectId());
player.sendPacket(html);
}

 

image.JPEG

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Your custom NPC must correctly override onBypassFeedback, using a

if (command.equalsIgnoreCase("whateverCustomCommand")
{

}
else
       super.onBypassFeedBack....

The super.onBypassFeedBack sends the client to "basic" NPC commands, such as Chat. Before the super.onBypass, you can put any new custom commands you want using if / else if / else if / else if /....

 

Almost all, if not all, Folk (new name for old L2NpcInstance) derivated NPCs act similar, I invite you to read about them to see what they can override.

 

If it's not working, I invite you to read about Chat command and how it's implemented on bypasses of existing HTMs (tip : there are 936 results in more than 800 files), because you probably made an error writting it.

Edited by Tryskell

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

    • L2VikosMemory | User Manual 1. General Information L2VikosMemory is a memory optimization tool for Lineage II. It automatically clears the game cache, reducing RAM usage and improving stability. 2. Installation Extract L2VikosMemory.dll and ogg.dll into the game folder (where l2.exe is located). No additional steps are required. 3. Configuration L2VikosMemory settings can be adjusted in the L2VikosMemory.cfg file: CleanInterval=X – Cleanup interval (in minutes) TryElevate=true/false – Enable/disable privilege escalation AltClientGuard=true/false – Compatibility setting for STRIXGUARD Example Configuration: CleanInterval=3   TryElevate=false   AltClientGuard=false   4. Verification The log file L2VikosMemory.log contains: Connection status Cleanup results Freed memory 5. Troubleshooting If L2VikosMemory is not working: Check if the DLL files are in the correct folder. Try running the game as an administrator. Check the log file for errors. 6. Support For support, contact Artem on Telegram. 7. Additional Information Compatibility: Supports most Lineage II clients. Recommended Interval: 3-5 minutes. Gameplay Impact: No effect on gameplay performance. Price: $150
    • L2 LOKAGAMERS - WEBSITE DESIGN    
    • Then wtf do You even do there? That's the issue. You think I only have those customers with negative experiance. I don't beg my customers to "post positive review in my topic at MXC's". 80% of them don't even have an account here. I don't care. But for TIME TO TIME, someone post a bad experiance review, because he had to wait and got refunded becausae of that...oh...now no-lifers like Cuntw0lf have something to do with their life. None of You were my customer so...You can fuck off 😎✌️
    • Where did I mention that you scam people? I was mentioning that people have to wait every now and then and to be honest that shouldn't happen. And I am not talking about these cases when your city get flooded. However, do what u think is appropriate, I really can't care enough.
    • I sell 20-30 launchers and logo designs per every 1 report about DELAY. Not scamm. DELAY. I don't have to feed Your croocked curiosity. If You don't know what "custom" means, I won't waste more time on You. Go spread Your conspiracy theories in other topics.
  • Topics

×
×
  • Create New...