Custom MOB but no HP bar

Results 1 to 15 of 15
  1. #1
    Enthusiast GamerZ is offline
    MemberRank
    May 2005 Join Date
    35Posts

    Custom MOB but no HP bar

    Hi i nid abit help here,
    I made a custom L2Monster using Zariche template 13086, everything is ok when I spawn it but when I click on it,but it doesnt reveal its HP bar like all other mobs does. Is there anything else I nid to edit on the db table?


  2. #2
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Custom MOB but no HP bar

    the hp and mob stats can be changed only from the sql npc... so if you want post the npc sql line

  3. #3
    Member ApeXbg is offline
    MemberRank
    Dec 2006 Join Date
    71Posts

    Re: Custom MOB but no HP bar

    I have such problem too and i wish to know if there is a way to solve it.

    Mine is a bit difrent:

    I took an exisitng npc and changed template to another mob.

    and the health bar disapeared.

  4. #4
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Custom MOB but no HP bar

    Quote Originally Posted by ApeXbg View Post
    I have such problem too and i wish to know if there is a way to solve it.

    Mine is a bit difrent:

    I took an exisitng npc and changed template to another mob.

    and the health bar disapeared.
    well guys i have made the same things many times. when you create a new npc with an other template you must just change the size too...

  5. #5
    Member ApeXbg is offline
    MemberRank
    Dec 2006 Join Date
    71Posts

    Re: Custom MOB but no HP bar

    what do u mean by size?

  6. #6
    Enthusiast GamerZ is offline
    MemberRank
    May 2005 Join Date
    35Posts

    Re: Custom MOB but no HP bar

    Quote Originally Posted by DaRkAnGeL View Post
    the hp and mob stats can be changed only from the sql npc... so if you want post the npc sql line
    INSERT INTO custom_npc
    (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`, `drop_herbs`)
    VALUES
    (2004, 13086, 'Zariche', 1, 'Test Monster', 1, 'LineageMonster4.Avatar_Z', 12.00, 31.57, 80, 'male', 'L2Monster', 40, 500000, 2444, 500.00, 100.00, 40, 40, 20, 20, 20, 20, 0, 0, 2000, 500, 200, 250, 400, 500, 2362, 8190, 0, , 80, 120, '', 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter', 'false');

    hope this is the 1 you are asking, sorry still pretty green here.
    Also I would like to ask if an custom npc can be edited so it belongs to 2 or more 'faction_id'
    Last edited by GamerZ; 11-02-09 at 07:15 PM. Reason: Additional question to ask

  7. #7
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Custom MOB but no HP bar

    Quote Originally Posted by ApeXbg View Post
    what do u mean by size?
    `collision_radius`, `collision_height

    Quote Originally Posted by GamerZ View Post
    INSERT INTO custom_npc
    (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`, `drop_herbs`)
    VALUES
    (2004, 13086, 'Zariche', 1, 'Test Monster', 1, 'LineageMonster4.Avatar_Z', 12.00, 31.57, 80, 'male', 'L2Monster', 40, 500000, 2444, 500.00, 100.00, 40, 40, 20, 20, 20, 20, 0, 0, 2000, 500, 200, 250, 400, 500, 2362, 8190, 0, , 80, 120, '', 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter', 'false');

    hope this is the 1 you are asking, sorry still pretty green here.
    Also I would like to ask if an custom npc can be edited so it belongs to 2 or more 'faction_id'
    well i can not see any problem.. try to take elpy sql line in a notepad then change the name the `collision_radius`, `collision_height to be like the monster that you want and then change the idtemplate to be like the monster that you want. then change the id to 94522 example and try again...

    also as i know it can not you must make two different npc ids with the same id template

  8. #8
    Member theone_l2j is offline
    MemberRank
    Nov 2008 Join Date
    CanadaLocation
    81Posts

    Re: Custom MOB but no HP bar

    The problem is not that you cant see the name, it's that the HP bar is "black" sort of speak.

    As far as I know this is due to that mob's template and there is nothing that we can do about it... but I'm not 100% sure. I've run into this problem a few times too but I really havent spent too much time researching a solution.

  9. #9
    Member jurchiks is offline
    MemberRank
    Mar 2006 Join Date
    LatviaLocation
    99Posts

    Re: Custom MOB but no HP bar

    yes, i've seen this too, the hp bar is there, but it looks like the hp is 0

  10. #10
    Enthusiast GamerZ is offline
    MemberRank
    May 2005 Join Date
    35Posts

    Re: Custom MOB but no HP bar

    The past week I had been trying some trial and errors, but jus like theone_l2j said, it got something to do with the template, however if u can see the hp bar as though its been greyout, means it can appear likely by changing the class of the npc, but if the bar isnt there at all, then its not possible yet, or I havnt figure the way to make it appear.
    Tried Darkangel's method as well, also no avail.

  11. #11
    Novice AngelBeam is offline
    MemberRank
    Apr 2008 Join Date
    2Posts

    Re: Custom MOB but no HP bar

    I Am not 100% Sure, i havent tried it because i cant open things with that piece of trash fileedit (wish someone would make something more reliable) But i think what you need to do is edit something of that NPC Template in the NPCname-e file or maybe somewhere else in the system folder, I Dunno... Try having a look at some of them and compare to your mob from another mob with HP Bar.

  12. #12
    Apprentice execute99 is offline
    MemberRank
    Nov 2009 Join Date
    8Posts

    Re: Custom MOB but no HP bar

    I think HP Bar is due to client side, when custom IDtemplate.
    Last edited by execute99; 14-12-09 at 01:02 AM.

  13. #13
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Custom MOB but no HP bar

    wait are we talking about custom npcs from sql or new npc from client.

    if we are talking for the first one you must check your npc type and idtemplate.

    i didn't have problems with custom npcs

  14. #14
    Account Upgraded | Title Enabled! B1ggBoss is offline
    MemberRank
    Apr 2008 Join Date
    SpainLocation
    488Posts

    Re: Custom MOB but no HP bar

    use another npc template, thats cause the client side npc type

  15. #15
    Apprentice execute99 is offline
    MemberRank
    Nov 2009 Join Date
    8Posts

    Re: Custom MOB but no HP bar

    HP Bar does not show up if client side file NPCgrp, does not have one option as 1 instead of 0. If you are using a CUSTOM IdTemplate! Unless you use the IDTEMPLATE of some other mob (most mobs have the npgrp correct).

    Here's a better question though. How do you set on NPCgrp-e.dat, the "Monster type" (like undead, bug, insect, flora, monster, angel). Those little icons that show up below HP BAR of a mob. There must be a way to activate those on client-side. I thought by assigning npcskills to each npc, I can accomplish this. But that just puts the skill on it, I think I need to edit client side too to show the icon.
    Last edited by execute99; 14-12-09 at 01:04 AM.



Advertisement