How to edit Teleport List

Teleportation is of two kinds:
1.Teleport list included integrated into the NPC
2. Script teleport


1.Teleport list included integrated into the NPC
Example for NPC:
path: gameserver/data/npc
Code:
<npc id="31964" name="Bilia" title="Gatekeeper">
    <set name="aggroRange" value="0"/>
    <set name="ai_type" value="CharacterAI"/>
    <set name="baseAtkRange" value="40"/>
    <set name="baseCON" value="43"/>
    <set name="baseCritRate" value="40"/>
    <set name="baseDEX" value="30"/>
    <set name="baseHpMax" value="2444.468"/>
    <set name="baseHpRate" value="1"/>
    <set name="baseHpReg" value="7.5"/>
    <set name="baseINT" value="21"/>
    <set name="baseMAtk" value="780"/>
    <set name="baseMAtkSpd" value="333"/>
    <set name="baseMDef" value="382"/>
    <set name="baseMEN" value="20"/>
    <set name="baseMpMax" value="1345.8"/>
    <set name="baseMpReg" value="2.7"/>
    <set name="basePAtk" value="1303"/>
    <set name="basePAtkSpd" value="253"/>
    <set name="basePDef" value="471"/>
    <set name="baseRunSpd" value="120"/>
    <set name="baseSTR" value="40"/>
    <set name="baseShldDef" value="0"/>
    <set name="baseShldRate" value="0"/>
    <set name="baseWIT" value="20"/>
    <set name="baseWalkSpd" value="50"/>
    <set name="castle_id" value="9"/>
    <set name="collision_height" value="25.0"/>
    <set name="collision_radius" value="8.0"/>
    <set name="level" value="70"/>
    <set name="rewardExp" value="0"/>
    <set name="rewardRp" value="0"/>
    <set name="rewardSp" value="0"/>
    <set name="shots" value="NONE"/>
    <set name="texture" value=""/>
    <set name="type" value="Merchant"/>
    <skills>
      <skill id="4416" level="14"/>
      <!--Humans-->
    </skills>
    <teleportlist>
      <sublist id="1">
        <target loc="43835 -47749 -792" item_id="57" price="10000" name="Gatekeeper.RuneTownship" castle_id="8"/>
        <target loc="147850 -55300 -2728" item_id="57" price="10000" name="Gatekeeper.TheTownofGoddard" castle_id="7"/>
        <target loc="146783 25808 -2008" item_id="57" price="53000" name="Gatekeeper.TheTownofAden" castle_id="5"/>
        <target loc="82971 53207 -1488" item_id="57" price="59000" name="Gatekeeper.TheTownofOren" castle_id="4"/>
        <target loc="111455 219400 -3544" item_id="57" price="100000" name="Gatekeeper.Heine" castle_id="6"/>
        <target loc="83463 148045 -3400" item_id="57" price="87000" name="Gatekeeper.TheTownofGiran" castle_id="3"/>
        <target loc="15472 142880 -2688" item_id="57" price="88000" name="Gatekeeper.TheTownofDion" castle_id="2"/>
        <target loc="-12787 122779 -3112" item_id="57" price="85000" name="Gatekeeper.TheTownofGludio" castle_id="1"/>
        <target loc="-45158 -112583 -240" item_id="57" price="13000" name="Gatekeeper.OrcVillage"/>
        <target loc="115120 -178224 -880" item_id="57" price="4400" name="Gatekeeper.DwarvenVillage"/>
        <target loc="68693 -110438 -1904" item_id="57" price="3000" name="Gatekeeper.DenofEvil"/>
        <target loc="111965 -154172 -1528" item_id="57" price="1600" name="Gatekeeper.PlunderousPlains"/>
        <target loc="113903 -108752 -848" item_id="57" price="3500" name="Gatekeeper.FrozenLabyrinth"/>
        <target loc="47692 -115745 -3744" item_id="57" price="1900" name="Gatekeeper.CryptsofDisgrace"/>
        <target loc="91280 -117152 -3928" item_id="57" price="2100" name="Gatekeeper.PavelRuins"/>
      </sublist>
      <sublist id="2">
        <target loc="-87328 142266 -3640" item_id="57" price="1000" name="Gatekeeper.GludinArena"/>
        <target loc="73579 142709 -3768" item_id="57" price="1000" name="Gatekeeper.GiranArena"/>
        <target loc="107577 -122392 -3632" item_id="57" price="1000" name="Gatekeeper.FrostLake"/>
        <target loc="44221 -114232 -2784" item_id="57" price="1000" name="Gatekeeper.CryptsofDisgrace"/>
        <target loc="121618 -141554 -1496" item_id="57" price="1000" name="Gatekeeper.SkyWagonRelic"/>
        <target loc="146440 46723 -3432" item_id="57" price="1000" name="Gatekeeper.Coliseum"/>
      </sublist>
      <sublist id="3">
        <target loc="-87328 142266 -3640" price="1" item_id="6651" name="Gatekeeper.GludinArena"/>
        <target loc="73579 142709 -3768" price="1" item_id="6651" name="Gatekeeper.GiranArena"/>
        <target loc="107577 -122392 -3632" price="1" item_id="6651" name="Gatekeeper.FrostLake"/>
        <target loc="44221 -114232 -2784" price="1" item_id="6651" name="Gatekeeper.CryptsofDisgrace"/>
        <target loc="121618 -141554 -1496" price="1" item_id="6651" name="Gatekeeper.SkyWagonRelic"/>
        <target loc="146440 46723 -3432" price="1" item_id="6651" name="Gatekeeper.Coliseum"/>
      </sublist>
    </teleportlist>
    <attributes>
      <defence attribute="fire" value="0"/>
      <defence attribute="water" value="0"/>
      <defence attribute="wind" value="0"/>
      <defence attribute="earth" value="0"/>
      <defence attribute="holy" value="0"/>
      <defence attribute="unholy" value="0"/>
    </attributes>
  </npc>
Structure:
Open tag <teleportlist>
Sub list which we call from the dialogue when referring <sublist id="1"> 2 3 4 5 etc.
target loc= X Y Z Teleport coordinates
item_id="57" Consume Item ID
price="10000" Consume item amount
name="Gatekeeper.RuneTownship" localization name of teleport locate gameserver/data/strings/

2. Script teleport:

Teleport list included integrated into the HTML file
Example:
gameserver/data/html-en/teleporter/
Text:
[scripts_Util:Gatekeeper 43816 -47768 -800 50000 @811;Rune Township|Teleport to Rune Township (50,000 Adena).]
Params:
scripts_Util:Gatekeeper - Teleportation call utility
43816 -47768 -800 50000 - X Y Z Price in Adena
@811;Rune Township - Dialog for re-confirmation
| Script and Text Separator
Teleport to Rune Township (50,000 Adena). - Plain text
 
How could I do the same thing that is explained in this html?

<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -61288 -57736 -1600" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>
 
How could I do the same thing that is explained in this html?

<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -61288 -57736 -1600" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>
<a action="bypass -h scripts_Util:Gatekeeper -61288 -57736 -1600 0" msg="Valakas">
Last digit is price, if you need make it free - set zero
 
I was able to do the teleport but what is not left is the message to press ok, that is, the message to go to valakas and confirm... I have it this way

<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

With that configuration it travels to where I want it to go but it does not appear to confirm the trip, try this way

Ejem 1=
<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" msg="Valakas" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

Ejem2=
<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21" msg="Valakas"></td>

Ejem=3
<td align=center><button value="Valakas" msg="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

but in none of the 3 configurations does the sign confirm the trip appear
 
I was able to do the teleport but what is not left is the message to press ok, that is, the message to go to valakas and confirm... I have it this way

<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

With that configuration it travels to where I want it to go but it does not appear to confirm the trip, try this way

Ejem 1=
<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" msg="Valakas" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

Ejem2=
<td align=center><button value="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21" msg="Valakas"></td>

Ejem=3
<td align=center><button value="Valakas" msg="Valakas" action="bypass -h scripts_Util:Gatekeeper -80684 149770 -3040 1000000" width=200 height=21 back="L2NPC_RU_OrmJevil_LP.butred200x21" fore="L2NPC_RU_OrmJevil_LP.butred200x21"></td>

but in none of the 3 configurations does the sign confirm the trip appear
На "кнопках" нет подтверждения, только на ссылках
 
So does it mean that you can't put a confirmation button in an html? this is the interlude
You can't put a confirmation message on a button, only on a link.

You can set a color on the link:
HTML:
<tr><td align=center><a action="bypass _bbsteleport_teleport;184542 -106330 -6304 0" msg="You will be moved to (Forge of the Gods, Lower Level). Do you wish to continue?"><font color="LEVEL">Ember (85)</font></a></td></tr>
 
Back
Top