Cómo añadir Augmentation al Services Manager

Guía para añadir augmentation al Service Manager mediante XML

Para añadir augmentation al Service Manager, configura el archivo gameserver/data/variation_sell_service.xml y añade los bypasses al diálogo del NPC.

Paso 1: Configuración del archivo XML
Editar - gameserver/data/variation_sell_service.xml.

ACTIVACIÓN: <variation_sell_service enabled="true"> cambia false por true como en el ejemplo !!!!!!
Ejemplo:
XML:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE variation_sell_service SYSTEM "variation_sell_service.dtd">
<variation_sell_service enabled="true">
    <template menuId="1" variationOption1="14561" variationOption2="700" consumeList="57-1000,4037:20;6673_5"/>
    <template menuId="2" variationOption1="14562" variationOption2="701" consumeList="4037-10,6673:15"/>
</variation_sell_service>

Campos:
enabled: true - el servicio está activado, false - el servicio está desactivado.
menuId: ID para el bypass, por ejemplo, bypass -h scripts_services.VariationSellService:buyVariation 1.
variationOption1: ID de skill activa/pasiva de gameserver/data/optiondata.xml. Ejemplo:
<optiondata id="14561">
<!-- Active: Temporarily increases head size -->
<skill id="3203" level="1"/>
</optiondata>
- variationOption2: ID de estadística pasiva de gameserver/data/optiondata.xml. Ejemplo:
<optiondata id="700">
<!-- Max. CP +51.37, Crit. +10.37 -->
<for>
<add order="0x40" stat="maxCp" value="51.37"/>
<add order="0x40" stat="rCrit" value="10.37"/>
</for>
</optiondata>
- consumeList: Ítems y sus cantidades para la compra. Formato: itemId-amount,itemId:amount,itemId_amount. Ejemplo: 57-1000,4037:20,6673_5 (1000 adena, 20 ítems con ID 4037, 5 ítems con ID 6673).

Paso 2: Configuración del diálogo del NPC
Añade los bypasses en gameserver/data/html-ru/mods/services. Ejemplo para el Service Manager:

HTML:
<table width=130 cellpadding="0" cellspacing="0">
    <tr>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 1" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Big Head"></td>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 2" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Eva Buff"></td>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 3" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Acrobatics"></td>
    </tr>
</table><br>
<table width=130 cellpadding="0" cellspacing="0">
    <tr>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 4" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Iron Body"></td>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 5" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Firework"></td>
        <td><button width=100 height=18 action="bypass -h scripts_services.VariationSellService:buyVariation 6" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Music"></td>
    </tr>
</table><br>
<center>
    <table width=130 cellpadding="0" cellspacing="0">
        <tr>
            <td></td>
            <td><button width=100 height=18 action="bypass -h npc_%objectId%_Augment 2" back="L2UI_CH3.bigbutton2_down" fore="L2UI_CH3.bigbutton2" value="Remove LS"></td>
            <td></td>
        </tr>
    </table>
</center>

Cada botón llama a buyVariation con el menuId correspondiente en el XML

Notas:
Comprueba en optiondata.xml los IDs correctos de skill/estadística antes de añadirlos al XML.
Los registros de comprobación (número de plantillas y estado de activación) aparecen en los logs del servidor.
 
Back
Top