How to add Augmentation to Services Manager

Deazer

Head Developer
Staff member
you need to add data to add the augmentation in the management service in
gameserver\sql\install\variation_sell_service_template.sql
Where fields are
menuId - id for the treatment of dialogue at the NPC. As an example - action = action="bypass -h scripts_services.VariationSellService:buyVariation 1" Where id is a menu 1. You can install any ID, but do not forget to number as in bypass, like: buyVariation 20

variationOption1 - the value of active or passive skill of gameserver\data\ optiondata. As an example,
<Optiondata id = "14561">
<- Active: Temporarily increases the size of your head. ->
<Skill id = "3203" level = "1" />

variationOption2- value only passive stat of gameserver\data\optiondata. As an example,
<Optiondata id = "700">
<! - 1) Max. CP +51,37 2) Crete. 10.37 ->
<For>
<Add order = "0x40" stat = "maxCp" value = "51.37" />
<Add order = "0x40" stat = "rCrit" value = "10.37" />

consumeList - a field in which specify a stand to buy this pair of augmentation.

Next, go to the NPC dialogue Manager and add the needed bypass - as an example:

gameserver\data\html-en\mods\services

Code:
Service Manager

<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>
 
Back
Top