How to create your own service mob or raid

Format: XML

Path: gameserver/data/npc/

Type: AI

Available AI: UniversalMystic, UniversalFighter
<set name="ai_type" value="UniversalMystic"/> or <set name="ai_type" value="UniversalFighter"/>

Example NPC:

XML:
  <npc id="20001" name="Gremlin" title="">
    <set name="aggroRange" value="0"/>
    <set name="ai_type" value="UniversalMystic"/>
    <set name="baseAtkRange" value="40"/>
    <set name="baseCON" value="43"/>
    <set name="baseCritRate" value="40"/>
    <set name="baseDEX" value="30"/>
    <set name="baseHpMax" value="39.745"/>
    <set name="baseHpRate" value="1"/>
    <set name="baseHpReg" value="2"/>
    <set name="baseINT" value="21"/>
    <set name="baseMAtk" value="3"/>
    <set name="baseMAtkSpd" value="333"/>
    <set name="baseMDef" value="30"/>
    <set name="baseMEN" value="20"/>
    <set name="baseMpMax" value="40"/>
    <set name="baseMpReg" value="0.9"/>
    <set name="basePAtk" value="9"/>
    <set name="basePAtkSpd" value="253"/>
    <set name="basePDef" value="40"/>
    <set name="baseRunSpd" value="50"/>
    <set name="baseSTR" value="40"/>
    <set name="baseShldDef" value="0"/>
    <set name="baseShldRate" value="0"/>
    <set name="baseWIT" value="20"/>
    <set name="baseWalkSpd" value="20"/>
    <set name="collision_height" value="15.0"/>
    <set name="collision_radius" value="10.0"/>
    <set name="level" value="1"/>
    <set name="rewardExp" value="29"/>
    <set name="rewardRp" value="0"/>
    <set name="rewardSp" value="2"/>
    <set name="shots" value="NONE"/>
    <set name="texture" value=""/>
    <set name="type" value="Monster"/>
    <ai_params>
      <set name="flagging_around_players_on_attack" value="true"/>
      <set name="give_to_party_items_reward" value="57;1;6673;1" />
    </ai_params>
    <skills/>
    <attributes>
      <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>
  </npc>

<set name="flagging_around_players_on_dead" value="true"/>Flag all players around when the mob or boss dies.
<set name="flagging_around_players_on_attack" value="true"/>Flag all players around when the mob or boss attacks.
<set name="give_nobles_on_main_class" value="true"/>Grant Noblesse status to all players in the party with the main class, who are level 76 or higher when they kill the boss/mob.
<set name="give_nobles_on_sub_class" value="true"/>Grant Noblesse status to all players in the party with the sub class, who are level 76 or higher when they kill the boss/mob.
<set name="give_to_party_premium_account_id" value="1"/>Grant the premium account ID to all players in the party when they kill the boss/mob.
<set name="give_to_party_custom_hero_time_hours" value="24"/>Grant the hero status to the entire party when they kill the boss/mob.
<set name="give_to_party_items_reward" value="57;1" />
<set name="give_to_party_items_reward_level_penalty" value="9" />
Grant items to the entire party when they kill the boss/mob.
Level penalty for item distribution from `give_to_party_items_reward` - default value 9
<set name="give_to_party_subclass_quests" value="true"/>Give the entire party a quest for a subclass
<set name="buff_party_reward" value="1243;6;1" />Apply a buff to the entire party when a mob dies. Description skill_id;skill_level;skill_time_multiplier
You can specify a set, you must specify all 3 parameters for each value="1243;6;1;1204;2;1"
<set name="give_pvp_point" value="1;100"/>Give pvp points to the entire party. 1(count);100(chance)
<set name="give_pk_point" value="1;100"/>Give pk points to the whole party 1(count);100(chance)
<set name="distribution_items_reward" value="57;1"/>
<set name="distribution_items_reward_level_penalty" value="9" />
<set name="distribution_items_reward_chance" value="100" />
Grant items to the entire CC/party/Solo when they kill the boss/mob.
Level penalty for item distribution from `distribution_items_reward_level_penalty` - default value 9
Chance to get an item - can be separated through ; each item from the array. If the quantity does not match - takes the last one

All of these conditions can be used separately or together for different NPC IDs.

If there are sensible suggestions - I will gladly listen and implement.
 
Last edited:
Good morning Deazer, is it possible to create a parameter so that only those who are ATTACKING the mob/boss get the flag? The current setup leaves everyone around Flag
 
Good morning Deazer, is it possible to create a parameter so that only those who are ATTACKING the mob/boss get the flag? The current setup leaves everyone around Flag
<set name="type" value="FlaggingOnHitMob"/><set name="type" value="FlaggingOnHitBoss"/>
 
<set name="type" value="FlaggingOnHitMob"/><set name="type" value="FlaggingOnHitBoss"/>
I did several tests here, unfortunately this parameter does not work with the Baium boss. apparently it was created for common raidbosses. When you change the type of the Baium boss it gives an error on the gameserver when it wakes up, if you add it below, accumulating two types, the error also happens, leaving the ai_type as Baium or UniversalFighter, the same thing also happens. Putting the type inside <ai> nothing happens, unfortunately it is not functional

I'll still need a call from @Deazer
 
I want anais
What exactly?

when I die I get all flag

<npc id="29096" name="Anais" title="Lord of Splendor">
<set name="aggroRange" value="1000"/>
<set name="ai_type" value="AdventureBoss"/>
<set name="baseAtkRange" value="40"/>
<set name="baseCON" value="57"/>
<set name="baseCritRate" value="40"/>
<set name="baseDEX" value="73"/>
<set name="baseHpMax" value="480890.351"/>
<set name="baseHpRate" value="1"/>
<set name="baseHpReg" value="147.845"/>
<set name="baseINT" value="76"/>
<set name="baseMAtk" value="2290"/>
<set name="baseMAtkSpd" value="3819"/>
<set name="baseMDef" value="1085"/>
<set name="baseMEN" value="80"/>
<set name="baseMpMax" value="2051.19"/>
<set name="baseMpReg" value="3.21"/>
<set name="basePAtk" value="6164"/>
<set name="basePAtkSpd" value="253"/>
<set name="basePDef" value="2004"/>
<set name="baseRunSpd" value="160"/>
<set name="baseSTR" value="60"/>
<set name="baseShldDef" value="0"/>
<set name="baseShldRate" value="0"/>
<set name="baseWIT" value="70"/>
<set name="baseWalkSpd" value="60"/>
<set name="collision_height" value="41.8"/>
<set name="collision_radius" value="16.0"/>
<set name="level" value="80"/>
<set name="rewardExp" value="3608496"/>
<set name="rewardRp" value="3888"/>
<set name="rewardSp" value="952059"/>
<set name="shots" value="NONE"/>
<set name="texture" value=""/>
<set name="type" value="RaidBoss"/>
<faction name="solina_clan" range="1000"/>
 
Is there a parameter for all players who attack the raid boss to receive an item when the raid dies? (regardless of whether you are in a party or not)
 
Hello, the system for subclass has an error, give the quest to 1 party to the party that hits the most, they should correct it, give it subclass to all the parties, killing the raid
 
The subclass service does not work when more than one party kills the raid boss.
Do users need additional requirements?
 
its done.
<set name="distribution_items_reward" value="57;1"/>
<set name="distribution_items_reward_level_penalty" value="9" />

You can check at repo
Thanks, we were waiting for this. You have to add premium rate(now not works), but give the extra drop bonus for the individual premiun player, not for everyone, for premiums players only

Example:
Adena Drop: 1.000.000
Bonus Premiun +50%, Total for ME: 1.500.000
* Only the premium ones receive the bonus, not all of them, please.
 
Last edited:
Thanks, we were waiting for this. You have to add premium rate(now not works), but give the extra drop bonus for the individual premiun player, not for everyone, for premiums players only

Example:
Adena Drop: 1.000.000
Bonus Premiun +50%, Total for ME: 1.500.000
* Only the premium ones receive the bonus, not all of them, please.
enjoy hahaha
 
<set name="give_to_party_items_reward" value="57;1" /> Can we add chances parameter for drop too and if possible to displayed in drops of raidboss?
 
Back
Top