Jump to content

Question

Posted

Hey i have a code here and i would like to add one extra button [Donate Shop] and open multisell is this possible?


if yes explain me how to do it .. thanks 



private void showHtmlWindow(L2PcInstance activeChar)
{
TextBuilder tb = new TextBuilder();
NpcHtmlMessage html = new NpcHtmlMessage(1);

tb.append("<html><head><title>Donation Manager</title></head><body><center><table width=\"250\" bgcolor=\"000000\"><tr><td align=center><font color=\"6fd3d1\">Easy Donation With Paysafe Card</font></td></tr></table>_______________________________________<br><br><table width=\"250\"><tr><td><font color=\"ddc16d\">Select Donation amount:</font></td><td><combobox width=80 height=17 var=amount list=5-Euro;10-Euro;15-Euro;20-Euro;25-Euro;50-Euro;100-Euro;></td></tr></table><br><br><font color=\"ddc16d\">Paysafe Card Pin:</font><table width=\"250\"><tr><td><edit var=\"pin1\" width=50 height=12 type=number></td><td><edit var=\"pin2\" width=50 height=12 type=number></td><td><edit var=\"pin3\" width=50 height=12 type=number></td><td><edit var=\"pin4\" width=50 height=12 type=number></td></table><br><br><multiedit var=\"message\" width=240 height=40><br><br><button value=\"Donate!\" action=\"bypass -h npc_" + getObjectId() + "_donate $amount $pin1 $pin2 $pin3 $pin4 $message\" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\"><br><button value=\"Donation List\" action=\"bypass -h npc_" + getObjectId() + "_dlist\" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\"><br><font color=\"a1df64\"></font></center></body></html>");

html.setHtml(tb.toString());
activeChar.sendPacket(html);
}

private void info(L2PcInstance activeChar)
{
TextBuilder tb = new TextBuilder();
NpcHtmlMessage html = new NpcHtmlMessage(1);

tb.append("<html><head><title>Donation Manager</title></head><body><center>blablabla<br><br><br><br><br><br><br><br>name</center></body></html>");
html.setHtml(tb.toString());
activeChar.sendPacket(html);
}
}

4 answers to this question

Recommended Posts

  • 0
Posted

add new tb.append line with the button. Move </body></html> from upper line in there or even remove it.

  • 0
Posted

i try allready this:

 <button value="Button Name" action="bypass -h npc_%objectId%_multisell 123456789" width=76 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">

and this :

<button value=\"Donation List\" action="bypass -h npc_%objectID%_multisell 123456789" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\">

and doesnt work ... can you fix me the whole line to copy past? or tell me my wrong 

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..