Guide on adding augmentation to the Service Manager via XML
To add augmentation to the Service Manager, configure the gameserver/data/variation_sell_service.xml file and add bypasses to the NPC dialog.
Step 1: Setting up the XML file
Edit - gameserver/data/variation_sell_service.xml.
SWITCHING ON: <variation_sell_service enabled="true"> false change to true as in the example !!!!!!
Example:
Fields:
enabled: true - service is enabled, false - service is disabled.
menuId: ID for bypass, for example, bypass -h scripts_services.VariationSellService:buyVariation 1.
variationOption1: ID of active/passive skill from gameserver/data/optiondata.xml. Example:
<optiondata id="14561">
<!-- Active: Temporarily increases head size -->
<skill id="3203" level="1"/>
</optiondata>
- variationOption2: Passive stat ID from gameserver/data/optiondata.xml. Example:
<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: Items and their quantities to purchase. Format: itemId-amount,itemId:amount;itemId_amount. Example: 57-1000,4037:20;6673_5 (1000 aden, 20 items ID 4037, 5 items ID 6673).
Step 2: Setting up the NPC dialogue
Add bypasses to gameserver/data/html-ru/mods/services. Example for the Service Manager:
Each button calls buyVariation with menuId corresponding to XML
Notes:
Check optiondata.xml for correct skill/stat IDs before adding to XML.
Download logs (number of templates and enabled status) are in the server logs.
To add augmentation to the Service Manager, configure the gameserver/data/variation_sell_service.xml file and add bypasses to the NPC dialog.
Step 1: Setting up the XML file
Edit - gameserver/data/variation_sell_service.xml.
SWITCHING ON: <variation_sell_service enabled="true"> false change to true as in the example !!!!!!
Example:
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>
Fields:
enabled: true - service is enabled, false - service is disabled.
menuId: ID for bypass, for example, bypass -h scripts_services.VariationSellService:buyVariation 1.
variationOption1: ID of active/passive skill from gameserver/data/optiondata.xml. Example:
<optiondata id="14561">
<!-- Active: Temporarily increases head size -->
<skill id="3203" level="1"/>
</optiondata>
- variationOption2: Passive stat ID from gameserver/data/optiondata.xml. Example:
<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: Items and their quantities to purchase. Format: itemId-amount,itemId:amount;itemId_amount. Example: 57-1000,4037:20;6673_5 (1000 aden, 20 items ID 4037, 5 items ID 6673).
Step 2: Setting up the NPC dialogue
Add bypasses to gameserver/data/html-ru/mods/services. Example for the 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>
Each button calls buyVariation with menuId corresponding to XML
Notes:
Check optiondata.xml for correct skill/stat IDs before adding to XML.
Download logs (number of templates and enabled status) are in the server logs.
Last edited: