Como criar novo NPC e editar Drop e SA UP

1. Localização: gameserver\data\npc
2. Formato XML

3. Descrição múltipla:
O NPC é descrito no seguinte sistema:
XML:
ai_type mob - CharacterAI / Priest etc. - Who he is, magician, heal, healer or custom AI
Stats of the mob such as pAtk / CON / DEX / INT / CastSpeed / level and etc.
How much does it give at death XP/SP/RP - rewardExp / rewardRp / rewardSp
type - who is - NPC/RaidBoss/Monster or custome
4. Minions para mobs também são adicionados no npc. Exemplo:
XML:
<minions>
<minion npc_id="25110" count="1"/>
<!--Cloe's Servitor-->
<minion npc_id="25111" count="1"/>
<!--Cloe's Servitor-->
</minions>
5. Skills para mobs que ele usará para atacar, curar ou passivas. Por exemplo, se você acha que alguma skill está causando dano demais ou matando rápido, você pode removê-la ou reduzir os status da skill que ele usa. Exemplo:
XML:
<skills>
<skill id="4045" level="1"/>
<!--Resist Full Magic Attack-->
<skill id="4197" level="7"/>
<!--Hold-->
<skill id="4494" level="1"/>
<!--Raid Boss-->
<skill id="4830" level="1"/>
<!--Raid Boss - Level 74-->
</skills>
6. Evolução de SA, também conhecido como Soul Crystal. Exemplo:
XML:
<absorblist>
<absorb chance="5" min_level="11" max_level="12" type="PARTY_ONE"/>
</absorblist>
In the example, the soul crystal will be pumped with a 5% chance from level 11 to level 12 for one member of the party

Descrição:
Em vez de PARTY_ONE você pode definir parâmetros como:

LAST_HIT skill="true" ou skill="false" - para quem deu o último golpe no RB ou mob, seja por skill ou ataque normal
Exemplo:
XML:
<absorblist>
<absorb chance="5" min_level="0" max_level="4" type="LAST_HIT" skill="true"/>
</absorblist>

PARTY_RANDOM - Entrega para uma quantidade aleatória de membros da party. Por exemplo, entrega para três membros de uma raid, não apenas um.

PARTY_ALL - Entrega para toda a party que participou da raid.

7. Drop e mecânica de funcionamento.
Exemplo:
Existem 3 grupos na lista de recompensas (reward list) -
RATED_GROUPED - neste grupo, tudo é escalado pelos rates da config. Se você configurar Reward Drop x10, a quantidade de itens será aumentada em 10 vezes
Da mesma forma, o grupo é dividido em subgrupos a partir dos quais ocorre o drop <group chance = "77.473"> grupo número 1. Grupo número 2 <group chance = "50.0">:
Isso significa que, após matar o mob, há uma chance de dropar do grupo, podendo cair apenas um ou dois itens. Por exemplo, temos o grupo <group chance = "77.473">, então a chance de dropar do grupo será recalculada a partir do grupo - chance = "60.6544"
XML:
<rewardlist type="RATED_GROUPED">
<group chance="77.473"> -chance of group 1
<reward item_id="960" min="1" max="1" chance="60.6544"/> - chance to drop out to a items in group
</group>
<group chance="50.0"> - chance of group 2
<reward item_id="8176" min="3" max="9" chance="50.0"/> - chance to drop out to a items in group
</group>
</rewardlist>

NOT_RATED_GROUPED - Neste grupo, nada será afetado pelos rates, não importa o que você configure na config. Exemplo:
XML:
<rewardlist type="NOT_RATED_GROUPED">
<group chance="77.473"> - chance of group 1
<reward item_id="960" min="1" max="1" chance="60.6544"/> - chance to drop out to a items in group
</group>
<group chance="50.0"> - chance of group 2
<reward item_id="8176" min="3" max="9" chance="50.0"/> - chance to drop out to a items in group
</group>
</rewardlist>

SWEEP - Este é o grupo de spoils. Não possui subgrupos como RATE e NOT_RATE

Exemplo:
XML:
<rewardlist type="SWEEP">
<reward item_id="1799" min="1" max="1" chance="37.1205"/> - chance of receiving subject
<reward item_id="1831" min="1" max="1" chance="66.817"/> - chance of receiving subject
<reward item_id="1896" min="1" max="1" chance="10.6171"/> - chance of receiving subject
</rewardlist>

RATED_NOT_GROUPED - Um tipo alternativo de drop, o mecanismo é implementado da mesma forma que no l2j. Este tipo não possui grupos internos. Apenas chances diretas em cada item.
Também existem rates separados para este grupo.

# Rates for the alternative drop group RATED_NOT_GROUPED.
RateAdenaRatedNotGrouped = 1.
RateStonesRatedNotGrouped = 1.
RateBossesRatedNotGrouped = 1.
RateItemsRatedNotGrouped = 1.

XML:
    <rewardlist type="RATED_NOT_GROUPED">
        <reward item_id="8600" min="1" max="1" chance="86.0"/>
        <reward item_id="8601" min="1" max="1" chance="1.0"/>
        <reward item_id="8602" min="1" max="1" chance="1.0"/>
        <reward item_id="8603" min="1" max="1" chance="1.0"/>
        <reward item_id="8604" min="1" max="1" chance="1.0"/>
        <reward item_id="8605" min="1" max="1" chance="1.0"/>
        <reward item_id="8606" min="1" max="1" chance="1.0"/>
        <reward item_id="8608" min="1" max="1" chance="1.0"/>
        <reward item_id="8610" min="1" max="1" chance="1.0"/>
        <reward item_id="8607" min="1" max="1" chance="1.0"/>
        <reward item_id="8609" min="1" max="1" chance="1.0"/>
        <reward item_id="8612" min="1" max="1" chance="1.0"/>
        <reward item_id="8613" min="1" max="1" chance="1.0"/>
        <reward item_id="8614" min="1" max="1" chance="1.0"/>
        <reward item_id="8611" min="1" max="1" chance="1.0"/>
      </group>
    </rewardlist>

Agora uma descrição completa de um Mob em um exemplo real:
XML:
<npc id="20300" name="Zenta Lizardman Matriarch" title=""> - NPC ID and name
<set name="aggroRange" value="500"/> - distance of aggression
<set name="ai_type" value="Fighter"/> - AI type - here is Fighter
<set name="baseAtkRange" value="40"/> - Range Attack. In this example, he comes close to the char
<set name="baseCON" value="43"/> - stat CON
<set name="baseCritRate" value="80"/> - stat Crit Rate
<set name="baseDEX" value="30"/> - stat DEX
<set name="baseHpMax" value="1138.629"/> - stat HP
<set name="baseHpRate" value="1"/> - multiplier HP
<set name="baseHpReg" value="5.5"/> - regeneration HP per tick 1 sec
<set name="baseINT" value="21"/> - stat INT
<set name="baseMAtk" value="176"/> - Mage Attack power
<set name="baseMAtkSpd" value="333"/> - Cast Speed
<set name="baseMDef" value="170"/> - Magic Defense
<set name="baseMEN" value="20"/> - stat MEN
<set name="baseMpMax" value="584"/> - amount of Mana
<set name="baseMpReg" value="2.1"/> - regen mana per sec
<set name="basePAtk" value="352"/> - base pAtk
<set name="basePAtkSpd" value="253"/> - Phys attack speed
<set name="basePDef" value="231"/> - Phys Defence
<set name="baseRunSpd" value="140"/> - Run speed
<set name="baseSTR" value="40"/> - stat STR
<set name="baseShldDef" value="0"/> - Shield Defense (Does not work if there is no shield in the hands)
<set name="baseShldRate" value="0"/> - Shield Defense multiplaer (Does not work if there is no shield in the hands)
<set name="baseWIT" value="20"/> - stat WIT
<set name="baseWalkSpd" value="53"/> - walk speed . NEVER put 0 - client will crush
<set name="collision_height" value="40.0"/> - mob height
<set name="collision_radius" value="20.0"/> - mob radius
<set name="level" value="44"/> - level
<set name="rewardExp" value="3418"/> - Reward Exp
<set name="rewardRp" value="0"/> - Reward Rraid Points
<set name="rewardSp" value="234"/> - reward SP
<set name="shots" value="NONE"/> - Use soulshots or not
<set name="texture" value=""/> - textures
<set name="type" value="Monster"/> - type mob, in this occasion Monster
<faction name="lizardman_clan" range="300"/> - The clan in which the mob is composed, if in a radius of 300 you beat his falcon, he will attack you, even if he is not aggressive
<equip> - What to put on hands
<rhand item_id="221"/> - Item id of the object that is dressed in the right hand
<!--Assassin Knife-->
</equip>
<skills> - The skills of the mob he attacks
<skill id="4032" level="4"/>
<!--NPC Strike-->
<skill id="4408" level="1"/>
<!--HP Increase (1x)-->
<skill id="4409" level="1"/>
<!--MP Increase (1x)-->
<skill id="4410" level="12"/>
<!--Slightly Strong P. Atk.-->
<skill id="4411" level="12"/>
<!--Slightly Strong M. Atk.-->
<skill id="4412" level="10"/>
<!--Slightly Weak P. Def.-->
<skill id="4413" level="10"/>
<!--Slightly Weak M. Def.-->
<skill id="4414" level="2"/>
<!--Standard Type-->
<skill id="4415" level="7"/>
<!--Daggers-->
<skill id="4416" level="6"/>
<!--Humanoids-->
</skills>
<attributes> - Defensive elements of the mob
<defence attribute="fire" value="0"/>
<defence attribute="water" value="0"/>
<defence attribute="wind" value="0"/>
<defence attribute="earth" value="0"/>
<defence attribute="holy" value="0"/>
<defence attribute="unholy" value="0"/>
</attributes>
<rewardlist type="NOT_RATED_GROUPED"> - A drop that is not raced at the mob. Example described above
<group chance="42.0"> - chance group
<reward item_id="8600" min="1" max="1" chance="55.0"/> - Chance to fall out of a group
<reward item_id="8601" min="1" max="1" chance="38.0"/> - Chance to fall out of a group
<reward item_id="8602" min="1" max="1" chance="7.0"/> - Chance to fall out of a group
</group>
<group chance="11.0"> - chance group
<reward item_id="8603" min="1" max="1" chance="55.0"/> - Chance to fall out of a group
<reward item_id="8604" min="1" max="1" chance="38.0"/> - Chance to fall out of a group
<reward item_id="8605" min="1" max="1" chance="7.0"/> - Chance to fall out of a group
</group>
<group chance="25.0"> - chance group
<reward item_id="8606" min="1" max="1" chance="34.0"/> - Chance to fall out of a group
<reward item_id="8608" min="1" max="1" chance="33.0"/> - Chance to fall out of a group
<reward item_id="8610" min="1" max="1" chance="33.0"/> - Chance to fall out of a group
</group>
<group chance="10.0"> - chance group
<reward item_id="8607" min="1" max="1" chance="50.0"/> - Chance to fall out of a group
<reward item_id="8609" min="1" max="1" chance="50.0"/> - Chance to fall out of a group
</group>
<group chance="1.0"> - chance group
<reward item_id="8612" min="1" max="1" chance="33.0"/> - Chance to fall out of a group
<reward item_id="8613" min="1" max="1" chance="33.0"/> - Chance to fall out of a group
<reward item_id="8614" min="1" max="1" chance="34.0"/> - Chance to fall out of a group
</group>
<group chance="10.0"> - chance group
<reward item_id="8611" min="1" max="1" chance="100.0"/> - Chance to fall out of a group
</group>
</rewardlist>
</npc>
 
Back
Top