Quick question about mobs race.

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Quick question about mobs race.

Post by Chuliganas »

Hi. I'm trying to build a few new mobs in my server, and bumped into a little problem - Where do you describe mobs race? If I want it to be undead, or let's say angel race, and to be able attack with might of heaven, or banish seraph, etc?
Thanks in advance.
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Quick question about mobs race.

Post by VlLight »

Defines by level of 4416 skill.

Code: Select all

            case 1:                race = L2NpcTemplate.Race.UNDEAD;                break;            case 2:                race = L2NpcTemplate.Race.MAGICCREATURE;                break;            case 3:                race = L2NpcTemplate.Race.BEAST;                break;            case 4:                race = L2NpcTemplate.Race.ANIMAL;                break;            case 5:                race = L2NpcTemplate.Race.PLANT;                break;            case 6:                race = L2NpcTemplate.Race.HUMANOID;                break;            case 7:                race = L2NpcTemplate.Race.SPIRIT;                break;            case 8:                race = L2NpcTemplate.Race.ANGEL;                break;            case 9:                race = L2NpcTemplate.Race.DEMON;                break;            case 10:                race = L2NpcTemplate.Race.DRAGON;                break;            case 11:                race = L2NpcTemplate.Race.GIANT;                break;            case 12:                race = L2NpcTemplate.Race.BUG;                break;            case 13:                race = L2NpcTemplate.Race.FAIRIE;                break;            case 14:                race = L2NpcTemplate.Race.HUMAN;                break;            case 15:                race = L2NpcTemplate.Race.ELVE;                break;            case 16:                race = L2NpcTemplate.Race.DARKELVE;                break;            case 17:                race = L2NpcTemplate.Race.ORC;                break;            case 18:                race = L2NpcTemplate.Race.DWARVE;                break;            case 19:                race = L2NpcTemplate.Race.OTHER;                break;            case 20:                race = L2NpcTemplate.Race.NONLIVING;                break;            case 21:                race = L2NpcTemplate.Race.SIEGEWEAPON;                break;            case 22:                race = L2NpcTemplate.Race.DEFENDINGARMY;                break;            case 23:                race = L2NpcTemplate.Race.MERCENARIE;                break;            case 24:                race = L2NpcTemplate.Race.UNKNOWN;                break;            case 25:                race = L2NpcTemplate.Race.KAMAEL;
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Re: Quick question about mobs race.

Post by Chuliganas »

Looks like I'm using older version than yours... :?
4416 skill in my list defines races p def modifiers... and I've checked some undead mobs - they have no race related skills. :roll: There are no section in database to define race, no skill, So I'm wondering how that was done.

P.S. I've tried to add a 4416 skill to a NPC, it doesn't show up in a skill list...

P.S.S. I'm using Freya compilation, not sure how to check review... Found this tho - version = 7911
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Quick question about mobs race.

Post by VlLight »

pfff.. I had quoted part of the core.
For example: 20136 - Death Knight. Is he undead? I think - yes. Does he 4416 - 1 skill? Yes
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Re: Quick question about mobs race.

Post by Chuliganas »

found this -

Code: Select all

    <skill id="4290" levels="1" name="Race">        <!-- Freya retail confirmed -->        <!-- Race Undead -->        <set name="target" val="TARGET_NONE" />        <set name="skillType" val="NOTDONE" />        <set name="operateType" val="OP_PASSIVE" />    </skill> 
And some similar below this... but it says not done... so it can't be working... :roll:
How else a race could be described?
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Re: Quick question about mobs race.

Post by Chuliganas »

VlLight wrote:pfff.. I had quoted part of the core.
For example: 20136 - Death Knight. Is he undead? I think - yes. Does he 4416 - 1 skill? Yes
http://img861.imageshack.us/img861/1773/shot00001j.jpg

Not in my case... :roll:
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Quick question about mobs race.

Post by MELERIX »

Chuliganas wrote:http://img861.imageshack.us/img861/1773/shot00001j.jpg

Not in my case... :roll:
you are using a old L2J version then.

upgrade your server properly.
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Re: Quick question about mobs race.

Post by Chuliganas »

Damn, just downloaded this version couple of weeks ago from this same forum, where it was listed as one of last stable versions... :?
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Quick question about mobs race.

Post by VlLight »

This skill have not added to skill list. Used only for set race

Code: Select all

                    if (npcDat.race == null && skillId == 4416)                    {                        npcDat.setRace(level);                        continue;                    } 
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Quick question about mobs race.

Post by VlLight »

Look into npcskills table. You'll find this skill
Chuliganas
Posts: 80
Joined: Fri May 06, 2011 11:17 am

Re: Quick question about mobs race.

Post by Chuliganas »

found it. works like i want. thanks for being patient with a stupid me :oops:
Post Reply