Cómo editar teleports y añadir los tuyos propios.

Todos los teleports estándar y sus nombres están en gameserver/data/npc y están vinculados directamente al NPC como skills o drop, así que como ejemplo tomamos al NPC Roxxy:

<npc id="30006" name="Roxxy" title="Gatekeeper">
<set name="aggroRange" value="0"/>
<set name="ai_type" value="CharacterAI"/>
<set name="baseAtkRange" value="40"/>
<set name="baseCON" value="43"/>
....................................
<teleportlist> Inicio de la etiqueta del teleporter
<sublist id="1"> ID de lista que se usa en el diálogo que veremos más abajo.

<target loc="-80684 149770 -3040" item_id="57" price="9400" name="Gatekeeper.TheVillageofGludin"/>
<target loc="9744 15645 -4568" item_id="57" price="24000" name="Gatekeeper.DarkElvenVillage"/>
<target loc="115120 -178224 -880" item_id="57" price="46000" name="Gatekeeper.DwarvenVillage"/>
<target loc="46951 51550 -2976" item_id="57" price="23000" name="Gatekeeper.ElvenVillage"/>
<target loc="-45158 -112583 -240" item_id="57" price="35000" name="Gatekeeper.OrcVillage"/>
<target loc="-112367 234703 -3668" item_id="57" price="830" name="Gatekeeper.ElvenRuins"/>
<target loc="-111728 244330 -3448" item_id="57" price="770" name="Gatekeeper.SingingWaterfall"/>
<target loc="-106696 214691 -3424" item_id="57" price="1000" name="Gatekeeper.WesternTerritoryofTalkingIsland"/>
<target loc="-99586 237637 -3568" item_id="57" price="470" name="Gatekeeper.ObeliskofVictory"/>
</sublist>
<sublist id="2"> ID de lista que se usa en el diálogo
<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="49315 248452 -5960" item_id="57" price="1000" name="Gatekeeper.ElvenRuins"/>
<target loc="146440 46723 -3432" item_id="57" price="1000" name="Gatekeeper.Coliseum"/>
</sublist>
<sublist id="3"> ID de lista que se usa en el diálogo
<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="49315 248452 -5960" price="1" item_id="6651" name="Gatekeeper.ElvenRuins"/>
<target loc="146440 46723 -3432" price="1" item_id="6651" name="Gatekeeper.Coliseum"/>
</sublist>
</teleportlist> Fin de la etiqueta del teleporter
Consideremos los parámetros:
<sublist id="1"> - ID de la lista
<target loc="X Y Z del punto de teleport" price="cantidad del ítem" item_id="ID del ítem a consumir" name="Gatekeeper.GludinArena - la cadena que está en data/strings en los archivos de localización"/>

Ahora el diálogo del NPC Roxxy:

Code:
Gatekeeper Roxxy:

[npc_%objectId%_Chat 2|Ask about the Ivory Tower.]

[npc_%objectId%_Teleport 1|Teleport] for this teleport a list from <sublist id = "1"> is taken, as well as an example you can put the output of sub pages with other id

[npc_%objectId%_Teleport 2| <sublist id="2"> - Teleport Name]

[npc_%objectId%_Teleport 3|<sublist id="3"> - Teleport Name]

[npc_%objectId%_multisell 002|Exchange Dimension Diamonds.]

[scripts_Util:NoblessTeleport|Noblesse Exclusive Teleport]

[npc_%objectId%_Quest|Quest]

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

Para usar teleports personalizados sin editar los NPCs, puedes añadirlos directamente al HTML:
1. Solo teleport sin eliminar ítems
[scripts_Util:Gatekeeper X Y Z Heading|Nombre del Teleport]
[scripts_Util:Gatekeeper -61288 -57736 -1600 0|Move to Top of the Clock Tower.]
2. Teleport con eliminación de ítems
[scripts_Util:QuestGatekeeper X Y Z ItemCount ItemID|Nombre del Teleport]
[scripts_Util:QuestGatekeeper -80684 149770 -3040 1 1658|Teleport using Gatekeeper's Amulet.]
 
Back
Top