Jump to content

adding npc error?


Recommended Posts

I try adding new npcs to my server, I tried like 5 different npcs now and none of them work, when I add the npc folder to the NPC packs, enter the vnum and the folder name and root, and add the queries both serverside and clientside. I get the error when game is loading.     "LoadGameNPC() - ['vnum foldername']" the error message says that the problem is from root and tells the exact line?? but all I do is add the vnum and the foldername there, am I missing anything?

Link to comment
Share on other sites

  • 5 years later...
  • Active Member

1-Download NPC / create NPC
2-Add new ID in mob_names.txt (Files) for example 5010 :

Quote

XXXX    Mini Azrael (Héroe)
XXXX    Mini Verdugo
XXXX    Mini Verd. (Héroe)
XXXX    Mini Baashido
XXXX    Mini Baash. (Héroe)
XXXX    Grinch
5010    NEW NPC

3-Copy other mob / npc / boss line and change values and id for example:

Quote


691    Orc_Chief    BOSS    MONSTER    MELEE    50        AGGR    0    ORC    STUN,SLOW,CURSE,TERROR,POISON    0    orc_lord    0    48    32    63    16    79    146    24618    19    22    50000    120000    9010    57    100    100    100    2000    175    0    0    0    0    0    10    0    0    0    0    0    0    0    0    0    0    0    0    0    2    0    0    0    71093    30    256    0    0    0    0    0    0    0    35    0    0    0    0    0            
5010    NEW_NPC    KING    NPC    MELEE    70        NOMOVE    0        STUN,SLOW,CURSE,TERROR,POISON    0        1    0    0    0    0    0    0    3954    3    1    0    0    562    79    100    100    0    2000    150    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    71093    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0            

4-Now go to folder you download (NPC /MOB) and edit xxx.msm in my case "pascua_rey.msm" (you can see somethin like this:)

Quote

 

ScriptType            RaceDataScript

BaseModelFileName     "D:\ymir work\npc2\pascua_rey\pascua_rey.gr2"

Group ShapeData
{
    PathName          ""
    ShapeDataCount          0
}
Group AttachingData
{
    AttachingDataCount       2
    
    Group AttachingData00
    {
        AttachingDataType    1
        
        isAttaching          1
        AttachingModelIndex  0
        AttachingBoneName    "Bip01 Pelvis"
        
        CollisionType        1
        
        SphereDataCount      1
        Group SphereData00
        {
            Radius           50.000000
            Position         0.000000 0.000000 0.000000
        }
    }
    
    Group AttachingData01
    {
        AttachingDataType    1
        
        isAttaching          1
        AttachingModelIndex  0
        AttachingBoneName    "Bip01 Pelvis"
        
        CollisionType        3
        
        SphereDataCount      1
        Group SphereData00
        {
            Radius           50.000000
            Position         0.000000 0.000000 0.000000
        }
    }
}

 

4.1-Now check location you need add boss/npc, you can see in the 2 line :

Quote

BaseModelFileName     "D:\ymir work\npc2\pascua_rey\pascua_rey.gr2"

in my case "NPC2"

5.When you decompile NPC2 or you rute, only go to ymir work/xxx and paste folder with new npc /bosss
in my case is ymor work/npc2 <-here paste folder.

6.Go to root -> npclist.txt and add your new id and msm name, (check your id doesn't exist) in my case

Quote

5010    pascua_rey

and put 1 enter in the end (btw is very important you add  tab on all)

example:

Quote

34065    red_dragon_young2
34073    pwahuang1_3
34074    pwahuang1_4
34075    redthief2_officer_young3
34076    redthief2_officer_young4
34080    luck_sheep_young1
34081    luck_sheep_young2
9211    warp
20130    box_npc
20131    aosen_ch
5010    pascua_rey
        <-enter

7.Now compile root, and npc or mob.eix .epk
8-Use Dump_proto to compile new mob_proto.txt and add in locale, replace and compile.
9-Reboot/Shutdown server
10-Start and try use /m 5010 or you id and check

If  you have the same problem, tell me and i try to help 🙂

  • Love 1

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.