I need some help

Artemis37

Member
Artemis37 Rep
0
0
0
Rep
0
Artemis37 Vouches
0
0
0
Vouches
0
Posts
17
Likes
3
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 4 50 XP
I want to make this code into NPC HTML
var4 = var4 + "<td width=90>" + var6 + "</td><td width=60><button width=40 height=20 back=\"L2UI_CH3.bigbutton2_down\" fore=\"L2UI_CH3.bigbutton2\" action=\"bypass -h user_autofarm edit_farmType " + var5 + " " + var3 + "\" value=\"Switch\"></td>";

The problem is that I don't know how to set the vars as bypass. Any suggestions?
 

Azayaka

Allelujah
Administrator
Azayaka Rep
3
0
0
Rep
9
Azayaka Vouches
0
0
0
Vouches
0
Posts
330
Likes
225
2 YEARS
2 YEARS OF SERVICE
LEVEL 101 5 XP
@AzukaChan This looks like something you'd be able to do. Any suggestions?
 

AzukaChan Japan

Staff
Staff
AzukaChan Rep
2
0
0
Rep
8
AzukaChan Vouches
1
0
0
Vouches
1
Posts
98
Likes
600
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 135 30 XP
I want to make this code into NPC HTML
var4 = var4 + "<td width=90>" + var6 + "</td><td width=60><button width=40 height=20 back=\"L2UI_CH3.bigbutton2_down\" fore=\"L2UI_CH3.bigbutton2\" action=\"bypass -h user_autofarm edit_farmType " + var5 + " " + var3 + "\" value=\"Switch\"></td>";

The problem is that I don't know how to set the vars as bypass. Any suggestions?
Would you be able to tell us specifically what you're wanting the NPC to do and provide a few screenshots so I am better able to understand your request?
Having variable bypasses in NPC dialogue boxes is possible though and typically done with comboboxes, for e.g;

HTML:
<combobox width=76 var=zoneType list=Safe;PvP;PvPPK;>
<combobox width=76 var=spawnNumber1 list=Spawn_1;Spawn_2;Spawn_3;>
<button value="Teleport" action="bypass -h npc%objectId%_toFarmZone $zoneType $spawnNumber1" width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2">
This is an example of a Gatekeeper using ComboBoxes to perform viable bypasses depending on the user's selection.
Of course, you would also need to define these variables within your server's source code.
 
Liked By 1 member :

Artemis37

Member
Artemis37 Rep
0
0
0
Rep
0
Artemis37 Vouches
0
0
0
Vouches
0
Posts
17
Likes
3
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 4 50 XP
Would you be able to tell us specifically what you're wanting the NPC to do and provide a few screenshots so I am better able to understand your request?
Having variable bypasses in NPC dialogue boxes is possible though and typically done with comboboxes, for e.g;

HTML:
<combobox width=76 var=zoneType list=Safe;PvP;PvPPK;>
<combobox width=76 var=spawnNumber1 list=Spawn_1;Spawn_2;Spawn_3;>
<button value="Teleport" action="bypass -h npc%objectId%_toFarmZone $zoneType $spawnNumber1" width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2">
This is an example of a Gatekeeper using ComboBoxes to perform viable bypasses depending on the user's selection.
Of course, you would also need to define these variables within your server's source code.
It switching the html page to other.

This is the code: https://gyazo.com/87aa9ad42d96e8379d7ef3aebe3dbe2b

It have few html chats where you change the autofarm for each class.

here is the folder: https://gyazo.com/336ab06cc5825d956f4bb41ecef21ec0

Idk for what reason the dev make it so hard ...

Btw I tried with the combo box and it don't work.

HTML:
<html noscrollbar><title>Auto Farm Settings</title><body>
<table width="262" cellpadding="4" bgcolor="452822">
        <tr>
              <td width="45" valign="center" align="center"><img src="icon.skill1401" width="32" height="32"></td>
              <td valign="top">
            <table width=240>
                <tr>
                    <td width=160>
                        %activate%
                    </td>
                    <td width=42>
                        %status%
                    </td>
                    <td width=42>
                        %button%
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=262 bgcolor=000000>
    <tr>
        <td fixwidth=50><button value="acp" action="bypass -h user_acp" width=40 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2"></td>
        <td fixwidth=60></td>
        <td fixwidth=100>
            Farm type
        </td>
        <td fixwidth=20></td>
        %farmType%
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<br>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=1></td>
        <td width=35><button action="%assist_bypass%" value="" width=15 height=15 back="%assist_img%" fore="%assist_img%"></td>
        <td fixwidth=240>
            Assist to Party Leader
        </td>
        <td width=1></td>
        <td width=35><button action="%assistMAttack_bypass%" value="" width=15 height=15 back="%assistMAttack_img%" fore="%assistMAttack_img%"></td>
        <td fixwidth=240>
            Assist Mobs
        </td>
    </tr>
</table>
<table width=298 border=0 cellspacing=0 cellpadding=0 height=20>
    <tr>
        <td width=5></td>
        <td width=15>
            <table width=15 border=0 cellspacing=3 cellpadding=0 height=10>
                <tr>
                    <td width=15>
                        <button action="%refreshSkills% $selectid" value="" width=15 height=15 back="L2UI.CheckBox_checked" fore="L2UI.CheckBox">
                    </td>
                </tr>
            </table>
        </td>
        <td width=180>
            <table width=180 border=0 cellspacing=0 cellpadding=0 height=20>
                <tr>
                    <td width=180 align=center>
                        Refresh skills by shortcuts
                    </td>
                </tr>
            </table>
        </td>
        <td width=100 align=left>
            <combobox width=40 var=selectid list="1;2;3;4;5;6;7;8;9;10">
        </td>
    </tr>
</table>
<br1>
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=298 border=0 cellspacing=0 cellpadding=0>
    <tr>
        <td width=73>
            <button value="ATTACK" action="bypass -h user_changeSkillType attack" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="CHANCE" action="bypass -h user_changeSkillType chance" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="SELF" action="bypass -h user_changeSkillType self" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="HEAL" action="bypass -h user_changeSkillType heal" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<br1>
<table width=298 border=0 cellspacing=0 cellpadding=0>
        <tr>
        %skillList%
        </tr>
</table>
<br>

<img src="L2UI.SquareWhite" width=298 height=2>
%skillsParam%
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=5></td>
        %distance%
        <td width=8></td>
        <td fixwidth=240>
            Search Distance
        </td>
    </tr>
</table>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=5></td>
        <td width=120><button action="%tgRestoreMp_bypass%" value="" width=15 height=15 back="%tgRestoreMp_img%" fore="%tgRestoreMp_img%"></td>
        <td fixwidth=240>
            Restore Mp by Target
        </td>
    </tr>
</table>
</body></html>
this is the whole code. I want to replace %farmType% with only a button not with text and etc...
 

AzukaChan Japan

Staff
Staff
AzukaChan Rep
2
0
0
Rep
8
AzukaChan Vouches
1
0
0
Vouches
1
Posts
98
Likes
600
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 135 30 XP
It switching the html page to other.

This is the code: https://gyazo.com/87aa9ad42d96e8379d7ef3aebe3dbe2b

It have few html chats where you change the autofarm for each class.

here is the folder: https://gyazo.com/336ab06cc5825d956f4bb41ecef21ec0

Idk for what reason the dev make it so hard ...

Btw I tried with the combo box and it don't work.

HTML:
<html noscrollbar><title>Auto Farm Settings</title><body>
<table width="262" cellpadding="4" bgcolor="452822">
        <tr>
              <td width="45" valign="center" align="center"><img src="icon.skill1401" width="32" height="32"></td>
              <td valign="top">
            <table width=240>
                <tr>
                    <td width=160>
                        %activate%
                    </td>
                    <td width=42>
                        %status%
                    </td>
                    <td width=42>
                        %button%
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=262 bgcolor=000000>
    <tr>
        <td fixwidth=50><button value="acp" action="bypass -h user_acp" width=40 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2"></td>
        <td fixwidth=60></td>
        <td fixwidth=100>
            Farm type
        </td>
        <td fixwidth=20></td>
        %farmType%
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<br>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=1></td>
        <td width=35><button action="%assist_bypass%" value="" width=15 height=15 back="%assist_img%" fore="%assist_img%"></td>
        <td fixwidth=240>
            Assist to Party Leader
        </td>
        <td width=1></td>
        <td width=35><button action="%assistMAttack_bypass%" value="" width=15 height=15 back="%assistMAttack_img%" fore="%assistMAttack_img%"></td>
        <td fixwidth=240>
            Assist Mobs
        </td>
    </tr>
</table>
<table width=298 border=0 cellspacing=0 cellpadding=0 height=20>
    <tr>
        <td width=5></td>
        <td width=15>
            <table width=15 border=0 cellspacing=3 cellpadding=0 height=10>
                <tr>
                    <td width=15>
                        <button action="%refreshSkills% $selectid" value="" width=15 height=15 back="L2UI.CheckBox_checked" fore="L2UI.CheckBox">
                    </td>
                </tr>
            </table>
        </td>
        <td width=180>
            <table width=180 border=0 cellspacing=0 cellpadding=0 height=20>
                <tr>
                    <td width=180 align=center>
                        Refresh skills by shortcuts
                    </td>
                </tr>
            </table>
        </td>
        <td width=100 align=left>
            <combobox width=40 var=selectid list="1;2;3;4;5;6;7;8;9;10">
        </td>
    </tr>
</table>
<br1>
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=298 border=0 cellspacing=0 cellpadding=0>
    <tr>
        <td width=73>
            <button value="ATTACK" action="bypass -h user_changeSkillType attack" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="CHANCE" action="bypass -h user_changeSkillType chance" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="SELF" action="bypass -h user_changeSkillType self" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
        <td width=73 align=center>
            <button value="HEAL" action="bypass -h user_changeSkillType heal" width=73 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2">
        </td>
    </tr>
</table>
<img src="L2UI.SquareWhite" width=298 height=2>
<br1>
<table width=298 border=0 cellspacing=0 cellpadding=0>
        <tr>
        %skillList%
        </tr>
</table>
<br>

<img src="L2UI.SquareWhite" width=298 height=2>
%skillsParam%
<img src="L2UI.SquareWhite" width=298 height=2>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=5></td>
        %distance%
        <td width=8></td>
        <td fixwidth=240>
            Search Distance
        </td>
    </tr>
</table>
<table width=298 bgcolor=1F1818>
    <tr>
        <td width=5></td>
        <td width=120><button action="%tgRestoreMp_bypass%" value="" width=15 height=15 back="%tgRestoreMp_img%" fore="%tgRestoreMp_img%"></td>
        <td fixwidth=240>
            Restore Mp by Target
        </td>
    </tr>
</table>
</body></html>
this is the whole code. I want to replace %farmType% with only a button not with text and etc...
Without knowing the bypasses your server, I am unable to provide code that would work directly on your server without any edits.
However I've added a button that uses the variable dropdown box above it as a reference.
HTML:
<html>
    
<table width=262 bgcolor=000000>
    <tr>
        <td fixwidth=50><button value="acp" action="bypass -h user_acp" width=40 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2"></td>
        <td fixwidth=60></td>
        <td fixwidth=100> Farm type</td>
        <td fixwidth=20></td>
    </tr>
        <combobox width=76 var=autofarmType list=0;1;2;3;4>
        <button value="Switch" action="bypass -h edit_farmType $autofarmType" width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2"></button>
</table>

</html>
 

Artemis37

Member
Artemis37 Rep
0
0
0
Rep
0
Artemis37 Vouches
0
0
0
Vouches
0
Posts
17
Likes
3
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 4 50 XP
Without knowing the bypasses your server, I am unable to provide code that would work directly on your server without any edits.
However I've added a button that uses the variable dropdown box above it as a reference.
HTML:
<html>
   
<table width=262 bgcolor=000000>
    <tr>
        <td fixwidth=50><button value="acp" action="bypass -h user_acp" width=40 height=20 back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2"></td>
        <td fixwidth=60></td>
        <td fixwidth=100> Farm type</td>
        <td fixwidth=20></td>
    </tr>
        <combobox width=76 var=autofarmType list=0;1;2;3;4>
        <button value="Switch" action="bypass -h edit_farmType $autofarmType" width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2"></button>
</table>

</html>
Thanks for the code but it doesn't work. I will leave it for now till the dev decide to response to me...
 

Azayaka

Allelujah
Administrator
Azayaka Rep
3
0
0
Rep
9
Azayaka Vouches
0
0
0
Vouches
0
Posts
330
Likes
225
2 YEARS
2 YEARS OF SERVICE
LEVEL 101 5 XP
Thanks for the code but it doesn't work. I will leave it for now till the dev decide to response to me...
If nothing else, it sounds like @AzukaChan needs more information about your setup. If your developer is unable to or doesn't get back to you in time please consider sharing more information.
 

Artemis37

Member
Artemis37 Rep
0
0
0
Rep
0
Artemis37 Vouches
0
0
0
Vouches
0
Posts
17
Likes
3
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 4 50 XP
If nothing else, it sounds like @AzukaChan needs more information about your setup. If your developer is unable to or doesn't get back to you in time please consider sharing more information.
Im attaching the full java code + html chats



HTML DOWNLOAD
 

3,571

1,285

9,621

433

Top