Service/Universal Npc

Format: XML
Path: gameserver/data/npc/
Type: type
Example: <set name="type" value="UniversalNpc"/>

Available bypasses:
Tattoo:
<a action="bypass -h npc_%objectId%_Draw">Get a tattoo</a>
<a action="bypass -h npc_%objectId%_RemoveList">Remove tattoo</a>
Mail/WH:
<a action="bypass -h npc_%objectId%_DepositP">Deposit item (personal storage)</a>
<a action="bypass -h npc_%objectId%_WithdrawP 0">Pick up an item (personal storage)</a>
<a action="bypass -h npc_%objectId%_deposit_items">Transfer item via Cargo mail</a>
<a action="bypass -h npc_%objectId%_withdraw_items">Accept Cargo.</a>
Subclass:
<a action="bypass -h npc_%objectId%_Subclass 1">Add a subclass.</a>
<a action="bypass -h npc_%objectId%_Subclass 2">Change subclass.</a>
<a action="bypass -h npc_%objectId%_Subclass 2">Cancel the current subclass and replace it with a new one.</a>
Skills:
<a action="bypass -h npc_%objectId%_SkillEnchantList">I want to enchant a skill.</a>
<a action="bypass -h npc_%objectId%_SkillList">Learn Skills</a>
<a action="bypass -h npc_%objectId%_AltSkillList">Custom Skills Learn</a>



All types of bypasses with multisells are also available.

If you need any other functionality, please tell me.
 
Last edited:
What should I put in this file?
so that it identifies the class the player is in and lists the player's skills to enchant.
Not need todo nothing, add to your NPC this paran


1733dce590b5b0a71216c4124e7d19e8.png


XML:
        <teach_classes>
            <class id="0"/>
            <class id="1"/>
            <class id="2"/>
            <class id="3"/>
            <class id="4"/>
            <class id="5"/>
            <class id="6"/>
            <class id="7"/>
            <class id="8"/>
            <class id="9"/>
            <class id="10"/>
            <class id="11"/>
            <class id="12"/>
            <class id="13"/>
            <class id="14"/>
            <class id="15"/>
            <class id="16"/>
            <class id="17"/>
            <class id="18"/>
            <class id="19"/>
            <class id="20"/>
            <class id="21"/>
            <class id="22"/>
            <class id="23"/>
            <class id="24"/>
            <class id="25"/>
            <class id="26"/>
            <class id="27"/>
            <class id="28"/>
            <class id="29"/>
            <class id="30"/>
            <class id="31"/>
            <class id="32"/>
            <class id="33"/>
            <class id="34"/>
            <class id="35"/>
            <class id="36"/>
            <class id="37"/>
            <class id="38"/>
            <class id="39"/>
            <class id="40"/>
            <class id="41"/>
            <class id="42"/>
            <class id="43"/>
            <class id="44"/>
            <class id="45"/>
            <class id="46"/>
            <class id="47"/>
            <class id="48"/>
            <class id="49"/>
            <class id="50"/>
            <class id="51"/>
            <class id="52"/>
            <class id="53"/>
            <class id="54"/>
            <class id="55"/>
            <class id="56"/>
            <class id="57"/>
            <class id="88"/>
            <class id="89"/>
            <class id="90"/>
            <class id="91"/>
            <class id="92"/>
            <class id="93"/>
            <class id="94"/>
            <class id="95"/>
            <class id="96"/>
            <class id="97"/>
            <class id="98"/>
            <class id="99"/>
            <class id="100"/>
            <class id="101"/>
            <class id="102"/>
            <class id="103"/>
            <class id="104"/>
            <class id="105"/>
            <class id="106"/>
            <class id="107"/>
            <class id="108"/>
            <class id="109"/>
            <class id="110"/>
            <class id="111"/>
            <class id="112"/>
            <class id="113"/>
            <class id="114"/>
            <class id="115"/>
            <class id="116"/>
            <class id="117"/>
            <class id="118"/>
        </teach_classes>
 
can add buffer service also?

edit: of course it works. i forgot to set the "type" for NPC
 
Last edited:
Как исправить оформление добавления сабкласса у персонального нпс ?
1749137731513.webp такой вид у персонального
1749137764569.webpа вот такой у обычного
 
and what kind of base do you need? like the first or the second?
if i understood correctly, from what he is saying....

personalNPC=some custom NPC
regularNPC=normal/retail village master npcs

and the problem is that they do not share the same html structure.
again.....IF I understood correctly.

p.s.: i did not bother looking in-game or core to see if there is difference
 
Okay, I'll wait until they tell me exactly what they need from me and then I'll do it.
 
Okay, I'll wait until they tell me exactly what they need from me and then I'll do it.
what ever it is, the best solution is to: just transfer these htmls in the datapack. as normal htmls so peasants admens can put 32000 images and logos in this subclass npc :p
 
yes it is as i said.
watch the video below, RETAIL Villagemaster html output, does not match with UniversalNPC html output.
as i said, it is best to transfer both of these in html folder.
 
да, все так, как я и сказал.
посмотрите видео ниже, HTML-вывод RETAIL Villagemaster не совпадает с HTML-выводом UniversalNPC .
как я уже сказал, лучше всего перенести оба файла в папку html.
Да, нужно отображение как у обычного нпс.
если это можно вынести отдельным htm тоже будет отлично.
 
Back
Top