Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [L2J] Tutoriais (https://secretexperience.net/forumdisplay.php?f=39)
-   -   Funções HTML (https://secretexperience.net/showthread.php?t=5730)

KaL 15-03-2009 03:06 AM

Funções HTML
 
Vou citar aqui um Tutorial simples, de como usar as funções de HTML para criar NPCs.

------------------

Multisell :

Para que um botão acesse uma lista no multisell, basta colocar este Código e o Nome da lista :

Código:

bypass -h npc_%objectId%_multisell 12345
Exemplo :

Citação:

<button value="Armas" action="bypass -h npc_%objectId%_multisell 12345" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
------------------


Teleport :


Para que um botão Teleporte o char para outra localização, basta colocar este Código e o ID do Teleport desejado

Código:

bypass -h npc_%objectId%_goto 50000
Exemplo :

Citação:

a action="bypass -h npc_%objectId%_goto 50000" msg="811;Dragon Valley Cave"><font color="00FF00">Dragon Valley Cave</font></a>
------------------


Janela secundária :


Para que um botão abra uma outra Janela de conversação, basta colocar o Código e o Número da Janela :

Código:

bypass -h npc_%objectId%_Chat 0
Exemplo :

Citação:

<a action="bypass -h npc_%objectId%_Chat 0"><font color="FFF080">Voltar</font></a>
P : Como assim ' Número da Janela ' ?
R : Número da Janela significa um Número após o Hífen. Por exemplo :

Eu tenho uma HTML chamada 5000.htm - o Número dela será 0. E assim por diante.
Citação:

5000.htm Chat 0
5000-1.htm Chat 1
5000-2.htm Chat 2
5000-3.htm Chat 3
E assim sucessivamente.
------------------

Buylists :

Para que o botão abra uma Buylist, basta usar o Código e o ID da Buylist desejada :

Código:

bypass -h npc_%objectId%_Buy 5000
Exemplo :

Citação:

<button value="C5 Weapons" action="bypass -h npc_%objectId%_Buy 5000" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">
------------------

Sell :

Para que o botão abra uma janela de venda, basta usar o Código + a Função Sell

Código:

bypass -h npc_%objectId%_Sell
Exemplo :

Citação:

<button value="Sell" action="bypass -h npc_%objectId%_Sell" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">
------------------

Territory Status :

Para que um botão mostre o Territory Status da cidade onde seu NPC se econtra, basta usar o Código + a Função Territory Status

Código:

bypass -h npc_%objectId%_TerritoryStatus
Exemplo :

Citação:

<a action="bypass -h npc_%objectId%_TerritoryStatus">See the Lord and get the tax rate information</a>
------------------

Quests Disponíveis :

Para que o botão mostre as Quests Disponíveis para aquele NPC, basta usar o Código + a Função Quest

Código:

bypass -h npc_%objectId%_Quest
Exemplo :

Citação:

<a action="bypass -h npc_%objectId%_Quest">Quest</a>
------------------

Scripts :

Para que um botão mostre um determinado Script Python, basta usar o Código + o ID + Nome :

Código:

bypass -h npc_%objectId%_Quest 9999_NPCBuffer[/COLOR]
Exemplo :

Citação:

<button value="Balacubaco" action="bypass -h npc_%objectId%_Quest 9999_NPCBuffer" width=80 height=30 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
------------------------------------------------------

Espero ter sido útil e sanado algumas dúvidas que possam ocorrer ^^

Créditos : KaL

HanNiBaL 27-06-2009 04:25 PM

Por exemplo eu tenho uma htm ake id dela e 40010 , ela tem varios tipos de weapons
que sao :
<a action="bypass -h npc_%objectId%_multisell 70008">Epic Weapons</a><br>
<a action="bypass -h npc_%objectId%_multisell 70000">Demoniac Weapons</a><br>
<a action="bypass -h npc_%objectId%_multisell 70010">Icarus Weapons</a><br>
<a action="bypass -h npc_%objectId%_multisell 70011">Vesper Weapons</a><br>

Como ficaria isso nakela opcao de chat , pode me da um exemplo ?


<a action="bypass -h npc_%objectId%_Chat 0"><font color="FFF080">Voltar</font></a>

Handy 27-06-2009 04:55 PM

Vc cria um novo HTML para ela e põe as multisells desejadas.
NPC = 40010
Crie os chats HTML
chat 1 = 40010-1
chat 2 = 40010-2
chat 3 = 40010-3
chat 4 = 40010-4

Citação:

<a action="bypass -h npc_%objectId%_Chat 1">Epic Weapons</a><br>
<a action="bypass -h npc_%objectId%_Chat 2">Demoniac Weapons</a><br>
<a action="bypass -h npc_%objectId%_Chat 3">Icarus Weapons</a><br>
<a action="bypass -h npc_%objectId%_Chat 4">Vesper Weapons</a><br>

HanNiBaL 27-06-2009 05:35 PM

tipow nao sei se to falando ou to entendendo errado , eu qero cria no meu npc opcoes assim por exemplo um menu ARMAS , quando eu clica nele abri a tabela de armas com a lista , entende...
Pra pode separa em armas , ropas e acessorios .

Soul 27-06-2009 10:36 PM

Fraga o meu ai e edita pra o seu
Npc iD:57
html/merchant/57

<tr><td><button value="Armors" action="bypass -h npc_%objectId%_Chat 1" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Weapons" action="bypass -h npc_%objectId%_Chat 2" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Jewels" action="bypass -h npc_%objectId%_Chat 3" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Wing" action="bypass -h npc_%objectId%_multisell 023" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Outros" action="bypass -h npc_%objectId%_multisell 024" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Tattos" action="bypass -h npc_%objectId%_multisell 031" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
[aki tem outra pagina e multisells juntas]

html/merchant/57-1

<tr><td><button value="Titanium" action="bypass -h npc_%objectId%_multisell 020" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Dynasty" action="bypass -h npc_%objectId%_multisell 025" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Dark Knight" action="bypass -h npc_%objectId%_multisell 032" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Ds SE" action="bypass -h npc_%objectId%_multisell 026" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="DK SE" action="bypass -h npc_%objectId%_multisell 033" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
[Soh multisell]

html/merchant/57-2

<tr><td><button value="Dynasty" action="bypass -h npc_%objectId%_multisell 021" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<tr><td><button value="Custom" action="bypass -h npc_%objectId%_multisell 027" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
[Multisell tb]

html/merchant/57-3

<tr><td><button value="Boss" action="bypass -h npc_%objectId%_multisell 022" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>



Flow ai :D


Horários baseados na GMT -3. Agora são 01:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.